github.com/bakjos/protoreflect@v1.9.2/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) = { bar:<baz:FROB name:"abc"> bar:<baz:NITZ name:"xyz"> };
    29    }
    30  }
    31  
    32  extend google.protobuf.MethodOptions {
    33    Foo foo = 54321;
    34  }