From ea45868761b9f0adfd8f1f50c2086d1d9f0426d1 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Thu, 12 Mar 2026 21:50:20 +0100 Subject: [PATCH] deps: update to protobuf v34.0 --- agents/grpc/src/proto/asset.pb.cc | 11 +- agents/grpc/src/proto/asset.pb.h | 74 +- agents/grpc/src/proto/blocked_loop.pb.cc | 80 +- agents/grpc/src/proto/blocked_loop.pb.h | 297 +- agents/grpc/src/proto/command.pb.cc | 30 +- agents/grpc/src/proto/command.pb.h | 176 +- agents/grpc/src/proto/common.pb.cc | 27 +- agents/grpc/src/proto/common.pb.h | 166 +- agents/grpc/src/proto/exit.pb.cc | 27 +- agents/grpc/src/proto/exit.pb.h | 167 +- agents/grpc/src/proto/info.pb.cc | 91 +- agents/grpc/src/proto/info.pb.h | 168 +- agents/grpc/src/proto/metrics.pb.cc | 56 +- agents/grpc/src/proto/metrics.pb.h | 121 +- agents/grpc/src/proto/nsolid_service.pb.cc | 11 +- agents/grpc/src/proto/nsolid_service.pb.h | 54 +- agents/grpc/src/proto/packages.pb.cc | 101 +- agents/grpc/src/proto/packages.pb.h | 188 +- agents/grpc/src/proto/profile.pb.cc | 43 +- agents/grpc/src/proto/profile.pb.h | 260 +- agents/grpc/src/proto/reconfigure.pb.cc | 56 +- agents/grpc/src/proto/reconfigure.pb.h | 179 +- agents/grpc/src/proto/source_code.pb.cc | 19 +- agents/grpc/src/proto/source_code.pb.h | 117 +- agents/grpc/src/proto/startup_times.pb.cc | 53 +- agents/grpc/src/proto/startup_times.pb.h | 73 +- .../collector/logs/v1/logs_service.pb.cc | 64 +- .../proto/collector/logs/v1/logs_service.pb.h | 166 +- .../metrics/v1/metrics_service.pb.cc | 64 +- .../collector/metrics/v1/metrics_service.pb.h | 166 +- .../collector/trace/v1/trace_service.pb.cc | 64 +- .../collector/trace/v1/trace_service.pb.h | 166 +- .../proto/common/v1/common.pb.cc | 232 +- .../opentelemetry/proto/common/v1/common.pb.h | 397 +- .../opentelemetry/proto/logs/v1/logs.pb.cc | 189 +- .../cpp/opentelemetry/proto/logs/v1/logs.pb.h | 305 +- .../proto/metrics/v1/metrics.pb.cc | 872 +++- .../proto/metrics/v1/metrics.pb.h | 1203 +++--- .../proto/resource/v1/resource.pb.cc | 78 +- .../proto/resource/v1/resource.pb.h | 80 +- .../opentelemetry/proto/trace/v1/trace.pb.cc | 350 +- .../opentelemetry/proto/trace/v1/trace.pb.h | 547 +-- deps/protobuf/.bazelci/presubmit.yml | 2 +- deps/protobuf/.bcr/metadata.template.json | 18 + deps/protobuf/.bcr/presubmit.yml | 2 +- deps/protobuf/.bcr/source.template.json | 2 +- deps/protobuf/.gitattributes | 4 + deps/protobuf/protobuf.gyp | 1 + deps/protobuf/src/BUILD.bazel | 28 - deps/protobuf/src/file_lists.cmake | 48 +- deps/protobuf/src/google/protobuf/BUILD.bazel | 171 +- deps/protobuf/src/google/protobuf/any.h | 32 +- deps/protobuf/src/google/protobuf/any.pb.cc | 15 +- deps/protobuf/src/google/protobuf/any.pb.h | 79 +- deps/protobuf/src/google/protobuf/api.pb.cc | 161 +- deps/protobuf/src/google/protobuf/api.pb.h | 227 +- deps/protobuf/src/google/protobuf/arena.h | 86 +- .../src/google/protobuf/arenaz_sampler.h | 18 +- .../src/google/protobuf/compiler/BUILD.bazel | 22 +- .../protobuf/compiler/annotation_test_util.cc | 12 +- .../protobuf/compiler/annotation_test_util.h | 8 +- .../protobuf/compiler/code_generator.cc | 5 +- .../google/protobuf/compiler/code_generator.h | 4 +- .../compiler/code_generator_unittest.cc | 17 + .../compiler/command_line_interface.cc | 127 +- .../compiler/command_line_interface.h | 1 + .../command_line_interface_unittest.cc | 544 ++- .../google/protobuf/compiler/cpp/BUILD.bazel | 25 +- .../compiler/cpp/bootstrap_unittest.cc | 1 - .../src/google/protobuf/compiler/cpp/enum.cc | 95 +- .../google/protobuf/compiler/cpp/extension.cc | 19 +- .../google/protobuf/compiler/cpp/extension.h | 4 +- .../src/google/protobuf/compiler/cpp/field.cc | 170 +- .../src/google/protobuf/compiler/cpp/field.h | 28 +- .../cpp/field_generators/cord_field.cc | 41 +- .../cpp/field_generators/enum_field.cc | 77 +- .../cpp/field_generators/generators.h | 42 +- .../cpp/field_generators/map_field.cc | 25 +- .../cpp/field_generators/message_field.cc | 60 +- .../cpp/field_generators/primitive_field.cc | 87 +- .../cpp/field_generators/string_field.cc | 192 +- .../cpp/field_generators/string_view_field.cc | 152 +- .../src/google/protobuf/compiler/cpp/file.cc | 72 +- .../src/google/protobuf/compiler/cpp/file.h | 2 - .../protobuf/compiler/cpp/file_unittest.cc | 8 +- .../google/protobuf/compiler/cpp/generator.cc | 22 +- .../google/protobuf/compiler/cpp/generator.h | 4 +- .../compiler/cpp/generator_unittest.cc | 6 +- .../google/protobuf/compiler/cpp/helpers.cc | 83 +- .../google/protobuf/compiler/cpp/helpers.h | 50 +- .../compiler/cpp/ifndef_guard_unittest.cc | 4 +- .../google/protobuf/compiler/cpp/message.cc | 451 +- .../google/protobuf/compiler/cpp/message.h | 23 +- .../compiler/cpp/message_layout_helper.cc | 44 +- .../compiler/cpp/message_layout_helper.h | 33 +- .../compiler/cpp/message_size_unittest.cc | 62 +- .../protobuf/compiler/cpp/metadata_test.cc | 30 + .../cpp/namespace_printer_unittest.cc | 4 +- .../google/protobuf/compiler/cpp/options.h | 4 + .../protobuf/compiler/cpp/padding_optimizer.h | 5 +- .../compiler/cpp/parse_function_generator.cc | 36 +- .../compiler/cpp/parse_function_generator.h | 11 +- .../cpp/tools/analyze_profile_proto.cc | 7 +- .../cpp/tools/analyze_profile_proto_main.cc | 2 +- .../google/protobuf/compiler/cpp/tracker.cc | 21 +- .../google/protobuf/compiler/cpp/unittest.inc | 37 +- .../protobuf/compiler/csharp/BUILD.bazel | 12 - .../protobuf/compiler/csharp/csharp_enum.cc | 2 +- .../compiler/csharp/csharp_enum_field.cc | 2 +- .../compiler/csharp/csharp_field_base.cc | 8 +- .../compiler/csharp/csharp_field_base.h | 2 +- .../compiler/csharp/csharp_generator.cc | 2 +- .../compiler/csharp/csharp_generator.h | 5 +- .../compiler/csharp/csharp_helpers.cc | 2 +- .../protobuf/compiler/csharp/csharp_helpers.h | 2 +- .../compiler/csharp/csharp_map_field.cc | 2 +- .../compiler/csharp/csharp_message.cc | 2 +- .../protobuf/compiler/csharp/csharp_message.h | 2 +- .../compiler/csharp/csharp_message_field.cc | 2 +- .../compiler/csharp/csharp_primitive_field.cc | 2 +- .../csharp/csharp_repeated_enum_field.cc | 4 +- .../csharp/csharp_repeated_message_field.cc | 2 +- .../csharp/csharp_repeated_primitive_field.cc | 4 +- .../csharp/csharp_source_generator_base.cc | 4 +- .../compiler/csharp/csharp_wrapper_field.cc | 2 +- .../src/google/protobuf/compiler/importer.cc | 8 +- .../src/google/protobuf/compiler/importer.h | 16 +- .../google/protobuf/compiler/java/BUILD.bazel | 14 +- .../protobuf/compiler/java/doc_comment.cc | 17 + .../protobuf/compiler/java/field_common.cc | 2 + .../src/google/protobuf/compiler/java/file.cc | 68 +- .../protobuf/compiler/java/full/BUILD.bazel | 1 + .../protobuf/compiler/java/full/enum.cc | 40 +- .../protobuf/compiler/java/full/map_field.cc | 2 +- .../protobuf/compiler/java/full/message.cc | 42 +- .../compiler/java/full/message_builder.cc | 21 +- .../compiler/java/full/message_field.cc | 32 +- .../compiler/java/full/message_field.h | 8 +- .../compiler/java/full/string_field.cc | 85 +- .../protobuf/compiler/java/generator.cc | 3 +- .../google/protobuf/compiler/java/generator.h | 4 +- .../compiler/java/generator_unittest.cc | 24 +- .../compiler/java/internal_helpers.cc | 251 +- .../protobuf/compiler/java/internal_helpers.h | 4 - .../compiler/java/java_features.pb.cc | 25 +- .../protobuf/compiler/java/java_features.pb.h | 144 +- .../protobuf/compiler/java/lite/enum.cc | 12 +- .../protobuf/compiler/java/lite/message.cc | 2 +- .../compiler/java/lite/message_builder.cc | 2 +- .../protobuf/compiler/java/plugin_unittest.cc | 4 +- .../compiler/java/shared_code_generator.cc | 10 +- .../protobuf/compiler/kotlin/BUILD.bazel | 12 - .../compiler/kotlin/annotation_test.cc | 111 + .../google/protobuf/compiler/kotlin/field.cc | 55 +- .../google/protobuf/compiler/kotlin/file.cc | 16 +- .../google/protobuf/compiler/kotlin/file.h | 3 +- .../protobuf/compiler/kotlin/generator.cc | 31 +- .../protobuf/compiler/kotlin/generator.h | 4 +- .../protobuf/compiler/kotlin/message.cc | 119 +- .../src/google/protobuf/compiler/main.cc | 5 + .../protobuf/compiler/objectivec/BUILD.bazel | 19 - .../protobuf/compiler/objectivec/extension.cc | 92 +- .../protobuf/compiler/objectivec/extension.h | 14 +- .../protobuf/compiler/objectivec/field.cc | 2 +- .../protobuf/compiler/objectivec/file.cc | 228 +- .../protobuf/compiler/objectivec/file.h | 10 +- .../protobuf/compiler/objectivec/generator.cc | 45 +- .../protobuf/compiler/objectivec/generator.h | 4 +- .../protobuf/compiler/objectivec/message.cc | 44 +- .../protobuf/compiler/objectivec/message.h | 2 + .../protobuf/compiler/objectivec/names.cc | 92 +- .../protobuf/compiler/objectivec/names.h | 22 + .../protobuf/compiler/objectivec/options.h | 32 + .../src/google/protobuf/compiler/parser.cc | 74 +- .../src/google/protobuf/compiler/parser.h | 17 +- .../protobuf/compiler/parser_unittest.cc | 531 ++- .../compiler/php/{BUILD.bazel => BUILD} | 36 +- .../protobuf/compiler/php/php_generator.cc | 190 +- .../protobuf/compiler/php/php_generator.h | 7 +- .../src/google/protobuf/compiler/plugin.pb.cc | 172 +- .../src/google/protobuf/compiler/plugin.pb.h | 330 +- .../protobuf/compiler/python/BUILD.bazel | 27 - .../protobuf/compiler/python/generator.cc | 17 +- .../protobuf/compiler/python/generator.h | 4 +- .../protobuf/compiler/python/pyi_generator.cc | 18 +- .../protobuf/compiler/python/pyi_generator.h | 4 +- .../protobuf/compiler/retention_unittest.cc | 2 - .../google/protobuf/compiler/ruby/BUILD.bazel | 40 +- .../protobuf/compiler/ruby/rbs_generator.cc | 824 ++++ .../protobuf/compiler/ruby/rbs_generator.h | 40 + .../compiler/ruby/rbs_generator_unittest.cc | 109 + .../compiler/ruby/ruby_generated_code.proto | 2 + .../compiler/ruby/ruby_generated_code_pb.rbs | 448 ++ .../ruby/ruby_generated_code_proto2_pb.rbs | 484 +++ .../ruby_generated_pkg_explicit_legacy_pb.rbs | 43 + .../ruby/ruby_generated_pkg_explicit_pb.rbs | 43 + .../ruby/ruby_generated_pkg_implicit_pb.rbs | 43 + .../protobuf/compiler/ruby/ruby_generator.cc | 2 +- .../protobuf/compiler/ruby/ruby_generator.h | 10 +- .../compiler/rust/{BUILD.bazel => BUILD} | 292 +- .../rust/accessors/{BUILD.bazel => BUILD} | 10 +- .../protobuf/compiler/rust/accessors/map.cc | 13 +- .../compiler/rust/accessors/repeated_field.cc | 12 +- .../compiler/rust/accessors/singular_cord.cc | 55 +- .../rust/accessors/singular_message.cc | 2 +- .../rust/accessors/singular_scalar.cc | 2 +- .../rust/accessors/singular_string.cc | 23 +- .../google/protobuf/compiler/rust/context.cc | 6 + .../google/protobuf/compiler/rust/context.h | 1 + .../src/google/protobuf/compiler/rust/enum.cc | 15 +- .../protobuf/compiler/rust/generator.cc | 38 + .../google/protobuf/compiler/rust/generator.h | 4 +- .../google/protobuf/compiler/rust/message.cc | 25 +- .../google/protobuf/compiler/rust/naming.cc | 59 +- .../google/protobuf/compiler/rust/naming.h | 3 + .../protobuf/compiler/rust/rust_keywords.cc | 7 +- .../compiler/test_plugin_injection.bzl | 2 +- .../src/google/protobuf/compiler/versions.h | 8 +- .../src/google/protobuf/cpp_features.pb.cc | 14 +- .../src/google/protobuf/cpp_features.pb.h | 87 +- .../src/google/protobuf/descriptor.cc | 440 +- .../protobuf/src/google/protobuf/descriptor.h | 751 ++-- .../src/google/protobuf/descriptor.pb.cc | 2472 ++++++++--- .../src/google/protobuf/descriptor.pb.h | 3646 ++++++++++------- .../src/google/protobuf/descriptor.proto | 16 +- .../google/protobuf/descriptor_database.cc | 55 +- .../src/google/protobuf/descriptor_database.h | 149 +- .../src/google/protobuf/descriptor_legacy.h | 11 +- .../src/google/protobuf/descriptor_lite.h | 4 +- .../src/google/protobuf/duration.pb.cc | 11 +- .../src/google/protobuf/duration.pb.h | 56 +- .../src/google/protobuf/dynamic_message.cc | 81 +- .../src/google/protobuf/dynamic_message.h | 2 +- deps/protobuf/src/google/protobuf/empty.pb.cc | 11 +- deps/protobuf/src/google/protobuf/empty.pb.h | 33 +- deps/protobuf/src/google/protobuf/endian.h | 15 + .../google/protobuf/explicitly_constructed.h | 10 +- .../src/google/protobuf/extension_set.cc | 279 +- .../src/google/protobuf/extension_set.h | 607 +-- .../google/protobuf/extension_set_heavy.cc | 112 +- .../src/google/protobuf/extension_set_inl.h | 123 +- .../src/google/protobuf/feature_resolver.cc | 288 +- .../src/google/protobuf/feature_resolver.h | 24 +- .../google/protobuf/field_access_listener.h | 7 +- .../src/google/protobuf/field_mask.pb.cc | 48 +- .../src/google/protobuf/field_mask.pb.h | 63 +- .../src/google/protobuf/field_mask.proto | 34 +- .../src/google/protobuf/field_with_arena.h | 110 + .../protobuf/generated_enum_reflection.h | 86 +- .../google/protobuf/generated_enum_util.cc | 4 +- .../src/google/protobuf/generated_enum_util.h | 6 + .../protobuf/generated_message_reflection.cc | 315 +- .../protobuf/generated_message_reflection.h | 17 - .../protobuf/generated_message_tctable_decl.h | 21 +- .../protobuf/generated_message_tctable_gen.cc | 66 +- .../protobuf/generated_message_tctable_gen.h | 10 +- .../protobuf/generated_message_tctable_impl.h | 30 +- .../generated_message_tctable_lite.cc | 212 +- .../google/protobuf/generated_message_util.cc | 22 +- .../google/protobuf/generated_message_util.h | 43 +- deps/protobuf/src/google/protobuf/has_bits.h | 11 +- .../google/protobuf/implicit_weak_message.cc | 1 - .../google/protobuf/implicit_weak_message.h | 42 +- .../google/protobuf/inlined_string_field.cc | 94 +- .../google/protobuf/inlined_string_field.h | 366 +- .../protobuf/internal_metadata_locator.h | 291 ++ .../src/google/protobuf/internal_visibility.h | 11 + .../src/google/protobuf/io/BUILD.bazel | 11 +- .../src/google/protobuf/io/coded_stream.cc | 15 +- .../src/google/protobuf/io/coded_stream.h | 280 +- .../protobuf/io/coded_stream_unittest.cc | 24 +- .../src/google/protobuf/io/gzip_stream.cc | 3 +- .../src/google/protobuf/io/gzip_stream.h | 40 +- .../src/google/protobuf/io/printer.cc | 24 +- .../protobuf/src/google/protobuf/io/printer.h | 73 +- .../google/protobuf/io/printer_death_test.cc | 4 +- .../google/protobuf/io/printer_unittest.cc | 14 +- deps/protobuf/src/google/protobuf/io/strtod.h | 4 + .../protobuf/io/test_zero_copy_stream.h | 4 +- .../protobuf/io/test_zero_copy_stream_test.cc | 30 +- .../src/google/protobuf/io/zero_copy_sink.h | 6 +- .../src/google/protobuf/io/zero_copy_stream.h | 31 +- .../protobuf/io/zero_copy_stream_impl.cc | 4 +- .../protobuf/io/zero_copy_stream_impl.h | 34 +- .../protobuf/io/zero_copy_stream_impl_lite.cc | 9 +- .../protobuf/io/zero_copy_stream_impl_lite.h | 76 +- .../protobuf/io/zero_copy_stream_unittest.cc | 24 +- .../src/google/protobuf/json/BUILD.bazel | 5 + .../json/internal/descriptor_traits.h | 34 +- .../google/protobuf/json/internal/lexer.cc | 1 - .../google/protobuf/json/internal/parser.cc | 38 +- .../google/protobuf/json/internal/unparser.cc | 9 +- .../protobuf/json/internal/unparser_traits.h | 3 +- .../protobuf/json/internal/untyped_message.cc | 17 +- .../protobuf/json/internal/untyped_message.h | 4 +- deps/protobuf/src/google/protobuf/json/json.h | 2 +- .../src/google/protobuf/json/json_test.cc | 30 + deps/protobuf/src/google/protobuf/map.cc | 87 +- deps/protobuf/src/google/protobuf/map.h | 522 ++- deps/protobuf/src/google/protobuf/map_entry.h | 2 +- .../protobuf/src/google/protobuf/map_field.cc | 38 +- deps/protobuf/src/google/protobuf/map_field.h | 157 +- .../src/google/protobuf/map_field_lite.h | 35 +- deps/protobuf/src/google/protobuf/message.cc | 12 +- deps/protobuf/src/google/protobuf/message.h | 230 +- .../src/google/protobuf/message_lite.cc | 24 +- .../src/google/protobuf/message_lite.h | 397 +- .../src/google/protobuf/metadata_lite.h | 15 +- .../src/google/protobuf/micro_string.h | 4 - .../src/google/protobuf/parse_context.cc | 123 +- .../src/google/protobuf/parse_context.h | 249 +- deps/protobuf/src/google/protobuf/port.h | 82 +- .../protobuf/src/google/protobuf/port_def.inc | 114 +- .../src/google/protobuf/port_undef.inc | 9 +- .../protobuf/src/google/protobuf/reflection.h | 91 +- .../src/google/protobuf/reflection_ops.cc | 16 +- .../src/google/protobuf/repeated_field.cc | 21 +- .../src/google/protobuf/repeated_field.h | 557 ++- .../src/google/protobuf/repeated_ptr_field.cc | 85 +- .../src/google/protobuf/repeated_ptr_field.h | 498 ++- .../src/google/protobuf/runtime_version.h | 2 +- deps/protobuf/src/google/protobuf/service.h | 17 +- .../src/google/protobuf/source_context.pb.cc | 11 +- .../src/google/protobuf/source_context.pb.h | 54 +- .../src/google/protobuf/string_block.h | 2 +- .../protobuf/src/google/protobuf/struct.pb.cc | 112 +- deps/protobuf/src/google/protobuf/struct.pb.h | 219 +- .../src/google/protobuf/stubs/BUILD.bazel | 7 - .../src/google/protobuf/stubs/common.h | 2 +- .../src/google/protobuf/symbol_checker.cc | 221 + .../src/google/protobuf/symbol_checker.h | 142 + .../src/google/protobuf/text_format.cc | 35 +- .../src/google/protobuf/text_format.h | 125 +- .../src/google/protobuf/timestamp.pb.cc | 11 +- .../src/google/protobuf/timestamp.pb.h | 56 +- .../src/google/protobuf/timestamp.proto | 6 +- deps/protobuf/src/google/protobuf/type.pb.cc | 290 +- deps/protobuf/src/google/protobuf/type.pb.h | 430 +- .../src/google/protobuf/unknown_field_set.cc | 67 +- .../src/google/protobuf/unknown_field_set.h | 108 +- .../src/google/protobuf/util/BUILD.bazel | 25 +- .../protobuf/util/delimited_message_util.cc | 3 +- .../google/protobuf/util/field_mask_util.cc | 16 +- .../google/protobuf/util/field_mask_util.h | 2 +- .../protobuf/util/field_mask_util_test.cc | 109 +- .../protobuf/util/field_mask_util_test.proto | 15 + .../src/google/protobuf/util/json_util.h | 2 +- .../protobuf/util/message_differencer.cc | 3 +- .../protobuf/util/message_differencer.h | 7 - .../util/message_differencer_unittest.cc | 42 +- .../util/python/field_mask_util_clif_aux.cc | 3 +- .../src/google/protobuf/util/time_util.cc | 74 +- .../src/google/protobuf/util/time_util.h | 1 + .../protobuf/util/type_resolver_util.cc | 33 +- .../src/google/protobuf/varint_shuffle.h | 14 +- .../src/google/protobuf/wire_format.cc | 27 +- .../src/google/protobuf/wire_format.h | 100 +- .../src/google/protobuf/wire_format_lite.h | 417 +- .../src/google/protobuf/wrappers.pb.cc | 75 +- .../src/google/protobuf/wrappers.pb.h | 438 +- .../third_party/utf8_range/BUILD.bazel | 4 +- deps/protobuf/version.json | 24 +- 362 files changed, 24085 insertions(+), 11915 deletions(-) create mode 100644 deps/protobuf/.gitattributes create mode 100644 deps/protobuf/src/google/protobuf/compiler/kotlin/annotation_test.cc rename deps/protobuf/src/google/protobuf/compiler/php/{BUILD.bazel => BUILD} (75%) create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/rbs_generator.cc create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/rbs_generator.h create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/rbs_generator_unittest.cc create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/ruby_generated_code_pb.rbs create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/ruby_generated_code_proto2_pb.rbs create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy_pb.rbs create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_pb.rbs create mode 100644 deps/protobuf/src/google/protobuf/compiler/ruby/ruby_generated_pkg_implicit_pb.rbs rename deps/protobuf/src/google/protobuf/compiler/rust/{BUILD.bazel => BUILD} (91%) rename deps/protobuf/src/google/protobuf/compiler/rust/accessors/{BUILD.bazel => BUILD} (83%) create mode 100644 deps/protobuf/src/google/protobuf/field_with_arena.h create mode 100644 deps/protobuf/src/google/protobuf/internal_metadata_locator.h create mode 100644 deps/protobuf/src/google/protobuf/symbol_checker.cc create mode 100644 deps/protobuf/src/google/protobuf/symbol_checker.h create mode 100644 deps/protobuf/src/google/protobuf/util/field_mask_util_test.proto diff --git a/agents/grpc/src/proto/asset.pb.cc b/agents/grpc/src/proto/asset.pb.cc index 2c75126c08..536d6c7d77 100644 --- a/agents/grpc/src/proto/asset.pb.cc +++ b/agents/grpc/src/proto/asset.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: asset.proto -// Protobuf C++ Version: 6.33.2 +// Protobuf C++ Version: 7.34.0 #include "asset.pb.h" @@ -9,6 +9,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -27,6 +28,7 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace grpcagent { inline constexpr Asset::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, data_( @@ -41,16 +43,16 @@ inline constexpr Asset::Impl_::Impl_( complete_{false} {} template -PROTOBUF_CONSTEXPR Asset::Asset(::_pbi::ConstantInitialized) +constexpr Asset::Asset(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(Asset_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct AssetDefaultTypeInternal { - PROTOBUF_CONSTEXPR AssetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr AssetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AssetDefaultTypeInternal() {} union { Asset _instance; @@ -243,7 +245,6 @@ constexpr auto Asset::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_Asset_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Asset::MergeImpl, ::google::protobuf::Message::GetNewImpl(), diff --git a/agents/grpc/src/proto/asset.pb.h b/agents/grpc/src/proto/asset.pb.h index d29f7e6271..09a238cb2c 100644 --- a/agents/grpc/src/proto/asset.pb.h +++ b/agents/grpc/src/proto/asset.pb.h @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: asset.proto -// Protobuf C++ Version: 6.33.2 +// Protobuf C++ Version: 7.34.0 #ifndef asset_2eproto_2epb_2eh #define asset_2eproto_2epb_2eh @@ -11,8 +11,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033002 +#if PROTOBUF_VERSION != 7034000 #error "Protobuf C++ gencode is built with an incompatible version of" #error "Protobuf C++ headers/runtime. See" #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" @@ -72,7 +73,7 @@ namespace grpcagent { // ------------------------------------------------------------------- -class Asset final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Asset final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.Asset) */ { public: inline Asset() : Asset(nullptr) {} @@ -86,7 +87,7 @@ class Asset final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR Asset(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Asset(::google::protobuf::internal::ConstantInitialized); inline Asset(const Asset& from) : Asset(nullptr, from) {} inline Asset(Asset&& from) noexcept @@ -105,25 +106,26 @@ class Asset final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Asset& default_instance() { + [[nodiscard]] static const Asset& default_instance() { return *reinterpret_cast( &_Asset_default_instance_); } @@ -145,7 +147,8 @@ class Asset final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Asset* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Asset* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -158,31 +161,33 @@ class Asset final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -209,7 +214,7 @@ class Asset final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -225,7 +230,7 @@ class Asset final : public ::google::protobuf::Message }; // string data = 4; void clear_data() ; - const ::std::string& data() const; + [[nodiscard]] const ::std::string& data() const; template void set_data(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_data(); @@ -239,9 +244,10 @@ class Asset final : public ::google::protobuf::Message public: // .grpcagent.CommonResponse common = 1; - bool has_common() const; + [[nodiscard]] bool has_common() + const; void clear_common() ; - const ::grpcagent::CommonResponse& common() const; + [[nodiscard]] const ::grpcagent::CommonResponse& common() const; [[nodiscard]] ::grpcagent::CommonResponse* PROTOBUF_NULLABLE release_common(); ::grpcagent::CommonResponse* PROTOBUF_NONNULL mutable_common(); void set_allocated_common(::grpcagent::CommonResponse* PROTOBUF_NULLABLE value); @@ -254,9 +260,10 @@ class Asset final : public ::google::protobuf::Message public: // .google.protobuf.Struct metadata = 3; - bool has_metadata() const; + [[nodiscard]] bool has_metadata() + const; void clear_metadata() ; - const ::google::protobuf::Struct& metadata() const; + [[nodiscard]] const ::google::protobuf::Struct& metadata() const; [[nodiscard]] ::google::protobuf::Struct* PROTOBUF_NULLABLE release_metadata(); ::google::protobuf::Struct* PROTOBUF_NONNULL mutable_metadata(); void set_allocated_metadata(::google::protobuf::Struct* PROTOBUF_NULLABLE value); @@ -270,7 +277,7 @@ class Asset final : public ::google::protobuf::Message public: // uint64 thread_id = 2; void clear_thread_id() ; - ::uint64_t thread_id() const; + [[nodiscard]] ::uint64_t thread_id() const; void set_thread_id(::uint64_t value); private: @@ -280,7 +287,7 @@ class Asset final : public ::google::protobuf::Message public: // uint64 duration = 6; void clear_duration() ; - ::uint64_t duration() const; + [[nodiscard]] ::uint64_t duration() const; void set_duration(::uint64_t value); private: @@ -290,7 +297,7 @@ class Asset final : public ::google::protobuf::Message public: // double start_ts = 7; void clear_start_ts() ; - double start_ts() const; + [[nodiscard]] double start_ts() const; void set_start_ts(double value); private: @@ -300,7 +307,7 @@ class Asset final : public ::google::protobuf::Message public: // double end_ts = 8; void clear_end_ts() ; - double end_ts() const; + [[nodiscard]] double end_ts() const; void set_end_ts(double value); private: @@ -310,7 +317,7 @@ class Asset final : public ::google::protobuf::Message public: // bool complete = 5; void clear_complete() ; - bool complete() const; + [[nodiscard]] bool complete() const; void set_complete(bool value); private: @@ -329,12 +336,14 @@ class Asset final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -763,5 +772,6 @@ inline void Asset::_internal_set_end_ts(double value) { // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // asset_2eproto_2epb_2eh diff --git a/agents/grpc/src/proto/blocked_loop.pb.cc b/agents/grpc/src/proto/blocked_loop.pb.cc index 23fd38f75d..8eada636af 100644 --- a/agents/grpc/src/proto/blocked_loop.pb.cc +++ b/agents/grpc/src/proto/blocked_loop.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: blocked_loop.proto -// Protobuf C++ Version: 6.33.2 +// Protobuf C++ Version: 7.34.0 #include "blocked_loop.pb.h" @@ -9,6 +9,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -27,6 +28,7 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace grpcagent { inline constexpr UnblockedLoopBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, thread_id_{::int64_t{0}}, @@ -35,16 +37,16 @@ inline constexpr UnblockedLoopBody::Impl_::Impl_( callback_cntr_{0} {} template -PROTOBUF_CONSTEXPR UnblockedLoopBody::UnblockedLoopBody(::_pbi::ConstantInitialized) +constexpr UnblockedLoopBody::UnblockedLoopBody(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(UnblockedLoopBody_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct UnblockedLoopBodyDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnblockedLoopBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr UnblockedLoopBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~UnblockedLoopBodyDefaultTypeInternal() {} union { UnblockedLoopBody _instance; @@ -55,6 +57,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnblockedLoopBodyDefaultTypeInternal _UnblockedLoopBody_default_instance_; inline constexpr Stack::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, script_name_( @@ -69,16 +72,16 @@ inline constexpr Stack::Impl_::Impl_( script_id_{0} {} template -PROTOBUF_CONSTEXPR Stack::Stack(::_pbi::ConstantInitialized) +constexpr Stack::Stack(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(Stack_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct StackDefaultTypeInternal { - PROTOBUF_CONSTEXPR StackDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr StackDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StackDefaultTypeInternal() {} union { Stack _instance; @@ -89,25 +92,34 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StackDefaultTypeInternal _Stack_default_instance_; inline constexpr BlockedLoopBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - stack_{}, + #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD + stack_{visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpcagent::BlockedLoopBody, + PROTOBUF_FIELD_OFFSET(::grpcagent::BlockedLoopBody, _impl_.stack_)>() + } + #else // !PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD + stack_ {} + #endif + , thread_id_{::int64_t{0}}, blocked_for_{0}, loop_id_{0}, callback_cntr_{0} {} template -PROTOBUF_CONSTEXPR BlockedLoopBody::BlockedLoopBody(::_pbi::ConstantInitialized) +constexpr BlockedLoopBody::BlockedLoopBody(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(BlockedLoopBody_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct BlockedLoopBodyDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockedLoopBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr BlockedLoopBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockedLoopBodyDefaultTypeInternal() {} union { BlockedLoopBody _instance; @@ -118,22 +130,23 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockedLoopBodyDefaultTypeInternal _BlockedLoopBody_default_instance_; inline constexpr UnblockedLoopEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, common_{nullptr}, body_{nullptr} {} template -PROTOBUF_CONSTEXPR UnblockedLoopEvent::UnblockedLoopEvent(::_pbi::ConstantInitialized) +constexpr UnblockedLoopEvent::UnblockedLoopEvent(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(UnblockedLoopEvent_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct UnblockedLoopEventDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnblockedLoopEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr UnblockedLoopEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~UnblockedLoopEventDefaultTypeInternal() {} union { UnblockedLoopEvent _instance; @@ -144,22 +157,23 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnblockedLoopEventDefaultTypeInternal _UnblockedLoopEvent_default_instance_; inline constexpr BlockedLoopEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, common_{nullptr}, body_{nullptr} {} template -PROTOBUF_CONSTEXPR BlockedLoopEvent::BlockedLoopEvent(::_pbi::ConstantInitialized) +constexpr BlockedLoopEvent::BlockedLoopEvent(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(BlockedLoopEvent_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct BlockedLoopEventDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockedLoopEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr BlockedLoopEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockedLoopEventDefaultTypeInternal() {} union { BlockedLoopEvent _instance; @@ -384,7 +398,6 @@ constexpr auto Stack::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_Stack_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Stack::MergeImpl, ::google::protobuf::Message::GetNewImpl(), @@ -765,7 +778,15 @@ PROTOBUF_NDEBUG_INLINE BlockedLoopBody::Impl_::Impl_( [[maybe_unused]] const ::grpcagent::BlockedLoopBody& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - stack_{visibility, arena, from.stack_} {} + #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD + stack_{visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpcagent::BlockedLoopBody, + PROTOBUF_FIELD_OFFSET(::grpcagent::BlockedLoopBody, _impl_.stack_)>() + , from.stack_} + #else + stack_ { visibility, arena, from.stack_ } + #endif + {} BlockedLoopBody::BlockedLoopBody( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, @@ -794,7 +815,15 @@ PROTOBUF_NDEBUG_INLINE BlockedLoopBody::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - stack_{visibility, arena} {} + #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD + stack_{visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpcagent::BlockedLoopBody, + PROTOBUF_FIELD_OFFSET(::grpcagent::BlockedLoopBody, _impl_.stack_)>() + } + #else + stack_ { visibility, arena } + #endif + {} inline void BlockedLoopBody::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -824,6 +853,12 @@ inline void* PROTOBUF_NONNULL BlockedLoopBody::PlacementNew_( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) BlockedLoopBody(arena); } +#ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD +constexpr auto BlockedLoopBody::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BlockedLoopBody), + alignof(BlockedLoopBody)); +} +#else // !PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD constexpr auto BlockedLoopBody::InternalNewImpl_() { constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ PROTOBUF_FIELD_OFFSET(BlockedLoopBody, _impl_.stack_) + @@ -840,12 +875,12 @@ constexpr auto BlockedLoopBody::InternalNewImpl_() { alignof(BlockedLoopBody)); } } +#endif constexpr auto BlockedLoopBody::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_BlockedLoopBody_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &BlockedLoopBody::MergeImpl, ::google::protobuf::Message::GetNewImpl(), @@ -1260,7 +1295,6 @@ constexpr auto BlockedLoopEvent::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_BlockedLoopEvent_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &BlockedLoopEvent::MergeImpl, ::google::protobuf::Message::GetNewImpl(), @@ -1560,7 +1594,6 @@ constexpr auto UnblockedLoopBody::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_UnblockedLoopBody_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &UnblockedLoopBody::MergeImpl, ::google::protobuf::Message::GetNewImpl(), @@ -1934,7 +1967,6 @@ constexpr auto UnblockedLoopEvent::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_UnblockedLoopEvent_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &UnblockedLoopEvent::MergeImpl, ::google::protobuf::Message::GetNewImpl(), diff --git a/agents/grpc/src/proto/blocked_loop.pb.h b/agents/grpc/src/proto/blocked_loop.pb.h index d2ee721bd8..f2d4dcec7e 100644 --- a/agents/grpc/src/proto/blocked_loop.pb.h +++ b/agents/grpc/src/proto/blocked_loop.pb.h @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: blocked_loop.proto -// Protobuf C++ Version: 6.33.2 +// Protobuf C++ Version: 7.34.0 #ifndef blocked_5floop_2eproto_2epb_2eh #define blocked_5floop_2eproto_2epb_2eh @@ -11,8 +11,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033002 +#if PROTOBUF_VERSION != 7034000 #error "Protobuf C++ gencode is built with an incompatible version of" #error "Protobuf C++ headers/runtime. See" #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" @@ -87,7 +88,7 @@ namespace grpcagent { // ------------------------------------------------------------------- -class UnblockedLoopBody final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED UnblockedLoopBody final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.UnblockedLoopBody) */ { public: inline UnblockedLoopBody() : UnblockedLoopBody(nullptr) {} @@ -101,7 +102,7 @@ class UnblockedLoopBody final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR UnblockedLoopBody(::google::protobuf::internal::ConstantInitialized); + explicit constexpr UnblockedLoopBody(::google::protobuf::internal::ConstantInitialized); inline UnblockedLoopBody(const UnblockedLoopBody& from) : UnblockedLoopBody(nullptr, from) {} inline UnblockedLoopBody(UnblockedLoopBody&& from) noexcept @@ -120,25 +121,26 @@ class UnblockedLoopBody final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const UnblockedLoopBody& default_instance() { + [[nodiscard]] static const UnblockedLoopBody& default_instance() { return *reinterpret_cast( &_UnblockedLoopBody_default_instance_); } @@ -160,7 +162,8 @@ class UnblockedLoopBody final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - UnblockedLoopBody* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] UnblockedLoopBody* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -173,31 +176,33 @@ class UnblockedLoopBody final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -224,7 +229,7 @@ class UnblockedLoopBody final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -236,7 +241,7 @@ class UnblockedLoopBody final : public ::google::protobuf::Message }; // int64 thread_id = 1; void clear_thread_id() ; - ::int64_t thread_id() const; + [[nodiscard]] ::int64_t thread_id() const; void set_thread_id(::int64_t value); private: @@ -246,7 +251,7 @@ class UnblockedLoopBody final : public ::google::protobuf::Message public: // int32 blocked_for = 2; void clear_blocked_for() ; - ::int32_t blocked_for() const; + [[nodiscard]] ::int32_t blocked_for() const; void set_blocked_for(::int32_t value); private: @@ -256,7 +261,7 @@ class UnblockedLoopBody final : public ::google::protobuf::Message public: // int32 loop_id = 3; void clear_loop_id() ; - ::int32_t loop_id() const; + [[nodiscard]] ::int32_t loop_id() const; void set_loop_id(::int32_t value); private: @@ -266,7 +271,7 @@ class UnblockedLoopBody final : public ::google::protobuf::Message public: // int32 callback_cntr = 4; void clear_callback_cntr() ; - ::int32_t callback_cntr() const; + [[nodiscard]] ::int32_t callback_cntr() const; void set_callback_cntr(::int32_t value); private: @@ -285,12 +290,14 @@ class UnblockedLoopBody final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -313,7 +320,7 @@ class UnblockedLoopBody final : public ::google::protobuf::Message extern const ::google::protobuf::internal::ClassDataFull UnblockedLoopBody_class_data_; // ------------------------------------------------------------------- -class Stack final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Stack final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.Stack) */ { public: inline Stack() : Stack(nullptr) {} @@ -327,7 +334,7 @@ class Stack final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR Stack(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Stack(::google::protobuf::internal::ConstantInitialized); inline Stack(const Stack& from) : Stack(nullptr, from) {} inline Stack(Stack&& from) noexcept @@ -346,25 +353,26 @@ class Stack final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Stack& default_instance() { + [[nodiscard]] static const Stack& default_instance() { return *reinterpret_cast( &_Stack_default_instance_); } @@ -386,7 +394,8 @@ class Stack final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Stack* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Stack* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -399,31 +408,33 @@ class Stack final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -450,7 +461,7 @@ class Stack final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -464,7 +475,7 @@ class Stack final : public ::google::protobuf::Message }; // string script_name = 2; void clear_script_name() ; - const ::std::string& script_name() const; + [[nodiscard]] const ::std::string& script_name() const; template void set_script_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_script_name(); @@ -479,7 +490,7 @@ class Stack final : public ::google::protobuf::Message public: // string function_name = 3; void clear_function_name() ; - const ::std::string& function_name() const; + [[nodiscard]] const ::std::string& function_name() const; template void set_function_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_function_name(); @@ -494,7 +505,7 @@ class Stack final : public ::google::protobuf::Message public: // bool is_eval = 1; void clear_is_eval() ; - bool is_eval() const; + [[nodiscard]] bool is_eval() const; void set_is_eval(bool value); private: @@ -504,7 +515,7 @@ class Stack final : public ::google::protobuf::Message public: // int32 line_number = 4; void clear_line_number() ; - ::int32_t line_number() const; + [[nodiscard]] ::int32_t line_number() const; void set_line_number(::int32_t value); private: @@ -514,7 +525,7 @@ class Stack final : public ::google::protobuf::Message public: // int32 column = 5; void clear_column() ; - ::int32_t column() const; + [[nodiscard]] ::int32_t column() const; void set_column(::int32_t value); private: @@ -524,7 +535,7 @@ class Stack final : public ::google::protobuf::Message public: // int32 script_id = 6; void clear_script_id() ; - ::int32_t script_id() const; + [[nodiscard]] ::int32_t script_id() const; void set_script_id(::int32_t value); private: @@ -543,12 +554,14 @@ class Stack final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -573,7 +586,7 @@ class Stack final : public ::google::protobuf::Message extern const ::google::protobuf::internal::ClassDataFull Stack_class_data_; // ------------------------------------------------------------------- -class BlockedLoopBody final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED BlockedLoopBody final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.BlockedLoopBody) */ { public: inline BlockedLoopBody() : BlockedLoopBody(nullptr) {} @@ -587,7 +600,7 @@ class BlockedLoopBody final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR BlockedLoopBody(::google::protobuf::internal::ConstantInitialized); + explicit constexpr BlockedLoopBody(::google::protobuf::internal::ConstantInitialized); inline BlockedLoopBody(const BlockedLoopBody& from) : BlockedLoopBody(nullptr, from) {} inline BlockedLoopBody(BlockedLoopBody&& from) noexcept @@ -606,25 +619,26 @@ class BlockedLoopBody final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const BlockedLoopBody& default_instance() { + [[nodiscard]] static const BlockedLoopBody& default_instance() { return *reinterpret_cast( &_BlockedLoopBody_default_instance_); } @@ -646,7 +660,8 @@ class BlockedLoopBody final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockedLoopBody* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] BlockedLoopBody* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -659,31 +674,33 @@ class BlockedLoopBody final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -710,7 +727,7 @@ class BlockedLoopBody final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -722,25 +739,28 @@ class BlockedLoopBody final : public ::google::protobuf::Message kCallbackCntrFieldNumber = 4, }; // repeated .grpcagent.Stack stack = 5; - int stack_size() const; + [[nodiscard]] int stack_size() + const; private: int _internal_stack_size() const; public: void clear_stack() ; - ::grpcagent::Stack* PROTOBUF_NONNULL mutable_stack(int index); - ::google::protobuf::RepeatedPtrField<::grpcagent::Stack>* PROTOBUF_NONNULL mutable_stack(); + [[nodiscard]] ::grpcagent::Stack* PROTOBUF_NONNULL mutable_stack(int index); + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::grpcagent::Stack>* PROTOBUF_NONNULL + mutable_stack(); private: const ::google::protobuf::RepeatedPtrField<::grpcagent::Stack>& _internal_stack() const; ::google::protobuf::RepeatedPtrField<::grpcagent::Stack>* PROTOBUF_NONNULL _internal_mutable_stack(); public: - const ::grpcagent::Stack& stack(int index) const; + [[nodiscard]] const ::grpcagent::Stack& stack(int index) const; ::grpcagent::Stack* PROTOBUF_NONNULL add_stack(); - const ::google::protobuf::RepeatedPtrField<::grpcagent::Stack>& stack() const; + [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::grpcagent::Stack>& stack() + const; // int64 thread_id = 1; void clear_thread_id() ; - ::int64_t thread_id() const; + [[nodiscard]] ::int64_t thread_id() const; void set_thread_id(::int64_t value); private: @@ -750,7 +770,7 @@ class BlockedLoopBody final : public ::google::protobuf::Message public: // int32 blocked_for = 2; void clear_blocked_for() ; - ::int32_t blocked_for() const; + [[nodiscard]] ::int32_t blocked_for() const; void set_blocked_for(::int32_t value); private: @@ -760,7 +780,7 @@ class BlockedLoopBody final : public ::google::protobuf::Message public: // int32 loop_id = 3; void clear_loop_id() ; - ::int32_t loop_id() const; + [[nodiscard]] ::int32_t loop_id() const; void set_loop_id(::int32_t value); private: @@ -770,7 +790,7 @@ class BlockedLoopBody final : public ::google::protobuf::Message public: // int32 callback_cntr = 4; void clear_callback_cntr() ; - ::int32_t callback_cntr() const; + [[nodiscard]] ::int32_t callback_cntr() const; void set_callback_cntr(::int32_t value); private: @@ -789,12 +809,14 @@ class BlockedLoopBody final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -818,7 +840,7 @@ class BlockedLoopBody final : public ::google::protobuf::Message extern const ::google::protobuf::internal::ClassDataFull BlockedLoopBody_class_data_; // ------------------------------------------------------------------- -class UnblockedLoopEvent final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED UnblockedLoopEvent final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.UnblockedLoopEvent) */ { public: inline UnblockedLoopEvent() : UnblockedLoopEvent(nullptr) {} @@ -832,7 +854,7 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR UnblockedLoopEvent(::google::protobuf::internal::ConstantInitialized); + explicit constexpr UnblockedLoopEvent(::google::protobuf::internal::ConstantInitialized); inline UnblockedLoopEvent(const UnblockedLoopEvent& from) : UnblockedLoopEvent(nullptr, from) {} inline UnblockedLoopEvent(UnblockedLoopEvent&& from) noexcept @@ -851,25 +873,26 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const UnblockedLoopEvent& default_instance() { + [[nodiscard]] static const UnblockedLoopEvent& default_instance() { return *reinterpret_cast( &_UnblockedLoopEvent_default_instance_); } @@ -891,7 +914,8 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - UnblockedLoopEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] UnblockedLoopEvent* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -904,31 +928,33 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -955,7 +981,7 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -964,9 +990,10 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message kBodyFieldNumber = 2, }; // .grpcagent.CommonResponse common = 1; - bool has_common() const; + [[nodiscard]] bool has_common() + const; void clear_common() ; - const ::grpcagent::CommonResponse& common() const; + [[nodiscard]] const ::grpcagent::CommonResponse& common() const; [[nodiscard]] ::grpcagent::CommonResponse* PROTOBUF_NULLABLE release_common(); ::grpcagent::CommonResponse* PROTOBUF_NONNULL mutable_common(); void set_allocated_common(::grpcagent::CommonResponse* PROTOBUF_NULLABLE value); @@ -979,9 +1006,10 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message public: // .grpcagent.UnblockedLoopBody body = 2; - bool has_body() const; + [[nodiscard]] bool has_body() + const; void clear_body() ; - const ::grpcagent::UnblockedLoopBody& body() const; + [[nodiscard]] const ::grpcagent::UnblockedLoopBody& body() const; [[nodiscard]] ::grpcagent::UnblockedLoopBody* PROTOBUF_NULLABLE release_body(); ::grpcagent::UnblockedLoopBody* PROTOBUF_NONNULL mutable_body(); void set_allocated_body(::grpcagent::UnblockedLoopBody* PROTOBUF_NULLABLE value); @@ -1004,12 +1032,14 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1030,7 +1060,7 @@ class UnblockedLoopEvent final : public ::google::protobuf::Message extern const ::google::protobuf::internal::ClassDataFull UnblockedLoopEvent_class_data_; // ------------------------------------------------------------------- -class BlockedLoopEvent final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED BlockedLoopEvent final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.BlockedLoopEvent) */ { public: inline BlockedLoopEvent() : BlockedLoopEvent(nullptr) {} @@ -1044,7 +1074,7 @@ class BlockedLoopEvent final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR BlockedLoopEvent(::google::protobuf::internal::ConstantInitialized); + explicit constexpr BlockedLoopEvent(::google::protobuf::internal::ConstantInitialized); inline BlockedLoopEvent(const BlockedLoopEvent& from) : BlockedLoopEvent(nullptr, from) {} inline BlockedLoopEvent(BlockedLoopEvent&& from) noexcept @@ -1063,25 +1093,26 @@ class BlockedLoopEvent final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const BlockedLoopEvent& default_instance() { + [[nodiscard]] static const BlockedLoopEvent& default_instance() { return *reinterpret_cast( &_BlockedLoopEvent_default_instance_); } @@ -1103,7 +1134,8 @@ class BlockedLoopEvent final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockedLoopEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] BlockedLoopEvent* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1116,31 +1148,33 @@ class BlockedLoopEvent final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1167,7 +1201,7 @@ class BlockedLoopEvent final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1176,9 +1210,10 @@ class BlockedLoopEvent final : public ::google::protobuf::Message kBodyFieldNumber = 2, }; // .grpcagent.CommonResponse common = 1; - bool has_common() const; + [[nodiscard]] bool has_common() + const; void clear_common() ; - const ::grpcagent::CommonResponse& common() const; + [[nodiscard]] const ::grpcagent::CommonResponse& common() const; [[nodiscard]] ::grpcagent::CommonResponse* PROTOBUF_NULLABLE release_common(); ::grpcagent::CommonResponse* PROTOBUF_NONNULL mutable_common(); void set_allocated_common(::grpcagent::CommonResponse* PROTOBUF_NULLABLE value); @@ -1191,9 +1226,10 @@ class BlockedLoopEvent final : public ::google::protobuf::Message public: // .grpcagent.BlockedLoopBody body = 2; - bool has_body() const; + [[nodiscard]] bool has_body() + const; void clear_body() ; - const ::grpcagent::BlockedLoopBody& body() const; + [[nodiscard]] const ::grpcagent::BlockedLoopBody& body() const; [[nodiscard]] ::grpcagent::BlockedLoopBody* PROTOBUF_NULLABLE release_body(); ::grpcagent::BlockedLoopBody* PROTOBUF_NONNULL mutable_body(); void set_allocated_body(::grpcagent::BlockedLoopBody* PROTOBUF_NULLABLE value); @@ -1216,12 +1252,14 @@ class BlockedLoopEvent final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2154,5 +2192,6 @@ inline void UnblockedLoopEvent::set_allocated_body(::grpcagent::UnblockedLoopBod // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // blocked_5floop_2eproto_2epb_2eh diff --git a/agents/grpc/src/proto/command.pb.cc b/agents/grpc/src/proto/command.pb.cc index 5376c3570c..6875a1b731 100644 --- a/agents/grpc/src/proto/command.pb.cc +++ b/agents/grpc/src/proto/command.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: command.proto -// Protobuf C++ Version: 6.33.2 +// Protobuf C++ Version: 7.34.0 #include "command.pb.h" @@ -9,6 +9,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -27,6 +28,7 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace grpcagent { inline constexpr CommandResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, message_( @@ -35,16 +37,16 @@ inline constexpr CommandResponse::Impl_::Impl_( code_{0u} {} template -PROTOBUF_CONSTEXPR CommandResponse::CommandResponse(::_pbi::ConstantInitialized) +constexpr CommandResponse::CommandResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(CommandResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct CommandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CommandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr CommandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CommandResponseDefaultTypeInternal() {} union { CommandResponse _instance; @@ -55,22 +57,23 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommandResponseDefaultTypeInternal _CommandResponse_default_instance_; inline constexpr CommandArgs::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : args_{}, _cached_size_{0}, _oneof_case_{} {} template -PROTOBUF_CONSTEXPR CommandArgs::CommandArgs(::_pbi::ConstantInitialized) +constexpr CommandArgs::CommandArgs(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(CommandArgs_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct CommandArgsDefaultTypeInternal { - PROTOBUF_CONSTEXPR CommandArgsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr CommandArgsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CommandArgsDefaultTypeInternal() {} union { CommandArgs _instance; @@ -81,6 +84,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommandArgsDefaultTypeInternal _CommandArgs_default_instance_; inline constexpr CommandRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, requestid_( @@ -95,16 +99,16 @@ inline constexpr CommandRequest::Impl_::Impl_( args_{nullptr} {} template -PROTOBUF_CONSTEXPR CommandRequest::CommandRequest(::_pbi::ConstantInitialized) +constexpr CommandRequest::CommandRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(CommandRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct CommandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CommandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr CommandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CommandRequestDefaultTypeInternal() {} union { CommandRequest _instance; @@ -399,7 +403,6 @@ constexpr auto CommandArgs::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_CommandArgs_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &CommandArgs::MergeImpl, ::google::protobuf::Message::GetNewImpl(), @@ -431,7 +434,8 @@ PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 3, 3, 0, 2> CommandArgs::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(CommandArgs, + _impl_._cached_size_), // no hasbits 0, // no _extensions_ 3, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -736,7 +740,6 @@ constexpr auto CommandRequest::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_CommandRequest_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &CommandRequest::MergeImpl, ::google::protobuf::Message::GetNewImpl(), @@ -1126,7 +1129,6 @@ constexpr auto CommandResponse::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_CommandResponse_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &CommandResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl(), diff --git a/agents/grpc/src/proto/command.pb.h b/agents/grpc/src/proto/command.pb.h index 34c3728b90..2187e69aed 100644 --- a/agents/grpc/src/proto/command.pb.h +++ b/agents/grpc/src/proto/command.pb.h @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: command.proto -// Protobuf C++ Version: 6.33.2 +// Protobuf C++ Version: 7.34.0 #ifndef command_2eproto_2epb_2eh #define command_2eproto_2epb_2eh @@ -11,8 +11,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033002 +#if PROTOBUF_VERSION != 7034000 #error "Protobuf C++ gencode is built with an incompatible version of" #error "Protobuf C++ headers/runtime. See" #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" @@ -81,7 +82,7 @@ namespace grpcagent { // ------------------------------------------------------------------- -class CommandResponse final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CommandResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.CommandResponse) */ { public: inline CommandResponse() : CommandResponse(nullptr) {} @@ -95,7 +96,7 @@ class CommandResponse final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR CommandResponse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr CommandResponse(::google::protobuf::internal::ConstantInitialized); inline CommandResponse(const CommandResponse& from) : CommandResponse(nullptr, from) {} inline CommandResponse(CommandResponse&& from) noexcept @@ -114,25 +115,26 @@ class CommandResponse final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const CommandResponse& default_instance() { + [[nodiscard]] static const CommandResponse& default_instance() { return *reinterpret_cast( &_CommandResponse_default_instance_); } @@ -154,7 +156,8 @@ class CommandResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CommandResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] CommandResponse* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -167,31 +170,33 @@ class CommandResponse final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -218,7 +223,7 @@ class CommandResponse final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -228,7 +233,7 @@ class CommandResponse final : public ::google::protobuf::Message }; // string message = 2; void clear_message() ; - const ::std::string& message() const; + [[nodiscard]] const ::std::string& message() const; template void set_message(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_message(); @@ -243,7 +248,7 @@ class CommandResponse final : public ::google::protobuf::Message public: // uint32 code = 1; void clear_code() ; - ::uint32_t code() const; + [[nodiscard]] ::uint32_t code() const; void set_code(::uint32_t value); private: @@ -262,12 +267,14 @@ class CommandResponse final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -288,7 +295,7 @@ class CommandResponse final : public ::google::protobuf::Message extern const ::google::protobuf::internal::ClassDataFull CommandResponse_class_data_; // ------------------------------------------------------------------- -class CommandArgs final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CommandArgs final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.CommandArgs) */ { public: inline CommandArgs() : CommandArgs(nullptr) {} @@ -302,7 +309,7 @@ class CommandArgs final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR CommandArgs(::google::protobuf::internal::ConstantInitialized); + explicit constexpr CommandArgs(::google::protobuf::internal::ConstantInitialized); inline CommandArgs(const CommandArgs& from) : CommandArgs(nullptr, from) {} inline CommandArgs(CommandArgs&& from) noexcept @@ -321,25 +328,26 @@ class CommandArgs final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const CommandArgs& default_instance() { + [[nodiscard]] static const CommandArgs& default_instance() { return *reinterpret_cast( &_CommandArgs_default_instance_); } @@ -367,7 +375,8 @@ class CommandArgs final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CommandArgs* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] CommandArgs* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -380,31 +389,33 @@ class CommandArgs final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -431,7 +442,7 @@ class CommandArgs final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -441,13 +452,14 @@ class CommandArgs final : public ::google::protobuf::Message kSourceCodeFieldNumber = 3, }; // .grpcagent.ReconfigureBody reconfigure = 1; - bool has_reconfigure() const; + [[nodiscard]] bool has_reconfigure() + const; private: bool _internal_has_reconfigure() const; public: void clear_reconfigure() ; - const ::grpcagent::ReconfigureBody& reconfigure() const; + [[nodiscard]] const ::grpcagent::ReconfigureBody& reconfigure() const; [[nodiscard]] ::grpcagent::ReconfigureBody* PROTOBUF_NULLABLE release_reconfigure(); ::grpcagent::ReconfigureBody* PROTOBUF_NONNULL mutable_reconfigure(); void set_allocated_reconfigure(::grpcagent::ReconfigureBody* PROTOBUF_NULLABLE value); @@ -460,13 +472,14 @@ class CommandArgs final : public ::google::protobuf::Message public: // .grpcagent.ProfileArgs profile = 2; - bool has_profile() const; + [[nodiscard]] bool has_profile() + const; private: bool _internal_has_profile() const; public: void clear_profile() ; - const ::grpcagent::ProfileArgs& profile() const; + [[nodiscard]] const ::grpcagent::ProfileArgs& profile() const; [[nodiscard]] ::grpcagent::ProfileArgs* PROTOBUF_NULLABLE release_profile(); ::grpcagent::ProfileArgs* PROTOBUF_NONNULL mutable_profile(); void set_allocated_profile(::grpcagent::ProfileArgs* PROTOBUF_NULLABLE value); @@ -479,13 +492,14 @@ class CommandArgs final : public ::google::protobuf::Message public: // .grpcagent.SourceCodeArgs source_code = 3; - bool has_source_code() const; + [[nodiscard]] bool has_source_code() + const; private: bool _internal_has_source_code() const; public: void clear_source_code() ; - const ::grpcagent::SourceCodeArgs& source_code() const; + [[nodiscard]] const ::grpcagent::SourceCodeArgs& source_code() const; [[nodiscard]] ::grpcagent::SourceCodeArgs* PROTOBUF_NULLABLE release_source_code(); ::grpcagent::SourceCodeArgs* PROTOBUF_NONNULL mutable_source_code(); void set_allocated_source_code(::grpcagent::SourceCodeArgs* PROTOBUF_NULLABLE value); @@ -505,7 +519,7 @@ class CommandArgs final : public ::google::protobuf::Message void set_has_reconfigure(); void set_has_profile(); void set_has_source_code(); - inline bool has_args() const; + [[nodiscard]] inline bool has_args() const; inline void clear_has_args(); friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable<0, 3, @@ -515,12 +529,14 @@ class CommandArgs final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -546,7 +562,7 @@ class CommandArgs final : public ::google::protobuf::Message extern const ::google::protobuf::internal::ClassDataFull CommandArgs_class_data_; // ------------------------------------------------------------------- -class CommandRequest final : public ::google::protobuf::Message +class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CommandRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpcagent.CommandRequest) */ { public: inline CommandRequest() : CommandRequest(nullptr) {} @@ -560,7 +576,7 @@ class CommandRequest final : public ::google::protobuf::Message #endif template - explicit PROTOBUF_CONSTEXPR CommandRequest(::google::protobuf::internal::ConstantInitialized); + explicit constexpr CommandRequest(::google::protobuf::internal::ConstantInitialized); inline CommandRequest(const CommandRequest& from) : CommandRequest(nullptr, from) {} inline CommandRequest(CommandRequest&& from) noexcept @@ -579,25 +595,26 @@ class CommandRequest final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const CommandRequest& default_instance() { + [[nodiscard]] static const CommandRequest& default_instance() { return *reinterpret_cast( &_CommandRequest_default_instance_); } @@ -619,7 +636,8 @@ class CommandRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CommandRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] CommandRequest* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -632,31 +650,33 @@ class CommandRequest final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -683,7 +703,7 @@ class CommandRequest final : public ::google::protobuf::Message public: static constexpr auto InternalGenerateClassData_(); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -695,7 +715,7 @@ class CommandRequest final : public ::google::protobuf::Message }; // string requestId = 1; void clear_requestid() ; - const ::std::string& requestid() const; + [[nodiscard]] const ::std::string& requestid() const; template void set_requestid(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_requestid(); @@ -710,7 +730,7 @@ class CommandRequest final : public ::google::protobuf::Message public: // string id = 2; void clear_id() ; - const ::std::string& id() const; + [[nodiscard]] const ::std::string& id() const; template void set_id(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_id(); @@ -725,7 +745,7 @@ class CommandRequest final : public ::google::protobuf::Message public: // string command = 3; void clear_command() ; - const ::std::string& command() const; + [[nodiscard]] const ::std::string& command() const; template void set_command(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_command(); @@ -739,9 +759,10 @@ class CommandRequest final : public ::google::protobuf::Message public: // .grpcagent.CommandArgs args = 4; - bool has_args() const; + [[nodiscard]] bool has_args() + const; void clear_args() ; - const ::grpcagent::CommandArgs& args() const; + [[nodiscard]] const ::grpcagent::CommandArgs& args() const; [[nodiscard]] ::grpcagent::CommandArgs* PROTOBUF_NULLABLE release_args(); ::grpcagent::CommandArgs* PROTOBUF_NONNULL mutable_args(); void set_allocated_args(::grpcagent::CommandArgs* PROTOBUF_NULLABLE value); @@ -764,12 +785,14 @@ class CommandRequest final : public ::google::protobuf::Message friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1432,5 +1455,6 @@ inline void CommandResponse::set_allocated_message(::std::string* PROTOBUF_NULLA // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // command_2eproto_2epb_2eh diff --git a/agents/grpc/src/proto/common.pb.cc b/agents/grpc/src/proto/common.pb.cc index e72ebef97b..9e1db89961 100644 --- a/agents/grpc/src/proto/common.pb.cc +++ b/agents/grpc/src/proto/common.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: common.proto -// Protobuf C++ Version: 6.33.2 +// Protobuf C++ Version: 7.34.0 #include "common.pb.h" @@ -9,6 +9,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -27,22 +28,23 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace grpcagent { inline constexpr Time::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, seconds_{::uint64_t{0u}}, nanoseconds_{::uint64_t{0u}} {} template -PROTOBUF_CONSTEXPR Time::Time(::_pbi::ConstantInitialized) +constexpr Time::Time(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(Time_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct TimeDefaultTypeInternal { - PROTOBUF_CONSTEXPR TimeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr TimeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TimeDefaultTypeInternal() {} union { Time _instance; @@ -53,6 +55,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimeDefaultTypeInternal _Time_default_instance_; inline constexpr ErrorInfo::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, message_( @@ -61,16 +64,16 @@ inline constexpr ErrorInfo::Impl_::Impl_( code_{0u} {} template -PROTOBUF_CONSTEXPR ErrorInfo::ErrorInfo(::_pbi::ConstantInitialized) +constexpr ErrorInfo::ErrorInfo(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(ErrorInfo_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct ErrorInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ErrorInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr ErrorInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ErrorInfoDefaultTypeInternal() {} union { ErrorInfo _instance; @@ -81,6 +84,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorInfoDefaultTypeInternal _ErrorInfo_default_instance_; inline constexpr CommonResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, requestid_( @@ -93,16 +97,16 @@ inline constexpr CommonResponse::Impl_::Impl_( error_{nullptr} {} template -PROTOBUF_CONSTEXPR CommonResponse::CommonResponse(::_pbi::ConstantInitialized) +constexpr CommonResponse::CommonResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(CommonResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct CommonResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CommonResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + constexpr CommonResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CommonResponseDefaultTypeInternal() {} union { CommonResponse _instance; @@ -257,7 +261,6 @@ constexpr auto Time::InternalGenerateClassData_() { ::google::protobuf::internal::ClassData{ &_Time_default_instance_._instance, &_table_.header, - nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Time::MergeImpl, ::google::protobuf::Message::GetNewImpl