unittest_extras_xmltest.proto 1.05 KB
Newer Older
1 2 3
syntax = "proto2";

option csharp_namespace = "Google.ProtocolBuffers.TestProtos";
4 5 6 7 8 9

package protobuf_unittest_extra;

option optimize_for = SPEED;

enum EnumOptions {
csharptest's avatar
csharptest committed
10 11 12
  ONE = 0;
  TWO = 1;
  THREE = 2;
13 14
}

csharptest's avatar
csharptest committed
15 16 17
message TestXmlChild {
  repeated EnumOptions options = 3;
  optional bytes binary = 4;
18 19 20 21 22 23
}

message TestXmlNoFields {
}

message TestXmlRescursive {
csharptest's avatar
csharptest committed
24
  optional TestXmlRescursive child = 1;
25 26 27 28
}

message TestXmlMessage {

csharptest's avatar
csharptest committed
29 30 31 32 33 34 35 36 37 38 39 40 41
  optional int64 number = 6;
  repeated int32 numbers = 2;
  optional string text = 3;
  repeated string textlines = 700;
  optional bool valid = 5;

  optional TestXmlChild child = 1;
  repeated group Children = 401 {
    repeated EnumOptions options = 3;
    optional bytes binary = 4;
  }

extensions 100 to 199;
42 43 44 45 46
}

message  TestXmlExtension {
  required int32 number = 1;
}
csharptest's avatar
csharptest committed
47

48 49 50 51 52 53
extend TestXmlMessage {
  optional EnumOptions extension_enum = 101;
  optional string extension_text = 102;
  repeated int32 extension_number = 103 [packed = true];
  optional TestXmlExtension extension_message = 199;
}