@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6

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 (197) hide show
  1. package/google/api/annotations_pb.ts +33 -0
  2. package/google/api/field_behavior.ts +95 -0
  3. package/google/api/field_behavior_pb.ts +139 -0
  4. package/google/api/http.ts +695 -0
  5. package/google/api/http_pb.ts +547 -0
  6. package/google/api/httpbody.ts +159 -0
  7. package/google/api/httpbody_pb.ts +122 -0
  8. package/google/protobuf/any.ts +322 -0
  9. package/google/protobuf/descriptor.ts +3475 -0
  10. package/google/protobuf/duration.ts +231 -0
  11. package/google/protobuf/struct.ts +484 -0
  12. package/google/protobuf/timestamp.ts +290 -0
  13. package/google/protobuf/wrappers.ts +752 -0
  14. package/package.json +47 -0
  15. package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
  16. package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
  17. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
  18. package/raystack/assets/index.ts +29 -0
  19. package/raystack/assets/v1beta1/bucket.ts +362 -0
  20. package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
  21. package/raystack/assets/v1beta1/dashboard.ts +426 -0
  22. package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
  23. package/raystack/assets/v1beta1/event.ts +105 -0
  24. package/raystack/assets/v1beta1/event_pb.ts +70 -0
  25. package/raystack/assets/v1beta1/group.ts +223 -0
  26. package/raystack/assets/v1beta1/group_pb.ts +149 -0
  27. package/raystack/assets/v1beta1/job.ts +147 -0
  28. package/raystack/assets/v1beta1/job_pb.ts +100 -0
  29. package/raystack/assets/v1beta1/lineage.ts +90 -0
  30. package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
  31. package/raystack/assets/v1beta1/ownership.ts +179 -0
  32. package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
  33. package/raystack/assets/v1beta1/preview.ts +87 -0
  34. package/raystack/assets/v1beta1/preview_pb.ts +58 -0
  35. package/raystack/assets/v1beta1/properties.ts +116 -0
  36. package/raystack/assets/v1beta1/properties_pb.ts +63 -0
  37. package/raystack/assets/v1beta1/resource.ts +149 -0
  38. package/raystack/assets/v1beta1/resource_pb.ts +96 -0
  39. package/raystack/assets/v1beta1/schema.ts +421 -0
  40. package/raystack/assets/v1beta1/schema_pb.ts +262 -0
  41. package/raystack/assets/v1beta1/table.ts +408 -0
  42. package/raystack/assets/v1beta1/table_pb.ts +266 -0
  43. package/raystack/assets/v1beta1/timestamp.ts +158 -0
  44. package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
  45. package/raystack/assets/v1beta1/topic.ts +253 -0
  46. package/raystack/assets/v1beta1/topic_pb.ts +171 -0
  47. package/raystack/assets/v1beta1/user.ts +451 -0
  48. package/raystack/assets/v1beta1/user_pb.ts +292 -0
  49. package/raystack/assets/v1beta2/application.ts +125 -0
  50. package/raystack/assets/v1beta2/application_pb.ts +79 -0
  51. package/raystack/assets/v1beta2/asset.ts +269 -0
  52. package/raystack/assets/v1beta2/asset_pb.ts +157 -0
  53. package/raystack/assets/v1beta2/bucket.ts +341 -0
  54. package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
  55. package/raystack/assets/v1beta2/common.ts +392 -0
  56. package/raystack/assets/v1beta2/common_pb.ts +258 -0
  57. package/raystack/assets/v1beta2/dashboard.ts +393 -0
  58. package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
  59. package/raystack/assets/v1beta2/experiment.ts +274 -0
  60. package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
  61. package/raystack/assets/v1beta2/feature_table.ts +387 -0
  62. package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
  63. package/raystack/assets/v1beta2/group.ts +178 -0
  64. package/raystack/assets/v1beta2/group_pb.ts +118 -0
  65. package/raystack/assets/v1beta2/job.ts +99 -0
  66. package/raystack/assets/v1beta2/job_pb.ts +65 -0
  67. package/raystack/assets/v1beta2/metric.ts +163 -0
  68. package/raystack/assets/v1beta2/metric_pb.ts +105 -0
  69. package/raystack/assets/v1beta2/model.ts +519 -0
  70. package/raystack/assets/v1beta2/model_pb.ts +322 -0
  71. package/raystack/assets/v1beta2/table.ts +663 -0
  72. package/raystack/assets/v1beta2/table_pb.ts +409 -0
  73. package/raystack/assets/v1beta2/topic.ts +275 -0
  74. package/raystack/assets/v1beta2/topic_pb.ts +181 -0
  75. package/raystack/assets/v1beta2/user.ts +433 -0
  76. package/raystack/assets/v1beta2/user_pb.ts +277 -0
  77. package/raystack/common/index.ts +3 -0
  78. package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
  79. package/raystack/common/v1/service.client.ts +37 -0
  80. package/raystack/common/v1/service.ts +245 -0
  81. package/raystack/common/v1/service_connect.ts +26 -0
  82. package/raystack/common/v1/service_pb.ts +149 -0
  83. package/raystack/compass/index.ts +3 -0
  84. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
  85. package/raystack/compass/v1beta1/service.client.ts +594 -0
  86. package/raystack/compass/v1beta1/service.ts +8169 -0
  87. package/raystack/compass/v1beta1/service_connect.ts +407 -0
  88. package/raystack/compass/v1beta1/service_pb.ts +4975 -0
  89. package/raystack/entropy/index.ts +6 -0
  90. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
  91. package/raystack/entropy/v1beta1/module.client.ts +89 -0
  92. package/raystack/entropy/v1beta1/module.ts +692 -0
  93. package/raystack/entropy/v1beta1/module_connect.ts +62 -0
  94. package/raystack/entropy/v1beta1/module_pb.ts +445 -0
  95. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
  96. package/raystack/entropy/v1beta1/resource.client.ts +129 -0
  97. package/raystack/entropy/v1beta1/resource.ts +1817 -0
  98. package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
  99. package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
  100. package/raystack/frontier/index.ts +7 -0
  101. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
  102. package/raystack/frontier/v1beta1/admin.client.ts +849 -0
  103. package/raystack/frontier/v1beta1/admin.ts +9007 -0
  104. package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
  105. package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
  106. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
  107. package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
  108. package/raystack/frontier/v1beta1/frontier.ts +23706 -0
  109. package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
  110. package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
  111. package/raystack/frontier/v1beta1/models.ts +7433 -0
  112. package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
  113. package/raystack/guardian/index.ts +3 -0
  114. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
  115. package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
  116. package/raystack/guardian/v1beta1/guardian.ts +9688 -0
  117. package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
  118. package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
  119. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
  120. package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
  121. package/raystack/optimus/core/v1beta1/backup.ts +708 -0
  122. package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
  123. package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
  124. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
  125. package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
  126. package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
  127. package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
  128. package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
  129. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
  130. package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
  131. package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
  132. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
  133. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
  134. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
  135. package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
  136. package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
  137. package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
  138. package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
  139. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
  140. package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
  141. package/raystack/optimus/core/v1beta1/project.ts +520 -0
  142. package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
  143. package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
  144. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
  145. package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
  146. package/raystack/optimus/core/v1beta1/replay.ts +881 -0
  147. package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
  148. package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
  149. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
  150. package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
  151. package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
  152. package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
  153. package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
  154. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
  155. package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
  156. package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
  157. package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
  158. package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
  159. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
  160. package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
  161. package/raystack/optimus/core/v1beta1/secret.ts +619 -0
  162. package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
  163. package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
  164. package/raystack/optimus/core/v1beta1/status.ts +113 -0
  165. package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
  166. package/raystack/optimus/integration/v1beta1/event.ts +531 -0
  167. package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
  168. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
  169. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
  170. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
  171. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
  172. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
  173. package/raystack/predator/index.ts +2 -0
  174. package/raystack/predator/v1beta1/metrics_log.ts +457 -0
  175. package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
  176. package/raystack/predator/v1beta1/result_log.ts +390 -0
  177. package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
  178. package/raystack/raccoon/index.ts +3 -0
  179. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
  180. package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
  181. package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
  182. package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
  183. package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
  184. package/raystack/siren/index.ts +3 -0
  185. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
  186. package/raystack/siren/v1beta1/siren.client.ts +479 -0
  187. package/raystack/siren/v1beta1/siren.ts +6507 -0
  188. package/raystack/siren/v1beta1/siren_connect.ts +332 -0
  189. package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
  190. package/raystack/stencil/index.ts +3 -0
  191. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
  192. package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
  193. package/raystack/stencil/v1beta1/stencil.ts +2716 -0
  194. package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
  195. package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
  196. package/validate/validate.ts +4130 -0
  197. package/validate/validate_pb.ts +2621 -0
