Auto-generate files after cl/693808783

pull/19146/head
Protobuf Team Bot 3 months ago
parent 00b9937d6a
commit e3a0777b2c
  1. 4
      src/google/protobuf/any.pb.h
  2. 16
      src/google/protobuf/api.pb.h
  3. 2
      src/google/protobuf/source_context.pb.h
  4. 6
      src/google/protobuf/struct.pb.h
  5. 26
      src/google/protobuf/type.pb.h
  6. 4
      src/google/protobuf/wrappers.pb.h

@ -281,7 +281,7 @@ class PROTOBUF_EXPORT Any final
template <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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:

@ -235,7 +235,7 @@ class PROTOBUF_EXPORT Mixin final
template <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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);

@ -224,7 +224,7 @@ class PROTOBUF_EXPORT SourceContext final
template <typename Arg_ = const std::string&, typename... Args_>
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:

@ -762,7 +762,7 @@ class PROTOBUF_EXPORT Value final
template <typename Arg_ = const std::string&, typename... Args_>
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);

@ -387,7 +387,7 @@ class PROTOBUF_EXPORT Option final
template <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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);

@ -646,7 +646,7 @@ class PROTOBUF_EXPORT StringValue final
template <typename Arg_ = const std::string&, typename... Args_>
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 <typename Arg_ = const std::string&, typename... Args_>
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:

Loading…
Cancel
Save