aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/ut/inline_ut.proto
blob: 76bd10232dcda52dfbe679c047575baf1b7417b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import "google/protobuf/descriptor.proto";

package NProtobufJsonUt;

extend google.protobuf.FieldOptions {
  optional bool inline_test = 58253;
}

message TInlineTest {
    optional string OptJson = 1 [(inline_test) = true];
    optional string NotJson = 2;
    repeated string RepJson = 3 [(inline_test) = true];

    message TInner {
        repeated uint32 Number = 1;
        optional string InnerJson = 2 [(inline_test) = true];
    }
    optional TInner Inner = 4;
}

message TInlineTestDefaultValues {
    optional string OptJson = 1 [(inline_test) = true, default = "{\"default\":1}"];
    optional uint32 Number = 2;
    repeated string RepJson = 3 [(inline_test) = true];
    message TInner {
        optional string OptJson = 1 [(inline_test) = true, default = "{\"default\":2}"];
    }
    optional TInner Inner = 4;
}