@@ -0,0 +1,2716 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/stencil/v1beta1/stencil.proto" (package "raystack.stencil.v1beta1", syntax proto3)
3
+ // tslint:disable
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
6
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
7
+ import { WireType } from "@protobuf-ts/runtime";
8
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
10
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
+ import type { PartialMessage } from "@protobuf-ts/runtime";
12
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
+ import { MessageType } from "@protobuf-ts/runtime";
14
+ import { Timestamp } from "../../../google/protobuf/timestamp";
15
+ /**
16
+ * @generated from protobuf message raystack.stencil.v1beta1.Namespace
17
+ */
18
+ export interface Namespace {
19
+ /**
20
+ * @generated from protobuf field: string id = 1
21
+ */
22
+ id: string;
23
+ /**
24
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Format format = 2
25
+ */
26
+ format: Schema_Format;
27
+ /**
28
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3
29
+ */
30
+ compatibility: Schema_Compatibility;
31
+ /**
32
+ * @generated from protobuf field: string description = 4
33
+ */
34
+ description: string;
35
+ /**
36
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 5
37
+ */
38
+ createdAt?: Timestamp;
39
+ /**
40
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 6
41
+ */
42
+ updatedAt?: Timestamp;
43
+ }
44
+ /**
45
+ * @generated from protobuf message raystack.stencil.v1beta1.Schema
46
+ */
47
+ export interface Schema {
48
+ /**
49
+ * @generated from protobuf field: string name = 1
50
+ */
51
+ name: string;
52
+ /**
53
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Format format = 2
54
+ */
55
+ format: Schema_Format;
56
+ /**
57
+ * @generated from protobuf field: string authority = 3
58
+ */
59
+ authority: string;
60
+ /**
61
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 4
62
+ */
63
+ compatibility: Schema_Compatibility;
64
+ /**
65
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 5
66
+ */
67
+ createdAt?: Timestamp;
68
+ /**
69
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 6
70
+ */
71
+ updatedAt?: Timestamp;
72
+ }
73
+ /**
74
+ * @generated from protobuf enum raystack.stencil.v1beta1.Schema.Format
75
+ */
76
+ export enum Schema_Format {
77
+ /**
78
+ * @generated from protobuf enum value: FORMAT_UNSPECIFIED = 0;
79
+ */
80
+ UNSPECIFIED = 0,
81
+ /**
82
+ * @generated from protobuf enum value: FORMAT_PROTOBUF = 1;
83
+ */
84
+ PROTOBUF = 1,
85
+ /**
86
+ * @generated from protobuf enum value: FORMAT_AVRO = 2;
87
+ */
88
+ AVRO = 2,
89
+ /**
90
+ * @generated from protobuf enum value: FORMAT_JSON = 3;
91
+ */
92
+ JSON = 3
93
+ }
94
+ /**
95
+ * @generated from protobuf enum raystack.stencil.v1beta1.Schema.Compatibility
96
+ */
97
+ export enum Schema_Compatibility {
98
+ /**
99
+ * @generated from protobuf enum value: COMPATIBILITY_UNSPECIFIED = 0;
100
+ */
101
+ UNSPECIFIED = 0,
102
+ /**
103
+ * @generated from protobuf enum value: COMPATIBILITY_BACKWARD = 1;
104
+ */
105
+ BACKWARD = 1,
106
+ /**
107
+ * @generated from protobuf enum value: COMPATIBILITY_BACKWARD_TRANSITIVE = 2;
108
+ */
109
+ BACKWARD_TRANSITIVE = 2,
110
+ /**
111
+ * @generated from protobuf enum value: COMPATIBILITY_FORWARD = 3;
112
+ */
113
+ FORWARD = 3,
114
+ /**
115
+ * @generated from protobuf enum value: COMPATIBILITY_FORWARD_TRANSITIVE = 4;
116
+ */
117
+ FORWARD_TRANSITIVE = 4,
118
+ /**
119
+ * @generated from protobuf enum value: COMPATIBILITY_FULL = 5;
120
+ */
121
+ FULL = 5,
122
+ /**
123
+ * @generated from protobuf enum value: COMPATIBILITY_FULL_TRANSITIVE = 6;
124
+ */
125
+ FULL_TRANSITIVE = 6
126
+ }
127
+ /**
128
+ * @generated from protobuf message raystack.stencil.v1beta1.ListNamespacesRequest
129
+ */
130
+ export interface ListNamespacesRequest {
131
+ }
132
+ /**
133
+ * @generated from protobuf message raystack.stencil.v1beta1.ListNamespacesResponse
134
+ */
135
+ export interface ListNamespacesResponse {
136
+ /**
137
+ * @generated from protobuf field: repeated raystack.stencil.v1beta1.Namespace namespaces = 1
138
+ */
139
+ namespaces: Namespace[];
140
+ }
141
+ /**
142
+ * @generated from protobuf message raystack.stencil.v1beta1.GetNamespaceRequest
143
+ */
144
+ export interface GetNamespaceRequest {
145
+ /**
146
+ * @generated from protobuf field: string id = 1
147
+ */
148
+ id: string;
149
+ }
150
+ /**
151
+ * @generated from protobuf message raystack.stencil.v1beta1.GetNamespaceResponse
152
+ */
153
+ export interface GetNamespaceResponse {
154
+ /**
155
+ * @generated from protobuf field: raystack.stencil.v1beta1.Namespace namespace = 1
156
+ */
157
+ namespace?: Namespace;
158
+ }
159
+ /**
160
+ * @generated from protobuf message raystack.stencil.v1beta1.CreateNamespaceRequest
161
+ */
162
+ export interface CreateNamespaceRequest {
163
+ /**
164
+ * @generated from protobuf field: string id = 1
165
+ */
166
+ id: string;
167
+ /**
168
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Format format = 2
169
+ */
170
+ format: Schema_Format;
171
+ /**
172
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3
173
+ */
174
+ compatibility: Schema_Compatibility;
175
+ /**
176
+ * @generated from protobuf field: string description = 4
177
+ */
178
+ description: string;
179
+ }
180
+ /**
181
+ * @generated from protobuf message raystack.stencil.v1beta1.CreateNamespaceResponse
182
+ */
183
+ export interface CreateNamespaceResponse {
184
+ /**
185
+ * @generated from protobuf field: raystack.stencil.v1beta1.Namespace namespace = 1
186
+ */
187
+ namespace?: Namespace;
188
+ }
189
+ /**
190
+ * @generated from protobuf message raystack.stencil.v1beta1.UpdateNamespaceRequest
191
+ */
192
+ export interface UpdateNamespaceRequest {
193
+ /**
194
+ * @generated from protobuf field: string id = 1
195
+ */
196
+ id: string;
197
+ /**
198
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Format format = 2
199
+ */
200
+ format: Schema_Format;
201
+ /**
202
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3
203
+ */
204
+ compatibility: Schema_Compatibility;
205
+ /**
206
+ * @generated from protobuf field: string description = 4
207
+ */
208
+ description: string;
209
+ }
210
+ /**
211
+ * @generated from protobuf message raystack.stencil.v1beta1.UpdateNamespaceResponse
212
+ */
213
+ export interface UpdateNamespaceResponse {
214
+ /**
215
+ * @generated from protobuf field: raystack.stencil.v1beta1.Namespace namespace = 1
216
+ */
217
+ namespace?: Namespace;
218
+ }
219
+ /**
220
+ * @generated from protobuf message raystack.stencil.v1beta1.DeleteNamespaceRequest
221
+ */
222
+ export interface DeleteNamespaceRequest {
223
+ /**
224
+ * @generated from protobuf field: string id = 1
225
+ */
226
+ id: string;
227
+ }
228
+ /**
229
+ * @generated from protobuf message raystack.stencil.v1beta1.DeleteNamespaceResponse
230
+ */
231
+ export interface DeleteNamespaceResponse {
232
+ /**
233
+ * @generated from protobuf field: string message = 1
234
+ */
235
+ message: string;
236
+ }
237
+ /**
238
+ * @generated from protobuf message raystack.stencil.v1beta1.ListSchemasRequest
239
+ */
240
+ export interface ListSchemasRequest {
241
+ /**
242
+ * @generated from protobuf field: string id = 1
243
+ */
244
+ id: string;
245
+ }
246
+ /**
247
+ * @generated from protobuf message raystack.stencil.v1beta1.ListSchemasResponse
248
+ */
249
+ export interface ListSchemasResponse {
250
+ /**
251
+ * @generated from protobuf field: repeated raystack.stencil.v1beta1.Schema schemas = 1
252
+ */
253
+ schemas: Schema[];
254
+ }
255
+ /**
256
+ * @generated from protobuf message raystack.stencil.v1beta1.GetLatestSchemaRequest
257
+ */
258
+ export interface GetLatestSchemaRequest {
259
+ /**
260
+ * @generated from protobuf field: string namespace_id = 1
261
+ */
262
+ namespaceId: string;
263
+ /**
264
+ * @generated from protobuf field: string schema_id = 2
265
+ */
266
+ schemaId: string;
267
+ }
268
+ /**
269
+ * @generated from protobuf message raystack.stencil.v1beta1.GetLatestSchemaResponse
270
+ */
271
+ export interface GetLatestSchemaResponse {
272
+ /**
273
+ * @generated from protobuf field: bytes data = 3
274
+ */
275
+ data: Uint8Array;
276
+ }
277
+ /**
278
+ * @generated from protobuf message raystack.stencil.v1beta1.CreateSchemaRequest
279
+ */
280
+ export interface CreateSchemaRequest {
281
+ /**
282
+ * @generated from protobuf field: string namespace_id = 1
283
+ */
284
+ namespaceId: string;
285
+ /**
286
+ * @generated from protobuf field: string schema_id = 2
287
+ */
288
+ schemaId: string;
289
+ /**
290
+ * @generated from protobuf field: bytes data = 3
291
+ */
292
+ data: Uint8Array;
293
+ /**
294
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Format format = 4
295
+ */
296
+ format: Schema_Format;
297
+ /**
298
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 5
299
+ */
300
+ compatibility: Schema_Compatibility;
301
+ }
302
+ /**
303
+ * @generated from protobuf message raystack.stencil.v1beta1.CreateSchemaResponse
304
+ */
305
+ export interface CreateSchemaResponse {
306
+ /**
307
+ * @generated from protobuf field: int32 version = 1
308
+ */
309
+ version: number;
310
+ /**
311
+ * @generated from protobuf field: string id = 2
312
+ */
313
+ id: string;
314
+ /**
315
+ * @generated from protobuf field: string location = 3
316
+ */
317
+ location: string;
318
+ }
319
+ /**
320
+ * @generated from protobuf message raystack.stencil.v1beta1.CheckCompatibilityRequest
321
+ */
322
+ export interface CheckCompatibilityRequest {
323
+ /**
324
+ * @generated from protobuf field: string namespace_id = 1
325
+ */
326
+ namespaceId: string;
327
+ /**
328
+ * @generated from protobuf field: string schema_id = 2
329
+ */
330
+ schemaId: string;
331
+ /**
332
+ * @generated from protobuf field: bytes data = 3
333
+ */
334
+ data: Uint8Array;
335
+ /**
336
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 4
337
+ */
338
+ compatibility: Schema_Compatibility;
339
+ }
340
+ /**
341
+ * @generated from protobuf message raystack.stencil.v1beta1.CheckCompatibilityResponse
342
+ */
343
+ export interface CheckCompatibilityResponse {
344
+ }
345
+ /**
346
+ * @generated from protobuf message raystack.stencil.v1beta1.GetSchemaMetadataRequest
347
+ */
348
+ export interface GetSchemaMetadataRequest {
349
+ /**
350
+ * @generated from protobuf field: string namespace_id = 1
351
+ */
352
+ namespaceId: string;
353
+ /**
354
+ * @generated from protobuf field: string schema_id = 2
355
+ */
356
+ schemaId: string;
357
+ }
358
+ /**
359
+ * @generated from protobuf message raystack.stencil.v1beta1.GetSchemaMetadataResponse
360
+ */
361
+ export interface GetSchemaMetadataResponse {
362
+ /**
363
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Format format = 1
364
+ */
365
+ format: Schema_Format;
366
+ /**
367
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 2
368
+ */
369
+ compatibility: Schema_Compatibility;
370
+ /**
371
+ * @generated from protobuf field: string authority = 3
372
+ */
373
+ authority: string;
374
+ /**
375
+ * @generated from protobuf field: string name = 4
376
+ */
377
+ name: string;
378
+ /**
379
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 5
380
+ */
381
+ createdAt?: Timestamp;
382
+ /**
383
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 6
384
+ */
385
+ updatedAt?: Timestamp;
386
+ }
387
+ /**
388
+ * @generated from protobuf message raystack.stencil.v1beta1.UpdateSchemaMetadataRequest
389
+ */
390
+ export interface UpdateSchemaMetadataRequest {
391
+ /**
392
+ * @generated from protobuf field: string namespace_id = 1
393
+ */
394
+ namespaceId: string;
395
+ /**
396
+ * @generated from protobuf field: string schema_id = 2
397
+ */
398
+ schemaId: string;
399
+ /**
400
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3
401
+ */
402
+ compatibility: Schema_Compatibility;
403
+ }
404
+ /**
405
+ * @generated from protobuf message raystack.stencil.v1beta1.UpdateSchemaMetadataResponse
406
+ */
407
+ export interface UpdateSchemaMetadataResponse {
408
+ /**
409
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Format format = 1
410
+ */
411
+ format: Schema_Format;
412
+ /**
413
+ * @generated from protobuf field: raystack.stencil.v1beta1.Schema.Compatibility compatibility = 2
414
+ */
415
+ compatibility: Schema_Compatibility;
416
+ /**
417
+ * @generated from protobuf field: string authority = 3
418
+ */
419
+ authority: string;
420
+ }
421
+ /**
422
+ * @generated from protobuf message raystack.stencil.v1beta1.DeleteSchemaRequest
423
+ */
424
+ export interface DeleteSchemaRequest {
425
+ /**
426
+ * @generated from protobuf field: string namespace_id = 1
427
+ */
428
+ namespaceId: string;
429
+ /**
430
+ * @generated from protobuf field: string schema_id = 2
431
+ */
432
+ schemaId: string;
433
+ }
434
+ /**
435
+ * @generated from protobuf message raystack.stencil.v1beta1.DeleteSchemaResponse
436
+ */
437
+ export interface DeleteSchemaResponse {
438
+ /**
439
+ * @generated from protobuf field: string message = 1
440
+ */
441
+ message: string;
442
+ }
443
+ /**
444
+ * @generated from protobuf message raystack.stencil.v1beta1.ListVersionsRequest
445
+ */
446
+ export interface ListVersionsRequest {
447
+ /**
448
+ * @generated from protobuf field: string namespace_id = 1
449
+ */
450
+ namespaceId: string;
451
+ /**
452
+ * @generated from protobuf field: string schema_id = 2
453
+ */
454
+ schemaId: string;
455
+ }
456
+ /**
457
+ * @generated from protobuf message raystack.stencil.v1beta1.ListVersionsResponse
458
+ */
459
+ export interface ListVersionsResponse {
460
+ /**
461
+ * @generated from protobuf field: repeated int32 versions = 1
462
+ */
463
+ versions: number[];
464
+ }
465
+ /**
466
+ * @generated from protobuf message raystack.stencil.v1beta1.GetSchemaRequest
467
+ */
468
+ export interface GetSchemaRequest {
469
+ /**
470
+ * @generated from protobuf field: string namespace_id = 1
471
+ */
472
+ namespaceId: string;
473
+ /**
474
+ * @generated from protobuf field: string schema_id = 2
475
+ */
476
+ schemaId: string;
477
+ /**
478
+ * @generated from protobuf field: int32 version_id = 3
479
+ */
480
+ versionId: number;
481
+ }
482
+ /**
483
+ * @generated from protobuf message raystack.stencil.v1beta1.GetSchemaResponse
484
+ */
485
+ export interface GetSchemaResponse {
486
+ /**
487
+ * @generated from protobuf field: bytes data = 1
488
+ */
489
+ data: Uint8Array;
490
+ }
491
+ /**
492
+ * @generated from protobuf message raystack.stencil.v1beta1.DeleteVersionRequest
493
+ */
494
+ export interface DeleteVersionRequest {
495
+ /**
496
+ * @generated from protobuf field: string namespace_id = 1
497
+ */
498
+ namespaceId: string;
499
+ /**
500
+ * @generated from protobuf field: string schema_id = 2
501
+ */
502
+ schemaId: string;
503
+ /**
504
+ * @generated from protobuf field: int32 version_id = 3
505
+ */
506
+ versionId: number;
507
+ }
508
+ /**
509
+ * @generated from protobuf message raystack.stencil.v1beta1.DeleteVersionResponse
510
+ */
511
+ export interface DeleteVersionResponse {
512
+ /**
513
+ * @generated from protobuf field: string message = 1
514
+ */
515
+ message: string;
516
+ }
517
+ /**
518
+ * @generated from protobuf message raystack.stencil.v1beta1.SearchRequest
519
+ */
520
+ export interface SearchRequest {
521
+ /**
522
+ * @generated from protobuf field: string namespace_id = 1
523
+ */
524
+ namespaceId: string;
525
+ /**
526
+ * @generated from protobuf field: string schema_id = 2
527
+ */
528
+ schemaId: string;
529
+ /**
530
+ * @generated from protobuf field: string query = 3
531
+ */
532
+ query: string;
533
+ /**
534
+ * @generated from protobuf oneof: version
535
+ */
536
+ version: {
537
+ oneofKind: "history";
538
+ /**
539
+ * @generated from protobuf field: bool history = 4
540
+ */
541
+ history: boolean;
542
+ } | {
543
+ oneofKind: "versionId";
544
+ /**
545
+ * @generated from protobuf field: int32 version_id = 5
546
+ */
547
+ versionId: number;
548
+ } | {
549
+ oneofKind: undefined;
550
+ };
551
+ }
552
+ /**
553
+ * @generated from protobuf message raystack.stencil.v1beta1.SearchResponse
554
+ */
555
+ export interface SearchResponse {
556
+ /**
557
+ * @generated from protobuf field: repeated raystack.stencil.v1beta1.SearchHits hits = 1
558
+ */
559
+ hits: SearchHits[];
560
+ /**
561
+ * @generated from protobuf field: raystack.stencil.v1beta1.SearchMeta meta = 2
562
+ */
563
+ meta?: SearchMeta;
564
+ }
565
+ /**
566
+ * @generated from protobuf message raystack.stencil.v1beta1.SearchHits
567
+ */
568
+ export interface SearchHits {
569
+ /**
570
+ * @generated from protobuf field: string namespace_id = 1
571
+ */
572
+ namespaceId: string;
573
+ /**
574
+ * @generated from protobuf field: string schema_id = 2
575
+ */
576
+ schemaId: string;
577
+ /**
578
+ * @generated from protobuf field: int32 version_id = 3
579
+ */
580
+ versionId: number;
581
+ /**
582
+ * @generated from protobuf field: repeated string fields = 4
583
+ */
584
+ fields: string[];
585
+ /**
586
+ * @generated from protobuf field: repeated string types = 5
587
+ */
588
+ types: string[];
589
+ /**
590
+ * @generated from protobuf field: string path = 6
591
+ */
592
+ path: string;
593
+ }
594
+ /**
595
+ * @generated from protobuf message raystack.stencil.v1beta1.SearchMeta
596
+ */
597
+ export interface SearchMeta {
598
+ /**
599
+ * @generated from protobuf field: uint32 total = 1
600
+ */
601
+ total: number;
602
+ }
603
+ // @generated message type with reflection information, may provide speed optimized methods
604
+ class Namespace$Type extends MessageType<Namespace> {
605
+ constructor() {
606
+ super("raystack.stencil.v1beta1.Namespace", [
607
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
608
+ { no: 2, name: "format", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Format", Schema_Format, "FORMAT_"] },
609
+ { no: 3, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"] },
610
+ { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
611
+ { no: 5, name: "created_at", kind: "message", T: () => Timestamp },
612
+ { no: 6, name: "updated_at", kind: "message", T: () => Timestamp }
613
+ ]);
614
+ }
615
+ create(value?: PartialMessage<Namespace>): Namespace {
616
+ const message = globalThis.Object.create((this.messagePrototype!));
617
+ message.id = "";
618
+ message.format = 0;
619
+ message.compatibility = 0;
620
+ message.description = "";
621
+ if (value !== undefined)
622
+ reflectionMergePartial<Namespace>(this, message, value);
623
+ return message;
624
+ }
625
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Namespace): Namespace {
626
+ let message = target ?? this.create(), end = reader.pos + length;
627
+ while (reader.pos < end) {
628
+ let [fieldNo, wireType] = reader.tag();
629
+ switch (fieldNo) {
630
+ case /* string id */ 1:
631
+ message.id = reader.string();
632
+ break;
633
+ case /* raystack.stencil.v1beta1.Schema.Format format */ 2:
634
+ message.format = reader.int32();
635
+ break;
636
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 3:
637
+ message.compatibility = reader.int32();
638
+ break;
639
+ case /* string description */ 4:
640
+ message.description = reader.string();
641
+ break;
642
+ case /* google.protobuf.Timestamp created_at */ 5:
643
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
644
+ break;
645
+ case /* google.protobuf.Timestamp updated_at */ 6:
646
+ message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
647
+ break;
648
+ default:
649
+ let u = options.readUnknownField;
650
+ if (u === "throw")
651
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
652
+ let d = reader.skip(wireType);
653
+ if (u !== false)
654
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
655
+ }
656
+ }
657
+ return message;
658
+ }
659
+ internalBinaryWrite(message: Namespace, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
660
+ /* string id = 1; */
661
+ if (message.id !== "")
662
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
663
+ /* raystack.stencil.v1beta1.Schema.Format format = 2; */
664
+ if (message.format !== 0)
665
+ writer.tag(2, WireType.Varint).int32(message.format);
666
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3; */
667
+ if (message.compatibility !== 0)
668
+ writer.tag(3, WireType.Varint).int32(message.compatibility);
669
+ /* string description = 4; */
670
+ if (message.description !== "")
671
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
672
+ /* google.protobuf.Timestamp created_at = 5; */
673
+ if (message.createdAt)
674
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
675
+ /* google.protobuf.Timestamp updated_at = 6; */
676
+ if (message.updatedAt)
677
+ Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
678
+ let u = options.writeUnknownFields;
679
+ if (u !== false)
680
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
681
+ return writer;
682
+ }
683
+ }
684
+ /**
685
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.Namespace
686
+ */
687
+ export const Namespace = new Namespace$Type();
688
+ // @generated message type with reflection information, may provide speed optimized methods
689
+ class Schema$Type extends MessageType<Schema> {
690
+ constructor() {
691
+ super("raystack.stencil.v1beta1.Schema", [
692
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
693
+ { no: 2, name: "format", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Format", Schema_Format, "FORMAT_"] },
694
+ { no: 3, name: "authority", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
695
+ { no: 4, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"] },
696
+ { no: 5, name: "created_at", kind: "message", T: () => Timestamp },
697
+ { no: 6, name: "updated_at", kind: "message", T: () => Timestamp }
698
+ ]);
699
+ }
700
+ create(value?: PartialMessage<Schema>): Schema {
701
+ const message = globalThis.Object.create((this.messagePrototype!));
702
+ message.name = "";
703
+ message.format = 0;
704
+ message.authority = "";
705
+ message.compatibility = 0;
706
+ if (value !== undefined)
707
+ reflectionMergePartial<Schema>(this, message, value);
708
+ return message;
709
+ }
710
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Schema): Schema {
711
+ let message = target ?? this.create(), end = reader.pos + length;
712
+ while (reader.pos < end) {
713
+ let [fieldNo, wireType] = reader.tag();
714
+ switch (fieldNo) {
715
+ case /* string name */ 1:
716
+ message.name = reader.string();
717
+ break;
718
+ case /* raystack.stencil.v1beta1.Schema.Format format */ 2:
719
+ message.format = reader.int32();
720
+ break;
721
+ case /* string authority */ 3:
722
+ message.authority = reader.string();
723
+ break;
724
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 4:
725
+ message.compatibility = reader.int32();
726
+ break;
727
+ case /* google.protobuf.Timestamp created_at */ 5:
728
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
729
+ break;
730
+ case /* google.protobuf.Timestamp updated_at */ 6:
731
+ message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
732
+ break;
733
+ default:
734
+ let u = options.readUnknownField;
735
+ if (u === "throw")
736
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
737
+ let d = reader.skip(wireType);
738
+ if (u !== false)
739
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
740
+ }
741
+ }
742
+ return message;
743
+ }
744
+ internalBinaryWrite(message: Schema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
745
+ /* string name = 1; */
746
+ if (message.name !== "")
747
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
748
+ /* raystack.stencil.v1beta1.Schema.Format format = 2; */
749
+ if (message.format !== 0)
750
+ writer.tag(2, WireType.Varint).int32(message.format);
751
+ /* string authority = 3; */
752
+ if (message.authority !== "")
753
+ writer.tag(3, WireType.LengthDelimited).string(message.authority);
754
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 4; */
755
+ if (message.compatibility !== 0)
756
+ writer.tag(4, WireType.Varint).int32(message.compatibility);
757
+ /* google.protobuf.Timestamp created_at = 5; */
758
+ if (message.createdAt)
759
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
760
+ /* google.protobuf.Timestamp updated_at = 6; */
761
+ if (message.updatedAt)
762
+ Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
763
+ let u = options.writeUnknownFields;
764
+ if (u !== false)
765
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
766
+ return writer;
767
+ }
768
+ }
769
+ /**
770
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.Schema
771
+ */
772
+ export const Schema = new Schema$Type();
773
+ // @generated message type with reflection information, may provide speed optimized methods
774
+ class ListNamespacesRequest$Type extends MessageType<ListNamespacesRequest> {
775
+ constructor() {
776
+ super("raystack.stencil.v1beta1.ListNamespacesRequest", []);
777
+ }
778
+ create(value?: PartialMessage<ListNamespacesRequest>): ListNamespacesRequest {
779
+ const message = globalThis.Object.create((this.messagePrototype!));
780
+ if (value !== undefined)
781
+ reflectionMergePartial<ListNamespacesRequest>(this, message, value);
782
+ return message;
783
+ }
784
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListNamespacesRequest): ListNamespacesRequest {
785
+ let message = target ?? this.create(), end = reader.pos + length;
786
+ while (reader.pos < end) {
787
+ let [fieldNo, wireType] = reader.tag();
788
+ switch (fieldNo) {
789
+ default:
790
+ let u = options.readUnknownField;
791
+ if (u === "throw")
792
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
793
+ let d = reader.skip(wireType);
794
+ if (u !== false)
795
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
796
+ }
797
+ }
798
+ return message;
799
+ }
800
+ internalBinaryWrite(message: ListNamespacesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
801
+ let u = options.writeUnknownFields;
802
+ if (u !== false)
803
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
804
+ return writer;
805
+ }
806
+ }
807
+ /**
808
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.ListNamespacesRequest
809
+ */
810
+ export const ListNamespacesRequest = new ListNamespacesRequest$Type();
811
+ // @generated message type with reflection information, may provide speed optimized methods
812
+ class ListNamespacesResponse$Type extends MessageType<ListNamespacesResponse> {
813
+ constructor() {
814
+ super("raystack.stencil.v1beta1.ListNamespacesResponse", [
815
+ { no: 1, name: "namespaces", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Namespace }
816
+ ]);
817
+ }
818
+ create(value?: PartialMessage<ListNamespacesResponse>): ListNamespacesResponse {
819
+ const message = globalThis.Object.create((this.messagePrototype!));
820
+ message.namespaces = [];
821
+ if (value !== undefined)
822
+ reflectionMergePartial<ListNamespacesResponse>(this, message, value);
823
+ return message;
824
+ }
825
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListNamespacesResponse): ListNamespacesResponse {
826
+ let message = target ?? this.create(), end = reader.pos + length;
827
+ while (reader.pos < end) {
828
+ let [fieldNo, wireType] = reader.tag();
829
+ switch (fieldNo) {
830
+ case /* repeated raystack.stencil.v1beta1.Namespace namespaces */ 1:
831
+ message.namespaces.push(Namespace.internalBinaryRead(reader, reader.uint32(), options));
832
+ break;
833
+ default:
834
+ let u = options.readUnknownField;
835
+ if (u === "throw")
836
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
837
+ let d = reader.skip(wireType);
838
+ if (u !== false)
839
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
840
+ }
841
+ }
842
+ return message;
843
+ }
844
+ internalBinaryWrite(message: ListNamespacesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
845
+ /* repeated raystack.stencil.v1beta1.Namespace namespaces = 1; */
846
+ for (let i = 0; i < message.namespaces.length; i++)
847
+ Namespace.internalBinaryWrite(message.namespaces[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
848
+ let u = options.writeUnknownFields;
849
+ if (u !== false)
850
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
851
+ return writer;
852
+ }
853
+ }
854
+ /**
855
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.ListNamespacesResponse
856
+ */
857
+ export const ListNamespacesResponse = new ListNamespacesResponse$Type();
858
+ // @generated message type with reflection information, may provide speed optimized methods
859
+ class GetNamespaceRequest$Type extends MessageType<GetNamespaceRequest> {
860
+ constructor() {
861
+ super("raystack.stencil.v1beta1.GetNamespaceRequest", [
862
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
863
+ ]);
864
+ }
865
+ create(value?: PartialMessage<GetNamespaceRequest>): GetNamespaceRequest {
866
+ const message = globalThis.Object.create((this.messagePrototype!));
867
+ message.id = "";
868
+ if (value !== undefined)
869
+ reflectionMergePartial<GetNamespaceRequest>(this, message, value);
870
+ return message;
871
+ }
872
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetNamespaceRequest): GetNamespaceRequest {
873
+ let message = target ?? this.create(), end = reader.pos + length;
874
+ while (reader.pos < end) {
875
+ let [fieldNo, wireType] = reader.tag();
876
+ switch (fieldNo) {
877
+ case /* string id */ 1:
878
+ message.id = reader.string();
879
+ break;
880
+ default:
881
+ let u = options.readUnknownField;
882
+ if (u === "throw")
883
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
884
+ let d = reader.skip(wireType);
885
+ if (u !== false)
886
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
887
+ }
888
+ }
889
+ return message;
890
+ }
891
+ internalBinaryWrite(message: GetNamespaceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
892
+ /* string id = 1; */
893
+ if (message.id !== "")
894
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
895
+ let u = options.writeUnknownFields;
896
+ if (u !== false)
897
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
898
+ return writer;
899
+ }
900
+ }
901
+ /**
902
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetNamespaceRequest
903
+ */
904
+ export const GetNamespaceRequest = new GetNamespaceRequest$Type();
905
+ // @generated message type with reflection information, may provide speed optimized methods
906
+ class GetNamespaceResponse$Type extends MessageType<GetNamespaceResponse> {
907
+ constructor() {
908
+ super("raystack.stencil.v1beta1.GetNamespaceResponse", [
909
+ { no: 1, name: "namespace", kind: "message", T: () => Namespace }
910
+ ]);
911
+ }
912
+ create(value?: PartialMessage<GetNamespaceResponse>): GetNamespaceResponse {
913
+ const message = globalThis.Object.create((this.messagePrototype!));
914
+ if (value !== undefined)
915
+ reflectionMergePartial<GetNamespaceResponse>(this, message, value);
916
+ return message;
917
+ }
918
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetNamespaceResponse): GetNamespaceResponse {
919
+ let message = target ?? this.create(), end = reader.pos + length;
920
+ while (reader.pos < end) {
921
+ let [fieldNo, wireType] = reader.tag();
922
+ switch (fieldNo) {
923
+ case /* raystack.stencil.v1beta1.Namespace namespace */ 1:
924
+ message.namespace = Namespace.internalBinaryRead(reader, reader.uint32(), options, message.namespace);
925
+ break;
926
+ default:
927
+ let u = options.readUnknownField;
928
+ if (u === "throw")
929
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
930
+ let d = reader.skip(wireType);
931
+ if (u !== false)
932
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
933
+ }
934
+ }
935
+ return message;
936
+ }
937
+ internalBinaryWrite(message: GetNamespaceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
938
+ /* raystack.stencil.v1beta1.Namespace namespace = 1; */
939
+ if (message.namespace)
940
+ Namespace.internalBinaryWrite(message.namespace, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
941
+ let u = options.writeUnknownFields;
942
+ if (u !== false)
943
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
944
+ return writer;
945
+ }
946
+ }
947
+ /**
948
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetNamespaceResponse
949
+ */
950
+ export const GetNamespaceResponse = new GetNamespaceResponse$Type();
951
+ // @generated message type with reflection information, may provide speed optimized methods
952
+ class CreateNamespaceRequest$Type extends MessageType<CreateNamespaceRequest> {
953
+ constructor() {
954
+ super("raystack.stencil.v1beta1.CreateNamespaceRequest", [
955
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "google.api.field_behavior": ["REQUIRED"] } },
956
+ { no: 2, name: "format", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Format", Schema_Format, "FORMAT_"], options: { "google.api.field_behavior": ["REQUIRED"] } },
957
+ { no: 3, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"], options: { "google.api.field_behavior": ["REQUIRED"] } },
958
+ { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
959
+ ]);
960
+ }
961
+ create(value?: PartialMessage<CreateNamespaceRequest>): CreateNamespaceRequest {
962
+ const message = globalThis.Object.create((this.messagePrototype!));
963
+ message.id = "";
964
+ message.format = 0;
965
+ message.compatibility = 0;
966
+ message.description = "";
967
+ if (value !== undefined)
968
+ reflectionMergePartial<CreateNamespaceRequest>(this, message, value);
969
+ return message;
970
+ }
971
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateNamespaceRequest): CreateNamespaceRequest {
972
+ let message = target ?? this.create(), end = reader.pos + length;
973
+ while (reader.pos < end) {
974
+ let [fieldNo, wireType] = reader.tag();
975
+ switch (fieldNo) {
976
+ case /* string id */ 1:
977
+ message.id = reader.string();
978
+ break;
979
+ case /* raystack.stencil.v1beta1.Schema.Format format */ 2:
980
+ message.format = reader.int32();
981
+ break;
982
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 3:
983
+ message.compatibility = reader.int32();
984
+ break;
985
+ case /* string description */ 4:
986
+ message.description = reader.string();
987
+ break;
988
+ default:
989
+ let u = options.readUnknownField;
990
+ if (u === "throw")
991
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
992
+ let d = reader.skip(wireType);
993
+ if (u !== false)
994
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
995
+ }
996
+ }
997
+ return message;
998
+ }
999
+ internalBinaryWrite(message: CreateNamespaceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1000
+ /* string id = 1; */
1001
+ if (message.id !== "")
1002
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1003
+ /* raystack.stencil.v1beta1.Schema.Format format = 2; */
1004
+ if (message.format !== 0)
1005
+ writer.tag(2, WireType.Varint).int32(message.format);
1006
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3; */
1007
+ if (message.compatibility !== 0)
1008
+ writer.tag(3, WireType.Varint).int32(message.compatibility);
1009
+ /* string description = 4; */
1010
+ if (message.description !== "")
1011
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
1012
+ let u = options.writeUnknownFields;
1013
+ if (u !== false)
1014
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1015
+ return writer;
1016
+ }
1017
+ }
1018
+ /**
1019
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.CreateNamespaceRequest
1020
+ */
1021
+ export const CreateNamespaceRequest = new CreateNamespaceRequest$Type();
1022
+ // @generated message type with reflection information, may provide speed optimized methods
1023
+ class CreateNamespaceResponse$Type extends MessageType<CreateNamespaceResponse> {
1024
+ constructor() {
1025
+ super("raystack.stencil.v1beta1.CreateNamespaceResponse", [
1026
+ { no: 1, name: "namespace", kind: "message", T: () => Namespace }
1027
+ ]);
1028
+ }
1029
+ create(value?: PartialMessage<CreateNamespaceResponse>): CreateNamespaceResponse {
1030
+ const message = globalThis.Object.create((this.messagePrototype!));
1031
+ if (value !== undefined)
1032
+ reflectionMergePartial<CreateNamespaceResponse>(this, message, value);
1033
+ return message;
1034
+ }
1035
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateNamespaceResponse): CreateNamespaceResponse {
1036
+ let message = target ?? this.create(), end = reader.pos + length;
1037
+ while (reader.pos < end) {
1038
+ let [fieldNo, wireType] = reader.tag();
1039
+ switch (fieldNo) {
1040
+ case /* raystack.stencil.v1beta1.Namespace namespace */ 1:
1041
+ message.namespace = Namespace.internalBinaryRead(reader, reader.uint32(), options, message.namespace);
1042
+ break;
1043
+ default:
1044
+ let u = options.readUnknownField;
1045
+ if (u === "throw")
1046
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1047
+ let d = reader.skip(wireType);
1048
+ if (u !== false)
1049
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1050
+ }
1051
+ }
1052
+ return message;
1053
+ }
1054
+ internalBinaryWrite(message: CreateNamespaceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1055
+ /* raystack.stencil.v1beta1.Namespace namespace = 1; */
1056
+ if (message.namespace)
1057
+ Namespace.internalBinaryWrite(message.namespace, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1058
+ let u = options.writeUnknownFields;
1059
+ if (u !== false)
1060
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1061
+ return writer;
1062
+ }
1063
+ }
1064
+ /**
1065
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.CreateNamespaceResponse
1066
+ */
1067
+ export const CreateNamespaceResponse = new CreateNamespaceResponse$Type();
1068
+ // @generated message type with reflection information, may provide speed optimized methods
1069
+ class UpdateNamespaceRequest$Type extends MessageType<UpdateNamespaceRequest> {
1070
+ constructor() {
1071
+ super("raystack.stencil.v1beta1.UpdateNamespaceRequest", [
1072
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1073
+ { no: 2, name: "format", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Format", Schema_Format, "FORMAT_"], options: { "google.api.field_behavior": ["REQUIRED"] } },
1074
+ { no: 3, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"], options: { "google.api.field_behavior": ["REQUIRED"] } },
1075
+ { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1076
+ ]);
1077
+ }
1078
+ create(value?: PartialMessage<UpdateNamespaceRequest>): UpdateNamespaceRequest {
1079
+ const message = globalThis.Object.create((this.messagePrototype!));
1080
+ message.id = "";
1081
+ message.format = 0;
1082
+ message.compatibility = 0;
1083
+ message.description = "";
1084
+ if (value !== undefined)
1085
+ reflectionMergePartial<UpdateNamespaceRequest>(this, message, value);
1086
+ return message;
1087
+ }
1088
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateNamespaceRequest): UpdateNamespaceRequest {
1089
+ let message = target ?? this.create(), end = reader.pos + length;
1090
+ while (reader.pos < end) {
1091
+ let [fieldNo, wireType] = reader.tag();
1092
+ switch (fieldNo) {
1093
+ case /* string id */ 1:
1094
+ message.id = reader.string();
1095
+ break;
1096
+ case /* raystack.stencil.v1beta1.Schema.Format format */ 2:
1097
+ message.format = reader.int32();
1098
+ break;
1099
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 3:
1100
+ message.compatibility = reader.int32();
1101
+ break;
1102
+ case /* string description */ 4:
1103
+ message.description = reader.string();
1104
+ break;
1105
+ default:
1106
+ let u = options.readUnknownField;
1107
+ if (u === "throw")
1108
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1109
+ let d = reader.skip(wireType);
1110
+ if (u !== false)
1111
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1112
+ }
1113
+ }
1114
+ return message;
1115
+ }
1116
+ internalBinaryWrite(message: UpdateNamespaceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1117
+ /* string id = 1; */
1118
+ if (message.id !== "")
1119
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1120
+ /* raystack.stencil.v1beta1.Schema.Format format = 2; */
1121
+ if (message.format !== 0)
1122
+ writer.tag(2, WireType.Varint).int32(message.format);
1123
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3; */
1124
+ if (message.compatibility !== 0)
1125
+ writer.tag(3, WireType.Varint).int32(message.compatibility);
1126
+ /* string description = 4; */
1127
+ if (message.description !== "")
1128
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
1129
+ let u = options.writeUnknownFields;
1130
+ if (u !== false)
1131
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1132
+ return writer;
1133
+ }
1134
+ }
1135
+ /**
1136
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.UpdateNamespaceRequest
1137
+ */
1138
+ export const UpdateNamespaceRequest = new UpdateNamespaceRequest$Type();
1139
+ // @generated message type with reflection information, may provide speed optimized methods
1140
+ class UpdateNamespaceResponse$Type extends MessageType<UpdateNamespaceResponse> {
1141
+ constructor() {
1142
+ super("raystack.stencil.v1beta1.UpdateNamespaceResponse", [
1143
+ { no: 1, name: "namespace", kind: "message", T: () => Namespace }
1144
+ ]);
1145
+ }
1146
+ create(value?: PartialMessage<UpdateNamespaceResponse>): UpdateNamespaceResponse {
1147
+ const message = globalThis.Object.create((this.messagePrototype!));
1148
+ if (value !== undefined)
1149
+ reflectionMergePartial<UpdateNamespaceResponse>(this, message, value);
1150
+ return message;
1151
+ }
1152
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateNamespaceResponse): UpdateNamespaceResponse {
1153
+ let message = target ?? this.create(), end = reader.pos + length;
1154
+ while (reader.pos < end) {
1155
+ let [fieldNo, wireType] = reader.tag();
1156
+ switch (fieldNo) {
1157
+ case /* raystack.stencil.v1beta1.Namespace namespace */ 1:
1158
+ message.namespace = Namespace.internalBinaryRead(reader, reader.uint32(), options, message.namespace);
1159
+ break;
1160
+ default:
1161
+ let u = options.readUnknownField;
1162
+ if (u === "throw")
1163
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1164
+ let d = reader.skip(wireType);
1165
+ if (u !== false)
1166
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1167
+ }
1168
+ }
1169
+ return message;
1170
+ }
1171
+ internalBinaryWrite(message: UpdateNamespaceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1172
+ /* raystack.stencil.v1beta1.Namespace namespace = 1; */
1173
+ if (message.namespace)
1174
+ Namespace.internalBinaryWrite(message.namespace, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1175
+ let u = options.writeUnknownFields;
1176
+ if (u !== false)
1177
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1178
+ return writer;
1179
+ }
1180
+ }
1181
+ /**
1182
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.UpdateNamespaceResponse
1183
+ */
1184
+ export const UpdateNamespaceResponse = new UpdateNamespaceResponse$Type();
1185
+ // @generated message type with reflection information, may provide speed optimized methods
1186
+ class DeleteNamespaceRequest$Type extends MessageType<DeleteNamespaceRequest> {
1187
+ constructor() {
1188
+ super("raystack.stencil.v1beta1.DeleteNamespaceRequest", [
1189
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1190
+ ]);
1191
+ }
1192
+ create(value?: PartialMessage<DeleteNamespaceRequest>): DeleteNamespaceRequest {
1193
+ const message = globalThis.Object.create((this.messagePrototype!));
1194
+ message.id = "";
1195
+ if (value !== undefined)
1196
+ reflectionMergePartial<DeleteNamespaceRequest>(this, message, value);
1197
+ return message;
1198
+ }
1199
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteNamespaceRequest): DeleteNamespaceRequest {
1200
+ let message = target ?? this.create(), end = reader.pos + length;
1201
+ while (reader.pos < end) {
1202
+ let [fieldNo, wireType] = reader.tag();
1203
+ switch (fieldNo) {
1204
+ case /* string id */ 1:
1205
+ message.id = reader.string();
1206
+ break;
1207
+ default:
1208
+ let u = options.readUnknownField;
1209
+ if (u === "throw")
1210
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1211
+ let d = reader.skip(wireType);
1212
+ if (u !== false)
1213
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1214
+ }
1215
+ }
1216
+ return message;
1217
+ }
1218
+ internalBinaryWrite(message: DeleteNamespaceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1219
+ /* string id = 1; */
1220
+ if (message.id !== "")
1221
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1222
+ let u = options.writeUnknownFields;
1223
+ if (u !== false)
1224
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1225
+ return writer;
1226
+ }
1227
+ }
1228
+ /**
1229
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.DeleteNamespaceRequest
1230
+ */
1231
+ export const DeleteNamespaceRequest = new DeleteNamespaceRequest$Type();
1232
+ // @generated message type with reflection information, may provide speed optimized methods
1233
+ class DeleteNamespaceResponse$Type extends MessageType<DeleteNamespaceResponse> {
1234
+ constructor() {
1235
+ super("raystack.stencil.v1beta1.DeleteNamespaceResponse", [
1236
+ { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1237
+ ]);
1238
+ }
1239
+ create(value?: PartialMessage<DeleteNamespaceResponse>): DeleteNamespaceResponse {
1240
+ const message = globalThis.Object.create((this.messagePrototype!));
1241
+ message.message = "";
1242
+ if (value !== undefined)
1243
+ reflectionMergePartial<DeleteNamespaceResponse>(this, message, value);
1244
+ return message;
1245
+ }
1246
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteNamespaceResponse): DeleteNamespaceResponse {
1247
+ let message = target ?? this.create(), end = reader.pos + length;
1248
+ while (reader.pos < end) {
1249
+ let [fieldNo, wireType] = reader.tag();
1250
+ switch (fieldNo) {
1251
+ case /* string message */ 1:
1252
+ message.message = reader.string();
1253
+ break;
1254
+ default:
1255
+ let u = options.readUnknownField;
1256
+ if (u === "throw")
1257
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1258
+ let d = reader.skip(wireType);
1259
+ if (u !== false)
1260
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1261
+ }
1262
+ }
1263
+ return message;
1264
+ }
1265
+ internalBinaryWrite(message: DeleteNamespaceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1266
+ /* string message = 1; */
1267
+ if (message.message !== "")
1268
+ writer.tag(1, WireType.LengthDelimited).string(message.message);
1269
+ let u = options.writeUnknownFields;
1270
+ if (u !== false)
1271
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1272
+ return writer;
1273
+ }
1274
+ }
1275
+ /**
1276
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.DeleteNamespaceResponse
1277
+ */
1278
+ export const DeleteNamespaceResponse = new DeleteNamespaceResponse$Type();
1279
+ // @generated message type with reflection information, may provide speed optimized methods
1280
+ class ListSchemasRequest$Type extends MessageType<ListSchemasRequest> {
1281
+ constructor() {
1282
+ super("raystack.stencil.v1beta1.ListSchemasRequest", [
1283
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1284
+ ]);
1285
+ }
1286
+ create(value?: PartialMessage<ListSchemasRequest>): ListSchemasRequest {
1287
+ const message = globalThis.Object.create((this.messagePrototype!));
1288
+ message.id = "";
1289
+ if (value !== undefined)
1290
+ reflectionMergePartial<ListSchemasRequest>(this, message, value);
1291
+ return message;
1292
+ }
1293
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSchemasRequest): ListSchemasRequest {
1294
+ let message = target ?? this.create(), end = reader.pos + length;
1295
+ while (reader.pos < end) {
1296
+ let [fieldNo, wireType] = reader.tag();
1297
+ switch (fieldNo) {
1298
+ case /* string id */ 1:
1299
+ message.id = reader.string();
1300
+ break;
1301
+ default:
1302
+ let u = options.readUnknownField;
1303
+ if (u === "throw")
1304
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1305
+ let d = reader.skip(wireType);
1306
+ if (u !== false)
1307
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1308
+ }
1309
+ }
1310
+ return message;
1311
+ }
1312
+ internalBinaryWrite(message: ListSchemasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1313
+ /* string id = 1; */
1314
+ if (message.id !== "")
1315
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1316
+ let u = options.writeUnknownFields;
1317
+ if (u !== false)
1318
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1319
+ return writer;
1320
+ }
1321
+ }
1322
+ /**
1323
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.ListSchemasRequest
1324
+ */
1325
+ export const ListSchemasRequest = new ListSchemasRequest$Type();
1326
+ // @generated message type with reflection information, may provide speed optimized methods
1327
+ class ListSchemasResponse$Type extends MessageType<ListSchemasResponse> {
1328
+ constructor() {
1329
+ super("raystack.stencil.v1beta1.ListSchemasResponse", [
1330
+ { no: 1, name: "schemas", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Schema }
1331
+ ]);
1332
+ }
1333
+ create(value?: PartialMessage<ListSchemasResponse>): ListSchemasResponse {
1334
+ const message = globalThis.Object.create((this.messagePrototype!));
1335
+ message.schemas = [];
1336
+ if (value !== undefined)
1337
+ reflectionMergePartial<ListSchemasResponse>(this, message, value);
1338
+ return message;
1339
+ }
1340
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSchemasResponse): ListSchemasResponse {
1341
+ let message = target ?? this.create(), end = reader.pos + length;
1342
+ while (reader.pos < end) {
1343
+ let [fieldNo, wireType] = reader.tag();
1344
+ switch (fieldNo) {
1345
+ case /* repeated raystack.stencil.v1beta1.Schema schemas */ 1:
1346
+ message.schemas.push(Schema.internalBinaryRead(reader, reader.uint32(), options));
1347
+ break;
1348
+ default:
1349
+ let u = options.readUnknownField;
1350
+ if (u === "throw")
1351
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1352
+ let d = reader.skip(wireType);
1353
+ if (u !== false)
1354
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1355
+ }
1356
+ }
1357
+ return message;
1358
+ }
1359
+ internalBinaryWrite(message: ListSchemasResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1360
+ /* repeated raystack.stencil.v1beta1.Schema schemas = 1; */
1361
+ for (let i = 0; i < message.schemas.length; i++)
1362
+ Schema.internalBinaryWrite(message.schemas[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1363
+ let u = options.writeUnknownFields;
1364
+ if (u !== false)
1365
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1366
+ return writer;
1367
+ }
1368
+ }
1369
+ /**
1370
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.ListSchemasResponse
1371
+ */
1372
+ export const ListSchemasResponse = new ListSchemasResponse$Type();
1373
+ // @generated message type with reflection information, may provide speed optimized methods
1374
+ class GetLatestSchemaRequest$Type extends MessageType<GetLatestSchemaRequest> {
1375
+ constructor() {
1376
+ super("raystack.stencil.v1beta1.GetLatestSchemaRequest", [
1377
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1378
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1379
+ ]);
1380
+ }
1381
+ create(value?: PartialMessage<GetLatestSchemaRequest>): GetLatestSchemaRequest {
1382
+ const message = globalThis.Object.create((this.messagePrototype!));
1383
+ message.namespaceId = "";
1384
+ message.schemaId = "";
1385
+ if (value !== undefined)
1386
+ reflectionMergePartial<GetLatestSchemaRequest>(this, message, value);
1387
+ return message;
1388
+ }
1389
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetLatestSchemaRequest): GetLatestSchemaRequest {
1390
+ let message = target ?? this.create(), end = reader.pos + length;
1391
+ while (reader.pos < end) {
1392
+ let [fieldNo, wireType] = reader.tag();
1393
+ switch (fieldNo) {
1394
+ case /* string namespace_id */ 1:
1395
+ message.namespaceId = reader.string();
1396
+ break;
1397
+ case /* string schema_id */ 2:
1398
+ message.schemaId = reader.string();
1399
+ break;
1400
+ default:
1401
+ let u = options.readUnknownField;
1402
+ if (u === "throw")
1403
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1404
+ let d = reader.skip(wireType);
1405
+ if (u !== false)
1406
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1407
+ }
1408
+ }
1409
+ return message;
1410
+ }
1411
+ internalBinaryWrite(message: GetLatestSchemaRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1412
+ /* string namespace_id = 1; */
1413
+ if (message.namespaceId !== "")
1414
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
1415
+ /* string schema_id = 2; */
1416
+ if (message.schemaId !== "")
1417
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
1418
+ let u = options.writeUnknownFields;
1419
+ if (u !== false)
1420
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1421
+ return writer;
1422
+ }
1423
+ }
1424
+ /**
1425
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetLatestSchemaRequest
1426
+ */
1427
+ export const GetLatestSchemaRequest = new GetLatestSchemaRequest$Type();
1428
+ // @generated message type with reflection information, may provide speed optimized methods
1429
+ class GetLatestSchemaResponse$Type extends MessageType<GetLatestSchemaResponse> {
1430
+ constructor() {
1431
+ super("raystack.stencil.v1beta1.GetLatestSchemaResponse", [
1432
+ { no: 3, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
1433
+ ]);
1434
+ }
1435
+ create(value?: PartialMessage<GetLatestSchemaResponse>): GetLatestSchemaResponse {
1436
+ const message = globalThis.Object.create((this.messagePrototype!));
1437
+ message.data = new Uint8Array(0);
1438
+ if (value !== undefined)
1439
+ reflectionMergePartial<GetLatestSchemaResponse>(this, message, value);
1440
+ return message;
1441
+ }
1442
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetLatestSchemaResponse): GetLatestSchemaResponse {
1443
+ let message = target ?? this.create(), end = reader.pos + length;
1444
+ while (reader.pos < end) {
1445
+ let [fieldNo, wireType] = reader.tag();
1446
+ switch (fieldNo) {
1447
+ case /* bytes data */ 3:
1448
+ message.data = reader.bytes();
1449
+ break;
1450
+ default:
1451
+ let u = options.readUnknownField;
1452
+ if (u === "throw")
1453
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1454
+ let d = reader.skip(wireType);
1455
+ if (u !== false)
1456
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1457
+ }
1458
+ }
1459
+ return message;
1460
+ }
1461
+ internalBinaryWrite(message: GetLatestSchemaResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1462
+ /* bytes data = 3; */
1463
+ if (message.data.length)
1464
+ writer.tag(3, WireType.LengthDelimited).bytes(message.data);
1465
+ let u = options.writeUnknownFields;
1466
+ if (u !== false)
1467
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1468
+ return writer;
1469
+ }
1470
+ }
1471
+ /**
1472
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetLatestSchemaResponse
1473
+ */
1474
+ export const GetLatestSchemaResponse = new GetLatestSchemaResponse$Type();
1475
+ // @generated message type with reflection information, may provide speed optimized methods
1476
+ class CreateSchemaRequest$Type extends MessageType<CreateSchemaRequest> {
1477
+ constructor() {
1478
+ super("raystack.stencil.v1beta1.CreateSchemaRequest", [
1479
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1480
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1481
+ { no: 3, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/, options: { "google.api.field_behavior": ["REQUIRED"] } },
1482
+ { no: 4, name: "format", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Format", Schema_Format, "FORMAT_"] },
1483
+ { no: 5, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"] }
1484
+ ]);
1485
+ }
1486
+ create(value?: PartialMessage<CreateSchemaRequest>): CreateSchemaRequest {
1487
+ const message = globalThis.Object.create((this.messagePrototype!));
1488
+ message.namespaceId = "";
1489
+ message.schemaId = "";
1490
+ message.data = new Uint8Array(0);
1491
+ message.format = 0;
1492
+ message.compatibility = 0;
1493
+ if (value !== undefined)
1494
+ reflectionMergePartial<CreateSchemaRequest>(this, message, value);
1495
+ return message;
1496
+ }
1497
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSchemaRequest): CreateSchemaRequest {
1498
+ let message = target ?? this.create(), end = reader.pos + length;
1499
+ while (reader.pos < end) {
1500
+ let [fieldNo, wireType] = reader.tag();
1501
+ switch (fieldNo) {
1502
+ case /* string namespace_id */ 1:
1503
+ message.namespaceId = reader.string();
1504
+ break;
1505
+ case /* string schema_id */ 2:
1506
+ message.schemaId = reader.string();
1507
+ break;
1508
+ case /* bytes data */ 3:
1509
+ message.data = reader.bytes();
1510
+ break;
1511
+ case /* raystack.stencil.v1beta1.Schema.Format format */ 4:
1512
+ message.format = reader.int32();
1513
+ break;
1514
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 5:
1515
+ message.compatibility = reader.int32();
1516
+ break;
1517
+ default:
1518
+ let u = options.readUnknownField;
1519
+ if (u === "throw")
1520
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1521
+ let d = reader.skip(wireType);
1522
+ if (u !== false)
1523
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1524
+ }
1525
+ }
1526
+ return message;
1527
+ }
1528
+ internalBinaryWrite(message: CreateSchemaRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1529
+ /* string namespace_id = 1; */
1530
+ if (message.namespaceId !== "")
1531
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
1532
+ /* string schema_id = 2; */
1533
+ if (message.schemaId !== "")
1534
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
1535
+ /* bytes data = 3; */
1536
+ if (message.data.length)
1537
+ writer.tag(3, WireType.LengthDelimited).bytes(message.data);
1538
+ /* raystack.stencil.v1beta1.Schema.Format format = 4; */
1539
+ if (message.format !== 0)
1540
+ writer.tag(4, WireType.Varint).int32(message.format);
1541
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 5; */
1542
+ if (message.compatibility !== 0)
1543
+ writer.tag(5, WireType.Varint).int32(message.compatibility);
1544
+ let u = options.writeUnknownFields;
1545
+ if (u !== false)
1546
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1547
+ return writer;
1548
+ }
1549
+ }
1550
+ /**
1551
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.CreateSchemaRequest
1552
+ */
1553
+ export const CreateSchemaRequest = new CreateSchemaRequest$Type();
1554
+ // @generated message type with reflection information, may provide speed optimized methods
1555
+ class CreateSchemaResponse$Type extends MessageType<CreateSchemaResponse> {
1556
+ constructor() {
1557
+ super("raystack.stencil.v1beta1.CreateSchemaResponse", [
1558
+ { no: 1, name: "version", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1559
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1560
+ { no: 3, name: "location", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1561
+ ]);
1562
+ }
1563
+ create(value?: PartialMessage<CreateSchemaResponse>): CreateSchemaResponse {
1564
+ const message = globalThis.Object.create((this.messagePrototype!));
1565
+ message.version = 0;
1566
+ message.id = "";
1567
+ message.location = "";
1568
+ if (value !== undefined)
1569
+ reflectionMergePartial<CreateSchemaResponse>(this, message, value);
1570
+ return message;
1571
+ }
1572
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSchemaResponse): CreateSchemaResponse {
1573
+ let message = target ?? this.create(), end = reader.pos + length;
1574
+ while (reader.pos < end) {
1575
+ let [fieldNo, wireType] = reader.tag();
1576
+ switch (fieldNo) {
1577
+ case /* int32 version */ 1:
1578
+ message.version = reader.int32();
1579
+ break;
1580
+ case /* string id */ 2:
1581
+ message.id = reader.string();
1582
+ break;
1583
+ case /* string location */ 3:
1584
+ message.location = reader.string();
1585
+ break;
1586
+ default:
1587
+ let u = options.readUnknownField;
1588
+ if (u === "throw")
1589
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1590
+ let d = reader.skip(wireType);
1591
+ if (u !== false)
1592
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1593
+ }
1594
+ }
1595
+ return message;
1596
+ }
1597
+ internalBinaryWrite(message: CreateSchemaResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1598
+ /* int32 version = 1; */
1599
+ if (message.version !== 0)
1600
+ writer.tag(1, WireType.Varint).int32(message.version);
1601
+ /* string id = 2; */
1602
+ if (message.id !== "")
1603
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
1604
+ /* string location = 3; */
1605
+ if (message.location !== "")
1606
+ writer.tag(3, WireType.LengthDelimited).string(message.location);
1607
+ let u = options.writeUnknownFields;
1608
+ if (u !== false)
1609
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1610
+ return writer;
1611
+ }
1612
+ }
1613
+ /**
1614
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.CreateSchemaResponse
1615
+ */
1616
+ export const CreateSchemaResponse = new CreateSchemaResponse$Type();
1617
+ // @generated message type with reflection information, may provide speed optimized methods
1618
+ class CheckCompatibilityRequest$Type extends MessageType<CheckCompatibilityRequest> {
1619
+ constructor() {
1620
+ super("raystack.stencil.v1beta1.CheckCompatibilityRequest", [
1621
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1622
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1623
+ { no: 3, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/, options: { "google.api.field_behavior": ["REQUIRED"] } },
1624
+ { no: 4, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"] }
1625
+ ]);
1626
+ }
1627
+ create(value?: PartialMessage<CheckCompatibilityRequest>): CheckCompatibilityRequest {
1628
+ const message = globalThis.Object.create((this.messagePrototype!));
1629
+ message.namespaceId = "";
1630
+ message.schemaId = "";
1631
+ message.data = new Uint8Array(0);
1632
+ message.compatibility = 0;
1633
+ if (value !== undefined)
1634
+ reflectionMergePartial<CheckCompatibilityRequest>(this, message, value);
1635
+ return message;
1636
+ }
1637
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckCompatibilityRequest): CheckCompatibilityRequest {
1638
+ let message = target ?? this.create(), end = reader.pos + length;
1639
+ while (reader.pos < end) {
1640
+ let [fieldNo, wireType] = reader.tag();
1641
+ switch (fieldNo) {
1642
+ case /* string namespace_id */ 1:
1643
+ message.namespaceId = reader.string();
1644
+ break;
1645
+ case /* string schema_id */ 2:
1646
+ message.schemaId = reader.string();
1647
+ break;
1648
+ case /* bytes data */ 3:
1649
+ message.data = reader.bytes();
1650
+ break;
1651
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 4:
1652
+ message.compatibility = reader.int32();
1653
+ break;
1654
+ default:
1655
+ let u = options.readUnknownField;
1656
+ if (u === "throw")
1657
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1658
+ let d = reader.skip(wireType);
1659
+ if (u !== false)
1660
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1661
+ }
1662
+ }
1663
+ return message;
1664
+ }
1665
+ internalBinaryWrite(message: CheckCompatibilityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1666
+ /* string namespace_id = 1; */
1667
+ if (message.namespaceId !== "")
1668
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
1669
+ /* string schema_id = 2; */
1670
+ if (message.schemaId !== "")
1671
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
1672
+ /* bytes data = 3; */
1673
+ if (message.data.length)
1674
+ writer.tag(3, WireType.LengthDelimited).bytes(message.data);
1675
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 4; */
1676
+ if (message.compatibility !== 0)
1677
+ writer.tag(4, WireType.Varint).int32(message.compatibility);
1678
+ let u = options.writeUnknownFields;
1679
+ if (u !== false)
1680
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1681
+ return writer;
1682
+ }
1683
+ }
1684
+ /**
1685
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.CheckCompatibilityRequest
1686
+ */
1687
+ export const CheckCompatibilityRequest = new CheckCompatibilityRequest$Type();
1688
+ // @generated message type with reflection information, may provide speed optimized methods
1689
+ class CheckCompatibilityResponse$Type extends MessageType<CheckCompatibilityResponse> {
1690
+ constructor() {
1691
+ super("raystack.stencil.v1beta1.CheckCompatibilityResponse", []);
1692
+ }
1693
+ create(value?: PartialMessage<CheckCompatibilityResponse>): CheckCompatibilityResponse {
1694
+ const message = globalThis.Object.create((this.messagePrototype!));
1695
+ if (value !== undefined)
1696
+ reflectionMergePartial<CheckCompatibilityResponse>(this, message, value);
1697
+ return message;
1698
+ }
1699
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckCompatibilityResponse): CheckCompatibilityResponse {
1700
+ let message = target ?? this.create(), end = reader.pos + length;
1701
+ while (reader.pos < end) {
1702
+ let [fieldNo, wireType] = reader.tag();
1703
+ switch (fieldNo) {
1704
+ default:
1705
+ let u = options.readUnknownField;
1706
+ if (u === "throw")
1707
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1708
+ let d = reader.skip(wireType);
1709
+ if (u !== false)
1710
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1711
+ }
1712
+ }
1713
+ return message;
1714
+ }
1715
+ internalBinaryWrite(message: CheckCompatibilityResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1716
+ let u = options.writeUnknownFields;
1717
+ if (u !== false)
1718
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1719
+ return writer;
1720
+ }
1721
+ }
1722
+ /**
1723
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.CheckCompatibilityResponse
1724
+ */
1725
+ export const CheckCompatibilityResponse = new CheckCompatibilityResponse$Type();
1726
+ // @generated message type with reflection information, may provide speed optimized methods
1727
+ class GetSchemaMetadataRequest$Type extends MessageType<GetSchemaMetadataRequest> {
1728
+ constructor() {
1729
+ super("raystack.stencil.v1beta1.GetSchemaMetadataRequest", [
1730
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1731
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1732
+ ]);
1733
+ }
1734
+ create(value?: PartialMessage<GetSchemaMetadataRequest>): GetSchemaMetadataRequest {
1735
+ const message = globalThis.Object.create((this.messagePrototype!));
1736
+ message.namespaceId = "";
1737
+ message.schemaId = "";
1738
+ if (value !== undefined)
1739
+ reflectionMergePartial<GetSchemaMetadataRequest>(this, message, value);
1740
+ return message;
1741
+ }
1742
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSchemaMetadataRequest): GetSchemaMetadataRequest {
1743
+ let message = target ?? this.create(), end = reader.pos + length;
1744
+ while (reader.pos < end) {
1745
+ let [fieldNo, wireType] = reader.tag();
1746
+ switch (fieldNo) {
1747
+ case /* string namespace_id */ 1:
1748
+ message.namespaceId = reader.string();
1749
+ break;
1750
+ case /* string schema_id */ 2:
1751
+ message.schemaId = reader.string();
1752
+ break;
1753
+ default:
1754
+ let u = options.readUnknownField;
1755
+ if (u === "throw")
1756
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1757
+ let d = reader.skip(wireType);
1758
+ if (u !== false)
1759
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1760
+ }
1761
+ }
1762
+ return message;
1763
+ }
1764
+ internalBinaryWrite(message: GetSchemaMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1765
+ /* string namespace_id = 1; */
1766
+ if (message.namespaceId !== "")
1767
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
1768
+ /* string schema_id = 2; */
1769
+ if (message.schemaId !== "")
1770
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
1771
+ let u = options.writeUnknownFields;
1772
+ if (u !== false)
1773
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1774
+ return writer;
1775
+ }
1776
+ }
1777
+ /**
1778
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetSchemaMetadataRequest
1779
+ */
1780
+ export const GetSchemaMetadataRequest = new GetSchemaMetadataRequest$Type();
1781
+ // @generated message type with reflection information, may provide speed optimized methods
1782
+ class GetSchemaMetadataResponse$Type extends MessageType<GetSchemaMetadataResponse> {
1783
+ constructor() {
1784
+ super("raystack.stencil.v1beta1.GetSchemaMetadataResponse", [
1785
+ { no: 1, name: "format", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Format", Schema_Format, "FORMAT_"] },
1786
+ { no: 2, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"] },
1787
+ { no: 3, name: "authority", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1788
+ { no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1789
+ { no: 5, name: "created_at", kind: "message", T: () => Timestamp },
1790
+ { no: 6, name: "updated_at", kind: "message", T: () => Timestamp }
1791
+ ]);
1792
+ }
1793
+ create(value?: PartialMessage<GetSchemaMetadataResponse>): GetSchemaMetadataResponse {
1794
+ const message = globalThis.Object.create((this.messagePrototype!));
1795
+ message.format = 0;
1796
+ message.compatibility = 0;
1797
+ message.authority = "";
1798
+ message.name = "";
1799
+ if (value !== undefined)
1800
+ reflectionMergePartial<GetSchemaMetadataResponse>(this, message, value);
1801
+ return message;
1802
+ }
1803
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSchemaMetadataResponse): GetSchemaMetadataResponse {
1804
+ let message = target ?? this.create(), end = reader.pos + length;
1805
+ while (reader.pos < end) {
1806
+ let [fieldNo, wireType] = reader.tag();
1807
+ switch (fieldNo) {
1808
+ case /* raystack.stencil.v1beta1.Schema.Format format */ 1:
1809
+ message.format = reader.int32();
1810
+ break;
1811
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 2:
1812
+ message.compatibility = reader.int32();
1813
+ break;
1814
+ case /* string authority */ 3:
1815
+ message.authority = reader.string();
1816
+ break;
1817
+ case /* string name */ 4:
1818
+ message.name = reader.string();
1819
+ break;
1820
+ case /* google.protobuf.Timestamp created_at */ 5:
1821
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
1822
+ break;
1823
+ case /* google.protobuf.Timestamp updated_at */ 6:
1824
+ message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
1825
+ break;
1826
+ default:
1827
+ let u = options.readUnknownField;
1828
+ if (u === "throw")
1829
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1830
+ let d = reader.skip(wireType);
1831
+ if (u !== false)
1832
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1833
+ }
1834
+ }
1835
+ return message;
1836
+ }
1837
+ internalBinaryWrite(message: GetSchemaMetadataResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1838
+ /* raystack.stencil.v1beta1.Schema.Format format = 1; */
1839
+ if (message.format !== 0)
1840
+ writer.tag(1, WireType.Varint).int32(message.format);
1841
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 2; */
1842
+ if (message.compatibility !== 0)
1843
+ writer.tag(2, WireType.Varint).int32(message.compatibility);
1844
+ /* string authority = 3; */
1845
+ if (message.authority !== "")
1846
+ writer.tag(3, WireType.LengthDelimited).string(message.authority);
1847
+ /* string name = 4; */
1848
+ if (message.name !== "")
1849
+ writer.tag(4, WireType.LengthDelimited).string(message.name);
1850
+ /* google.protobuf.Timestamp created_at = 5; */
1851
+ if (message.createdAt)
1852
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
1853
+ /* google.protobuf.Timestamp updated_at = 6; */
1854
+ if (message.updatedAt)
1855
+ Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
1856
+ let u = options.writeUnknownFields;
1857
+ if (u !== false)
1858
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1859
+ return writer;
1860
+ }
1861
+ }
1862
+ /**
1863
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetSchemaMetadataResponse
1864
+ */
1865
+ export const GetSchemaMetadataResponse = new GetSchemaMetadataResponse$Type();
1866
+ // @generated message type with reflection information, may provide speed optimized methods
1867
+ class UpdateSchemaMetadataRequest$Type extends MessageType<UpdateSchemaMetadataRequest> {
1868
+ constructor() {
1869
+ super("raystack.stencil.v1beta1.UpdateSchemaMetadataRequest", [
1870
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1871
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1872
+ { no: 3, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"] }
1873
+ ]);
1874
+ }
1875
+ create(value?: PartialMessage<UpdateSchemaMetadataRequest>): UpdateSchemaMetadataRequest {
1876
+ const message = globalThis.Object.create((this.messagePrototype!));
1877
+ message.namespaceId = "";
1878
+ message.schemaId = "";
1879
+ message.compatibility = 0;
1880
+ if (value !== undefined)
1881
+ reflectionMergePartial<UpdateSchemaMetadataRequest>(this, message, value);
1882
+ return message;
1883
+ }
1884
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSchemaMetadataRequest): UpdateSchemaMetadataRequest {
1885
+ let message = target ?? this.create(), end = reader.pos + length;
1886
+ while (reader.pos < end) {
1887
+ let [fieldNo, wireType] = reader.tag();
1888
+ switch (fieldNo) {
1889
+ case /* string namespace_id */ 1:
1890
+ message.namespaceId = reader.string();
1891
+ break;
1892
+ case /* string schema_id */ 2:
1893
+ message.schemaId = reader.string();
1894
+ break;
1895
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 3:
1896
+ message.compatibility = reader.int32();
1897
+ break;
1898
+ default:
1899
+ let u = options.readUnknownField;
1900
+ if (u === "throw")
1901
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1902
+ let d = reader.skip(wireType);
1903
+ if (u !== false)
1904
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1905
+ }
1906
+ }
1907
+ return message;
1908
+ }
1909
+ internalBinaryWrite(message: UpdateSchemaMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1910
+ /* string namespace_id = 1; */
1911
+ if (message.namespaceId !== "")
1912
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
1913
+ /* string schema_id = 2; */
1914
+ if (message.schemaId !== "")
1915
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
1916
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 3; */
1917
+ if (message.compatibility !== 0)
1918
+ writer.tag(3, WireType.Varint).int32(message.compatibility);
1919
+ let u = options.writeUnknownFields;
1920
+ if (u !== false)
1921
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1922
+ return writer;
1923
+ }
1924
+ }
1925
+ /**
1926
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.UpdateSchemaMetadataRequest
1927
+ */
1928
+ export const UpdateSchemaMetadataRequest = new UpdateSchemaMetadataRequest$Type();
1929
+ // @generated message type with reflection information, may provide speed optimized methods
1930
+ class UpdateSchemaMetadataResponse$Type extends MessageType<UpdateSchemaMetadataResponse> {
1931
+ constructor() {
1932
+ super("raystack.stencil.v1beta1.UpdateSchemaMetadataResponse", [
1933
+ { no: 1, name: "format", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Format", Schema_Format, "FORMAT_"] },
1934
+ { no: 2, name: "compatibility", kind: "enum", T: () => ["raystack.stencil.v1beta1.Schema.Compatibility", Schema_Compatibility, "COMPATIBILITY_"] },
1935
+ { no: 3, name: "authority", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1936
+ ]);
1937
+ }
1938
+ create(value?: PartialMessage<UpdateSchemaMetadataResponse>): UpdateSchemaMetadataResponse {
1939
+ const message = globalThis.Object.create((this.messagePrototype!));
1940
+ message.format = 0;
1941
+ message.compatibility = 0;
1942
+ message.authority = "";
1943
+ if (value !== undefined)
1944
+ reflectionMergePartial<UpdateSchemaMetadataResponse>(this, message, value);
1945
+ return message;
1946
+ }
1947
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSchemaMetadataResponse): UpdateSchemaMetadataResponse {
1948
+ let message = target ?? this.create(), end = reader.pos + length;
1949
+ while (reader.pos < end) {
1950
+ let [fieldNo, wireType] = reader.tag();
1951
+ switch (fieldNo) {
1952
+ case /* raystack.stencil.v1beta1.Schema.Format format */ 1:
1953
+ message.format = reader.int32();
1954
+ break;
1955
+ case /* raystack.stencil.v1beta1.Schema.Compatibility compatibility */ 2:
1956
+ message.compatibility = reader.int32();
1957
+ break;
1958
+ case /* string authority */ 3:
1959
+ message.authority = reader.string();
1960
+ break;
1961
+ default:
1962
+ let u = options.readUnknownField;
1963
+ if (u === "throw")
1964
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1965
+ let d = reader.skip(wireType);
1966
+ if (u !== false)
1967
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1968
+ }
1969
+ }
1970
+ return message;
1971
+ }
1972
+ internalBinaryWrite(message: UpdateSchemaMetadataResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1973
+ /* raystack.stencil.v1beta1.Schema.Format format = 1; */
1974
+ if (message.format !== 0)
1975
+ writer.tag(1, WireType.Varint).int32(message.format);
1976
+ /* raystack.stencil.v1beta1.Schema.Compatibility compatibility = 2; */
1977
+ if (message.compatibility !== 0)
1978
+ writer.tag(2, WireType.Varint).int32(message.compatibility);
1979
+ /* string authority = 3; */
1980
+ if (message.authority !== "")
1981
+ writer.tag(3, WireType.LengthDelimited).string(message.authority);
1982
+ let u = options.writeUnknownFields;
1983
+ if (u !== false)
1984
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1985
+ return writer;
1986
+ }
1987
+ }
1988
+ /**
1989
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.UpdateSchemaMetadataResponse
1990
+ */
1991
+ export const UpdateSchemaMetadataResponse = new UpdateSchemaMetadataResponse$Type();
1992
+ // @generated message type with reflection information, may provide speed optimized methods
1993
+ class DeleteSchemaRequest$Type extends MessageType<DeleteSchemaRequest> {
1994
+ constructor() {
1995
+ super("raystack.stencil.v1beta1.DeleteSchemaRequest", [
1996
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1997
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1998
+ ]);
1999
+ }
2000
+ create(value?: PartialMessage<DeleteSchemaRequest>): DeleteSchemaRequest {
2001
+ const message = globalThis.Object.create((this.messagePrototype!));
2002
+ message.namespaceId = "";
2003
+ message.schemaId = "";
2004
+ if (value !== undefined)
2005
+ reflectionMergePartial<DeleteSchemaRequest>(this, message, value);
2006
+ return message;
2007
+ }
2008
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSchemaRequest): DeleteSchemaRequest {
2009
+ let message = target ?? this.create(), end = reader.pos + length;
2010
+ while (reader.pos < end) {
2011
+ let [fieldNo, wireType] = reader.tag();
2012
+ switch (fieldNo) {
2013
+ case /* string namespace_id */ 1:
2014
+ message.namespaceId = reader.string();
2015
+ break;
2016
+ case /* string schema_id */ 2:
2017
+ message.schemaId = reader.string();
2018
+ break;
2019
+ default:
2020
+ let u = options.readUnknownField;
2021
+ if (u === "throw")
2022
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2023
+ let d = reader.skip(wireType);
2024
+ if (u !== false)
2025
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2026
+ }
2027
+ }
2028
+ return message;
2029
+ }
2030
+ internalBinaryWrite(message: DeleteSchemaRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2031
+ /* string namespace_id = 1; */
2032
+ if (message.namespaceId !== "")
2033
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
2034
+ /* string schema_id = 2; */
2035
+ if (message.schemaId !== "")
2036
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
2037
+ let u = options.writeUnknownFields;
2038
+ if (u !== false)
2039
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2040
+ return writer;
2041
+ }
2042
+ }
2043
+ /**
2044
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.DeleteSchemaRequest
2045
+ */
2046
+ export const DeleteSchemaRequest = new DeleteSchemaRequest$Type();
2047
+ // @generated message type with reflection information, may provide speed optimized methods
2048
+ class DeleteSchemaResponse$Type extends MessageType<DeleteSchemaResponse> {
2049
+ constructor() {
2050
+ super("raystack.stencil.v1beta1.DeleteSchemaResponse", [
2051
+ { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2052
+ ]);
2053
+ }
2054
+ create(value?: PartialMessage<DeleteSchemaResponse>): DeleteSchemaResponse {
2055
+ const message = globalThis.Object.create((this.messagePrototype!));
2056
+ message.message = "";
2057
+ if (value !== undefined)
2058
+ reflectionMergePartial<DeleteSchemaResponse>(this, message, value);
2059
+ return message;
2060
+ }
2061
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSchemaResponse): DeleteSchemaResponse {
2062
+ let message = target ?? this.create(), end = reader.pos + length;
2063
+ while (reader.pos < end) {
2064
+ let [fieldNo, wireType] = reader.tag();
2065
+ switch (fieldNo) {
2066
+ case /* string message */ 1:
2067
+ message.message = reader.string();
2068
+ break;
2069
+ default:
2070
+ let u = options.readUnknownField;
2071
+ if (u === "throw")
2072
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2073
+ let d = reader.skip(wireType);
2074
+ if (u !== false)
2075
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2076
+ }
2077
+ }
2078
+ return message;
2079
+ }
2080
+ internalBinaryWrite(message: DeleteSchemaResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2081
+ /* string message = 1; */
2082
+ if (message.message !== "")
2083
+ writer.tag(1, WireType.LengthDelimited).string(message.message);
2084
+ let u = options.writeUnknownFields;
2085
+ if (u !== false)
2086
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2087
+ return writer;
2088
+ }
2089
+ }
2090
+ /**
2091
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.DeleteSchemaResponse
2092
+ */
2093
+ export const DeleteSchemaResponse = new DeleteSchemaResponse$Type();
2094
+ // @generated message type with reflection information, may provide speed optimized methods
2095
+ class ListVersionsRequest$Type extends MessageType<ListVersionsRequest> {
2096
+ constructor() {
2097
+ super("raystack.stencil.v1beta1.ListVersionsRequest", [
2098
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2099
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2100
+ ]);
2101
+ }
2102
+ create(value?: PartialMessage<ListVersionsRequest>): ListVersionsRequest {
2103
+ const message = globalThis.Object.create((this.messagePrototype!));
2104
+ message.namespaceId = "";
2105
+ message.schemaId = "";
2106
+ if (value !== undefined)
2107
+ reflectionMergePartial<ListVersionsRequest>(this, message, value);
2108
+ return message;
2109
+ }
2110
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListVersionsRequest): ListVersionsRequest {
2111
+ let message = target ?? this.create(), end = reader.pos + length;
2112
+ while (reader.pos < end) {
2113
+ let [fieldNo, wireType] = reader.tag();
2114
+ switch (fieldNo) {
2115
+ case /* string namespace_id */ 1:
2116
+ message.namespaceId = reader.string();
2117
+ break;
2118
+ case /* string schema_id */ 2:
2119
+ message.schemaId = reader.string();
2120
+ break;
2121
+ default:
2122
+ let u = options.readUnknownField;
2123
+ if (u === "throw")
2124
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2125
+ let d = reader.skip(wireType);
2126
+ if (u !== false)
2127
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2128
+ }
2129
+ }
2130
+ return message;
2131
+ }
2132
+ internalBinaryWrite(message: ListVersionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2133
+ /* string namespace_id = 1; */
2134
+ if (message.namespaceId !== "")
2135
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
2136
+ /* string schema_id = 2; */
2137
+ if (message.schemaId !== "")
2138
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
2139
+ let u = options.writeUnknownFields;
2140
+ if (u !== false)
2141
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2142
+ return writer;
2143
+ }
2144
+ }
2145
+ /**
2146
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.ListVersionsRequest
2147
+ */
2148
+ export const ListVersionsRequest = new ListVersionsRequest$Type();
2149
+ // @generated message type with reflection information, may provide speed optimized methods
2150
+ class ListVersionsResponse$Type extends MessageType<ListVersionsResponse> {
2151
+ constructor() {
2152
+ super("raystack.stencil.v1beta1.ListVersionsResponse", [
2153
+ { no: 1, name: "versions", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
2154
+ ]);
2155
+ }
2156
+ create(value?: PartialMessage<ListVersionsResponse>): ListVersionsResponse {
2157
+ const message = globalThis.Object.create((this.messagePrototype!));
2158
+ message.versions = [];
2159
+ if (value !== undefined)
2160
+ reflectionMergePartial<ListVersionsResponse>(this, message, value);
2161
+ return message;
2162
+ }
2163
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListVersionsResponse): ListVersionsResponse {
2164
+ let message = target ?? this.create(), end = reader.pos + length;
2165
+ while (reader.pos < end) {
2166
+ let [fieldNo, wireType] = reader.tag();
2167
+ switch (fieldNo) {
2168
+ case /* repeated int32 versions */ 1:
2169
+ if (wireType === WireType.LengthDelimited)
2170
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
2171
+ message.versions.push(reader.int32());
2172
+ else
2173
+ message.versions.push(reader.int32());
2174
+ break;
2175
+ default:
2176
+ let u = options.readUnknownField;
2177
+ if (u === "throw")
2178
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2179
+ let d = reader.skip(wireType);
2180
+ if (u !== false)
2181
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2182
+ }
2183
+ }
2184
+ return message;
2185
+ }
2186
+ internalBinaryWrite(message: ListVersionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2187
+ /* repeated int32 versions = 1; */
2188
+ if (message.versions.length) {
2189
+ writer.tag(1, WireType.LengthDelimited).fork();
2190
+ for (let i = 0; i < message.versions.length; i++)
2191
+ writer.int32(message.versions[i]);
2192
+ writer.join();
2193
+ }
2194
+ let u = options.writeUnknownFields;
2195
+ if (u !== false)
2196
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2197
+ return writer;
2198
+ }
2199
+ }
2200
+ /**
2201
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.ListVersionsResponse
2202
+ */
2203
+ export const ListVersionsResponse = new ListVersionsResponse$Type();
2204
+ // @generated message type with reflection information, may provide speed optimized methods
2205
+ class GetSchemaRequest$Type extends MessageType<GetSchemaRequest> {
2206
+ constructor() {
2207
+ super("raystack.stencil.v1beta1.GetSchemaRequest", [
2208
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2209
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2210
+ { no: 3, name: "version_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
2211
+ ]);
2212
+ }
2213
+ create(value?: PartialMessage<GetSchemaRequest>): GetSchemaRequest {
2214
+ const message = globalThis.Object.create((this.messagePrototype!));
2215
+ message.namespaceId = "";
2216
+ message.schemaId = "";
2217
+ message.versionId = 0;
2218
+ if (value !== undefined)
2219
+ reflectionMergePartial<GetSchemaRequest>(this, message, value);
2220
+ return message;
2221
+ }
2222
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSchemaRequest): GetSchemaRequest {
2223
+ let message = target ?? this.create(), end = reader.pos + length;
2224
+ while (reader.pos < end) {
2225
+ let [fieldNo, wireType] = reader.tag();
2226
+ switch (fieldNo) {
2227
+ case /* string namespace_id */ 1:
2228
+ message.namespaceId = reader.string();
2229
+ break;
2230
+ case /* string schema_id */ 2:
2231
+ message.schemaId = reader.string();
2232
+ break;
2233
+ case /* int32 version_id */ 3:
2234
+ message.versionId = reader.int32();
2235
+ break;
2236
+ default:
2237
+ let u = options.readUnknownField;
2238
+ if (u === "throw")
2239
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2240
+ let d = reader.skip(wireType);
2241
+ if (u !== false)
2242
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2243
+ }
2244
+ }
2245
+ return message;
2246
+ }
2247
+ internalBinaryWrite(message: GetSchemaRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2248
+ /* string namespace_id = 1; */
2249
+ if (message.namespaceId !== "")
2250
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
2251
+ /* string schema_id = 2; */
2252
+ if (message.schemaId !== "")
2253
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
2254
+ /* int32 version_id = 3; */
2255
+ if (message.versionId !== 0)
2256
+ writer.tag(3, WireType.Varint).int32(message.versionId);
2257
+ let u = options.writeUnknownFields;
2258
+ if (u !== false)
2259
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2260
+ return writer;
2261
+ }
2262
+ }
2263
+ /**
2264
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetSchemaRequest
2265
+ */
2266
+ export const GetSchemaRequest = new GetSchemaRequest$Type();
2267
+ // @generated message type with reflection information, may provide speed optimized methods
2268
+ class GetSchemaResponse$Type extends MessageType<GetSchemaResponse> {
2269
+ constructor() {
2270
+ super("raystack.stencil.v1beta1.GetSchemaResponse", [
2271
+ { no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
2272
+ ]);
2273
+ }
2274
+ create(value?: PartialMessage<GetSchemaResponse>): GetSchemaResponse {
2275
+ const message = globalThis.Object.create((this.messagePrototype!));
2276
+ message.data = new Uint8Array(0);
2277
+ if (value !== undefined)
2278
+ reflectionMergePartial<GetSchemaResponse>(this, message, value);
2279
+ return message;
2280
+ }
2281
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSchemaResponse): GetSchemaResponse {
2282
+ let message = target ?? this.create(), end = reader.pos + length;
2283
+ while (reader.pos < end) {
2284
+ let [fieldNo, wireType] = reader.tag();
2285
+ switch (fieldNo) {
2286
+ case /* bytes data */ 1:
2287
+ message.data = reader.bytes();
2288
+ break;
2289
+ default:
2290
+ let u = options.readUnknownField;
2291
+ if (u === "throw")
2292
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2293
+ let d = reader.skip(wireType);
2294
+ if (u !== false)
2295
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2296
+ }
2297
+ }
2298
+ return message;
2299
+ }
2300
+ internalBinaryWrite(message: GetSchemaResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2301
+ /* bytes data = 1; */
2302
+ if (message.data.length)
2303
+ writer.tag(1, WireType.LengthDelimited).bytes(message.data);
2304
+ let u = options.writeUnknownFields;
2305
+ if (u !== false)
2306
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2307
+ return writer;
2308
+ }
2309
+ }
2310
+ /**
2311
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.GetSchemaResponse
2312
+ */
2313
+ export const GetSchemaResponse = new GetSchemaResponse$Type();
2314
+ // @generated message type with reflection information, may provide speed optimized methods
2315
+ class DeleteVersionRequest$Type extends MessageType<DeleteVersionRequest> {
2316
+ constructor() {
2317
+ super("raystack.stencil.v1beta1.DeleteVersionRequest", [
2318
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2319
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2320
+ { no: 3, name: "version_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
2321
+ ]);
2322
+ }
2323
+ create(value?: PartialMessage<DeleteVersionRequest>): DeleteVersionRequest {
2324
+ const message = globalThis.Object.create((this.messagePrototype!));
2325
+ message.namespaceId = "";
2326
+ message.schemaId = "";
2327
+ message.versionId = 0;
2328
+ if (value !== undefined)
2329
+ reflectionMergePartial<DeleteVersionRequest>(this, message, value);
2330
+ return message;
2331
+ }
2332
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteVersionRequest): DeleteVersionRequest {
2333
+ let message = target ?? this.create(), end = reader.pos + length;
2334
+ while (reader.pos < end) {
2335
+ let [fieldNo, wireType] = reader.tag();
2336
+ switch (fieldNo) {
2337
+ case /* string namespace_id */ 1:
2338
+ message.namespaceId = reader.string();
2339
+ break;
2340
+ case /* string schema_id */ 2:
2341
+ message.schemaId = reader.string();
2342
+ break;
2343
+ case /* int32 version_id */ 3:
2344
+ message.versionId = reader.int32();
2345
+ break;
2346
+ default:
2347
+ let u = options.readUnknownField;
2348
+ if (u === "throw")
2349
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2350
+ let d = reader.skip(wireType);
2351
+ if (u !== false)
2352
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2353
+ }
2354
+ }
2355
+ return message;
2356
+ }
2357
+ internalBinaryWrite(message: DeleteVersionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2358
+ /* string namespace_id = 1; */
2359
+ if (message.namespaceId !== "")
2360
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
2361
+ /* string schema_id = 2; */
2362
+ if (message.schemaId !== "")
2363
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
2364
+ /* int32 version_id = 3; */
2365
+ if (message.versionId !== 0)
2366
+ writer.tag(3, WireType.Varint).int32(message.versionId);
2367
+ let u = options.writeUnknownFields;
2368
+ if (u !== false)
2369
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2370
+ return writer;
2371
+ }
2372
+ }
2373
+ /**
2374
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.DeleteVersionRequest
2375
+ */
2376
+ export const DeleteVersionRequest = new DeleteVersionRequest$Type();
2377
+ // @generated message type with reflection information, may provide speed optimized methods
2378
+ class DeleteVersionResponse$Type extends MessageType<DeleteVersionResponse> {
2379
+ constructor() {
2380
+ super("raystack.stencil.v1beta1.DeleteVersionResponse", [
2381
+ { no: 1, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2382
+ ]);
2383
+ }
2384
+ create(value?: PartialMessage<DeleteVersionResponse>): DeleteVersionResponse {
2385
+ const message = globalThis.Object.create((this.messagePrototype!));
2386
+ message.message = "";
2387
+ if (value !== undefined)
2388
+ reflectionMergePartial<DeleteVersionResponse>(this, message, value);
2389
+ return message;
2390
+ }
2391
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteVersionResponse): DeleteVersionResponse {
2392
+ let message = target ?? this.create(), end = reader.pos + length;
2393
+ while (reader.pos < end) {
2394
+ let [fieldNo, wireType] = reader.tag();
2395
+ switch (fieldNo) {
2396
+ case /* string message */ 1:
2397
+ message.message = reader.string();
2398
+ break;
2399
+ default:
2400
+ let u = options.readUnknownField;
2401
+ if (u === "throw")
2402
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2403
+ let d = reader.skip(wireType);
2404
+ if (u !== false)
2405
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2406
+ }
2407
+ }
2408
+ return message;
2409
+ }
2410
+ internalBinaryWrite(message: DeleteVersionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2411
+ /* string message = 1; */
2412
+ if (message.message !== "")
2413
+ writer.tag(1, WireType.LengthDelimited).string(message.message);
2414
+ let u = options.writeUnknownFields;
2415
+ if (u !== false)
2416
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2417
+ return writer;
2418
+ }
2419
+ }
2420
+ /**
2421
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.DeleteVersionResponse
2422
+ */
2423
+ export const DeleteVersionResponse = new DeleteVersionResponse$Type();
2424
+ // @generated message type with reflection information, may provide speed optimized methods
2425
+ class SearchRequest$Type extends MessageType<SearchRequest> {
2426
+ constructor() {
2427
+ super("raystack.stencil.v1beta1.SearchRequest", [
2428
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2429
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2430
+ { no: 3, name: "query", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "google.api.field_behavior": ["REQUIRED"] } },
2431
+ { no: 4, name: "history", kind: "scalar", oneof: "version", T: 8 /*ScalarType.BOOL*/ },
2432
+ { no: 5, name: "version_id", kind: "scalar", oneof: "version", T: 5 /*ScalarType.INT32*/ }
2433
+ ]);
2434
+ }
2435
+ create(value?: PartialMessage<SearchRequest>): SearchRequest {
2436
+ const message = globalThis.Object.create((this.messagePrototype!));
2437
+ message.namespaceId = "";
2438
+ message.schemaId = "";
2439
+ message.query = "";
2440
+ message.version = { oneofKind: undefined };
2441
+ if (value !== undefined)
2442
+ reflectionMergePartial<SearchRequest>(this, message, value);
2443
+ return message;
2444
+ }
2445
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SearchRequest): SearchRequest {
2446
+ let message = target ?? this.create(), end = reader.pos + length;
2447
+ while (reader.pos < end) {
2448
+ let [fieldNo, wireType] = reader.tag();
2449
+ switch (fieldNo) {
2450
+ case /* string namespace_id */ 1:
2451
+ message.namespaceId = reader.string();
2452
+ break;
2453
+ case /* string schema_id */ 2:
2454
+ message.schemaId = reader.string();
2455
+ break;
2456
+ case /* string query */ 3:
2457
+ message.query = reader.string();
2458
+ break;
2459
+ case /* bool history */ 4:
2460
+ message.version = {
2461
+ oneofKind: "history",
2462
+ history: reader.bool()
2463
+ };
2464
+ break;
2465
+ case /* int32 version_id */ 5:
2466
+ message.version = {
2467
+ oneofKind: "versionId",
2468
+ versionId: reader.int32()
2469
+ };
2470
+ break;
2471
+ default:
2472
+ let u = options.readUnknownField;
2473
+ if (u === "throw")
2474
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2475
+ let d = reader.skip(wireType);
2476
+ if (u !== false)
2477
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2478
+ }
2479
+ }
2480
+ return message;
2481
+ }
2482
+ internalBinaryWrite(message: SearchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2483
+ /* string namespace_id = 1; */
2484
+ if (message.namespaceId !== "")
2485
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
2486
+ /* string schema_id = 2; */
2487
+ if (message.schemaId !== "")
2488
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
2489
+ /* string query = 3; */
2490
+ if (message.query !== "")
2491
+ writer.tag(3, WireType.LengthDelimited).string(message.query);
2492
+ /* bool history = 4; */
2493
+ if (message.version.oneofKind === "history")
2494
+ writer.tag(4, WireType.Varint).bool(message.version.history);
2495
+ /* int32 version_id = 5; */
2496
+ if (message.version.oneofKind === "versionId")
2497
+ writer.tag(5, WireType.Varint).int32(message.version.versionId);
2498
+ let u = options.writeUnknownFields;
2499
+ if (u !== false)
2500
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2501
+ return writer;
2502
+ }
2503
+ }
2504
+ /**
2505
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.SearchRequest
2506
+ */
2507
+ export const SearchRequest = new SearchRequest$Type();
2508
+ // @generated message type with reflection information, may provide speed optimized methods
2509
+ class SearchResponse$Type extends MessageType<SearchResponse> {
2510
+ constructor() {
2511
+ super("raystack.stencil.v1beta1.SearchResponse", [
2512
+ { no: 1, name: "hits", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SearchHits },
2513
+ { no: 2, name: "meta", kind: "message", T: () => SearchMeta }
2514
+ ]);
2515
+ }
2516
+ create(value?: PartialMessage<SearchResponse>): SearchResponse {
2517
+ const message = globalThis.Object.create((this.messagePrototype!));
2518
+ message.hits = [];
2519
+ if (value !== undefined)
2520
+ reflectionMergePartial<SearchResponse>(this, message, value);
2521
+ return message;
2522
+ }
2523
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SearchResponse): SearchResponse {
2524
+ let message = target ?? this.create(), end = reader.pos + length;
2525
+ while (reader.pos < end) {
2526
+ let [fieldNo, wireType] = reader.tag();
2527
+ switch (fieldNo) {
2528
+ case /* repeated raystack.stencil.v1beta1.SearchHits hits */ 1:
2529
+ message.hits.push(SearchHits.internalBinaryRead(reader, reader.uint32(), options));
2530
+ break;
2531
+ case /* raystack.stencil.v1beta1.SearchMeta meta */ 2:
2532
+ message.meta = SearchMeta.internalBinaryRead(reader, reader.uint32(), options, message.meta);
2533
+ break;
2534
+ default:
2535
+ let u = options.readUnknownField;
2536
+ if (u === "throw")
2537
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2538
+ let d = reader.skip(wireType);
2539
+ if (u !== false)
2540
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2541
+ }
2542
+ }
2543
+ return message;
2544
+ }
2545
+ internalBinaryWrite(message: SearchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2546
+ /* repeated raystack.stencil.v1beta1.SearchHits hits = 1; */
2547
+ for (let i = 0; i < message.hits.length; i++)
2548
+ SearchHits.internalBinaryWrite(message.hits[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2549
+ /* raystack.stencil.v1beta1.SearchMeta meta = 2; */
2550
+ if (message.meta)
2551
+ SearchMeta.internalBinaryWrite(message.meta, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2552
+ let u = options.writeUnknownFields;
2553
+ if (u !== false)
2554
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2555
+ return writer;
2556
+ }
2557
+ }
2558
+ /**
2559
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.SearchResponse
2560
+ */
2561
+ export const SearchResponse = new SearchResponse$Type();
2562
+ // @generated message type with reflection information, may provide speed optimized methods
2563
+ class SearchHits$Type extends MessageType<SearchHits> {
2564
+ constructor() {
2565
+ super("raystack.stencil.v1beta1.SearchHits", [
2566
+ { no: 1, name: "namespace_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2567
+ { no: 2, name: "schema_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2568
+ { no: 3, name: "version_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2569
+ { no: 4, name: "fields", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2570
+ { no: 5, name: "types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2571
+ { no: 6, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2572
+ ]);
2573
+ }
2574
+ create(value?: PartialMessage<SearchHits>): SearchHits {
2575
+ const message = globalThis.Object.create((this.messagePrototype!));
2576
+ message.namespaceId = "";
2577
+ message.schemaId = "";
2578
+ message.versionId = 0;
2579
+ message.fields = [];
2580
+ message.types = [];
2581
+ message.path = "";
2582
+ if (value !== undefined)
2583
+ reflectionMergePartial<SearchHits>(this, message, value);
2584
+ return message;
2585
+ }
2586
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SearchHits): SearchHits {
2587
+ let message = target ?? this.create(), end = reader.pos + length;
2588
+ while (reader.pos < end) {
2589
+ let [fieldNo, wireType] = reader.tag();
2590
+ switch (fieldNo) {
2591
+ case /* string namespace_id */ 1:
2592
+ message.namespaceId = reader.string();
2593
+ break;
2594
+ case /* string schema_id */ 2:
2595
+ message.schemaId = reader.string();
2596
+ break;
2597
+ case /* int32 version_id */ 3:
2598
+ message.versionId = reader.int32();
2599
+ break;
2600
+ case /* repeated string fields */ 4:
2601
+ message.fields.push(reader.string());
2602
+ break;
2603
+ case /* repeated string types */ 5:
2604
+ message.types.push(reader.string());
2605
+ break;
2606
+ case /* string path */ 6:
2607
+ message.path = reader.string();
2608
+ break;
2609
+ default:
2610
+ let u = options.readUnknownField;
2611
+ if (u === "throw")
2612
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2613
+ let d = reader.skip(wireType);
2614
+ if (u !== false)
2615
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2616
+ }
2617
+ }
2618
+ return message;
2619
+ }
2620
+ internalBinaryWrite(message: SearchHits, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2621
+ /* string namespace_id = 1; */
2622
+ if (message.namespaceId !== "")
2623
+ writer.tag(1, WireType.LengthDelimited).string(message.namespaceId);
2624
+ /* string schema_id = 2; */
2625
+ if (message.schemaId !== "")
2626
+ writer.tag(2, WireType.LengthDelimited).string(message.schemaId);
2627
+ /* int32 version_id = 3; */
2628
+ if (message.versionId !== 0)
2629
+ writer.tag(3, WireType.Varint).int32(message.versionId);
2630
+ /* repeated string fields = 4; */
2631
+ for (let i = 0; i < message.fields.length; i++)
2632
+ writer.tag(4, WireType.LengthDelimited).string(message.fields[i]);
2633
+ /* repeated string types = 5; */
2634
+ for (let i = 0; i < message.types.length; i++)
2635
+ writer.tag(5, WireType.LengthDelimited).string(message.types[i]);
2636
+ /* string path = 6; */
2637
+ if (message.path !== "")
2638
+ writer.tag(6, WireType.LengthDelimited).string(message.path);
2639
+ let u = options.writeUnknownFields;
2640
+ if (u !== false)
2641
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2642
+ return writer;
2643
+ }
2644
+ }
2645
+ /**
2646
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.SearchHits
2647
+ */
2648
+ export const SearchHits = new SearchHits$Type();
2649
+ // @generated message type with reflection information, may provide speed optimized methods
2650
+ class SearchMeta$Type extends MessageType<SearchMeta> {
2651
+ constructor() {
2652
+ super("raystack.stencil.v1beta1.SearchMeta", [
2653
+ { no: 1, name: "total", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
2654
+ ]);
2655
+ }
2656
+ create(value?: PartialMessage<SearchMeta>): SearchMeta {
2657
+ const message = globalThis.Object.create((this.messagePrototype!));
2658
+ message.total = 0;
2659
+ if (value !== undefined)
2660
+ reflectionMergePartial<SearchMeta>(this, message, value);
2661
+ return message;
2662
+ }
2663
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SearchMeta): SearchMeta {
2664
+ let message = target ?? this.create(), end = reader.pos + length;
2665
+ while (reader.pos < end) {
2666
+ let [fieldNo, wireType] = reader.tag();
2667
+ switch (fieldNo) {
2668
+ case /* uint32 total */ 1:
2669
+ message.total = reader.uint32();
2670
+ break;
2671
+ default:
2672
+ let u = options.readUnknownField;
2673
+ if (u === "throw")
2674
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2675
+ let d = reader.skip(wireType);
2676
+ if (u !== false)
2677
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2678
+ }
2679
+ }
2680
+ return message;
2681
+ }
2682
+ internalBinaryWrite(message: SearchMeta, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2683
+ /* uint32 total = 1; */
2684
+ if (message.total !== 0)
2685
+ writer.tag(1, WireType.Varint).uint32(message.total);
2686
+ let u = options.writeUnknownFields;
2687
+ if (u !== false)
2688
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2689
+ return writer;
2690
+ }
2691
+ }
2692
+ /**
2693
+ * @generated MessageType for protobuf message raystack.stencil.v1beta1.SearchMeta
2694
+ */
2695
+ export const SearchMeta = new SearchMeta$Type();
2696
+ /**
2697
+ * @generated ServiceType for protobuf service raystack.stencil.v1beta1.StencilService
2698
+ */
2699
+ export const StencilService = new ServiceType("raystack.stencil.v1beta1.StencilService", [
2700
+ { name: "ListNamespaces", options: { "google.api.http": { get: "/v1beta1/namespaces" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["namespace"], summary: "List names of namespaces" } }, I: ListNamespacesRequest, O: ListNamespacesResponse },
2701
+ { name: "GetNamespace", options: { "google.api.http": { get: "/v1beta1/namespaces/{id}" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["namespace"], summary: "Get namespace by id" } }, I: GetNamespaceRequest, O: GetNamespaceResponse },
2702
+ { name: "CreateNamespace", options: { "google.api.http": { post: "/v1beta1/namespaces", body: "*" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["namespace"], summary: "Create namespace entry" } }, I: CreateNamespaceRequest, O: CreateNamespaceResponse },
2703
+ { name: "UpdateNamespace", options: { "google.api.http": { put: "/v1beta1/namespaces/{id}", body: "*" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["namespace"], summary: "Update namespace entity by id" } }, I: UpdateNamespaceRequest, O: UpdateNamespaceResponse },
2704
+ { name: "DeleteNamespace", options: { "google.api.http": { delete: "/v1beta1/namespaces/{id}" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["namespace"], summary: "Delete namespace by id", description: "Ensure all schemas under this namespace is deleted, otherwise it will throw error" } }, I: DeleteNamespaceRequest, O: DeleteNamespaceResponse },
2705
+ { name: "ListSchemas", options: { "google.api.http": { get: "/v1beta1/namespaces/{id}/schemas" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["schema"], summary: "List schemas under the namespace" } }, I: ListSchemasRequest, O: ListSchemasResponse },
2706
+ { name: "CreateSchema", options: {}, I: CreateSchemaRequest, O: CreateSchemaResponse },
2707
+ { name: "CheckCompatibility", options: {}, I: CheckCompatibilityRequest, O: CheckCompatibilityResponse },
2708
+ { name: "GetSchemaMetadata", options: { "google.api.http": { get: "/v1beta1/namespaces/{namespace_id}/schemas/{schema_id}/meta" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["schema"], summary: "Create schema under the namespace. Returns version number, unique ID and location" } }, I: GetSchemaMetadataRequest, O: GetSchemaMetadataResponse },
2709
+ { name: "UpdateSchemaMetadata", options: { "google.api.http": { patch: "/v1beta1/namespaces/{namespace_id}/schemas/{schema_id}", body: "*" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["schema"], summary: "Update only schema metadata" } }, I: UpdateSchemaMetadataRequest, O: UpdateSchemaMetadataResponse },
2710
+ { name: "GetLatestSchema", options: {}, I: GetLatestSchemaRequest, O: GetLatestSchemaResponse },
2711
+ { name: "DeleteSchema", options: { "google.api.http": { delete: "/v1beta1/namespaces/{namespace_id}/schemas/{schema_id}" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["schema"], summary: "Delete specified schema" } }, I: DeleteSchemaRequest, O: DeleteSchemaResponse },
2712
+ { name: "GetSchema", options: {}, I: GetSchemaRequest, O: GetSchemaResponse },
2713
+ { name: "ListVersions", options: { "google.api.http": { get: "/v1beta1/namespaces/{namespace_id}/schemas/{schema_id}/versions" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["schema", "version"], summary: "List all version numbers for schema" } }, I: ListVersionsRequest, O: ListVersionsResponse },
2714
+ { name: "DeleteVersion", options: { "google.api.http": { delete: "/v1beta1/namespaces/{namespace_id}/schemas/{schema_id}/versions/{version_id}" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["schema", "version"], summary: "Delete specified version of the schema" } }, I: DeleteVersionRequest, O: DeleteVersionResponse },
2715
+ { name: "Search", options: { "google.api.http": { get: "/v1beta1/search" }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["schema"], summary: "Global Search API" } }, I: SearchRequest, O: SearchResponse }
2716
+ ]);