Created
June 29, 2020 15:06
-
-
Save jhump/96a5d3973ea80adcc0ea0eb3f8b1527b to your computer and use it in GitHub Desktop.
Example descriptor options
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
syntax = "proto3"; | |
package fs.auth; | |
import "fs/shared/flags/flags.proto"; | |
import "google/protobuf/descriptor.proto"; | |
extend google.protobuf.MethodOptions { | |
repeated fs.flags.Flag required_flags = 20000; | |
// force people to explicitly declare if they really want | |
// to allow callers with no permissions, to guard against | |
// people just forgetting to set required flags | |
bool allow_no_flags = 20001; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment