unittest_extras_xmltest.proto 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import "google/protobuf/csharp_options.proto";
  2. option (google.protobuf.csharp_file_options).namespace = "Google.ProtocolBuffers.TestProtos";
  3. option (google.protobuf.csharp_file_options).umbrella_classname = "UnitTestXmlSerializerTestProtoFile";
  4. option (google.protobuf.csharp_file_options).add_serializable = true;
  5. package protobuf_unittest_extra;
  6. option optimize_for = SPEED;
  7. enum EnumOptions {
  8. ONE = 0;
  9. TWO = 1;
  10. THREE = 2;
  11. }
  12. message TestXmlChild {
  13. repeated EnumOptions options = 3;
  14. optional bytes binary = 4;
  15. }
  16. message TestXmlNoFields {
  17. }
  18. message TestXmlRescursive {
  19. optional TestXmlRescursive child = 1;
  20. }
  21. message TestXmlMessage {
  22. optional int64 number = 6;
  23. repeated int32 numbers = 2;
  24. optional string text = 3;
  25. repeated string textlines = 700;
  26. optional bool valid = 5;
  27. optional TestXmlChild child = 1;
  28. repeated group Children = 401 {
  29. repeated EnumOptions options = 3;
  30. optional bytes binary = 4;
  31. }
  32. extensions 100 to 199;
  33. }
  34. message TestXmlExtension {
  35. required int32 number = 1;
  36. }
  37. extend TestXmlMessage {
  38. optional EnumOptions extension_enum = 101;
  39. optional string extension_text = 102;
  40. repeated int32 extension_number = 103 [packed = true];
  41. optional TestXmlExtension extension_message = 199;
  42. }