diff --git a/src/google/protobuf/any.pb.h b/src/google/protobuf/any.pb.h index f7fc1ff03b..9be36f8482 100644 --- a/src/google/protobuf/any.pb.h +++ b/src/google/protobuf/any.pb.h @@ -103,10 +103,12 @@ class PROTOBUF_EXPORT Any final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -239,10 +241,11 @@ class PROTOBUF_EXPORT Any final : }; // string type_url = 1; void clear_type_url() ; - const std::string& type_url() const; + const std::string& type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_type_url(Arg_&& arg, Args_... args); - std::string* mutable_type_url(); + std::string* mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_type_url(); void set_allocated_type_url(std::string* ptr); @@ -255,10 +258,11 @@ class PROTOBUF_EXPORT Any final : public: // bytes value = 2; void clear_value() ; - const std::string& value() const; + const std::string& value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); + std::string* mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_value(); void set_allocated_value(std::string* ptr); @@ -308,7 +312,8 @@ class PROTOBUF_EXPORT Any final : inline void Any::clear_type_url() { _impl_.type_url_.ClearToEmpty(); } -inline const std::string& Any::type_url() const { +inline const std::string& Any::type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url) return _internal_type_url(); } @@ -319,7 +324,7 @@ inline PROTOBUF_ALWAYS_INLINE void Any::set_type_url(Arg_&& arg, _impl_.type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url) } -inline std::string* Any::mutable_type_url() { +inline std::string* Any::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_type_url(); // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url) return _s; @@ -353,7 +358,8 @@ inline void Any::set_allocated_type_url(std::string* value) { inline void Any::clear_value() { _impl_.value_.ClearToEmpty(); } -inline const std::string& Any::value() const { +inline const std::string& Any::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Any.value) return _internal_value(); } @@ -364,7 +370,7 @@ inline PROTOBUF_ALWAYS_INLINE void Any::set_value(Arg_&& arg, _impl_.value_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Any.value) } -inline std::string* Any::mutable_value() { +inline std::string* Any::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Any.value) return _s; diff --git a/src/google/protobuf/api.pb.h b/src/google/protobuf/api.pb.h index 8922881b82..4c97645cf9 100644 --- a/src/google/protobuf/api.pb.h +++ b/src/google/protobuf/api.pb.h @@ -115,10 +115,12 @@ class PROTOBUF_EXPORT Api final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -226,17 +228,17 @@ class PROTOBUF_EXPORT Api final : public: void clear_methods() ; - ::google::protobuf::Method* mutable_methods(int index); + ::google::protobuf::Method* mutable_methods(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >* - mutable_methods(); + mutable_methods() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Method>& _internal_methods() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Method>* _internal_mutable_methods(); public: - const ::google::protobuf::Method& methods(int index) const; - ::google::protobuf::Method* add_methods(); + const ::google::protobuf::Method& methods(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Method* add_methods() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >& - methods() const; + methods() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // repeated .google.protobuf.Option options = 3; int options_size() const; private: @@ -244,17 +246,17 @@ class PROTOBUF_EXPORT Api final : public: void clear_options() ; - ::google::protobuf::Option* mutable_options(int index); + ::google::protobuf::Option* mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* - mutable_options(); + mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options(); public: - const ::google::protobuf::Option& options(int index) const; - ::google::protobuf::Option* add_options(); + const ::google::protobuf::Option& options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Option* add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& - options() const; + options() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // repeated .google.protobuf.Mixin mixins = 6; int mixins_size() const; private: @@ -262,23 +264,24 @@ class PROTOBUF_EXPORT Api final : public: void clear_mixins() ; - ::google::protobuf::Mixin* mutable_mixins(int index); + ::google::protobuf::Mixin* mutable_mixins(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >* - mutable_mixins(); + mutable_mixins() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Mixin>& _internal_mixins() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Mixin>* _internal_mutable_mixins(); public: - const ::google::protobuf::Mixin& mixins(int index) const; - ::google::protobuf::Mixin* add_mixins(); + const ::google::protobuf::Mixin& mixins(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Mixin* add_mixins() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& - mixins() const; + mixins() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // string name = 1; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -291,10 +294,11 @@ class PROTOBUF_EXPORT Api final : public: // string version = 4; void clear_version() ; - const std::string& version() const; + const std::string& version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); + std::string* mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_version(); void set_allocated_version(std::string* ptr); @@ -308,9 +312,9 @@ class PROTOBUF_EXPORT Api final : // .google.protobuf.SourceContext source_context = 5; bool has_source_context() const; void clear_source_context() ; - const ::google::protobuf::SourceContext& source_context() const; + const ::google::protobuf::SourceContext& source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context(); - ::google::protobuf::SourceContext* mutable_source_context(); + ::google::protobuf::SourceContext* mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_allocated_source_context(::google::protobuf::SourceContext* value); void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value); ::google::protobuf::SourceContext* unsafe_arena_release_source_context(); @@ -386,10 +390,12 @@ class PROTOBUF_EXPORT Method final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -497,23 +503,24 @@ class PROTOBUF_EXPORT Method final : public: void clear_options() ; - ::google::protobuf::Option* mutable_options(int index); + ::google::protobuf::Option* mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* - mutable_options(); + mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options(); public: - const ::google::protobuf::Option& options(int index) const; - ::google::protobuf::Option* add_options(); + const ::google::protobuf::Option& options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Option* add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& - options() const; + options() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // string name = 1; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -526,10 +533,11 @@ class PROTOBUF_EXPORT Method final : public: // string request_type_url = 2; void clear_request_type_url() ; - const std::string& request_type_url() const; + const std::string& request_type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_request_type_url(Arg_&& arg, Args_... args); - std::string* mutable_request_type_url(); + std::string* mutable_request_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_request_type_url(); void set_allocated_request_type_url(std::string* ptr); @@ -542,10 +550,11 @@ class PROTOBUF_EXPORT Method final : public: // string response_type_url = 4; void clear_response_type_url() ; - const std::string& response_type_url() const; + const std::string& response_type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_response_type_url(Arg_&& arg, Args_... args); - std::string* mutable_response_type_url(); + std::string* mutable_response_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_response_type_url(); void set_allocated_response_type_url(std::string* ptr); @@ -641,10 +650,12 @@ class PROTOBUF_EXPORT Mixin final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -742,10 +753,11 @@ class PROTOBUF_EXPORT Mixin final : }; // string name = 1; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -758,10 +770,11 @@ class PROTOBUF_EXPORT Mixin final : public: // string root = 2; void clear_root() ; - const std::string& root() const; + const std::string& root() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_root(Arg_&& arg, Args_... args); - std::string* mutable_root(); + std::string* mutable_root() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_root(); void set_allocated_root(std::string* ptr); @@ -810,7 +823,8 @@ class PROTOBUF_EXPORT Mixin final : inline void Api::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& Api::name() const { +inline const std::string& Api::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Api.name) return _internal_name(); } @@ -821,7 +835,7 @@ inline PROTOBUF_ALWAYS_INLINE void Api::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Api.name) } -inline std::string* Api::mutable_name() { +inline std::string* Api::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name) return _s; @@ -861,26 +875,26 @@ inline int Api::methods_size() const { inline void Api::clear_methods() { _internal_mutable_methods()->Clear(); } -inline ::google::protobuf::Method* Api::mutable_methods(int index) { +inline ::google::protobuf::Method* Api::mutable_methods(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods) return _internal_mutable_methods()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >* -Api::mutable_methods() { +Api::mutable_methods() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods) return _internal_mutable_methods(); } -inline const ::google::protobuf::Method& Api::methods(int index) const { +inline const ::google::protobuf::Method& Api::methods(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Api.methods) return _internal_methods().Get(index); } -inline ::google::protobuf::Method* Api::add_methods() { +inline ::google::protobuf::Method* Api::add_methods() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Method* _add = _internal_mutable_methods()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Api.methods) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >& -Api::methods() const { +Api::methods() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Api.methods) return _internal_methods(); } @@ -900,26 +914,26 @@ inline int Api::_internal_options_size() const { inline int Api::options_size() const { return _internal_options_size(); } -inline ::google::protobuf::Option* Api::mutable_options(int index) { +inline ::google::protobuf::Option* Api::mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options) return _internal_mutable_options()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* -Api::mutable_options() { +Api::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options) return _internal_mutable_options(); } -inline const ::google::protobuf::Option& Api::options(int index) const { +inline const ::google::protobuf::Option& Api::options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Api.options) return _internal_options().Get(index); } -inline ::google::protobuf::Option* Api::add_options() { +inline ::google::protobuf::Option* Api::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Option* _add = _internal_mutable_options()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Api.options) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& -Api::options() const { +Api::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Api.options) return _internal_options(); } @@ -936,7 +950,8 @@ Api::_internal_mutable_options() { inline void Api::clear_version() { _impl_.version_.ClearToEmpty(); } -inline const std::string& Api::version() const { +inline const std::string& Api::version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Api.version) return _internal_version(); } @@ -947,7 +962,7 @@ inline PROTOBUF_ALWAYS_INLINE void Api::set_version(Arg_&& arg, _impl_.version_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Api.version) } -inline std::string* Api::mutable_version() { +inline std::string* Api::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version) return _s; @@ -987,7 +1002,7 @@ inline const ::google::protobuf::SourceContext& Api::_internal_source_context() const ::google::protobuf::SourceContext* p = _impl_.source_context_; return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_SourceContext_default_instance_); } -inline const ::google::protobuf::SourceContext& Api::source_context() const { +inline const ::google::protobuf::SourceContext& Api::source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context) return _internal_source_context(); } @@ -1037,7 +1052,7 @@ inline ::google::protobuf::SourceContext* Api::_internal_mutable_source_context( } return _impl_.source_context_; } -inline ::google::protobuf::SourceContext* Api::mutable_source_context() { +inline ::google::protobuf::SourceContext* Api::mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::SourceContext* _msg = _internal_mutable_source_context(); // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context) return _msg; @@ -1073,26 +1088,26 @@ inline int Api::mixins_size() const { inline void Api::clear_mixins() { _internal_mutable_mixins()->Clear(); } -inline ::google::protobuf::Mixin* Api::mutable_mixins(int index) { +inline ::google::protobuf::Mixin* Api::mutable_mixins(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins) return _internal_mutable_mixins()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >* -Api::mutable_mixins() { +Api::mutable_mixins() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins) return _internal_mutable_mixins(); } -inline const ::google::protobuf::Mixin& Api::mixins(int index) const { +inline const ::google::protobuf::Mixin& Api::mixins(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins) return _internal_mixins().Get(index); } -inline ::google::protobuf::Mixin* Api::add_mixins() { +inline ::google::protobuf::Mixin* Api::add_mixins() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Mixin* _add = _internal_mutable_mixins()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >& -Api::mixins() const { +Api::mixins() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins) return _internal_mixins(); } @@ -1133,7 +1148,8 @@ inline void Api::_internal_set_syntax(::google::protobuf::Syntax value) { inline void Method::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& Method::name() const { +inline const std::string& Method::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Method.name) return _internal_name(); } @@ -1144,7 +1160,7 @@ inline PROTOBUF_ALWAYS_INLINE void Method::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Method.name) } -inline std::string* Method::mutable_name() { +inline std::string* Method::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name) return _s; @@ -1178,7 +1194,8 @@ inline void Method::set_allocated_name(std::string* value) { inline void Method::clear_request_type_url() { _impl_.request_type_url_.ClearToEmpty(); } -inline const std::string& Method::request_type_url() const { +inline const std::string& Method::request_type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url) return _internal_request_type_url(); } @@ -1189,7 +1206,7 @@ inline PROTOBUF_ALWAYS_INLINE void Method::set_request_type_url(Arg_&& arg, _impl_.request_type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url) } -inline std::string* Method::mutable_request_type_url() { +inline std::string* Method::mutable_request_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_request_type_url(); // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url) return _s; @@ -1243,7 +1260,8 @@ inline void Method::_internal_set_request_streaming(bool value) { inline void Method::clear_response_type_url() { _impl_.response_type_url_.ClearToEmpty(); } -inline const std::string& Method::response_type_url() const { +inline const std::string& Method::response_type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url) return _internal_response_type_url(); } @@ -1254,7 +1272,7 @@ inline PROTOBUF_ALWAYS_INLINE void Method::set_response_type_url(Arg_&& arg, _impl_.response_type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url) } -inline std::string* Method::mutable_response_type_url() { +inline std::string* Method::mutable_response_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_response_type_url(); // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url) return _s; @@ -1311,26 +1329,26 @@ inline int Method::_internal_options_size() const { inline int Method::options_size() const { return _internal_options_size(); } -inline ::google::protobuf::Option* Method::mutable_options(int index) { +inline ::google::protobuf::Option* Method::mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options) return _internal_mutable_options()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* -Method::mutable_options() { +Method::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options) return _internal_mutable_options(); } -inline const ::google::protobuf::Option& Method::options(int index) const { +inline const ::google::protobuf::Option& Method::options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Method.options) return _internal_options().Get(index); } -inline ::google::protobuf::Option* Method::add_options() { +inline ::google::protobuf::Option* Method::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Option* _add = _internal_mutable_options()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Method.options) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& -Method::options() const { +Method::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Method.options) return _internal_options(); } @@ -1371,7 +1389,8 @@ inline void Method::_internal_set_syntax(::google::protobuf::Syntax value) { inline void Mixin::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& Mixin::name() const { +inline const std::string& Mixin::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name) return _internal_name(); } @@ -1382,7 +1401,7 @@ inline PROTOBUF_ALWAYS_INLINE void Mixin::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name) } -inline std::string* Mixin::mutable_name() { +inline std::string* Mixin::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name) return _s; @@ -1416,7 +1435,8 @@ inline void Mixin::set_allocated_name(std::string* value) { inline void Mixin::clear_root() { _impl_.root_.ClearToEmpty(); } -inline const std::string& Mixin::root() const { +inline const std::string& Mixin::root() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root) return _internal_root(); } @@ -1427,7 +1447,7 @@ inline PROTOBUF_ALWAYS_INLINE void Mixin::set_root(Arg_&& arg, _impl_.root_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root) } -inline std::string* Mixin::mutable_root() { +inline std::string* Mixin::mutable_root() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_root(); // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root) return _s; diff --git a/src/google/protobuf/duration.pb.h b/src/google/protobuf/duration.pb.h index 64d1561369..ecd5ddd739 100644 --- a/src/google/protobuf/duration.pb.h +++ b/src/google/protobuf/duration.pb.h @@ -103,10 +103,12 @@ class PROTOBUF_EXPORT Duration final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } diff --git a/src/google/protobuf/empty.pb.h b/src/google/protobuf/empty.pb.h index ca5b6953d3..dabc115b1c 100644 --- a/src/google/protobuf/empty.pb.h +++ b/src/google/protobuf/empty.pb.h @@ -103,10 +103,12 @@ class PROTOBUF_EXPORT Empty final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } diff --git a/src/google/protobuf/field_mask.pb.h b/src/google/protobuf/field_mask.pb.h index 65589ebc63..3b8aea26a1 100644 --- a/src/google/protobuf/field_mask.pb.h +++ b/src/google/protobuf/field_mask.pb.h @@ -103,10 +103,12 @@ class PROTOBUF_EXPORT FieldMask final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -208,21 +210,25 @@ class PROTOBUF_EXPORT FieldMask final : public: void clear_paths() ; - const std::string& paths(int index) const; - std::string* mutable_paths(int index); + const std::string& paths(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND; + std::string* mutable_paths(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_paths(int index, const std::string& value); void set_paths(int index, std::string&& value); void set_paths(int index, const char* value); void set_paths(int index, const char* value, std::size_t size); void set_paths(int index, absl::string_view value); - std::string* add_paths(); + std::string* add_paths() ABSL_ATTRIBUTE_LIFETIME_BOUND; void add_paths(const std::string& value); void add_paths(std::string&& value); void add_paths(const char* value); void add_paths(const char* value, std::size_t size); void add_paths(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& paths() const; - ::google::protobuf::RepeatedPtrField* mutable_paths(); + const ::google::protobuf::RepeatedPtrField& paths() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::RepeatedPtrField* mutable_paths() + ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField& _internal_paths() const; @@ -272,16 +278,19 @@ inline int FieldMask::paths_size() const { inline void FieldMask::clear_paths() { _internal_mutable_paths()->Clear(); } -inline std::string* FieldMask::add_paths() { +inline std::string* FieldMask::add_paths() + ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_paths()->Add(); // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths) return _s; } -inline const std::string& FieldMask::paths(int index) const { +inline const std::string& FieldMask::paths(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths) return _internal_paths().Get(index); } -inline std::string* FieldMask::mutable_paths(int index) { +inline std::string* FieldMask::mutable_paths(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths) return _internal_mutable_paths()->Mutable(index); } @@ -332,11 +341,12 @@ inline void FieldMask::add_paths(absl::string_view value) { // @@protoc_insertion_point(field_add_string_piece:google.protobuf.FieldMask.paths) } inline const ::google::protobuf::RepeatedPtrField& -FieldMask::paths() const { +FieldMask::paths() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths) return _internal_paths(); } -inline ::google::protobuf::RepeatedPtrField* FieldMask::mutable_paths() { +inline ::google::protobuf::RepeatedPtrField* +FieldMask::mutable_paths() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths) return _internal_mutable_paths(); } diff --git a/src/google/protobuf/source_context.pb.h b/src/google/protobuf/source_context.pb.h index 2b69c1e8db..f333d3e796 100644 --- a/src/google/protobuf/source_context.pb.h +++ b/src/google/protobuf/source_context.pb.h @@ -103,10 +103,12 @@ class PROTOBUF_EXPORT SourceContext final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -203,10 +205,11 @@ class PROTOBUF_EXPORT SourceContext final : }; // string file_name = 1; void clear_file_name() ; - const std::string& file_name() const; + const std::string& file_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_file_name(Arg_&& arg, Args_... args); - std::string* mutable_file_name(); + std::string* mutable_file_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_file_name(); void set_allocated_file_name(std::string* ptr); @@ -254,7 +257,8 @@ class PROTOBUF_EXPORT SourceContext final : inline void SourceContext::clear_file_name() { _impl_.file_name_.ClearToEmpty(); } -inline const std::string& SourceContext::file_name() const { +inline const std::string& SourceContext::file_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) return _internal_file_name(); } @@ -265,7 +269,7 @@ inline PROTOBUF_ALWAYS_INLINE void SourceContext::set_file_name(Arg_&& arg, _impl_.file_name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) } -inline std::string* SourceContext::mutable_file_name() { +inline std::string* SourceContext::mutable_file_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_file_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name) return _s; diff --git a/src/google/protobuf/struct.pb.h b/src/google/protobuf/struct.pb.h index fa1e2af17a..7fd48618f9 100644 --- a/src/google/protobuf/struct.pb.h +++ b/src/google/protobuf/struct.pb.h @@ -179,10 +179,12 @@ class PROTOBUF_EXPORT Struct final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -285,8 +287,8 @@ class PROTOBUF_EXPORT Struct final : public: void clear_fields() ; - const ::google::protobuf::Map& fields() const; - ::google::protobuf::Map* mutable_fields(); + const ::google::protobuf::Map& fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Map* mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::Map& _internal_fields() const; @@ -345,10 +347,12 @@ class PROTOBUF_EXPORT Value final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -483,10 +487,11 @@ class PROTOBUF_EXPORT Value final : // string string_value = 3; bool has_string_value() const; void clear_string_value() ; - const std::string& string_value() const; + const std::string& string_value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_string_value(Arg_&& arg, Args_... args); - std::string* mutable_string_value(); + std::string* mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_string_value(); void set_allocated_string_value(std::string* ptr); @@ -515,9 +520,9 @@ class PROTOBUF_EXPORT Value final : public: void clear_struct_value() ; - const ::google::protobuf::Struct& struct_value() const; + const ::google::protobuf::Struct& struct_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_value(); - ::google::protobuf::Struct* mutable_struct_value(); + ::google::protobuf::Struct* mutable_struct_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_allocated_struct_value(::google::protobuf::Struct* value); void unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* value); ::google::protobuf::Struct* unsafe_arena_release_struct_value(); @@ -534,9 +539,9 @@ class PROTOBUF_EXPORT Value final : public: void clear_list_value() ; - const ::google::protobuf::ListValue& list_value() const; + const ::google::protobuf::ListValue& list_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD ::google::protobuf::ListValue* release_list_value(); - ::google::protobuf::ListValue* mutable_list_value(); + ::google::protobuf::ListValue* mutable_list_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_allocated_list_value(::google::protobuf::ListValue* value); void unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* value); ::google::protobuf::ListValue* unsafe_arena_release_list_value(); @@ -617,10 +622,12 @@ class PROTOBUF_EXPORT ListValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -722,17 +729,17 @@ class PROTOBUF_EXPORT ListValue final : public: void clear_values() ; - ::google::protobuf::Value* mutable_values(int index); + ::google::protobuf::Value* mutable_values(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >* - mutable_values(); + mutable_values() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& _internal_values() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* _internal_mutable_values(); public: - const ::google::protobuf::Value& values(int index) const; - ::google::protobuf::Value* add_values(); + const ::google::protobuf::Value& values(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Value* add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >& - values() const; + values() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // @@protoc_insertion_point(class_scope:google.protobuf.ListValue) private: class _Internal; @@ -781,14 +788,14 @@ inline void Struct::clear_fields() { inline const ::google::protobuf::Map& Struct::_internal_fields() const { return _impl_.fields_.GetMap(); } -inline const ::google::protobuf::Map& Struct::fields() const { +inline const ::google::protobuf::Map& Struct::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields) return _internal_fields(); } inline ::google::protobuf::Map* Struct::_internal_mutable_fields() { return _impl_.fields_.MutableMap(); } -inline ::google::protobuf::Map* Struct::mutable_fields() { +inline ::google::protobuf::Map* Struct::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields) return _internal_mutable_fields(); } @@ -880,7 +887,8 @@ inline void Value::clear_string_value() { clear_has_kind(); } } -inline const std::string& Value::string_value() const { +inline const std::string& Value::string_value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) return _internal_string_value(); } @@ -896,7 +904,7 @@ inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg, _impl_.kind_.string_value_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) } -inline std::string* Value::mutable_string_value() { +inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_string_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) return _s; @@ -1016,7 +1024,7 @@ inline const ::google::protobuf::Struct& Value::_internal_struct_value() const { ? *_impl_.kind_.struct_value_ : reinterpret_cast<::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); } -inline const ::google::protobuf::Struct& Value::struct_value() const { +inline const ::google::protobuf::Struct& Value::struct_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) return _internal_struct_value(); } @@ -1047,7 +1055,7 @@ inline ::google::protobuf::Struct* Value::_internal_mutable_struct_value() { } return _impl_.kind_.struct_value_; } -inline ::google::protobuf::Struct* Value::mutable_struct_value() { +inline ::google::protobuf::Struct* Value::mutable_struct_value() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Struct* _msg = _internal_mutable_struct_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) return _msg; @@ -1090,7 +1098,7 @@ inline const ::google::protobuf::ListValue& Value::_internal_list_value() const ? *_impl_.kind_.list_value_ : reinterpret_cast<::google::protobuf::ListValue&>(::google::protobuf::_ListValue_default_instance_); } -inline const ::google::protobuf::ListValue& Value::list_value() const { +inline const ::google::protobuf::ListValue& Value::list_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) return _internal_list_value(); } @@ -1121,7 +1129,7 @@ inline ::google::protobuf::ListValue* Value::_internal_mutable_list_value() { } return _impl_.kind_.list_value_; } -inline ::google::protobuf::ListValue* Value::mutable_list_value() { +inline ::google::protobuf::ListValue* Value::mutable_list_value() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::ListValue* _msg = _internal_mutable_list_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) return _msg; @@ -1150,26 +1158,26 @@ inline int ListValue::values_size() const { inline void ListValue::clear_values() { _internal_mutable_values()->Clear(); } -inline ::google::protobuf::Value* ListValue::mutable_values(int index) { +inline ::google::protobuf::Value* ListValue::mutable_values(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values) return _internal_mutable_values()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >* -ListValue::mutable_values() { +ListValue::mutable_values() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values) return _internal_mutable_values(); } -inline const ::google::protobuf::Value& ListValue::values(int index) const { +inline const ::google::protobuf::Value& ListValue::values(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values) return _internal_values().Get(index); } -inline ::google::protobuf::Value* ListValue::add_values() { +inline ::google::protobuf::Value* ListValue::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Value* _add = _internal_mutable_values()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >& -ListValue::values() const { +ListValue::values() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values) return _internal_values(); } diff --git a/src/google/protobuf/timestamp.pb.h b/src/google/protobuf/timestamp.pb.h index 8656902144..4e4e9a5195 100644 --- a/src/google/protobuf/timestamp.pb.h +++ b/src/google/protobuf/timestamp.pb.h @@ -103,10 +103,12 @@ class PROTOBUF_EXPORT Timestamp final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } diff --git a/src/google/protobuf/type.pb.h b/src/google/protobuf/type.pb.h index d2cd1a2cf0..7298b032fb 100644 --- a/src/google/protobuf/type.pb.h +++ b/src/google/protobuf/type.pb.h @@ -242,10 +242,12 @@ class PROTOBUF_EXPORT Type final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -353,17 +355,17 @@ class PROTOBUF_EXPORT Type final : public: void clear_fields() ; - ::google::protobuf::Field* mutable_fields(int index); + ::google::protobuf::Field* mutable_fields(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >* - mutable_fields(); + mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>& _internal_fields() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* _internal_mutable_fields(); public: - const ::google::protobuf::Field& fields(int index) const; - ::google::protobuf::Field* add_fields(); + const ::google::protobuf::Field& fields(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Field* add_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >& - fields() const; + fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // repeated string oneofs = 3; int oneofs_size() const; private: @@ -371,21 +373,25 @@ class PROTOBUF_EXPORT Type final : public: void clear_oneofs() ; - const std::string& oneofs(int index) const; - std::string* mutable_oneofs(int index); + const std::string& oneofs(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND; + std::string* mutable_oneofs(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_oneofs(int index, const std::string& value); void set_oneofs(int index, std::string&& value); void set_oneofs(int index, const char* value); void set_oneofs(int index, const char* value, std::size_t size); void set_oneofs(int index, absl::string_view value); - std::string* add_oneofs(); + std::string* add_oneofs() ABSL_ATTRIBUTE_LIFETIME_BOUND; void add_oneofs(const std::string& value); void add_oneofs(std::string&& value); void add_oneofs(const char* value); void add_oneofs(const char* value, std::size_t size); void add_oneofs(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& oneofs() const; - ::google::protobuf::RepeatedPtrField* mutable_oneofs(); + const ::google::protobuf::RepeatedPtrField& oneofs() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::RepeatedPtrField* mutable_oneofs() + ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField& _internal_oneofs() const; @@ -399,23 +405,24 @@ class PROTOBUF_EXPORT Type final : public: void clear_options() ; - ::google::protobuf::Option* mutable_options(int index); + ::google::protobuf::Option* mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* - mutable_options(); + mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options(); public: - const ::google::protobuf::Option& options(int index) const; - ::google::protobuf::Option* add_options(); + const ::google::protobuf::Option& options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Option* add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& - options() const; + options() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // string name = 1; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -428,10 +435,11 @@ class PROTOBUF_EXPORT Type final : public: // string edition = 7; void clear_edition() ; - const std::string& edition() const; + const std::string& edition() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_edition(Arg_&& arg, Args_... args); - std::string* mutable_edition(); + std::string* mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_edition(); void set_allocated_edition(std::string* ptr); @@ -445,9 +453,9 @@ class PROTOBUF_EXPORT Type final : // .google.protobuf.SourceContext source_context = 5; bool has_source_context() const; void clear_source_context() ; - const ::google::protobuf::SourceContext& source_context() const; + const ::google::protobuf::SourceContext& source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context(); - ::google::protobuf::SourceContext* mutable_source_context(); + ::google::protobuf::SourceContext* mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_allocated_source_context(::google::protobuf::SourceContext* value); void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value); ::google::protobuf::SourceContext* unsafe_arena_release_source_context(); @@ -523,10 +531,12 @@ class PROTOBUF_EXPORT Field final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -696,23 +706,24 @@ class PROTOBUF_EXPORT Field final : public: void clear_options() ; - ::google::protobuf::Option* mutable_options(int index); + ::google::protobuf::Option* mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* - mutable_options(); + mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options(); public: - const ::google::protobuf::Option& options(int index) const; - ::google::protobuf::Option* add_options(); + const ::google::protobuf::Option& options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Option* add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& - options() const; + options() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // string name = 4; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -725,10 +736,11 @@ class PROTOBUF_EXPORT Field final : public: // string type_url = 6; void clear_type_url() ; - const std::string& type_url() const; + const std::string& type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_type_url(Arg_&& arg, Args_... args); - std::string* mutable_type_url(); + std::string* mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_type_url(); void set_allocated_type_url(std::string* ptr); @@ -741,10 +753,11 @@ class PROTOBUF_EXPORT Field final : public: // string json_name = 10; void clear_json_name() ; - const std::string& json_name() const; + const std::string& json_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_json_name(Arg_&& arg, Args_... args); - std::string* mutable_json_name(); + std::string* mutable_json_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_json_name(); void set_allocated_json_name(std::string* ptr); @@ -757,10 +770,11 @@ class PROTOBUF_EXPORT Field final : public: // string default_value = 11; void clear_default_value() ; - const std::string& default_value() const; + const std::string& default_value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_default_value(Arg_&& arg, Args_... args); - std::string* mutable_default_value(); + std::string* mutable_default_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_default_value(); void set_allocated_default_value(std::string* ptr); @@ -879,10 +893,12 @@ class PROTOBUF_EXPORT Enum final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -989,17 +1005,17 @@ class PROTOBUF_EXPORT Enum final : public: void clear_enumvalue() ; - ::google::protobuf::EnumValue* mutable_enumvalue(int index); + ::google::protobuf::EnumValue* mutable_enumvalue(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >* - mutable_enumvalue(); + mutable_enumvalue() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>& _internal_enumvalue() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* _internal_mutable_enumvalue(); public: - const ::google::protobuf::EnumValue& enumvalue(int index) const; - ::google::protobuf::EnumValue* add_enumvalue(); + const ::google::protobuf::EnumValue& enumvalue(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::EnumValue* add_enumvalue() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >& - enumvalue() const; + enumvalue() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // repeated .google.protobuf.Option options = 3; int options_size() const; private: @@ -1007,23 +1023,24 @@ class PROTOBUF_EXPORT Enum final : public: void clear_options() ; - ::google::protobuf::Option* mutable_options(int index); + ::google::protobuf::Option* mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* - mutable_options(); + mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options(); public: - const ::google::protobuf::Option& options(int index) const; - ::google::protobuf::Option* add_options(); + const ::google::protobuf::Option& options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Option* add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& - options() const; + options() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // string name = 1; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -1036,10 +1053,11 @@ class PROTOBUF_EXPORT Enum final : public: // string edition = 6; void clear_edition() ; - const std::string& edition() const; + const std::string& edition() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_edition(Arg_&& arg, Args_... args); - std::string* mutable_edition(); + std::string* mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_edition(); void set_allocated_edition(std::string* ptr); @@ -1053,9 +1071,9 @@ class PROTOBUF_EXPORT Enum final : // .google.protobuf.SourceContext source_context = 4; bool has_source_context() const; void clear_source_context() ; - const ::google::protobuf::SourceContext& source_context() const; + const ::google::protobuf::SourceContext& source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context(); - ::google::protobuf::SourceContext* mutable_source_context(); + ::google::protobuf::SourceContext* mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_allocated_source_context(::google::protobuf::SourceContext* value); void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value); ::google::protobuf::SourceContext* unsafe_arena_release_source_context(); @@ -1130,10 +1148,12 @@ class PROTOBUF_EXPORT EnumValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -1237,23 +1257,24 @@ class PROTOBUF_EXPORT EnumValue final : public: void clear_options() ; - ::google::protobuf::Option* mutable_options(int index); + ::google::protobuf::Option* mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* - mutable_options(); + mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; private: const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const; ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options(); public: - const ::google::protobuf::Option& options(int index) const; - ::google::protobuf::Option* add_options(); + const ::google::protobuf::Option& options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND; + ::google::protobuf::Option* add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND; const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& - options() const; + options() const ABSL_ATTRIBUTE_LIFETIME_BOUND; // string name = 1; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -1325,10 +1346,12 @@ class PROTOBUF_EXPORT Option final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -1426,10 +1449,11 @@ class PROTOBUF_EXPORT Option final : }; // string name = 1; void clear_name() ; - const std::string& name() const; + const std::string& name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); + std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* ptr); @@ -1443,9 +1467,9 @@ class PROTOBUF_EXPORT Option final : // .google.protobuf.Any value = 2; bool has_value() const; void clear_value() ; - const ::google::protobuf::Any& value() const; + const ::google::protobuf::Any& value() const ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD ::google::protobuf::Any* release_value(); - ::google::protobuf::Any* mutable_value(); + ::google::protobuf::Any* mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; void set_allocated_value(::google::protobuf::Any* value); void unsafe_arena_set_allocated_value(::google::protobuf::Any* value); ::google::protobuf::Any* unsafe_arena_release_value(); @@ -1494,7 +1518,8 @@ class PROTOBUF_EXPORT Option final : inline void Type::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& Type::name() const { +inline const std::string& Type::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Type.name) return _internal_name(); } @@ -1505,7 +1530,7 @@ inline PROTOBUF_ALWAYS_INLINE void Type::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Type.name) } -inline std::string* Type::mutable_name() { +inline std::string* Type::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name) return _s; @@ -1545,26 +1570,26 @@ inline int Type::fields_size() const { inline void Type::clear_fields() { _internal_mutable_fields()->Clear(); } -inline ::google::protobuf::Field* Type::mutable_fields(int index) { +inline ::google::protobuf::Field* Type::mutable_fields(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Type.fields) return _internal_mutable_fields()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >* -Type::mutable_fields() { +Type::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.fields) return _internal_mutable_fields(); } -inline const ::google::protobuf::Field& Type::fields(int index) const { +inline const ::google::protobuf::Field& Type::fields(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Type.fields) return _internal_fields().Get(index); } -inline ::google::protobuf::Field* Type::add_fields() { +inline ::google::protobuf::Field* Type::add_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Field* _add = _internal_mutable_fields()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Type.fields) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >& -Type::fields() const { +Type::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Type.fields) return _internal_fields(); } @@ -1587,16 +1612,19 @@ inline int Type::oneofs_size() const { inline void Type::clear_oneofs() { _internal_mutable_oneofs()->Clear(); } -inline std::string* Type::add_oneofs() { +inline std::string* Type::add_oneofs() + ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_oneofs()->Add(); // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs) return _s; } -inline const std::string& Type::oneofs(int index) const { +inline const std::string& Type::oneofs(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs) return _internal_oneofs().Get(index); } -inline std::string* Type::mutable_oneofs(int index) { +inline std::string* Type::mutable_oneofs(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs) return _internal_mutable_oneofs()->Mutable(index); } @@ -1647,11 +1675,12 @@ inline void Type::add_oneofs(absl::string_view value) { // @@protoc_insertion_point(field_add_string_piece:google.protobuf.Type.oneofs) } inline const ::google::protobuf::RepeatedPtrField& -Type::oneofs() const { +Type::oneofs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs) return _internal_oneofs(); } -inline ::google::protobuf::RepeatedPtrField* Type::mutable_oneofs() { +inline ::google::protobuf::RepeatedPtrField* +Type::mutable_oneofs() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs) return _internal_mutable_oneofs(); } @@ -1674,26 +1703,26 @@ inline int Type::options_size() const { inline void Type::clear_options() { _internal_mutable_options()->Clear(); } -inline ::google::protobuf::Option* Type::mutable_options(int index) { +inline ::google::protobuf::Option* Type::mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Type.options) return _internal_mutable_options()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* -Type::mutable_options() { +Type::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options) return _internal_mutable_options(); } -inline const ::google::protobuf::Option& Type::options(int index) const { +inline const ::google::protobuf::Option& Type::options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Type.options) return _internal_options().Get(index); } -inline ::google::protobuf::Option* Type::add_options() { +inline ::google::protobuf::Option* Type::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Option* _add = _internal_mutable_options()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Type.options) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& -Type::options() const { +Type::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Type.options) return _internal_options(); } @@ -1716,7 +1745,7 @@ inline const ::google::protobuf::SourceContext& Type::_internal_source_context() const ::google::protobuf::SourceContext* p = _impl_.source_context_; return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_SourceContext_default_instance_); } -inline const ::google::protobuf::SourceContext& Type::source_context() const { +inline const ::google::protobuf::SourceContext& Type::source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context) return _internal_source_context(); } @@ -1766,7 +1795,7 @@ inline ::google::protobuf::SourceContext* Type::_internal_mutable_source_context } return _impl_.source_context_; } -inline ::google::protobuf::SourceContext* Type::mutable_source_context() { +inline ::google::protobuf::SourceContext* Type::mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::SourceContext* _msg = _internal_mutable_source_context(); // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context) return _msg; @@ -1816,7 +1845,8 @@ inline void Type::_internal_set_syntax(::google::protobuf::Syntax value) { inline void Type::clear_edition() { _impl_.edition_.ClearToEmpty(); } -inline const std::string& Type::edition() const { +inline const std::string& Type::edition() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Type.edition) return _internal_edition(); } @@ -1827,7 +1857,7 @@ inline PROTOBUF_ALWAYS_INLINE void Type::set_edition(Arg_&& arg, _impl_.edition_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Type.edition) } -inline std::string* Type::mutable_edition() { +inline std::string* Type::mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_edition(); // @@protoc_insertion_point(field_mutable:google.protobuf.Type.edition) return _s; @@ -1925,7 +1955,8 @@ inline void Field::_internal_set_number(::int32_t value) { inline void Field::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& Field::name() const { +inline const std::string& Field::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Field.name) return _internal_name(); } @@ -1936,7 +1967,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Field.name) } -inline std::string* Field::mutable_name() { +inline std::string* Field::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name) return _s; @@ -1970,7 +2001,8 @@ inline void Field::set_allocated_name(std::string* value) { inline void Field::clear_type_url() { _impl_.type_url_.ClearToEmpty(); } -inline const std::string& Field::type_url() const { +inline const std::string& Field::type_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url) return _internal_type_url(); } @@ -1981,7 +2013,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_type_url(Arg_&& arg, _impl_.type_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url) } -inline std::string* Field::mutable_type_url() { +inline std::string* Field::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_type_url(); // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url) return _s; @@ -2061,26 +2093,26 @@ inline int Field::options_size() const { inline void Field::clear_options() { _internal_mutable_options()->Clear(); } -inline ::google::protobuf::Option* Field::mutable_options(int index) { +inline ::google::protobuf::Option* Field::mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Field.options) return _internal_mutable_options()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* -Field::mutable_options() { +Field::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options) return _internal_mutable_options(); } -inline const ::google::protobuf::Option& Field::options(int index) const { +inline const ::google::protobuf::Option& Field::options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Field.options) return _internal_options().Get(index); } -inline ::google::protobuf::Option* Field::add_options() { +inline ::google::protobuf::Option* Field::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Option* _add = _internal_mutable_options()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Field.options) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& -Field::options() const { +Field::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Field.options) return _internal_options(); } @@ -2097,7 +2129,8 @@ Field::_internal_mutable_options() { inline void Field::clear_json_name() { _impl_.json_name_.ClearToEmpty(); } -inline const std::string& Field::json_name() const { +inline const std::string& Field::json_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name) return _internal_json_name(); } @@ -2108,7 +2141,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_json_name(Arg_&& arg, _impl_.json_name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name) } -inline std::string* Field::mutable_json_name() { +inline std::string* Field::mutable_json_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_json_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name) return _s; @@ -2142,7 +2175,8 @@ inline void Field::set_allocated_json_name(std::string* value) { inline void Field::clear_default_value() { _impl_.default_value_.ClearToEmpty(); } -inline const std::string& Field::default_value() const { +inline const std::string& Field::default_value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value) return _internal_default_value(); } @@ -2153,7 +2187,7 @@ inline PROTOBUF_ALWAYS_INLINE void Field::set_default_value(Arg_&& arg, _impl_.default_value_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value) } -inline std::string* Field::mutable_default_value() { +inline std::string* Field::mutable_default_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_default_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value) return _s; @@ -2191,7 +2225,8 @@ inline void Field::set_allocated_default_value(std::string* value) { inline void Enum::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& Enum::name() const { +inline const std::string& Enum::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Enum.name) return _internal_name(); } @@ -2202,7 +2237,7 @@ inline PROTOBUF_ALWAYS_INLINE void Enum::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Enum.name) } -inline std::string* Enum::mutable_name() { +inline std::string* Enum::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name) return _s; @@ -2242,26 +2277,26 @@ inline int Enum::enumvalue_size() const { inline void Enum::clear_enumvalue() { _internal_mutable_enumvalue()->Clear(); } -inline ::google::protobuf::EnumValue* Enum::mutable_enumvalue(int index) { +inline ::google::protobuf::EnumValue* Enum::mutable_enumvalue(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.enumvalue) return _internal_mutable_enumvalue()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >* -Enum::mutable_enumvalue() { +Enum::mutable_enumvalue() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.enumvalue) return _internal_mutable_enumvalue(); } -inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const { +inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue) return _internal_enumvalue().Get(index); } -inline ::google::protobuf::EnumValue* Enum::add_enumvalue() { +inline ::google::protobuf::EnumValue* Enum::add_enumvalue() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::EnumValue* _add = _internal_mutable_enumvalue()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Enum.enumvalue) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >& -Enum::enumvalue() const { +Enum::enumvalue() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Enum.enumvalue) return _internal_enumvalue(); } @@ -2284,26 +2319,26 @@ inline int Enum::options_size() const { inline void Enum::clear_options() { _internal_mutable_options()->Clear(); } -inline ::google::protobuf::Option* Enum::mutable_options(int index) { +inline ::google::protobuf::Option* Enum::mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.options) return _internal_mutable_options()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* -Enum::mutable_options() { +Enum::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options) return _internal_mutable_options(); } -inline const ::google::protobuf::Option& Enum::options(int index) const { +inline const ::google::protobuf::Option& Enum::options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.Enum.options) return _internal_options().Get(index); } -inline ::google::protobuf::Option* Enum::add_options() { +inline ::google::protobuf::Option* Enum::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Option* _add = _internal_mutable_options()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.Enum.options) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& -Enum::options() const { +Enum::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.Enum.options) return _internal_options(); } @@ -2326,7 +2361,7 @@ inline const ::google::protobuf::SourceContext& Enum::_internal_source_context() const ::google::protobuf::SourceContext* p = _impl_.source_context_; return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_SourceContext_default_instance_); } -inline const ::google::protobuf::SourceContext& Enum::source_context() const { +inline const ::google::protobuf::SourceContext& Enum::source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context) return _internal_source_context(); } @@ -2376,7 +2411,7 @@ inline ::google::protobuf::SourceContext* Enum::_internal_mutable_source_context } return _impl_.source_context_; } -inline ::google::protobuf::SourceContext* Enum::mutable_source_context() { +inline ::google::protobuf::SourceContext* Enum::mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::SourceContext* _msg = _internal_mutable_source_context(); // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context) return _msg; @@ -2426,7 +2461,8 @@ inline void Enum::_internal_set_syntax(::google::protobuf::Syntax value) { inline void Enum::clear_edition() { _impl_.edition_.ClearToEmpty(); } -inline const std::string& Enum::edition() const { +inline const std::string& Enum::edition() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Enum.edition) return _internal_edition(); } @@ -2437,7 +2473,7 @@ inline PROTOBUF_ALWAYS_INLINE void Enum::set_edition(Arg_&& arg, _impl_.edition_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Enum.edition) } -inline std::string* Enum::mutable_edition() { +inline std::string* Enum::mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_edition(); // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.edition) return _s; @@ -2475,7 +2511,8 @@ inline void Enum::set_allocated_edition(std::string* value) { inline void EnumValue::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& EnumValue::name() const { +inline const std::string& EnumValue::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name) return _internal_name(); } @@ -2486,7 +2523,7 @@ inline PROTOBUF_ALWAYS_INLINE void EnumValue::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name) } -inline std::string* EnumValue::mutable_name() { +inline std::string* EnumValue::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name) return _s; @@ -2546,26 +2583,26 @@ inline int EnumValue::options_size() const { inline void EnumValue::clear_options() { _internal_mutable_options()->Clear(); } -inline ::google::protobuf::Option* EnumValue::mutable_options(int index) { +inline ::google::protobuf::Option* EnumValue::mutable_options(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.options) return _internal_mutable_options()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >* -EnumValue::mutable_options() { +EnumValue::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValue.options) return _internal_mutable_options(); } -inline const ::google::protobuf::Option& EnumValue::options(int index) const { +inline const ::google::protobuf::Option& EnumValue::options(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.options) return _internal_options().Get(index); } -inline ::google::protobuf::Option* EnumValue::add_options() { +inline ::google::protobuf::Option* EnumValue::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND{ ::google::protobuf::Option* _add = _internal_mutable_options()->Add(); // @@protoc_insertion_point(field_add:google.protobuf.EnumValue.options) return _add; } inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >& -EnumValue::options() const { +EnumValue::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND{ // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options) return _internal_options(); } @@ -2586,7 +2623,8 @@ EnumValue::_internal_mutable_options() { inline void Option::clear_name() { _impl_.name_.ClearToEmpty(); } -inline const std::string& Option::name() const { +inline const std::string& Option::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Option.name) return _internal_name(); } @@ -2597,7 +2635,7 @@ inline PROTOBUF_ALWAYS_INLINE void Option::set_name(Arg_&& arg, _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.Option.name) } -inline std::string* Option::mutable_name() { +inline std::string* Option::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name) return _s; @@ -2637,7 +2675,7 @@ inline const ::google::protobuf::Any& Option::_internal_value() const { const ::google::protobuf::Any* p = _impl_.value_; return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Any_default_instance_); } -inline const ::google::protobuf::Any& Option::value() const { +inline const ::google::protobuf::Any& Option::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.Option.value) return _internal_value(); } @@ -2687,7 +2725,7 @@ inline ::google::protobuf::Any* Option::_internal_mutable_value() { } return _impl_.value_; } -inline ::google::protobuf::Any* Option::mutable_value() { +inline ::google::protobuf::Any* Option::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::Any* _msg = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value) return _msg; diff --git a/src/google/protobuf/wrappers.pb.h b/src/google/protobuf/wrappers.pb.h index d44bb2e4e2..43e8ae0ee9 100644 --- a/src/google/protobuf/wrappers.pb.h +++ b/src/google/protobuf/wrappers.pb.h @@ -143,10 +143,12 @@ class PROTOBUF_EXPORT DoubleValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -300,10 +302,12 @@ class PROTOBUF_EXPORT FloatValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -457,10 +461,12 @@ class PROTOBUF_EXPORT Int64Value final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -614,10 +620,12 @@ class PROTOBUF_EXPORT UInt64Value final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -771,10 +779,12 @@ class PROTOBUF_EXPORT Int32Value final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -928,10 +938,12 @@ class PROTOBUF_EXPORT UInt32Value final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -1085,10 +1097,12 @@ class PROTOBUF_EXPORT BoolValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -1242,10 +1256,12 @@ class PROTOBUF_EXPORT StringValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -1342,10 +1358,11 @@ class PROTOBUF_EXPORT StringValue final : }; // string value = 1; void clear_value() ; - const std::string& value() const; + const std::string& value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); + std::string* mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_value(); void set_allocated_value(std::string* ptr); @@ -1405,10 +1422,12 @@ class PROTOBUF_EXPORT BytesValue final : return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } @@ -1505,10 +1524,11 @@ class PROTOBUF_EXPORT BytesValue final : }; // bytes value = 1; void clear_value() ; - const std::string& value() const; + const std::string& value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND; template void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); + std::string* mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND; PROTOBUF_NODISCARD std::string* release_value(); void set_allocated_value(std::string* ptr); @@ -1724,7 +1744,8 @@ inline void BoolValue::_internal_set_value(bool value) { inline void StringValue::clear_value() { _impl_.value_.ClearToEmpty(); } -inline const std::string& StringValue::value() const { +inline const std::string& StringValue::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.StringValue.value) return _internal_value(); } @@ -1735,7 +1756,7 @@ inline PROTOBUF_ALWAYS_INLINE void StringValue::set_value(Arg_&& arg, _impl_.value_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.StringValue.value) } -inline std::string* StringValue::mutable_value() { +inline std::string* StringValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.StringValue.value) return _s; @@ -1773,7 +1794,8 @@ inline void StringValue::set_allocated_value(std::string* value) { inline void BytesValue::clear_value() { _impl_.value_.ClearToEmpty(); } -inline const std::string& BytesValue::value() const { +inline const std::string& BytesValue::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.protobuf.BytesValue.value) return _internal_value(); } @@ -1784,7 +1806,7 @@ inline PROTOBUF_ALWAYS_INLINE void BytesValue::set_value(Arg_&& arg, _impl_.value_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value) } -inline std::string* BytesValue::mutable_value() { +inline std::string* BytesValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:google.protobuf.BytesValue.value) return _s;