-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/protobuf: support field_behavior "required" option
See https://google.aip.dev/203. Currently, there is support for the option `(cue.opt).required`. This is fine, but requires importing the `cue.proto`, and exposes cue to the public facing API. With this approach, the existing field behavior mechanism can be used, which is the standard way to declare a required field in proto, like: RecognitionAudio audio = 2 [(google.api.field_behavior) = REQUIRED]; Closes #2622 as merged as of commit 6974630. Signed-off-by: John Howard <howardjohn@google.com> Change-Id: Ia8079a8b148c9abe9b6fe26d090c86cb4489359a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172314 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information
1 parent
d97b0c3
commit 80b0eee
Showing
4 changed files
with
7 additions
and
4 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
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