syntax = "proto3";

package a;

message One {
  int32 one = 1 [json_name = "foo"];
  int32 two = 2 [json_name = "" ];
  int32 three = 3;
  repeated int32 four = 4 [json_name = "bar"];
  repeated int32 five = 5 [json_name = "1" ];
  repeated int32 six = 6;
  map<int32, int32> seven = 7 [json_name = "baz"];
  map<int32, int32> eight = 8 [json_name = "2" ];
  map<int32, int32> nine = 9;
}

message One2 {
  int32 one = 1 [json_name = "foo"];
  int32 two = 2 [json_name = "" ];
  int32 three = 3;
  repeated int32 four = 4 [json_name = "bar"];
  repeated int32 five = 5 [json_name = "1" ];
  repeated int32 six = 6;
  map<int32, int32> seven = 7 [json_name = "baz"];
  map<int32, int32> eight = 8 [json_name = "2" ];
  map<int32, int32> nine = 9;
}

message Two2 {
  int32 one = 1 [json_name = "foo"];
  int32 two = 2 [json_name = "" ];
  int32 three = 3;
  repeated int32 four = 4 [json_name = "bar"];
  repeated int32 five = 5 [json_name = "1" ];
  repeated int32 six = 6;
  map<int32, int32> seven = 7 [json_name = "baz"];
  map<int32, int32> eight = 8 [json_name = "2" ];
  map<int32, int32> nine = 9;
}

message Three2 {
  message Four2 {
    message Five2 {
      int32 one = 1 [json_name = "foo"];
      int32 two = 2 [json_name = "" ];
      int32 three = 3;
      repeated int32 four = 4 [json_name = "bar"];
      repeated int32 five = 5 [json_name = "1" ];
      repeated int32 six = 6;
      map<int32, int32> seven = 7 [json_name = "baz"];
      map<int32, int32> eight = 8 [json_name = "2" ];
      map<int32, int32> nine = 9;
    }
    message Six2 {
      int32 one = 1 [json_name = "foo"];
      int32 two = 2 [json_name = "" ];
      int32 three = 3;
      repeated int32 four = 4 [json_name = "bar"];
      repeated int32 five = 5 [json_name = "1" ];
      repeated int32 six = 6;
      map<int32, int32> seven = 7 [json_name = "baz"];
      map<int32, int32> eight = 8 [json_name = "2" ];
      map<int32, int32> nine = 9;
    }
  }
  message Seven2 {
    int32 one = 1 [json_name = "foo"];
    int32 two = 2 [json_name = "" ];
    int32 three = 3;
    repeated int32 four = 4 [json_name = "bar"];
    repeated int32 five = 5 [json_name = "1" ];
    repeated int32 six = 6;
    map<int32, int32> seven = 7 [json_name = "baz"];
    map<int32, int32> eight = 8 [json_name = "2" ];
    map<int32, int32> nine = 9;
  }
  message Eight2 {
    int32 one = 1 [json_name = "foo"];
    int32 two = 2 [json_name = "" ];
    int32 three = 3;
    repeated int32 four = 4 [json_name = "bar"];
    repeated int32 five = 5 [json_name = "1" ];
    repeated int32 six = 6;
    map<int32, int32> seven = 7 [json_name = "baz"];
    map<int32, int32> eight = 8 [json_name = "2" ];
    map<int32, int32> nine = 9;
  }
}

message Nine {
  oneof foo {
    int32 one = 1;
    int32 two = 2 [json_name = "bar" ];
    int32 three = 3 [json_name = "baz"];
  }
}
