-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bigquery/storage/managedwriter): improve proto3 normalization (#…
…6082) * feat(bigquery/storage/managedwriter): improve proto3 normalization This PR does mildly alarming things in the service of enabling proto3 support for users. NormalizeDescriptor will now handle altering a proto3 descriptor to an equivalent behavior using proto2. In the case of proto3 where field presence isn't used (e.g. no optional keyword), normalization uses the ability in proto2 to set optional defaults to mimic the proto3 behavior where scalar types are the default type value (0 for numerics, empty string for strings/bytes, and first defined enum value for enums). This doesn't, however, completely enable proto3 support. We still need to enable the backend to deal properly with the well-known wrapper types, which is also work in flight with the backend.
- Loading branch information
Showing
3 changed files
with
223 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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