Repository navigation
Add the CelIp opaque value representation (net.IP) to support the CEL network extension library (cel.lib.ext.network) in Java with parity against cel-go and cel-spec. - #1483
Open
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
test_1024996980
branch
from
November 19, 2026 02:53
124451b to
70db44a
Compare
… CEL network extension library (`cel.lib.ext.network`) in Java with parity against `cel-go` and `cel-spec`. `CelIp` extends `OpaqueValue` directly using immutable primitive fields for Java 8, ErrorProne `@Immutable` and `@CheckReturnValue`, and Android (`CelLiteRuntime`) compatibility without external networking dependencies. Parsing enforces strict `netip` and RFC 4291 rules (rejecting leading zeros in IPv4 octets, zone identifiers, and IPv4-mapped IPv6 addresses) and formats canonical strings per RFC 5952. Also register `net.IP` in `DefaultTypeProvider` and resolve `CelValue` type names in `TypeResolver.resolveTypeName` so opaque type identifiers and runtime error diagnostics report `net.IP`. PiperOrigin-RevId: 1024996980
copybara-service
Bot
force-pushed
the
test_1024996980
branch
from
November 19, 2026 20:58
70db44a to
00dc80b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
CelIpopaque value representation (net.IP) to support the CEL network extension library (cel.lib.ext.network) in Java with parity againstcel-goandcel-spec.CelIpextendsOpaqueValuedirectly using immutable primitive fields for Java 8, ErrorProne@Immutableand@CheckReturnValue, and Android (CelLiteRuntime) compatibility without external networking dependencies. Parsing enforces strictnetipand RFC 4291 rules (rejecting leading zeros in IPv4 octets, zone identifiers, and IPv4-mapped IPv6 addresses) and formats canonical strings per RFC 5952. Also registernet.IPinDefaultTypeProviderand resolveCelValuetype names inTypeResolver.resolveTypeNameso opaque type identifiers and runtime error diagnostics reportnet.IP.