Skip to content

Commit a53fde7

Browse files
Soy Authorscopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 862774059
1 parent 06dbf07 commit a53fde7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/main/protobuf/template_metadata.proto

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,40 +66,49 @@ message SoyTypeP {
6666
VE_DATA = 14;
6767
GBIGINT = 16;
6868
}
69+
6970
message LiteralTypeP {
7071
oneof value {
7172
// Currently only string literals supported.
7273
string string_value = 1;
7374
}
7475
}
76+
7577
message HtmlTypeP {
7678
bool is_element = 1;
7779
string tag_name = 4;
7880
bool allow_extra_attributes = 2;
7981
repeated string reserved_attributes = 3;
8082
}
83+
8184
message RecordTypeP {
8285
repeated RecordMemberP members = 1;
8386
}
87+
8488
message RecordMemberP {
8589
string name = 1;
8690
bool optional = 2;
8791
SoyTypeP type = 3;
8892
}
93+
8994
message LegacyObjectMapTypeP {
9095
SoyTypeP key = 1;
9196
SoyTypeP value = 2;
9297
}
98+
9399
message MapTypeP {
94100
SoyTypeP key = 1;
95101
SoyTypeP value = 2;
96102
}
103+
97104
message UnionTypeP {
98105
repeated SoyTypeP member = 1;
99106
}
107+
100108
message IntersectionTypeP {
101109
repeated SoyTypeP member = 1;
102110
}
111+
103112
message TemplateTypeP {
104113
repeated ParameterP parameter = 3;
105114
SoyTypeP return_type = 4;
@@ -110,33 +119,41 @@ message SoyTypeP {
110119

111120
reserved 1, 2;
112121
}
122+
113123
message NamedTypeP {
114124
string name = 1;
115125
string namespace = 2;
116126
}
127+
117128
message IndexedTypeP {
118129
SoyTypeP type = 1;
119130
SoyTypeP property = 2;
120131
}
132+
121133
message PickTypeP {
122134
SoyTypeP type = 1;
123135
SoyTypeP keys = 2;
124136
}
137+
125138
message OmitTypeP {
126139
SoyTypeP type = 1;
127140
SoyTypeP keys = 2;
128141
}
142+
129143
message ExcludeTypeP {
130144
SoyTypeP type = 1;
131145
SoyTypeP excluded_types = 2;
132146
}
147+
133148
message ExtractTypeP {
134149
SoyTypeP type = 1;
135150
SoyTypeP extracted_types = 2;
136151
}
152+
137153
message NonNullableTypeP {
138154
SoyTypeP type = 1;
139155
}
156+
140157
// discriminated union of the different type categories
141158
oneof TypeKind {
142159
PrimitiveTypeP primitive = 1;
@@ -219,7 +236,6 @@ message JavaImplP {
219236
MethodType method_type = 5;
220237
}
221238

222-
// A single declared template parameter
223239
message ParameterP {
224240
enum KindP {
225241
DEFAULT = 0;

0 commit comments

Comments
 (0)