File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # proto-file: google/api/expr/checked.proto
2+ # proto-message: CheckedExpr
3+ # has({"key 1": "value 1", "key 2": "value 2", "example_string": "value 3"}.example_string)
4+ type_map {
5+ key: 2
6+ value {
7+ map_type {
8+ key_type {
9+ primitive: STRING
10+ }
11+ value_type {
12+ primitive: STRING
13+ }
14+ }
15+ }
16+ }
17+ type_map {
18+ key: 4
19+ value {
20+ primitive: STRING
21+ }
22+ }
23+ type_map {
24+ key: 5
25+ value {
26+ primitive: STRING
27+ }
28+ }
29+ type_map {
30+ key: 7
31+ value {
32+ primitive: STRING
33+ }
34+ }
35+ type_map {
36+ key: 8
37+ value {
38+ primitive: STRING
39+ }
40+ }
41+ type_map {
42+ key: 10
43+ value {
44+ primitive: STRING
45+ }
46+ }
47+ type_map {
48+ key: 11
49+ value {
50+ primitive: STRING
51+ }
52+ }
53+ type_map {
54+ key: 13
55+ value {
56+ primitive: BOOL
57+ }
58+ }
59+ expr {
60+ id: 13
61+ select_expr {
62+ operand {
63+ id: 2
64+ struct_expr {
65+ entries {
66+ id: 3
67+ map_key {
68+ id: 4
69+ const_expr {
70+ string_value: " key 1"
71+ }
72+ }
73+ value {
74+ id: 5
75+ const_expr {
76+ string_value: " value 1"
77+ }
78+ }
79+ }
80+ entries {
81+ id: 6
82+ map_key {
83+ id: 7
84+ const_expr {
85+ string_value: " key 2"
86+ }
87+ }
88+ value {
89+ id: 8
90+ const_expr {
91+ string_value: " value 2"
92+ }
93+ }
94+ }
95+ entries {
96+ id: 9
97+ map_key {
98+ id: 10
99+ const_expr {
100+ string_value: " example_string"
101+ }
102+ }
103+ value {
104+ id: 11
105+ const_expr {
106+ string_value: " value 3"
107+ }
108+ }
109+ }
110+ }
111+ }
112+ field: " example_string"
113+ test_only: true
114+ }
115+ }
116+ source_info {
117+ location: " <expression>"
118+ line_offsets: 90
119+ positions {
120+ key: 2
121+ value: 4
122+ }
123+ positions {
124+ key: 3
125+ value: 12
126+ }
127+ positions {
128+ key: 4
129+ value: 5
130+ }
131+ positions {
132+ key: 5
133+ value: 14
134+ }
135+ positions {
136+ key: 6
137+ value: 32
138+ }
139+ positions {
140+ key: 7
141+ value: 25
142+ }
143+ positions {
144+ key: 8
145+ value: 34
146+ }
147+ positions {
148+ key: 9
149+ value: 61
150+ }
151+ positions {
152+ key: 10
153+ value: 45
154+ }
155+ positions {
156+ key: 11
157+ value: 63
158+ }
159+ positions {
160+ key: 12
161+ value: 73
162+ }
163+ positions {
164+ key: 13
165+ value: 3
166+ }
167+ }
Original file line number Diff line number Diff line change 1+ # proto-file: google/api/expr/checked.proto
2+ # proto-message: CheckedExpr
3+ # Renumbered version of map starting from 52.
4+ # has({"key 1": "value 1", "key 2": "value 2", "example_string": "value 3"}.example_string)
5+ type_map {
6+ key: 52
7+ value {
8+ primitive: STRING
9+ }
10+ }
11+ type_map {
12+ key: 53
13+ value {
14+ primitive: STRING
15+ }
16+ }
17+ type_map {
18+ key: 54
19+ value {
20+ primitive: STRING
21+ }
22+ }
23+ type_map {
24+ key: 55
25+ value {
26+ primitive: STRING
27+ }
28+ }
29+ type_map {
30+ key: 56
31+ value {
32+ primitive: STRING
33+ }
34+ }
35+ type_map {
36+ key: 57
37+ value {
38+ primitive: STRING
39+ }
40+ }
41+ type_map {
42+ key: 58
43+ value {
44+ map_type {
45+ key_type {
46+ primitive: STRING
47+ }
48+ value_type {
49+ primitive: STRING
50+ }
51+ }
52+ }
53+ }
54+ type_map {
55+ key: 62
56+ value {
57+ primitive: BOOL
58+ }
59+ }
60+ expr {
61+ id: 62
62+ select_expr {
63+ operand {
64+ id: 58
65+ struct_expr {
66+ entries {
67+ id: 59
68+ map_key {
69+ id: 52
70+ const_expr {
71+ string_value: " key 1"
72+ }
73+ }
74+ value {
75+ id: 53
76+ const_expr {
77+ string_value: " value 1"
78+ }
79+ }
80+ }
81+ entries {
82+ id: 60
83+ map_key {
84+ id: 54
85+ const_expr {
86+ string_value: " key 2"
87+ }
88+ }
89+ value {
90+ id: 55
91+ const_expr {
92+ string_value: " value 2"
93+ }
94+ }
95+ }
96+ entries {
97+ id: 61
98+ map_key {
99+ id: 56
100+ const_expr {
101+ string_value: " example_string"
102+ }
103+ }
104+ value {
105+ id: 57
106+ const_expr {
107+ string_value: " value 3"
108+ }
109+ }
110+ }
111+ }
112+ }
113+ field: " example_string"
114+ test_only: true
115+ }
116+ }
117+ source_info {
118+ location: " <expression>"
119+ line_offsets: 90
120+ positions {
121+ key: 52
122+ value: 5
123+ }
124+ positions {
125+ key: 53
126+ value: 14
127+ }
128+ positions {
129+ key: 54
130+ value: 25
131+ }
132+ positions {
133+ key: 55
134+ value: 34
135+ }
136+ positions {
137+ key: 56
138+ value: 45
139+ }
140+ positions {
141+ key: 57
142+ value: 63
143+ }
144+ positions {
145+ key: 58
146+ value: 4
147+ }
148+ positions {
149+ key: 59
150+ value: 12
151+ }
152+ positions {
153+ key: 60
154+ value: 32
155+ }
156+ positions {
157+ key: 61
158+ value: 61
159+ }
160+ positions {
161+ key: 62
162+ value: 3
163+ }
164+ positions {
165+ key: 63
166+ value: 73
167+ }
168+ }
You can’t perform that action at this time.
0 commit comments