From 33f367d2ba74b901387fbcb98400b76b26df91c9 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Wed, 6 Mar 2024 18:26:18 +0000 Subject: [PATCH] Auto-generate files after cl/613258771 --- php/ext/google/protobuf/php-upb.h | 4 ++++ ruby/ext/google/protobuf_c/ruby-upb.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/php/ext/google/protobuf/php-upb.h b/php/ext/google/protobuf/php-upb.h index e74bd68f63c8..961e489f7ff0 100644 --- a/php/ext/google/protobuf/php-upb.h +++ b/php/ext/google/protobuf/php-upb.h @@ -3380,6 +3380,10 @@ upb_Message_GetString(const upb_Message* msg, const upb_MiniTableField* field, return upb_Message_GetField(msg, field, def).str_val; } +// Sets the value of a `string` or `bytes` field. The bytes of the value are not +// copied, so it is the caller's responsibility to ensure that they remain valid +// for the lifetime of `msg`. That might be done by copying them into the given +// arena, or by fusing that arena with the arena the bytes live in, for example. UPB_API_INLINE bool upb_Message_SetString(upb_Message* msg, const upb_MiniTableField* field, upb_StringView value, upb_Arena* a) { diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index 512a8224260d..34b8689f2ec4 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h @@ -3382,6 +3382,10 @@ upb_Message_GetString(const upb_Message* msg, const upb_MiniTableField* field, return upb_Message_GetField(msg, field, def).str_val; } +// Sets the value of a `string` or `bytes` field. The bytes of the value are not +// copied, so it is the caller's responsibility to ensure that they remain valid +// for the lifetime of `msg`. That might be done by copying them into the given +// arena, or by fusing that arena with the arena the bytes live in, for example. UPB_API_INLINE bool upb_Message_SetString(upb_Message* msg, const upb_MiniTableField* field, upb_StringView value, upb_Arena* a) {