Auto-generate files after cl/613258771

pull/16060/head
Protobuf Team Bot 11 months ago
parent 6cbcff4bb6
commit 33f367d2ba
  1. 4
      php/ext/google/protobuf/php-upb.h
  2. 4
      ruby/ext/google/protobuf_c/ruby-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) {

@ -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) {

Loading…
Cancel
Save