Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 8799032

Browse files
fix: Add client library version to headers (#2003)
* fix: Add client library version to headers fix: Allow bundlers to bundle JSON files correctly for ESM deps: Update dependency google-gax to ^4.3.1 fix: Export types from protos in ESM PiperOrigin-RevId: 609821360 Source-Link: googleapis/googleapis@5c5ecf0 Source-Link: googleapis/googleapis-gen@b875fcd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjg3NWZjZGQxNGI0ZGVmNjUyMTgyOTMwMDNkOWJlYzRiODQyZWNhNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 93ae66d commit 8799032

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

dev/protos/google/protobuf/descriptor.proto

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,16 @@ message FileOptions {
448448
// This option does nothing.
449449
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
450450

451-
// If set true, then the Java2 code generator will generate code that
452-
// throws an exception whenever an attempt is made to assign a non-UTF-8
453-
// byte sequence to a string field.
454-
// Message reflection will do the same.
455-
// However, an extension field still accepts non-UTF-8 byte sequences.
456-
// This option has no effect on when used with the lite runtime.
451+
// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
452+
// which will throw an exception if invalid UTF-8 is parsed from the wire or
453+
// assigned to a string field.
454+
//
455+
// TODO: clarify exactly what kinds of field types this option
456+
// applies to, and update these docs accordingly.
457+
//
458+
// Proto3 files already perform these checks. Setting the option explicitly to
459+
// false has no effect: it cannot be used to opt proto3 files out of UTF-8
460+
// checks.
457461
optional bool java_string_check_utf8 = 27 [default = false];
458462

459463
// Generated classes can be optimized for speed or code size.

0 commit comments

Comments
 (0)