inline_ut.proto 832 B

1234567891011121314151617181920212223242526272829
  1. import "google/protobuf/descriptor.proto";
  2. package NProtobufJsonUt;
  3. extend google.protobuf.FieldOptions {
  4. optional bool inline_test = 58253;
  5. }
  6. message TInlineTest {
  7. optional string OptJson = 1 [(inline_test) = true];
  8. optional string NotJson = 2;
  9. repeated string RepJson = 3 [(inline_test) = true];
  10. message TInner {
  11. repeated uint32 Number = 1;
  12. optional string InnerJson = 2 [(inline_test) = true];
  13. }
  14. optional TInner Inner = 4;
  15. }
  16. message TInlineTestDefaultValues {
  17. optional string OptJson = 1 [(inline_test) = true, default = "{\"default\":1}"];
  18. optional uint32 Number = 2;
  19. repeated string RepJson = 3 [(inline_test) = true];
  20. message TInner {
  21. optional string OptJson = 1 [(inline_test) = true, default = "{\"default\":2}"];
  22. }
  23. optional TInner Inner = 4;
  24. }