From e3a0777b2c56f65ecac47352400ac4d26721c482 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Wed, 6 Nov 2024 20:08:08 +0000 Subject: [PATCH] Auto-generate files after cl/693808783 --- src/google/protobuf/any.pb.h | 4 ++-- src/google/protobuf/api.pb.h | 16 +++++++-------- src/google/protobuf/source_context.pb.h | 2 +- src/google/protobuf/struct.pb.h | 6 +++--- src/google/protobuf/type.pb.h | 26 ++++++++++++------------- src/google/protobuf/wrappers.pb.h | 4 ++-- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/google/protobuf/any.pb.h b/src/google/protobuf/any.pb.h index 66a1cecac4..b7afa85b6d 100644 --- a/src/google/protobuf/any.pb.h +++ b/src/google/protobuf/any.pb.h @@ -281,7 +281,7 @@ class PROTOBUF_EXPORT Any final template void set_type_url(Arg_&& arg, Args_... args); std::string* mutable_type_url(); - PROTOBUF_NODISCARD std::string* release_type_url(); + [[nodiscard]] std::string* release_type_url(); void set_allocated_type_url(std::string* value); private: @@ -296,7 +296,7 @@ class PROTOBUF_EXPORT Any final template void set_value(Arg_&& arg, Args_... args); std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); + [[nodiscard]] std::string* release_value(); void set_allocated_value(std::string* value); private: diff --git a/src/google/protobuf/api.pb.h b/src/google/protobuf/api.pb.h index 4a84004af7..8d1c7f83d8 100644 --- a/src/google/protobuf/api.pb.h +++ b/src/google/protobuf/api.pb.h @@ -235,7 +235,7 @@ class PROTOBUF_EXPORT Mixin final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -250,7 +250,7 @@ class PROTOBUF_EXPORT Mixin final template void set_root(Arg_&& arg, Args_... args); std::string* mutable_root(); - PROTOBUF_NODISCARD std::string* release_root(); + [[nodiscard]] std::string* release_root(); void set_allocated_root(std::string* value); private: @@ -474,7 +474,7 @@ class PROTOBUF_EXPORT Method final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -489,7 +489,7 @@ class PROTOBUF_EXPORT Method final template void set_request_type_url(Arg_&& arg, Args_... args); std::string* mutable_request_type_url(); - PROTOBUF_NODISCARD std::string* release_request_type_url(); + [[nodiscard]] std::string* release_request_type_url(); void set_allocated_request_type_url(std::string* value); private: @@ -504,7 +504,7 @@ class PROTOBUF_EXPORT Method final template void set_response_type_url(Arg_&& arg, Args_... args); std::string* mutable_response_type_url(); - PROTOBUF_NODISCARD std::string* release_response_type_url(); + [[nodiscard]] std::string* release_response_type_url(); void set_allocated_response_type_url(std::string* value); private: @@ -797,7 +797,7 @@ class PROTOBUF_EXPORT Api final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -812,7 +812,7 @@ class PROTOBUF_EXPORT Api final template void set_version(Arg_&& arg, Args_... args); std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); + [[nodiscard]] std::string* release_version(); void set_allocated_version(std::string* value); private: @@ -825,7 +825,7 @@ class PROTOBUF_EXPORT Api final bool has_source_context() const; void clear_source_context() ; const ::google::protobuf::SourceContext& source_context() const; - PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context(); + [[nodiscard]] ::google::protobuf::SourceContext* release_source_context(); ::google::protobuf::SourceContext* mutable_source_context(); void set_allocated_source_context(::google::protobuf::SourceContext* value); void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value); diff --git a/src/google/protobuf/source_context.pb.h b/src/google/protobuf/source_context.pb.h index e668503dd0..c8ff0630ae 100644 --- a/src/google/protobuf/source_context.pb.h +++ b/src/google/protobuf/source_context.pb.h @@ -224,7 +224,7 @@ class PROTOBUF_EXPORT SourceContext final template void set_file_name(Arg_&& arg, Args_... args); std::string* mutable_file_name(); - PROTOBUF_NODISCARD std::string* release_file_name(); + [[nodiscard]] std::string* release_file_name(); void set_allocated_file_name(std::string* value); private: diff --git a/src/google/protobuf/struct.pb.h b/src/google/protobuf/struct.pb.h index 074b4b0880..a9250889bd 100644 --- a/src/google/protobuf/struct.pb.h +++ b/src/google/protobuf/struct.pb.h @@ -762,7 +762,7 @@ class PROTOBUF_EXPORT Value final template void set_string_value(Arg_&& arg, Args_... args); std::string* mutable_string_value(); - PROTOBUF_NODISCARD std::string* release_string_value(); + [[nodiscard]] std::string* release_string_value(); void set_allocated_string_value(std::string* value); private: @@ -790,7 +790,7 @@ class PROTOBUF_EXPORT Value final public: void clear_struct_value() ; const ::google::protobuf::Struct& struct_value() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_value(); + [[nodiscard]] ::google::protobuf::Struct* release_struct_value(); ::google::protobuf::Struct* mutable_struct_value(); void set_allocated_struct_value(::google::protobuf::Struct* value); void unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* value); @@ -809,7 +809,7 @@ class PROTOBUF_EXPORT Value final public: void clear_list_value() ; const ::google::protobuf::ListValue& list_value() const; - PROTOBUF_NODISCARD ::google::protobuf::ListValue* release_list_value(); + [[nodiscard]] ::google::protobuf::ListValue* release_list_value(); ::google::protobuf::ListValue* mutable_list_value(); void set_allocated_list_value(::google::protobuf::ListValue* value); void unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* value); diff --git a/src/google/protobuf/type.pb.h b/src/google/protobuf/type.pb.h index 32251fd11d..6fc5d2b968 100644 --- a/src/google/protobuf/type.pb.h +++ b/src/google/protobuf/type.pb.h @@ -387,7 +387,7 @@ class PROTOBUF_EXPORT Option final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -400,7 +400,7 @@ class PROTOBUF_EXPORT Option final bool has_value() const; void clear_value() ; const ::google::protobuf::Any& value() const; - PROTOBUF_NODISCARD ::google::protobuf::Any* release_value(); + [[nodiscard]] ::google::protobuf::Any* release_value(); ::google::protobuf::Any* mutable_value(); void set_allocated_value(::google::protobuf::Any* value); void unsafe_arena_set_allocated_value(::google::protobuf::Any* value); @@ -686,7 +686,7 @@ class PROTOBUF_EXPORT Field final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -701,7 +701,7 @@ class PROTOBUF_EXPORT Field final template void set_type_url(Arg_&& arg, Args_... args); std::string* mutable_type_url(); - PROTOBUF_NODISCARD std::string* release_type_url(); + [[nodiscard]] std::string* release_type_url(); void set_allocated_type_url(std::string* value); private: @@ -716,7 +716,7 @@ class PROTOBUF_EXPORT Field final template void set_json_name(Arg_&& arg, Args_... args); std::string* mutable_json_name(); - PROTOBUF_NODISCARD std::string* release_json_name(); + [[nodiscard]] std::string* release_json_name(); void set_allocated_json_name(std::string* value); private: @@ -731,7 +731,7 @@ class PROTOBUF_EXPORT Field final template void set_default_value(Arg_&& arg, Args_... args); std::string* mutable_default_value(); - PROTOBUF_NODISCARD std::string* release_default_value(); + [[nodiscard]] std::string* release_default_value(); void set_allocated_default_value(std::string* value); private: @@ -1009,7 +1009,7 @@ class PROTOBUF_EXPORT EnumValue final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -1283,7 +1283,7 @@ class PROTOBUF_EXPORT Type final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -1298,7 +1298,7 @@ class PROTOBUF_EXPORT Type final template void set_edition(Arg_&& arg, Args_... args); std::string* mutable_edition(); - PROTOBUF_NODISCARD std::string* release_edition(); + [[nodiscard]] std::string* release_edition(); void set_allocated_edition(std::string* value); private: @@ -1311,7 +1311,7 @@ class PROTOBUF_EXPORT Type final bool has_source_context() const; void clear_source_context() ; const ::google::protobuf::SourceContext& source_context() const; - PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context(); + [[nodiscard]] ::google::protobuf::SourceContext* release_source_context(); ::google::protobuf::SourceContext* mutable_source_context(); void set_allocated_source_context(::google::protobuf::SourceContext* value); void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value); @@ -1568,7 +1568,7 @@ class PROTOBUF_EXPORT Enum final template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + [[nodiscard]] std::string* release_name(); void set_allocated_name(std::string* value); private: @@ -1583,7 +1583,7 @@ class PROTOBUF_EXPORT Enum final template void set_edition(Arg_&& arg, Args_... args); std::string* mutable_edition(); - PROTOBUF_NODISCARD std::string* release_edition(); + [[nodiscard]] std::string* release_edition(); void set_allocated_edition(std::string* value); private: @@ -1596,7 +1596,7 @@ class PROTOBUF_EXPORT Enum final bool has_source_context() const; void clear_source_context() ; const ::google::protobuf::SourceContext& source_context() const; - PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context(); + [[nodiscard]] ::google::protobuf::SourceContext* release_source_context(); ::google::protobuf::SourceContext* mutable_source_context(); void set_allocated_source_context(::google::protobuf::SourceContext* value); void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value); diff --git a/src/google/protobuf/wrappers.pb.h b/src/google/protobuf/wrappers.pb.h index 38571c4257..217d5328c3 100644 --- a/src/google/protobuf/wrappers.pb.h +++ b/src/google/protobuf/wrappers.pb.h @@ -646,7 +646,7 @@ class PROTOBUF_EXPORT StringValue final template void set_value(Arg_&& arg, Args_... args); std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); + [[nodiscard]] std::string* release_value(); void set_allocated_value(std::string* value); private: @@ -1626,7 +1626,7 @@ class PROTOBUF_EXPORT BytesValue final template void set_value(Arg_&& arg, Args_... args); std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); + [[nodiscard]] std::string* release_value(); void set_allocated_value(std::string* value); private: