github.com/jhump/protoreflect@v1.16.0/desc/protoprint/testfiles/test-unrecognized-options.proto (about) 1 syntax = "proto3"; 2 3 import "google/protobuf/descriptor.proto"; 4 5 message Test { 6 } 7 8 message Foo { 9 repeated Bar bar = 1; 10 11 message Bar { 12 Baz baz = 1; 13 14 string name = 2; 15 } 16 17 enum Baz { 18 ZERO = 0; 19 20 FROB = 1; 21 22 NITZ = 2; 23 } 24 } 25 26 service TestService { 27 rpc Get ( Test ) returns ( Test ) { 28 option (foo) = { 29 bar: [ 30 { baz: FROB, name: "abc" }, 31 { baz: NITZ, name: "xyz" } 32 ] 33 }; 34 } 35 } 36 37 extend google.protobuf.MethodOptions { 38 Foo foo = 54321; 39 }