Skip to content

Commit

Permalink
Auto-generate files after cl/613258771
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Mar 6, 2024
1 parent 6cbcff4 commit 33f367d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions php/ext/google/protobuf/php-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions ruby/ext/google/protobuf_c/ruby-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 33f367d

Please sign in to comment.