Skip to content

Supports message creation with populated fields in CelLiteRuntime. - #1462

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1018704683
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1018704683

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Supports message creation with populated fields in CelLiteRuntime.

TestAllTypes{single_int32: 4} failed with "Message creation with prepopulated fields is not supported yet", and now evaluates to the populated message.

Also fixes unwrapping google.protobuf.UInt32Value values of 2^31 or more, resolving well-known type literals without a type provider, and which field wins when a literal sets several fields of one oneof. Signed ints are no longer accepted for unsigned wrapper fields (TestAllTypes{single_uint64_wrapper: dyn(-1)} set the field to 18446744073709551615u, and now fails), and int32/uint32 range checks are now shared with the full runtime.

`TestAllTypes{single_int32: 4}` failed with "Message creation with prepopulated fields is not supported yet", and now evaluates to the populated message.

Also fixes unwrapping `google.protobuf.UInt32Value` values of 2^31 or more, resolving well-known type literals without a type provider, and which field wins when a literal sets several fields of one oneof. Signed ints are no longer accepted for unsigned wrapper fields (`TestAllTypes{single_uint64_wrapper: dyn(-1)}` set the field to 18446744073709551615u, and now fails), and int32/uint32 range checks are now shared with the full runtime.

PiperOrigin-RevId: 1018704683
@copybara-service copybara-service Bot changed the title No public description Supports message creation with populated fields in CelLiteRuntime. Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant