@dcl/protocol 1.0.0-4427886959.commit-6b9dcb5 → 1.0.0-4440731539.commit-a2174f5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/out-js/decentraland/common/border_rect.gen.d.ts +54 -0
  2. package/out-js/decentraland/common/border_rect.gen.js +87 -0
  3. package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
  4. package/out-js/decentraland/common/colors.gen.d.ts +82 -0
  5. package/out-js/decentraland/common/colors.gen.js +152 -0
  6. package/out-js/decentraland/common/colors.gen.js.map +1 -0
  7. package/out-js/decentraland/common/texture.gen.d.ts +319 -0
  8. package/out-js/decentraland/common/texture.gen.js +384 -0
  9. package/out-js/decentraland/common/texture.gen.js.map +1 -0
  10. package/out-js/decentraland/sdk/components/animator.gen.d.ts +184 -0
  11. package/out-js/decentraland/sdk/components/animator.gen.js +172 -0
  12. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
  13. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +74 -0
  14. package/out-js/decentraland/sdk/components/audio_source.gen.js +96 -0
  15. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
  16. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +56 -0
  17. package/out-js/decentraland/sdk/components/audio_stream.gen.js +78 -0
  18. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
  19. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +65 -0
  20. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +115 -0
  21. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
  22. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +100 -0
  23. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +137 -0
  24. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
  25. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +192 -0
  26. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +210 -0
  27. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  28. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +59 -0
  29. package/out-js/decentraland/sdk/components/billboard.gen.js +114 -0
  30. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +44 -0
  32. package/out-js/decentraland/sdk/components/camera_mode.gen.js +59 -0
  33. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  34. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +84 -0
  35. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +71 -0
  36. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  37. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +8 -0
  38. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +39 -0
  39. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  40. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  41. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  42. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  43. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +20 -0
  44. package/out-js/decentraland/sdk/components/common/input_action.gen.js +111 -0
  45. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  46. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  47. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  48. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  49. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +45 -0
  50. package/out-js/decentraland/sdk/components/gltf_container.gen.js +58 -0
  51. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  52. package/out-js/decentraland/sdk/components/material.gen.d.ts +3452 -0
  53. package/out-js/decentraland/sdk/components/material.gen.js +437 -0
  54. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  55. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +250 -0
  56. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +324 -0
  57. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  58. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +284 -0
  59. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +320 -0
  60. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  61. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +114 -0
  62. package/out-js/decentraland/sdk/components/nft_shape.gen.js +242 -0
  63. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  64. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +249 -0
  65. package/out-js/decentraland/sdk/components/pointer_events.gen.js +248 -0
  66. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  67. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +241 -0
  68. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +99 -0
  69. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  70. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +43 -0
  71. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +58 -0
  72. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  73. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +118 -0
  74. package/out-js/decentraland/sdk/components/raycast.gen.js +127 -0
  75. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  76. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +536 -0
  77. package/out-js/decentraland/sdk/components/raycast_result.gen.js +243 -0
  78. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  79. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +247 -0
  80. package/out-js/decentraland/sdk/components/text_shape.gen.js +274 -0
  81. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  82. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +369 -0
  83. package/out-js/decentraland/sdk/components/ui_background.gen.js +175 -0
  84. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  85. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +115 -0
  86. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +152 -0
  87. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  88. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +38 -0
  89. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +58 -0
  90. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  91. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +140 -0
  92. package/out-js/decentraland/sdk/components/ui_input.gen.js +140 -0
  93. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  94. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +38 -0
  95. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +58 -0
  96. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  97. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +95 -0
  98. package/out-js/decentraland/sdk/components/ui_text.gen.js +101 -0
  99. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  100. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +403 -0
  101. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1000 -0
  102. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  103. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +69 -0
  104. package/out-js/decentraland/sdk/components/video_player.gen.js +112 -0
  105. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  106. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
  107. package/out-js/decentraland/sdk/components/visibility_component.gen.js +58 -0
  108. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  109. package/out-js/google/protobuf/descriptor.gen.d.ts +87384 -0
  110. package/out-js/google/protobuf/descriptor.gen.js +2645 -0
  111. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  112. package/out-js/sdk-components.gen.d.ts +1 -0
  113. package/out-js/sdk-components.gen.js +6 -0
  114. package/out-js/sdk-components.gen.js.map +1 -0
  115. package/out-ts/decentraland/common/border_rect.gen.ts +108 -0
  116. package/out-ts/decentraland/common/colors.gen.ts +184 -0
  117. package/out-ts/decentraland/common/texture.gen.ts +454 -0
  118. package/out-ts/decentraland/sdk/components/animator.gen.ts +229 -0
  119. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +141 -0
  120. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +109 -0
  121. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +147 -0
  122. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +172 -0
  123. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +288 -0
  124. package/out-ts/decentraland/sdk/components/billboard.gen.ts +140 -0
  125. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +81 -0
  126. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +106 -0
  127. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +36 -0
  128. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  129. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +108 -0
  130. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  131. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +82 -0
  132. package/out-ts/decentraland/sdk/components/material.gen.ts +546 -0
  133. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +403 -0
  134. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +395 -0
  135. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +275 -0
  136. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +316 -0
  137. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +124 -0
  138. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +80 -0
  139. package/out-ts/decentraland/sdk/components/raycast.gen.ts +159 -0
  140. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +315 -0
  141. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +385 -0
  142. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +199 -0
  143. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +194 -0
  144. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +75 -0
  145. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +182 -0
  146. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +75 -0
  147. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +140 -0
  148. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1104 -0
  149. package/out-ts/decentraland/sdk/components/video_player.gen.ts +148 -0
  150. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +76 -0
  151. package/out-ts/google/protobuf/descriptor.gen.ts +2961 -0
  152. package/out-ts/sdk-components.gen.ts +3 -0
  153. package/package.json +2 -2
  154. package/public/sdk-components.proto +33 -0
@@ -0,0 +1,1104 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.sdk.components";
5
+
6
+ export enum YGPositionType {
7
+ YGPT_RELATIVE = 0,
8
+ YGPT_ABSOLUTE = 1,
9
+ UNRECOGNIZED = -1,
10
+ }
11
+
12
+ export function yGPositionTypeFromJSON(object: any): YGPositionType {
13
+ switch (object) {
14
+ case 0:
15
+ case "YGPT_RELATIVE":
16
+ return YGPositionType.YGPT_RELATIVE;
17
+ case 1:
18
+ case "YGPT_ABSOLUTE":
19
+ return YGPositionType.YGPT_ABSOLUTE;
20
+ case -1:
21
+ case "UNRECOGNIZED":
22
+ default:
23
+ return YGPositionType.UNRECOGNIZED;
24
+ }
25
+ }
26
+
27
+ export function yGPositionTypeToJSON(object: YGPositionType): string {
28
+ switch (object) {
29
+ case YGPositionType.YGPT_RELATIVE:
30
+ return "YGPT_RELATIVE";
31
+ case YGPositionType.YGPT_ABSOLUTE:
32
+ return "YGPT_ABSOLUTE";
33
+ case YGPositionType.UNRECOGNIZED:
34
+ default:
35
+ return "UNRECOGNIZED";
36
+ }
37
+ }
38
+
39
+ export enum YGAlign {
40
+ YGA_AUTO = 0,
41
+ YGA_FLEX_START = 1,
42
+ YGA_CENTER = 2,
43
+ YGA_FLEX_END = 3,
44
+ YGA_STRETCH = 4,
45
+ YGA_BASELINE = 5,
46
+ YGA_SPACE_BETWEEN = 6,
47
+ YGA_SPACE_AROUND = 7,
48
+ UNRECOGNIZED = -1,
49
+ }
50
+
51
+ export function yGAlignFromJSON(object: any): YGAlign {
52
+ switch (object) {
53
+ case 0:
54
+ case "YGA_AUTO":
55
+ return YGAlign.YGA_AUTO;
56
+ case 1:
57
+ case "YGA_FLEX_START":
58
+ return YGAlign.YGA_FLEX_START;
59
+ case 2:
60
+ case "YGA_CENTER":
61
+ return YGAlign.YGA_CENTER;
62
+ case 3:
63
+ case "YGA_FLEX_END":
64
+ return YGAlign.YGA_FLEX_END;
65
+ case 4:
66
+ case "YGA_STRETCH":
67
+ return YGAlign.YGA_STRETCH;
68
+ case 5:
69
+ case "YGA_BASELINE":
70
+ return YGAlign.YGA_BASELINE;
71
+ case 6:
72
+ case "YGA_SPACE_BETWEEN":
73
+ return YGAlign.YGA_SPACE_BETWEEN;
74
+ case 7:
75
+ case "YGA_SPACE_AROUND":
76
+ return YGAlign.YGA_SPACE_AROUND;
77
+ case -1:
78
+ case "UNRECOGNIZED":
79
+ default:
80
+ return YGAlign.UNRECOGNIZED;
81
+ }
82
+ }
83
+
84
+ export function yGAlignToJSON(object: YGAlign): string {
85
+ switch (object) {
86
+ case YGAlign.YGA_AUTO:
87
+ return "YGA_AUTO";
88
+ case YGAlign.YGA_FLEX_START:
89
+ return "YGA_FLEX_START";
90
+ case YGAlign.YGA_CENTER:
91
+ return "YGA_CENTER";
92
+ case YGAlign.YGA_FLEX_END:
93
+ return "YGA_FLEX_END";
94
+ case YGAlign.YGA_STRETCH:
95
+ return "YGA_STRETCH";
96
+ case YGAlign.YGA_BASELINE:
97
+ return "YGA_BASELINE";
98
+ case YGAlign.YGA_SPACE_BETWEEN:
99
+ return "YGA_SPACE_BETWEEN";
100
+ case YGAlign.YGA_SPACE_AROUND:
101
+ return "YGA_SPACE_AROUND";
102
+ case YGAlign.UNRECOGNIZED:
103
+ default:
104
+ return "UNRECOGNIZED";
105
+ }
106
+ }
107
+
108
+ export enum YGUnit {
109
+ YGU_UNDEFINED = 0,
110
+ YGU_POINT = 1,
111
+ YGU_PERCENT = 2,
112
+ YGU_AUTO = 3,
113
+ UNRECOGNIZED = -1,
114
+ }
115
+
116
+ export function yGUnitFromJSON(object: any): YGUnit {
117
+ switch (object) {
118
+ case 0:
119
+ case "YGU_UNDEFINED":
120
+ return YGUnit.YGU_UNDEFINED;
121
+ case 1:
122
+ case "YGU_POINT":
123
+ return YGUnit.YGU_POINT;
124
+ case 2:
125
+ case "YGU_PERCENT":
126
+ return YGUnit.YGU_PERCENT;
127
+ case 3:
128
+ case "YGU_AUTO":
129
+ return YGUnit.YGU_AUTO;
130
+ case -1:
131
+ case "UNRECOGNIZED":
132
+ default:
133
+ return YGUnit.UNRECOGNIZED;
134
+ }
135
+ }
136
+
137
+ export function yGUnitToJSON(object: YGUnit): string {
138
+ switch (object) {
139
+ case YGUnit.YGU_UNDEFINED:
140
+ return "YGU_UNDEFINED";
141
+ case YGUnit.YGU_POINT:
142
+ return "YGU_POINT";
143
+ case YGUnit.YGU_PERCENT:
144
+ return "YGU_PERCENT";
145
+ case YGUnit.YGU_AUTO:
146
+ return "YGU_AUTO";
147
+ case YGUnit.UNRECOGNIZED:
148
+ default:
149
+ return "UNRECOGNIZED";
150
+ }
151
+ }
152
+
153
+ export enum YGFlexDirection {
154
+ YGFD_ROW = 0,
155
+ YGFD_COLUMN = 1,
156
+ YGFD_COLUMN_REVERSE = 2,
157
+ YGFD_ROW_REVERSE = 3,
158
+ UNRECOGNIZED = -1,
159
+ }
160
+
161
+ export function yGFlexDirectionFromJSON(object: any): YGFlexDirection {
162
+ switch (object) {
163
+ case 0:
164
+ case "YGFD_ROW":
165
+ return YGFlexDirection.YGFD_ROW;
166
+ case 1:
167
+ case "YGFD_COLUMN":
168
+ return YGFlexDirection.YGFD_COLUMN;
169
+ case 2:
170
+ case "YGFD_COLUMN_REVERSE":
171
+ return YGFlexDirection.YGFD_COLUMN_REVERSE;
172
+ case 3:
173
+ case "YGFD_ROW_REVERSE":
174
+ return YGFlexDirection.YGFD_ROW_REVERSE;
175
+ case -1:
176
+ case "UNRECOGNIZED":
177
+ default:
178
+ return YGFlexDirection.UNRECOGNIZED;
179
+ }
180
+ }
181
+
182
+ export function yGFlexDirectionToJSON(object: YGFlexDirection): string {
183
+ switch (object) {
184
+ case YGFlexDirection.YGFD_ROW:
185
+ return "YGFD_ROW";
186
+ case YGFlexDirection.YGFD_COLUMN:
187
+ return "YGFD_COLUMN";
188
+ case YGFlexDirection.YGFD_COLUMN_REVERSE:
189
+ return "YGFD_COLUMN_REVERSE";
190
+ case YGFlexDirection.YGFD_ROW_REVERSE:
191
+ return "YGFD_ROW_REVERSE";
192
+ case YGFlexDirection.UNRECOGNIZED:
193
+ default:
194
+ return "UNRECOGNIZED";
195
+ }
196
+ }
197
+
198
+ export enum YGWrap {
199
+ YGW_NO_WRAP = 0,
200
+ YGW_WRAP = 1,
201
+ YGW_WRAP_REVERSE = 2,
202
+ UNRECOGNIZED = -1,
203
+ }
204
+
205
+ export function yGWrapFromJSON(object: any): YGWrap {
206
+ switch (object) {
207
+ case 0:
208
+ case "YGW_NO_WRAP":
209
+ return YGWrap.YGW_NO_WRAP;
210
+ case 1:
211
+ case "YGW_WRAP":
212
+ return YGWrap.YGW_WRAP;
213
+ case 2:
214
+ case "YGW_WRAP_REVERSE":
215
+ return YGWrap.YGW_WRAP_REVERSE;
216
+ case -1:
217
+ case "UNRECOGNIZED":
218
+ default:
219
+ return YGWrap.UNRECOGNIZED;
220
+ }
221
+ }
222
+
223
+ export function yGWrapToJSON(object: YGWrap): string {
224
+ switch (object) {
225
+ case YGWrap.YGW_NO_WRAP:
226
+ return "YGW_NO_WRAP";
227
+ case YGWrap.YGW_WRAP:
228
+ return "YGW_WRAP";
229
+ case YGWrap.YGW_WRAP_REVERSE:
230
+ return "YGW_WRAP_REVERSE";
231
+ case YGWrap.UNRECOGNIZED:
232
+ default:
233
+ return "UNRECOGNIZED";
234
+ }
235
+ }
236
+
237
+ export enum YGJustify {
238
+ YGJ_FLEX_START = 0,
239
+ YGJ_CENTER = 1,
240
+ YGJ_FLEX_END = 2,
241
+ YGJ_SPACE_BETWEEN = 3,
242
+ YGJ_SPACE_AROUND = 4,
243
+ YGJ_SPACE_EVENLY = 5,
244
+ UNRECOGNIZED = -1,
245
+ }
246
+
247
+ export function yGJustifyFromJSON(object: any): YGJustify {
248
+ switch (object) {
249
+ case 0:
250
+ case "YGJ_FLEX_START":
251
+ return YGJustify.YGJ_FLEX_START;
252
+ case 1:
253
+ case "YGJ_CENTER":
254
+ return YGJustify.YGJ_CENTER;
255
+ case 2:
256
+ case "YGJ_FLEX_END":
257
+ return YGJustify.YGJ_FLEX_END;
258
+ case 3:
259
+ case "YGJ_SPACE_BETWEEN":
260
+ return YGJustify.YGJ_SPACE_BETWEEN;
261
+ case 4:
262
+ case "YGJ_SPACE_AROUND":
263
+ return YGJustify.YGJ_SPACE_AROUND;
264
+ case 5:
265
+ case "YGJ_SPACE_EVENLY":
266
+ return YGJustify.YGJ_SPACE_EVENLY;
267
+ case -1:
268
+ case "UNRECOGNIZED":
269
+ default:
270
+ return YGJustify.UNRECOGNIZED;
271
+ }
272
+ }
273
+
274
+ export function yGJustifyToJSON(object: YGJustify): string {
275
+ switch (object) {
276
+ case YGJustify.YGJ_FLEX_START:
277
+ return "YGJ_FLEX_START";
278
+ case YGJustify.YGJ_CENTER:
279
+ return "YGJ_CENTER";
280
+ case YGJustify.YGJ_FLEX_END:
281
+ return "YGJ_FLEX_END";
282
+ case YGJustify.YGJ_SPACE_BETWEEN:
283
+ return "YGJ_SPACE_BETWEEN";
284
+ case YGJustify.YGJ_SPACE_AROUND:
285
+ return "YGJ_SPACE_AROUND";
286
+ case YGJustify.YGJ_SPACE_EVENLY:
287
+ return "YGJ_SPACE_EVENLY";
288
+ case YGJustify.UNRECOGNIZED:
289
+ default:
290
+ return "UNRECOGNIZED";
291
+ }
292
+ }
293
+
294
+ export enum YGOverflow {
295
+ YGO_VISIBLE = 0,
296
+ YGO_HIDDEN = 1,
297
+ YGO_SCROLL = 2,
298
+ UNRECOGNIZED = -1,
299
+ }
300
+
301
+ export function yGOverflowFromJSON(object: any): YGOverflow {
302
+ switch (object) {
303
+ case 0:
304
+ case "YGO_VISIBLE":
305
+ return YGOverflow.YGO_VISIBLE;
306
+ case 1:
307
+ case "YGO_HIDDEN":
308
+ return YGOverflow.YGO_HIDDEN;
309
+ case 2:
310
+ case "YGO_SCROLL":
311
+ return YGOverflow.YGO_SCROLL;
312
+ case -1:
313
+ case "UNRECOGNIZED":
314
+ default:
315
+ return YGOverflow.UNRECOGNIZED;
316
+ }
317
+ }
318
+
319
+ export function yGOverflowToJSON(object: YGOverflow): string {
320
+ switch (object) {
321
+ case YGOverflow.YGO_VISIBLE:
322
+ return "YGO_VISIBLE";
323
+ case YGOverflow.YGO_HIDDEN:
324
+ return "YGO_HIDDEN";
325
+ case YGOverflow.YGO_SCROLL:
326
+ return "YGO_SCROLL";
327
+ case YGOverflow.UNRECOGNIZED:
328
+ default:
329
+ return "UNRECOGNIZED";
330
+ }
331
+ }
332
+
333
+ export enum YGDisplay {
334
+ YGD_FLEX = 0,
335
+ YGD_NONE = 1,
336
+ UNRECOGNIZED = -1,
337
+ }
338
+
339
+ export function yGDisplayFromJSON(object: any): YGDisplay {
340
+ switch (object) {
341
+ case 0:
342
+ case "YGD_FLEX":
343
+ return YGDisplay.YGD_FLEX;
344
+ case 1:
345
+ case "YGD_NONE":
346
+ return YGDisplay.YGD_NONE;
347
+ case -1:
348
+ case "UNRECOGNIZED":
349
+ default:
350
+ return YGDisplay.UNRECOGNIZED;
351
+ }
352
+ }
353
+
354
+ export function yGDisplayToJSON(object: YGDisplay): string {
355
+ switch (object) {
356
+ case YGDisplay.YGD_FLEX:
357
+ return "YGD_FLEX";
358
+ case YGDisplay.YGD_NONE:
359
+ return "YGD_NONE";
360
+ case YGDisplay.UNRECOGNIZED:
361
+ default:
362
+ return "UNRECOGNIZED";
363
+ }
364
+ }
365
+
366
+ export enum YGEdge {
367
+ YGE_LEFT = 0,
368
+ YGE_TOP = 1,
369
+ YGE_RIGHT = 2,
370
+ YGE_BOTTOM = 3,
371
+ YGE_START = 4,
372
+ YGE_END = 5,
373
+ YGE_HORIZONTAL = 6,
374
+ YGE_VERTICAL = 7,
375
+ YGE_ALL = 8,
376
+ UNRECOGNIZED = -1,
377
+ }
378
+
379
+ export function yGEdgeFromJSON(object: any): YGEdge {
380
+ switch (object) {
381
+ case 0:
382
+ case "YGE_LEFT":
383
+ return YGEdge.YGE_LEFT;
384
+ case 1:
385
+ case "YGE_TOP":
386
+ return YGEdge.YGE_TOP;
387
+ case 2:
388
+ case "YGE_RIGHT":
389
+ return YGEdge.YGE_RIGHT;
390
+ case 3:
391
+ case "YGE_BOTTOM":
392
+ return YGEdge.YGE_BOTTOM;
393
+ case 4:
394
+ case "YGE_START":
395
+ return YGEdge.YGE_START;
396
+ case 5:
397
+ case "YGE_END":
398
+ return YGEdge.YGE_END;
399
+ case 6:
400
+ case "YGE_HORIZONTAL":
401
+ return YGEdge.YGE_HORIZONTAL;
402
+ case 7:
403
+ case "YGE_VERTICAL":
404
+ return YGEdge.YGE_VERTICAL;
405
+ case 8:
406
+ case "YGE_ALL":
407
+ return YGEdge.YGE_ALL;
408
+ case -1:
409
+ case "UNRECOGNIZED":
410
+ default:
411
+ return YGEdge.UNRECOGNIZED;
412
+ }
413
+ }
414
+
415
+ export function yGEdgeToJSON(object: YGEdge): string {
416
+ switch (object) {
417
+ case YGEdge.YGE_LEFT:
418
+ return "YGE_LEFT";
419
+ case YGEdge.YGE_TOP:
420
+ return "YGE_TOP";
421
+ case YGEdge.YGE_RIGHT:
422
+ return "YGE_RIGHT";
423
+ case YGEdge.YGE_BOTTOM:
424
+ return "YGE_BOTTOM";
425
+ case YGEdge.YGE_START:
426
+ return "YGE_START";
427
+ case YGEdge.YGE_END:
428
+ return "YGE_END";
429
+ case YGEdge.YGE_HORIZONTAL:
430
+ return "YGE_HORIZONTAL";
431
+ case YGEdge.YGE_VERTICAL:
432
+ return "YGE_VERTICAL";
433
+ case YGEdge.YGE_ALL:
434
+ return "YGE_ALL";
435
+ case YGEdge.UNRECOGNIZED:
436
+ default:
437
+ return "UNRECOGNIZED";
438
+ }
439
+ }
440
+
441
+ export interface PBUiTransform {
442
+ parent: number;
443
+ rightOf: number;
444
+ /** default: YGAlign.YGA_FLEX_START */
445
+ alignContent?:
446
+ | YGAlign
447
+ | undefined;
448
+ /** default: YGAlign.YGA_STRETCH */
449
+ alignItems?:
450
+ | YGAlign
451
+ | undefined;
452
+ /** default: YGWrap.YGW_WRAP */
453
+ flexWrap?:
454
+ | YGWrap
455
+ | undefined;
456
+ /** default: 1 */
457
+ flexShrink?:
458
+ | number
459
+ | undefined;
460
+ /** YGPositionType.YGPT_RELATIVE */
461
+ positionType: YGPositionType;
462
+ /** YGAlign.YGA_AUTO */
463
+ alignSelf: YGAlign;
464
+ /** YGFlexDirection.YGFD_ROW */
465
+ flexDirection: YGFlexDirection;
466
+ /** YGJustify.YGJ_FLEX_START */
467
+ justifyContent: YGJustify;
468
+ /** YGOverflow.YGO_VISIBLE */
469
+ overflow: YGOverflow;
470
+ /** YGDisplay.YGD_FLEX */
471
+ display: YGDisplay;
472
+ /** YGUnit.YGU_UNDEFINED */
473
+ flexBasisUnit: YGUnit;
474
+ flexBasis: number;
475
+ flexGrow: number;
476
+ /** YGUnit.YGU_UNDEFINED */
477
+ widthUnit: YGUnit;
478
+ width: number;
479
+ /** YGUnit.YGU_UNDEFINED */
480
+ heightUnit: YGUnit;
481
+ height: number;
482
+ /** YGUnit.YGU_UNDEFINED */
483
+ minWidthUnit: YGUnit;
484
+ minWidth: number;
485
+ /** YGUnit.YGU_UNDEFINED */
486
+ minHeightUnit: YGUnit;
487
+ minHeight: number;
488
+ /** YGUnit.YGU_UNDEFINED */
489
+ maxWidthUnit: YGUnit;
490
+ maxWidth: number;
491
+ /** YGUnit.YGU_UNDEFINED */
492
+ maxHeightUnit: YGUnit;
493
+ maxHeight: number;
494
+ /** YGUnit.YGU_UNDEFINED */
495
+ positionLeftUnit: YGUnit;
496
+ positionLeft: number;
497
+ /** YGUnit.YGU_UNDEFINED */
498
+ positionTopUnit: YGUnit;
499
+ positionTop: number;
500
+ /** YGUnit.YGU_UNDEFINED */
501
+ positionRightUnit: YGUnit;
502
+ positionRight: number;
503
+ /** YGUnit.YGU_UNDEFINED */
504
+ positionBottomUnit: YGUnit;
505
+ positionBottom: number;
506
+ /** YGUnit.YGU_UNDEFINED */
507
+ marginLeftUnit: YGUnit;
508
+ marginLeft: number;
509
+ /** YGUnit.YGU_UNDEFINED */
510
+ marginTopUnit: YGUnit;
511
+ marginTop: number;
512
+ /** YGUnit.YGU_UNDEFINED */
513
+ marginRightUnit: YGUnit;
514
+ marginRight: number;
515
+ /** YGUnit.YGU_UNDEFINED */
516
+ marginBottomUnit: YGUnit;
517
+ marginBottom: number;
518
+ /** YGUnit.YGU_UNDEFINED */
519
+ paddingLeftUnit: YGUnit;
520
+ paddingLeft: number;
521
+ /** YGUnit.YGU_UNDEFINED */
522
+ paddingTopUnit: YGUnit;
523
+ paddingTop: number;
524
+ /** YGUnit.YGU_UNDEFINED */
525
+ paddingRightUnit: YGUnit;
526
+ paddingRight: number;
527
+ /** YGUnit.YGU_UNDEFINED */
528
+ paddingBottomUnit: YGUnit;
529
+ paddingBottom: number;
530
+ }
531
+
532
+ function createBasePBUiTransform(): PBUiTransform {
533
+ return {
534
+ parent: 0,
535
+ rightOf: 0,
536
+ alignContent: undefined,
537
+ alignItems: undefined,
538
+ flexWrap: undefined,
539
+ flexShrink: undefined,
540
+ positionType: 0,
541
+ alignSelf: 0,
542
+ flexDirection: 0,
543
+ justifyContent: 0,
544
+ overflow: 0,
545
+ display: 0,
546
+ flexBasisUnit: 0,
547
+ flexBasis: 0,
548
+ flexGrow: 0,
549
+ widthUnit: 0,
550
+ width: 0,
551
+ heightUnit: 0,
552
+ height: 0,
553
+ minWidthUnit: 0,
554
+ minWidth: 0,
555
+ minHeightUnit: 0,
556
+ minHeight: 0,
557
+ maxWidthUnit: 0,
558
+ maxWidth: 0,
559
+ maxHeightUnit: 0,
560
+ maxHeight: 0,
561
+ positionLeftUnit: 0,
562
+ positionLeft: 0,
563
+ positionTopUnit: 0,
564
+ positionTop: 0,
565
+ positionRightUnit: 0,
566
+ positionRight: 0,
567
+ positionBottomUnit: 0,
568
+ positionBottom: 0,
569
+ marginLeftUnit: 0,
570
+ marginLeft: 0,
571
+ marginTopUnit: 0,
572
+ marginTop: 0,
573
+ marginRightUnit: 0,
574
+ marginRight: 0,
575
+ marginBottomUnit: 0,
576
+ marginBottom: 0,
577
+ paddingLeftUnit: 0,
578
+ paddingLeft: 0,
579
+ paddingTopUnit: 0,
580
+ paddingTop: 0,
581
+ paddingRightUnit: 0,
582
+ paddingRight: 0,
583
+ paddingBottomUnit: 0,
584
+ paddingBottom: 0,
585
+ };
586
+ }
587
+
588
+ export const PBUiTransform = {
589
+ encode(message: PBUiTransform, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
590
+ if (message.parent !== 0) {
591
+ writer.uint32(8).int32(message.parent);
592
+ }
593
+ if (message.rightOf !== 0) {
594
+ writer.uint32(16).int32(message.rightOf);
595
+ }
596
+ if (message.alignContent !== undefined) {
597
+ writer.uint32(24).int32(message.alignContent);
598
+ }
599
+ if (message.alignItems !== undefined) {
600
+ writer.uint32(32).int32(message.alignItems);
601
+ }
602
+ if (message.flexWrap !== undefined) {
603
+ writer.uint32(40).int32(message.flexWrap);
604
+ }
605
+ if (message.flexShrink !== undefined) {
606
+ writer.uint32(53).float(message.flexShrink);
607
+ }
608
+ if (message.positionType !== 0) {
609
+ writer.uint32(56).int32(message.positionType);
610
+ }
611
+ if (message.alignSelf !== 0) {
612
+ writer.uint32(64).int32(message.alignSelf);
613
+ }
614
+ if (message.flexDirection !== 0) {
615
+ writer.uint32(72).int32(message.flexDirection);
616
+ }
617
+ if (message.justifyContent !== 0) {
618
+ writer.uint32(80).int32(message.justifyContent);
619
+ }
620
+ if (message.overflow !== 0) {
621
+ writer.uint32(88).int32(message.overflow);
622
+ }
623
+ if (message.display !== 0) {
624
+ writer.uint32(96).int32(message.display);
625
+ }
626
+ if (message.flexBasisUnit !== 0) {
627
+ writer.uint32(104).int32(message.flexBasisUnit);
628
+ }
629
+ if (message.flexBasis !== 0) {
630
+ writer.uint32(117).float(message.flexBasis);
631
+ }
632
+ if (message.flexGrow !== 0) {
633
+ writer.uint32(125).float(message.flexGrow);
634
+ }
635
+ if (message.widthUnit !== 0) {
636
+ writer.uint32(128).int32(message.widthUnit);
637
+ }
638
+ if (message.width !== 0) {
639
+ writer.uint32(141).float(message.width);
640
+ }
641
+ if (message.heightUnit !== 0) {
642
+ writer.uint32(144).int32(message.heightUnit);
643
+ }
644
+ if (message.height !== 0) {
645
+ writer.uint32(157).float(message.height);
646
+ }
647
+ if (message.minWidthUnit !== 0) {
648
+ writer.uint32(160).int32(message.minWidthUnit);
649
+ }
650
+ if (message.minWidth !== 0) {
651
+ writer.uint32(173).float(message.minWidth);
652
+ }
653
+ if (message.minHeightUnit !== 0) {
654
+ writer.uint32(176).int32(message.minHeightUnit);
655
+ }
656
+ if (message.minHeight !== 0) {
657
+ writer.uint32(189).float(message.minHeight);
658
+ }
659
+ if (message.maxWidthUnit !== 0) {
660
+ writer.uint32(192).int32(message.maxWidthUnit);
661
+ }
662
+ if (message.maxWidth !== 0) {
663
+ writer.uint32(205).float(message.maxWidth);
664
+ }
665
+ if (message.maxHeightUnit !== 0) {
666
+ writer.uint32(208).int32(message.maxHeightUnit);
667
+ }
668
+ if (message.maxHeight !== 0) {
669
+ writer.uint32(221).float(message.maxHeight);
670
+ }
671
+ if (message.positionLeftUnit !== 0) {
672
+ writer.uint32(224).int32(message.positionLeftUnit);
673
+ }
674
+ if (message.positionLeft !== 0) {
675
+ writer.uint32(237).float(message.positionLeft);
676
+ }
677
+ if (message.positionTopUnit !== 0) {
678
+ writer.uint32(240).int32(message.positionTopUnit);
679
+ }
680
+ if (message.positionTop !== 0) {
681
+ writer.uint32(253).float(message.positionTop);
682
+ }
683
+ if (message.positionRightUnit !== 0) {
684
+ writer.uint32(256).int32(message.positionRightUnit);
685
+ }
686
+ if (message.positionRight !== 0) {
687
+ writer.uint32(269).float(message.positionRight);
688
+ }
689
+ if (message.positionBottomUnit !== 0) {
690
+ writer.uint32(272).int32(message.positionBottomUnit);
691
+ }
692
+ if (message.positionBottom !== 0) {
693
+ writer.uint32(285).float(message.positionBottom);
694
+ }
695
+ if (message.marginLeftUnit !== 0) {
696
+ writer.uint32(288).int32(message.marginLeftUnit);
697
+ }
698
+ if (message.marginLeft !== 0) {
699
+ writer.uint32(301).float(message.marginLeft);
700
+ }
701
+ if (message.marginTopUnit !== 0) {
702
+ writer.uint32(304).int32(message.marginTopUnit);
703
+ }
704
+ if (message.marginTop !== 0) {
705
+ writer.uint32(317).float(message.marginTop);
706
+ }
707
+ if (message.marginRightUnit !== 0) {
708
+ writer.uint32(320).int32(message.marginRightUnit);
709
+ }
710
+ if (message.marginRight !== 0) {
711
+ writer.uint32(333).float(message.marginRight);
712
+ }
713
+ if (message.marginBottomUnit !== 0) {
714
+ writer.uint32(336).int32(message.marginBottomUnit);
715
+ }
716
+ if (message.marginBottom !== 0) {
717
+ writer.uint32(349).float(message.marginBottom);
718
+ }
719
+ if (message.paddingLeftUnit !== 0) {
720
+ writer.uint32(352).int32(message.paddingLeftUnit);
721
+ }
722
+ if (message.paddingLeft !== 0) {
723
+ writer.uint32(365).float(message.paddingLeft);
724
+ }
725
+ if (message.paddingTopUnit !== 0) {
726
+ writer.uint32(368).int32(message.paddingTopUnit);
727
+ }
728
+ if (message.paddingTop !== 0) {
729
+ writer.uint32(381).float(message.paddingTop);
730
+ }
731
+ if (message.paddingRightUnit !== 0) {
732
+ writer.uint32(384).int32(message.paddingRightUnit);
733
+ }
734
+ if (message.paddingRight !== 0) {
735
+ writer.uint32(397).float(message.paddingRight);
736
+ }
737
+ if (message.paddingBottomUnit !== 0) {
738
+ writer.uint32(400).int32(message.paddingBottomUnit);
739
+ }
740
+ if (message.paddingBottom !== 0) {
741
+ writer.uint32(413).float(message.paddingBottom);
742
+ }
743
+ return writer;
744
+ },
745
+
746
+ decode(input: _m0.Reader | Uint8Array, length?: number): PBUiTransform {
747
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
748
+ let end = length === undefined ? reader.len : reader.pos + length;
749
+ const message = createBasePBUiTransform();
750
+ while (reader.pos < end) {
751
+ const tag = reader.uint32();
752
+ switch (tag >>> 3) {
753
+ case 1:
754
+ message.parent = reader.int32();
755
+ break;
756
+ case 2:
757
+ message.rightOf = reader.int32();
758
+ break;
759
+ case 3:
760
+ message.alignContent = reader.int32() as any;
761
+ break;
762
+ case 4:
763
+ message.alignItems = reader.int32() as any;
764
+ break;
765
+ case 5:
766
+ message.flexWrap = reader.int32() as any;
767
+ break;
768
+ case 6:
769
+ message.flexShrink = reader.float();
770
+ break;
771
+ case 7:
772
+ message.positionType = reader.int32() as any;
773
+ break;
774
+ case 8:
775
+ message.alignSelf = reader.int32() as any;
776
+ break;
777
+ case 9:
778
+ message.flexDirection = reader.int32() as any;
779
+ break;
780
+ case 10:
781
+ message.justifyContent = reader.int32() as any;
782
+ break;
783
+ case 11:
784
+ message.overflow = reader.int32() as any;
785
+ break;
786
+ case 12:
787
+ message.display = reader.int32() as any;
788
+ break;
789
+ case 13:
790
+ message.flexBasisUnit = reader.int32() as any;
791
+ break;
792
+ case 14:
793
+ message.flexBasis = reader.float();
794
+ break;
795
+ case 15:
796
+ message.flexGrow = reader.float();
797
+ break;
798
+ case 16:
799
+ message.widthUnit = reader.int32() as any;
800
+ break;
801
+ case 17:
802
+ message.width = reader.float();
803
+ break;
804
+ case 18:
805
+ message.heightUnit = reader.int32() as any;
806
+ break;
807
+ case 19:
808
+ message.height = reader.float();
809
+ break;
810
+ case 20:
811
+ message.minWidthUnit = reader.int32() as any;
812
+ break;
813
+ case 21:
814
+ message.minWidth = reader.float();
815
+ break;
816
+ case 22:
817
+ message.minHeightUnit = reader.int32() as any;
818
+ break;
819
+ case 23:
820
+ message.minHeight = reader.float();
821
+ break;
822
+ case 24:
823
+ message.maxWidthUnit = reader.int32() as any;
824
+ break;
825
+ case 25:
826
+ message.maxWidth = reader.float();
827
+ break;
828
+ case 26:
829
+ message.maxHeightUnit = reader.int32() as any;
830
+ break;
831
+ case 27:
832
+ message.maxHeight = reader.float();
833
+ break;
834
+ case 28:
835
+ message.positionLeftUnit = reader.int32() as any;
836
+ break;
837
+ case 29:
838
+ message.positionLeft = reader.float();
839
+ break;
840
+ case 30:
841
+ message.positionTopUnit = reader.int32() as any;
842
+ break;
843
+ case 31:
844
+ message.positionTop = reader.float();
845
+ break;
846
+ case 32:
847
+ message.positionRightUnit = reader.int32() as any;
848
+ break;
849
+ case 33:
850
+ message.positionRight = reader.float();
851
+ break;
852
+ case 34:
853
+ message.positionBottomUnit = reader.int32() as any;
854
+ break;
855
+ case 35:
856
+ message.positionBottom = reader.float();
857
+ break;
858
+ case 36:
859
+ message.marginLeftUnit = reader.int32() as any;
860
+ break;
861
+ case 37:
862
+ message.marginLeft = reader.float();
863
+ break;
864
+ case 38:
865
+ message.marginTopUnit = reader.int32() as any;
866
+ break;
867
+ case 39:
868
+ message.marginTop = reader.float();
869
+ break;
870
+ case 40:
871
+ message.marginRightUnit = reader.int32() as any;
872
+ break;
873
+ case 41:
874
+ message.marginRight = reader.float();
875
+ break;
876
+ case 42:
877
+ message.marginBottomUnit = reader.int32() as any;
878
+ break;
879
+ case 43:
880
+ message.marginBottom = reader.float();
881
+ break;
882
+ case 44:
883
+ message.paddingLeftUnit = reader.int32() as any;
884
+ break;
885
+ case 45:
886
+ message.paddingLeft = reader.float();
887
+ break;
888
+ case 46:
889
+ message.paddingTopUnit = reader.int32() as any;
890
+ break;
891
+ case 47:
892
+ message.paddingTop = reader.float();
893
+ break;
894
+ case 48:
895
+ message.paddingRightUnit = reader.int32() as any;
896
+ break;
897
+ case 49:
898
+ message.paddingRight = reader.float();
899
+ break;
900
+ case 50:
901
+ message.paddingBottomUnit = reader.int32() as any;
902
+ break;
903
+ case 51:
904
+ message.paddingBottom = reader.float();
905
+ break;
906
+ default:
907
+ reader.skipType(tag & 7);
908
+ break;
909
+ }
910
+ }
911
+ return message;
912
+ },
913
+
914
+ fromJSON(object: any): PBUiTransform {
915
+ return {
916
+ parent: isSet(object.parent) ? Number(object.parent) : 0,
917
+ rightOf: isSet(object.rightOf) ? Number(object.rightOf) : 0,
918
+ alignContent: isSet(object.alignContent) ? yGAlignFromJSON(object.alignContent) : undefined,
919
+ alignItems: isSet(object.alignItems) ? yGAlignFromJSON(object.alignItems) : undefined,
920
+ flexWrap: isSet(object.flexWrap) ? yGWrapFromJSON(object.flexWrap) : undefined,
921
+ flexShrink: isSet(object.flexShrink) ? Number(object.flexShrink) : undefined,
922
+ positionType: isSet(object.positionType) ? yGPositionTypeFromJSON(object.positionType) : 0,
923
+ alignSelf: isSet(object.alignSelf) ? yGAlignFromJSON(object.alignSelf) : 0,
924
+ flexDirection: isSet(object.flexDirection) ? yGFlexDirectionFromJSON(object.flexDirection) : 0,
925
+ justifyContent: isSet(object.justifyContent) ? yGJustifyFromJSON(object.justifyContent) : 0,
926
+ overflow: isSet(object.overflow) ? yGOverflowFromJSON(object.overflow) : 0,
927
+ display: isSet(object.display) ? yGDisplayFromJSON(object.display) : 0,
928
+ flexBasisUnit: isSet(object.flexBasisUnit) ? yGUnitFromJSON(object.flexBasisUnit) : 0,
929
+ flexBasis: isSet(object.flexBasis) ? Number(object.flexBasis) : 0,
930
+ flexGrow: isSet(object.flexGrow) ? Number(object.flexGrow) : 0,
931
+ widthUnit: isSet(object.widthUnit) ? yGUnitFromJSON(object.widthUnit) : 0,
932
+ width: isSet(object.width) ? Number(object.width) : 0,
933
+ heightUnit: isSet(object.heightUnit) ? yGUnitFromJSON(object.heightUnit) : 0,
934
+ height: isSet(object.height) ? Number(object.height) : 0,
935
+ minWidthUnit: isSet(object.minWidthUnit) ? yGUnitFromJSON(object.minWidthUnit) : 0,
936
+ minWidth: isSet(object.minWidth) ? Number(object.minWidth) : 0,
937
+ minHeightUnit: isSet(object.minHeightUnit) ? yGUnitFromJSON(object.minHeightUnit) : 0,
938
+ minHeight: isSet(object.minHeight) ? Number(object.minHeight) : 0,
939
+ maxWidthUnit: isSet(object.maxWidthUnit) ? yGUnitFromJSON(object.maxWidthUnit) : 0,
940
+ maxWidth: isSet(object.maxWidth) ? Number(object.maxWidth) : 0,
941
+ maxHeightUnit: isSet(object.maxHeightUnit) ? yGUnitFromJSON(object.maxHeightUnit) : 0,
942
+ maxHeight: isSet(object.maxHeight) ? Number(object.maxHeight) : 0,
943
+ positionLeftUnit: isSet(object.positionLeftUnit) ? yGUnitFromJSON(object.positionLeftUnit) : 0,
944
+ positionLeft: isSet(object.positionLeft) ? Number(object.positionLeft) : 0,
945
+ positionTopUnit: isSet(object.positionTopUnit) ? yGUnitFromJSON(object.positionTopUnit) : 0,
946
+ positionTop: isSet(object.positionTop) ? Number(object.positionTop) : 0,
947
+ positionRightUnit: isSet(object.positionRightUnit) ? yGUnitFromJSON(object.positionRightUnit) : 0,
948
+ positionRight: isSet(object.positionRight) ? Number(object.positionRight) : 0,
949
+ positionBottomUnit: isSet(object.positionBottomUnit) ? yGUnitFromJSON(object.positionBottomUnit) : 0,
950
+ positionBottom: isSet(object.positionBottom) ? Number(object.positionBottom) : 0,
951
+ marginLeftUnit: isSet(object.marginLeftUnit) ? yGUnitFromJSON(object.marginLeftUnit) : 0,
952
+ marginLeft: isSet(object.marginLeft) ? Number(object.marginLeft) : 0,
953
+ marginTopUnit: isSet(object.marginTopUnit) ? yGUnitFromJSON(object.marginTopUnit) : 0,
954
+ marginTop: isSet(object.marginTop) ? Number(object.marginTop) : 0,
955
+ marginRightUnit: isSet(object.marginRightUnit) ? yGUnitFromJSON(object.marginRightUnit) : 0,
956
+ marginRight: isSet(object.marginRight) ? Number(object.marginRight) : 0,
957
+ marginBottomUnit: isSet(object.marginBottomUnit) ? yGUnitFromJSON(object.marginBottomUnit) : 0,
958
+ marginBottom: isSet(object.marginBottom) ? Number(object.marginBottom) : 0,
959
+ paddingLeftUnit: isSet(object.paddingLeftUnit) ? yGUnitFromJSON(object.paddingLeftUnit) : 0,
960
+ paddingLeft: isSet(object.paddingLeft) ? Number(object.paddingLeft) : 0,
961
+ paddingTopUnit: isSet(object.paddingTopUnit) ? yGUnitFromJSON(object.paddingTopUnit) : 0,
962
+ paddingTop: isSet(object.paddingTop) ? Number(object.paddingTop) : 0,
963
+ paddingRightUnit: isSet(object.paddingRightUnit) ? yGUnitFromJSON(object.paddingRightUnit) : 0,
964
+ paddingRight: isSet(object.paddingRight) ? Number(object.paddingRight) : 0,
965
+ paddingBottomUnit: isSet(object.paddingBottomUnit) ? yGUnitFromJSON(object.paddingBottomUnit) : 0,
966
+ paddingBottom: isSet(object.paddingBottom) ? Number(object.paddingBottom) : 0,
967
+ };
968
+ },
969
+
970
+ toJSON(message: PBUiTransform): unknown {
971
+ const obj: any = {};
972
+ message.parent !== undefined && (obj.parent = Math.round(message.parent));
973
+ message.rightOf !== undefined && (obj.rightOf = Math.round(message.rightOf));
974
+ message.alignContent !== undefined &&
975
+ (obj.alignContent = message.alignContent !== undefined ? yGAlignToJSON(message.alignContent) : undefined);
976
+ message.alignItems !== undefined &&
977
+ (obj.alignItems = message.alignItems !== undefined ? yGAlignToJSON(message.alignItems) : undefined);
978
+ message.flexWrap !== undefined &&
979
+ (obj.flexWrap = message.flexWrap !== undefined ? yGWrapToJSON(message.flexWrap) : undefined);
980
+ message.flexShrink !== undefined && (obj.flexShrink = message.flexShrink);
981
+ message.positionType !== undefined && (obj.positionType = yGPositionTypeToJSON(message.positionType));
982
+ message.alignSelf !== undefined && (obj.alignSelf = yGAlignToJSON(message.alignSelf));
983
+ message.flexDirection !== undefined && (obj.flexDirection = yGFlexDirectionToJSON(message.flexDirection));
984
+ message.justifyContent !== undefined && (obj.justifyContent = yGJustifyToJSON(message.justifyContent));
985
+ message.overflow !== undefined && (obj.overflow = yGOverflowToJSON(message.overflow));
986
+ message.display !== undefined && (obj.display = yGDisplayToJSON(message.display));
987
+ message.flexBasisUnit !== undefined && (obj.flexBasisUnit = yGUnitToJSON(message.flexBasisUnit));
988
+ message.flexBasis !== undefined && (obj.flexBasis = message.flexBasis);
989
+ message.flexGrow !== undefined && (obj.flexGrow = message.flexGrow);
990
+ message.widthUnit !== undefined && (obj.widthUnit = yGUnitToJSON(message.widthUnit));
991
+ message.width !== undefined && (obj.width = message.width);
992
+ message.heightUnit !== undefined && (obj.heightUnit = yGUnitToJSON(message.heightUnit));
993
+ message.height !== undefined && (obj.height = message.height);
994
+ message.minWidthUnit !== undefined && (obj.minWidthUnit = yGUnitToJSON(message.minWidthUnit));
995
+ message.minWidth !== undefined && (obj.minWidth = message.minWidth);
996
+ message.minHeightUnit !== undefined && (obj.minHeightUnit = yGUnitToJSON(message.minHeightUnit));
997
+ message.minHeight !== undefined && (obj.minHeight = message.minHeight);
998
+ message.maxWidthUnit !== undefined && (obj.maxWidthUnit = yGUnitToJSON(message.maxWidthUnit));
999
+ message.maxWidth !== undefined && (obj.maxWidth = message.maxWidth);
1000
+ message.maxHeightUnit !== undefined && (obj.maxHeightUnit = yGUnitToJSON(message.maxHeightUnit));
1001
+ message.maxHeight !== undefined && (obj.maxHeight = message.maxHeight);
1002
+ message.positionLeftUnit !== undefined && (obj.positionLeftUnit = yGUnitToJSON(message.positionLeftUnit));
1003
+ message.positionLeft !== undefined && (obj.positionLeft = message.positionLeft);
1004
+ message.positionTopUnit !== undefined && (obj.positionTopUnit = yGUnitToJSON(message.positionTopUnit));
1005
+ message.positionTop !== undefined && (obj.positionTop = message.positionTop);
1006
+ message.positionRightUnit !== undefined && (obj.positionRightUnit = yGUnitToJSON(message.positionRightUnit));
1007
+ message.positionRight !== undefined && (obj.positionRight = message.positionRight);
1008
+ message.positionBottomUnit !== undefined && (obj.positionBottomUnit = yGUnitToJSON(message.positionBottomUnit));
1009
+ message.positionBottom !== undefined && (obj.positionBottom = message.positionBottom);
1010
+ message.marginLeftUnit !== undefined && (obj.marginLeftUnit = yGUnitToJSON(message.marginLeftUnit));
1011
+ message.marginLeft !== undefined && (obj.marginLeft = message.marginLeft);
1012
+ message.marginTopUnit !== undefined && (obj.marginTopUnit = yGUnitToJSON(message.marginTopUnit));
1013
+ message.marginTop !== undefined && (obj.marginTop = message.marginTop);
1014
+ message.marginRightUnit !== undefined && (obj.marginRightUnit = yGUnitToJSON(message.marginRightUnit));
1015
+ message.marginRight !== undefined && (obj.marginRight = message.marginRight);
1016
+ message.marginBottomUnit !== undefined && (obj.marginBottomUnit = yGUnitToJSON(message.marginBottomUnit));
1017
+ message.marginBottom !== undefined && (obj.marginBottom = message.marginBottom);
1018
+ message.paddingLeftUnit !== undefined && (obj.paddingLeftUnit = yGUnitToJSON(message.paddingLeftUnit));
1019
+ message.paddingLeft !== undefined && (obj.paddingLeft = message.paddingLeft);
1020
+ message.paddingTopUnit !== undefined && (obj.paddingTopUnit = yGUnitToJSON(message.paddingTopUnit));
1021
+ message.paddingTop !== undefined && (obj.paddingTop = message.paddingTop);
1022
+ message.paddingRightUnit !== undefined && (obj.paddingRightUnit = yGUnitToJSON(message.paddingRightUnit));
1023
+ message.paddingRight !== undefined && (obj.paddingRight = message.paddingRight);
1024
+ message.paddingBottomUnit !== undefined && (obj.paddingBottomUnit = yGUnitToJSON(message.paddingBottomUnit));
1025
+ message.paddingBottom !== undefined && (obj.paddingBottom = message.paddingBottom);
1026
+ return obj;
1027
+ },
1028
+
1029
+ create<I extends Exact<DeepPartial<PBUiTransform>, I>>(base?: I): PBUiTransform {
1030
+ return PBUiTransform.fromPartial(base ?? {});
1031
+ },
1032
+
1033
+ fromPartial<I extends Exact<DeepPartial<PBUiTransform>, I>>(object: I): PBUiTransform {
1034
+ const message = createBasePBUiTransform();
1035
+ message.parent = object.parent ?? 0;
1036
+ message.rightOf = object.rightOf ?? 0;
1037
+ message.alignContent = object.alignContent ?? undefined;
1038
+ message.alignItems = object.alignItems ?? undefined;
1039
+ message.flexWrap = object.flexWrap ?? undefined;
1040
+ message.flexShrink = object.flexShrink ?? undefined;
1041
+ message.positionType = object.positionType ?? 0;
1042
+ message.alignSelf = object.alignSelf ?? 0;
1043
+ message.flexDirection = object.flexDirection ?? 0;
1044
+ message.justifyContent = object.justifyContent ?? 0;
1045
+ message.overflow = object.overflow ?? 0;
1046
+ message.display = object.display ?? 0;
1047
+ message.flexBasisUnit = object.flexBasisUnit ?? 0;
1048
+ message.flexBasis = object.flexBasis ?? 0;
1049
+ message.flexGrow = object.flexGrow ?? 0;
1050
+ message.widthUnit = object.widthUnit ?? 0;
1051
+ message.width = object.width ?? 0;
1052
+ message.heightUnit = object.heightUnit ?? 0;
1053
+ message.height = object.height ?? 0;
1054
+ message.minWidthUnit = object.minWidthUnit ?? 0;
1055
+ message.minWidth = object.minWidth ?? 0;
1056
+ message.minHeightUnit = object.minHeightUnit ?? 0;
1057
+ message.minHeight = object.minHeight ?? 0;
1058
+ message.maxWidthUnit = object.maxWidthUnit ?? 0;
1059
+ message.maxWidth = object.maxWidth ?? 0;
1060
+ message.maxHeightUnit = object.maxHeightUnit ?? 0;
1061
+ message.maxHeight = object.maxHeight ?? 0;
1062
+ message.positionLeftUnit = object.positionLeftUnit ?? 0;
1063
+ message.positionLeft = object.positionLeft ?? 0;
1064
+ message.positionTopUnit = object.positionTopUnit ?? 0;
1065
+ message.positionTop = object.positionTop ?? 0;
1066
+ message.positionRightUnit = object.positionRightUnit ?? 0;
1067
+ message.positionRight = object.positionRight ?? 0;
1068
+ message.positionBottomUnit = object.positionBottomUnit ?? 0;
1069
+ message.positionBottom = object.positionBottom ?? 0;
1070
+ message.marginLeftUnit = object.marginLeftUnit ?? 0;
1071
+ message.marginLeft = object.marginLeft ?? 0;
1072
+ message.marginTopUnit = object.marginTopUnit ?? 0;
1073
+ message.marginTop = object.marginTop ?? 0;
1074
+ message.marginRightUnit = object.marginRightUnit ?? 0;
1075
+ message.marginRight = object.marginRight ?? 0;
1076
+ message.marginBottomUnit = object.marginBottomUnit ?? 0;
1077
+ message.marginBottom = object.marginBottom ?? 0;
1078
+ message.paddingLeftUnit = object.paddingLeftUnit ?? 0;
1079
+ message.paddingLeft = object.paddingLeft ?? 0;
1080
+ message.paddingTopUnit = object.paddingTopUnit ?? 0;
1081
+ message.paddingTop = object.paddingTop ?? 0;
1082
+ message.paddingRightUnit = object.paddingRightUnit ?? 0;
1083
+ message.paddingRight = object.paddingRight ?? 0;
1084
+ message.paddingBottomUnit = object.paddingBottomUnit ?? 0;
1085
+ message.paddingBottom = object.paddingBottom ?? 0;
1086
+ return message;
1087
+ },
1088
+ };
1089
+
1090
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1091
+
1092
+ export type DeepPartial<T> = T extends Builtin ? T
1093
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
1094
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
1095
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
1096
+ : Partial<T>;
1097
+
1098
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
1099
+ export type Exact<P, I extends P> = P extends Builtin ? P
1100
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
1101
+
1102
+ function isSet(value: any): boolean {
1103
+ return value !== null && value !== undefined;
1104
+ }