@gitpod/public-api 0.1.5-mp-public-api-codegen-buf.3 → 0.1.5-mp-dashboard-public-api-connect.35

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 (33) hide show
  1. package/lib/gitpod/v1/pagination_pb.d.ts +36 -23
  2. package/lib/gitpod/v1/pagination_pb.js +13 -40
  3. package/lib/gitpod/v1/prebuilds_pb.d.ts +301 -205
  4. package/lib/gitpod/v1/prebuilds_pb.js +98 -372
  5. package/lib/gitpod/v1/workspaces_pb.d.ts +880 -633
  6. package/lib/gitpod/v1/workspaces_pb.js +222 -1002
  7. package/package.json +12 -5
  8. package/pkg-yarn.lock +4 -5
  9. package/provenance-bundle.jsonl +2 -2
  10. package/lib/gitpod/v1/pagination_pb.d.ts.map +0 -1
  11. package/lib/gitpod/v1/pagination_pb.js.map +0 -1
  12. package/lib/gitpod/v1/pagination_pb.ts +0 -60
  13. package/lib/gitpod/v1/prebuilds_pb.d.ts.map +0 -1
  14. package/lib/gitpod/v1/prebuilds_pb.js.map +0 -1
  15. package/lib/gitpod/v1/prebuilds_pb.ts +0 -540
  16. package/lib/gitpod/v1/workspaces_pb.d.ts.map +0 -1
  17. package/lib/gitpod/v1/workspaces_pb.js.map +0 -1
  18. package/lib/gitpod/v1/workspaces_pb.ts +0 -1509
  19. package/lib/google/rpc/code_pb.d.ts +0 -219
  20. package/lib/google/rpc/code_pb.d.ts.map +0 -1
  21. package/lib/google/rpc/code_pb.js +0 -261
  22. package/lib/google/rpc/code_pb.js.map +0 -1
  23. package/lib/google/rpc/code_pb.ts +0 -275
  24. package/lib/google/rpc/error_details_pb.d.ts +0 -478
  25. package/lib/google/rpc/error_details_pb.d.ts.map +0 -1
  26. package/lib/google/rpc/error_details_pb.js +0 -694
  27. package/lib/google/rpc/error_details_pb.js.map +0 -1
  28. package/lib/google/rpc/error_details_pb.ts +0 -800
  29. package/lib/google/rpc/status_pb.d.ts +0 -45
  30. package/lib/google/rpc/status_pb.d.ts.map +0 -1
  31. package/lib/google/rpc/status_pb.js +0 -76
  32. package/lib/google/rpc/status_pb.js.map +0 -1
  33. package/lib/google/rpc/status_pb.ts +0 -87
@@ -1,1017 +1,354 @@
1
- "use strict";
2
1
  /**
3
2
  * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
4
3
  * Licensed under the GNU Affero General Public License (AGPL).
5
4
  * See License-AGPL.txt in the project root for license information.
6
5
  */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.StartWorkspaceSpec = exports.WorkspaceInstanceStatus_Conditions = exports.WorkspaceInstanceStatus_Phase = exports.WorkspaceInstanceStatus = exports.WorkspaceInstance = exports.WorkspaceContext_Snapshot = exports.WorkspaceContext_Prebuild = exports.WorkspaceContext_Git = exports.WorkspaceContext = exports.Workspace = exports.StopWorkspaceResponse = exports.StopWorkspaceRequest = exports.ListenToImageBuildLogsResponse = exports.ListenToImageBuildLogsRequest = exports.ListenToWorkspaceInstanceResponse = exports.ListenToWorkspaceInstanceRequest = exports.GetWorkspaceInstanceOwnerTokenResponse = exports.GetWorkspaceInstanceOwnerTokenRequest = exports.GetActiveWorkspaceInstanceResponse = exports.GetActiveWorkspaceInstanceRequest = exports.StartWorkspaceResponse = exports.StartWorkspaceRequest = exports.CreateAndStartWorkspaceResponse = exports.CreateAndStartWorkspaceRequest = exports.GetOwnerTokenResponse = exports.GetOwnerTokenRequest = exports.GetWorkspaceResponse = exports.GetWorkspaceRequest = exports.ListWorkspacesResponse_WorkspaceAndInstance = exports.ListWorkspacesResponse = exports.ListWorkspacesRequest = exports.AdmissionLevel = void 0;
9
- const protobuf_1 = require("@bufbuild/protobuf");
10
- const pagination_pb_js_1 = require("./pagination_pb.js");
6
+
7
+ // @generated by protoc-gen-es v0.1.1
8
+ // @generated from file gitpod/v1/workspaces.proto (package gitpod.v1, syntax proto3)
9
+ /* eslint-disable */
10
+ /* @ts-nocheck */
11
+
12
+ import {FieldMask, proto3, Timestamp} from "@bufbuild/protobuf";
13
+ import {Pagination} from "./pagination_pb.js";
14
+
11
15
  /**
12
16
  * Admission level describes who can access a workspace instance and its ports.
13
17
  *
14
18
  * @generated from enum gitpod.v1.AdmissionLevel
15
19
  */
16
- var AdmissionLevel;
17
- (function (AdmissionLevel) {
18
- /**
19
- * @generated from enum value: ADMISSION_LEVEL_UNSPECIFIED = 0;
20
- */
21
- AdmissionLevel[AdmissionLevel["UNSPECIFIED"] = 0] = "UNSPECIFIED";
22
- /**
23
- * ADMISSION_LEVEL_OWNER_ONLY means the workspace can only be accessed using the owner token
24
- *
25
- * @generated from enum value: ADMISSION_LEVEL_OWNER_ONLY = 1;
26
- */
27
- AdmissionLevel[AdmissionLevel["OWNER_ONLY"] = 1] = "OWNER_ONLY";
28
- /**
29
- * ADMISSION_LEVEL_EVERYONE means the workspace (including ports) can be accessed by everyone.
30
- *
31
- * @generated from enum value: ADMISSION_LEVEL_EVERYONE = 2;
32
- */
33
- AdmissionLevel[AdmissionLevel["EVERYONE"] = 2] = "EVERYONE";
34
- })(AdmissionLevel = exports.AdmissionLevel || (exports.AdmissionLevel = {}));
35
- // Retrieve enum metadata with: proto3.getEnumType(AdmissionLevel)
36
- protobuf_1.proto3.util.setEnumType(AdmissionLevel, "gitpod.v1.AdmissionLevel", [
37
- { no: 0, name: "ADMISSION_LEVEL_UNSPECIFIED" },
38
- { no: 1, name: "ADMISSION_LEVEL_OWNER_ONLY" },
39
- { no: 2, name: "ADMISSION_LEVEL_EVERYONE" },
40
- ]);
20
+ export const AdmissionLevel = proto3.makeEnum(
21
+ "gitpod.v1.AdmissionLevel",
22
+ [
23
+ {no: 0, name: "ADMISSION_LEVEL_UNSPECIFIED", localName: "UNSPECIFIED"},
24
+ {no: 1, name: "ADMISSION_LEVEL_OWNER_ONLY", localName: "OWNER_ONLY"},
25
+ {no: 2, name: "ADMISSION_LEVEL_EVERYONE", localName: "EVERYONE"},
26
+ ],
27
+ );
28
+
41
29
  /**
42
30
  * @generated from message gitpod.v1.ListWorkspacesRequest
43
31
  */
44
- class ListWorkspacesRequest extends protobuf_1.Message {
45
- constructor(data) {
46
- super();
47
- protobuf_1.proto3.util.initPartial(data, this);
48
- }
49
- static fromBinary(bytes, options) {
50
- return new ListWorkspacesRequest().fromBinary(bytes, options);
51
- }
52
- static fromJson(jsonValue, options) {
53
- return new ListWorkspacesRequest().fromJson(jsonValue, options);
54
- }
55
- static fromJsonString(jsonString, options) {
56
- return new ListWorkspacesRequest().fromJsonString(jsonString, options);
57
- }
58
- static equals(a, b) {
59
- return protobuf_1.proto3.util.equals(ListWorkspacesRequest, a, b);
60
- }
61
- }
62
- exports.ListWorkspacesRequest = ListWorkspacesRequest;
63
- ListWorkspacesRequest.runtime = protobuf_1.proto3;
64
- ListWorkspacesRequest.typeName = "gitpod.v1.ListWorkspacesRequest";
65
- ListWorkspacesRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
66
- { no: 1, name: "pagination", kind: "message", T: pagination_pb_js_1.Pagination },
67
- { no: 2, name: "field_mask", kind: "message", T: protobuf_1.FieldMask },
68
- ]);
32
+ export const ListWorkspacesRequest = proto3.makeMessageType(
33
+ "gitpod.v1.ListWorkspacesRequest",
34
+ () => [
35
+ { no: 1, name: "pagination", kind: "message", T: Pagination },
36
+ { no: 2, name: "field_mask", kind: "message", T: FieldMask },
37
+ ],
38
+ );
39
+
69
40
  /**
70
41
  * @generated from message gitpod.v1.ListWorkspacesResponse
71
42
  */
72
- class ListWorkspacesResponse extends protobuf_1.Message {
73
- constructor(data) {
74
- super();
75
- /**
76
- * @generated from field: string next_page_token = 1;
77
- */
78
- this.nextPageToken = "";
79
- /**
80
- * @generated from field: repeated gitpod.v1.ListWorkspacesResponse.WorkspaceAndInstance result = 2;
81
- */
82
- this.result = [];
83
- protobuf_1.proto3.util.initPartial(data, this);
84
- }
85
- static fromBinary(bytes, options) {
86
- return new ListWorkspacesResponse().fromBinary(bytes, options);
87
- }
88
- static fromJson(jsonValue, options) {
89
- return new ListWorkspacesResponse().fromJson(jsonValue, options);
90
- }
91
- static fromJsonString(jsonString, options) {
92
- return new ListWorkspacesResponse().fromJsonString(jsonString, options);
93
- }
94
- static equals(a, b) {
95
- return protobuf_1.proto3.util.equals(ListWorkspacesResponse, a, b);
96
- }
97
- }
98
- exports.ListWorkspacesResponse = ListWorkspacesResponse;
99
- ListWorkspacesResponse.runtime = protobuf_1.proto3;
100
- ListWorkspacesResponse.typeName = "gitpod.v1.ListWorkspacesResponse";
101
- ListWorkspacesResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
43
+ export const ListWorkspacesResponse = proto3.makeMessageType(
44
+ "gitpod.v1.ListWorkspacesResponse",
45
+ () => [
102
46
  { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
103
47
  { no: 2, name: "result", kind: "message", T: ListWorkspacesResponse_WorkspaceAndInstance, repeated: true },
104
- ]);
48
+ ],
49
+ );
50
+
105
51
  /**
106
52
  * @generated from message gitpod.v1.ListWorkspacesResponse.WorkspaceAndInstance
107
53
  */
108
- class ListWorkspacesResponse_WorkspaceAndInstance extends protobuf_1.Message {
109
- constructor(data) {
110
- super();
111
- protobuf_1.proto3.util.initPartial(data, this);
112
- }
113
- static fromBinary(bytes, options) {
114
- return new ListWorkspacesResponse_WorkspaceAndInstance().fromBinary(bytes, options);
115
- }
116
- static fromJson(jsonValue, options) {
117
- return new ListWorkspacesResponse_WorkspaceAndInstance().fromJson(jsonValue, options);
118
- }
119
- static fromJsonString(jsonString, options) {
120
- return new ListWorkspacesResponse_WorkspaceAndInstance().fromJsonString(jsonString, options);
121
- }
122
- static equals(a, b) {
123
- return protobuf_1.proto3.util.equals(ListWorkspacesResponse_WorkspaceAndInstance, a, b);
124
- }
125
- }
126
- exports.ListWorkspacesResponse_WorkspaceAndInstance = ListWorkspacesResponse_WorkspaceAndInstance;
127
- ListWorkspacesResponse_WorkspaceAndInstance.runtime = protobuf_1.proto3;
128
- ListWorkspacesResponse_WorkspaceAndInstance.typeName = "gitpod.v1.ListWorkspacesResponse.WorkspaceAndInstance";
129
- ListWorkspacesResponse_WorkspaceAndInstance.fields = protobuf_1.proto3.util.newFieldList(() => [
54
+ export const ListWorkspacesResponse_WorkspaceAndInstance = proto3.makeMessageType(
55
+ "gitpod.v1.ListWorkspacesResponse.WorkspaceAndInstance",
56
+ () => [
130
57
  { no: 1, name: "result", kind: "message", T: Workspace },
131
58
  { no: 2, name: "last_active_instances", kind: "message", T: WorkspaceInstance },
132
- ]);
59
+ ],
60
+ {localName: "ListWorkspacesResponse_WorkspaceAndInstance"},
61
+ );
62
+
133
63
  /**
134
64
  * @generated from message gitpod.v1.GetWorkspaceRequest
135
65
  */
136
- class GetWorkspaceRequest extends protobuf_1.Message {
137
- constructor(data) {
138
- super();
139
- /**
140
- * @generated from field: string workspace_id = 1;
141
- */
142
- this.workspaceId = "";
143
- protobuf_1.proto3.util.initPartial(data, this);
144
- }
145
- static fromBinary(bytes, options) {
146
- return new GetWorkspaceRequest().fromBinary(bytes, options);
147
- }
148
- static fromJson(jsonValue, options) {
149
- return new GetWorkspaceRequest().fromJson(jsonValue, options);
150
- }
151
- static fromJsonString(jsonString, options) {
152
- return new GetWorkspaceRequest().fromJsonString(jsonString, options);
153
- }
154
- static equals(a, b) {
155
- return protobuf_1.proto3.util.equals(GetWorkspaceRequest, a, b);
156
- }
157
- }
158
- exports.GetWorkspaceRequest = GetWorkspaceRequest;
159
- GetWorkspaceRequest.runtime = protobuf_1.proto3;
160
- GetWorkspaceRequest.typeName = "gitpod.v1.GetWorkspaceRequest";
161
- GetWorkspaceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
66
+ export const GetWorkspaceRequest = proto3.makeMessageType(
67
+ "gitpod.v1.GetWorkspaceRequest",
68
+ () => [
162
69
  { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
163
- ]);
70
+ ],
71
+ );
72
+
164
73
  /**
165
74
  * @generated from message gitpod.v1.GetWorkspaceResponse
166
75
  */
167
- class GetWorkspaceResponse extends protobuf_1.Message {
168
- constructor(data) {
169
- super();
170
- protobuf_1.proto3.util.initPartial(data, this);
171
- }
172
- static fromBinary(bytes, options) {
173
- return new GetWorkspaceResponse().fromBinary(bytes, options);
174
- }
175
- static fromJson(jsonValue, options) {
176
- return new GetWorkspaceResponse().fromJson(jsonValue, options);
177
- }
178
- static fromJsonString(jsonString, options) {
179
- return new GetWorkspaceResponse().fromJsonString(jsonString, options);
180
- }
181
- static equals(a, b) {
182
- return protobuf_1.proto3.util.equals(GetWorkspaceResponse, a, b);
183
- }
184
- }
185
- exports.GetWorkspaceResponse = GetWorkspaceResponse;
186
- GetWorkspaceResponse.runtime = protobuf_1.proto3;
187
- GetWorkspaceResponse.typeName = "gitpod.v1.GetWorkspaceResponse";
188
- GetWorkspaceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
76
+ export const GetWorkspaceResponse = proto3.makeMessageType(
77
+ "gitpod.v1.GetWorkspaceResponse",
78
+ () => [
189
79
  { no: 1, name: "result", kind: "message", T: Workspace },
190
- ]);
80
+ ],
81
+ );
82
+
191
83
  /**
192
84
  * @generated from message gitpod.v1.GetOwnerTokenRequest
193
85
  */
194
- class GetOwnerTokenRequest extends protobuf_1.Message {
195
- constructor(data) {
196
- super();
197
- /**
198
- * @generated from field: string workspace_id = 1;
199
- */
200
- this.workspaceId = "";
201
- protobuf_1.proto3.util.initPartial(data, this);
202
- }
203
- static fromBinary(bytes, options) {
204
- return new GetOwnerTokenRequest().fromBinary(bytes, options);
205
- }
206
- static fromJson(jsonValue, options) {
207
- return new GetOwnerTokenRequest().fromJson(jsonValue, options);
208
- }
209
- static fromJsonString(jsonString, options) {
210
- return new GetOwnerTokenRequest().fromJsonString(jsonString, options);
211
- }
212
- static equals(a, b) {
213
- return protobuf_1.proto3.util.equals(GetOwnerTokenRequest, a, b);
214
- }
215
- }
216
- exports.GetOwnerTokenRequest = GetOwnerTokenRequest;
217
- GetOwnerTokenRequest.runtime = protobuf_1.proto3;
218
- GetOwnerTokenRequest.typeName = "gitpod.v1.GetOwnerTokenRequest";
219
- GetOwnerTokenRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
86
+ export const GetOwnerTokenRequest = proto3.makeMessageType(
87
+ "gitpod.v1.GetOwnerTokenRequest",
88
+ () => [
220
89
  { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
221
- ]);
90
+ ],
91
+ );
92
+
222
93
  /**
223
94
  * @generated from message gitpod.v1.GetOwnerTokenResponse
224
95
  */
225
- class GetOwnerTokenResponse extends protobuf_1.Message {
226
- constructor(data) {
227
- super();
228
- /**
229
- * @generated from field: string token = 1;
230
- */
231
- this.token = "";
232
- protobuf_1.proto3.util.initPartial(data, this);
233
- }
234
- static fromBinary(bytes, options) {
235
- return new GetOwnerTokenResponse().fromBinary(bytes, options);
236
- }
237
- static fromJson(jsonValue, options) {
238
- return new GetOwnerTokenResponse().fromJson(jsonValue, options);
239
- }
240
- static fromJsonString(jsonString, options) {
241
- return new GetOwnerTokenResponse().fromJsonString(jsonString, options);
242
- }
243
- static equals(a, b) {
244
- return protobuf_1.proto3.util.equals(GetOwnerTokenResponse, a, b);
245
- }
246
- }
247
- exports.GetOwnerTokenResponse = GetOwnerTokenResponse;
248
- GetOwnerTokenResponse.runtime = protobuf_1.proto3;
249
- GetOwnerTokenResponse.typeName = "gitpod.v1.GetOwnerTokenResponse";
250
- GetOwnerTokenResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
96
+ export const GetOwnerTokenResponse = proto3.makeMessageType(
97
+ "gitpod.v1.GetOwnerTokenResponse",
98
+ () => [
251
99
  { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
252
- ]);
100
+ ],
101
+ );
102
+
253
103
  /**
254
104
  * @generated from message gitpod.v1.CreateAndStartWorkspaceRequest
255
105
  */
256
- class CreateAndStartWorkspaceRequest extends protobuf_1.Message {
257
- constructor(data) {
258
- super();
259
- /**
260
- * @generated from field: string idempotency_token = 1;
261
- */
262
- this.idempotencyToken = "";
263
- /**
264
- * @generated from oneof gitpod.v1.CreateAndStartWorkspaceRequest.source
265
- */
266
- this.source = { case: undefined };
267
- protobuf_1.proto3.util.initPartial(data, this);
268
- }
269
- static fromBinary(bytes, options) {
270
- return new CreateAndStartWorkspaceRequest().fromBinary(bytes, options);
271
- }
272
- static fromJson(jsonValue, options) {
273
- return new CreateAndStartWorkspaceRequest().fromJson(jsonValue, options);
274
- }
275
- static fromJsonString(jsonString, options) {
276
- return new CreateAndStartWorkspaceRequest().fromJsonString(jsonString, options);
277
- }
278
- static equals(a, b) {
279
- return protobuf_1.proto3.util.equals(CreateAndStartWorkspaceRequest, a, b);
280
- }
281
- }
282
- exports.CreateAndStartWorkspaceRequest = CreateAndStartWorkspaceRequest;
283
- CreateAndStartWorkspaceRequest.runtime = protobuf_1.proto3;
284
- CreateAndStartWorkspaceRequest.typeName = "gitpod.v1.CreateAndStartWorkspaceRequest";
285
- CreateAndStartWorkspaceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
106
+ export const CreateAndStartWorkspaceRequest = proto3.makeMessageType(
107
+ "gitpod.v1.CreateAndStartWorkspaceRequest",
108
+ () => [
286
109
  { no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
287
110
  { no: 2, name: "context_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
288
111
  { no: 3, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
289
112
  { no: 5, name: "start_spec", kind: "message", T: StartWorkspaceSpec },
290
- ]);
113
+ ],
114
+ );
115
+
291
116
  /**
292
117
  * @generated from message gitpod.v1.CreateAndStartWorkspaceResponse
293
118
  */
294
- class CreateAndStartWorkspaceResponse extends protobuf_1.Message {
295
- constructor(data) {
296
- super();
297
- /**
298
- * @generated from field: string workspace_id = 1;
299
- */
300
- this.workspaceId = "";
301
- protobuf_1.proto3.util.initPartial(data, this);
302
- }
303
- static fromBinary(bytes, options) {
304
- return new CreateAndStartWorkspaceResponse().fromBinary(bytes, options);
305
- }
306
- static fromJson(jsonValue, options) {
307
- return new CreateAndStartWorkspaceResponse().fromJson(jsonValue, options);
308
- }
309
- static fromJsonString(jsonString, options) {
310
- return new CreateAndStartWorkspaceResponse().fromJsonString(jsonString, options);
311
- }
312
- static equals(a, b) {
313
- return protobuf_1.proto3.util.equals(CreateAndStartWorkspaceResponse, a, b);
314
- }
315
- }
316
- exports.CreateAndStartWorkspaceResponse = CreateAndStartWorkspaceResponse;
317
- CreateAndStartWorkspaceResponse.runtime = protobuf_1.proto3;
318
- CreateAndStartWorkspaceResponse.typeName = "gitpod.v1.CreateAndStartWorkspaceResponse";
319
- CreateAndStartWorkspaceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
119
+ export const CreateAndStartWorkspaceResponse = proto3.makeMessageType(
120
+ "gitpod.v1.CreateAndStartWorkspaceResponse",
121
+ () => [
320
122
  { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
321
- ]);
123
+ ],
124
+ );
125
+
322
126
  /**
323
127
  * @generated from message gitpod.v1.StartWorkspaceRequest
324
128
  */
325
- class StartWorkspaceRequest extends protobuf_1.Message {
326
- constructor(data) {
327
- super();
328
- /**
329
- * @generated from field: string idempotency_token = 1;
330
- */
331
- this.idempotencyToken = "";
332
- /**
333
- * @generated from field: string workspace_id = 2;
334
- */
335
- this.workspaceId = "";
336
- protobuf_1.proto3.util.initPartial(data, this);
337
- }
338
- static fromBinary(bytes, options) {
339
- return new StartWorkspaceRequest().fromBinary(bytes, options);
340
- }
341
- static fromJson(jsonValue, options) {
342
- return new StartWorkspaceRequest().fromJson(jsonValue, options);
343
- }
344
- static fromJsonString(jsonString, options) {
345
- return new StartWorkspaceRequest().fromJsonString(jsonString, options);
346
- }
347
- static equals(a, b) {
348
- return protobuf_1.proto3.util.equals(StartWorkspaceRequest, a, b);
349
- }
350
- }
351
- exports.StartWorkspaceRequest = StartWorkspaceRequest;
352
- StartWorkspaceRequest.runtime = protobuf_1.proto3;
353
- StartWorkspaceRequest.typeName = "gitpod.v1.StartWorkspaceRequest";
354
- StartWorkspaceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
129
+ export const StartWorkspaceRequest = proto3.makeMessageType(
130
+ "gitpod.v1.StartWorkspaceRequest",
131
+ () => [
355
132
  { no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
356
133
  { no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
357
134
  { no: 3, name: "spec", kind: "message", T: StartWorkspaceSpec },
358
- ]);
135
+ ],
136
+ );
137
+
359
138
  /**
360
139
  * @generated from message gitpod.v1.StartWorkspaceResponse
361
140
  */
362
- class StartWorkspaceResponse extends protobuf_1.Message {
363
- constructor(data) {
364
- super();
365
- /**
366
- * @generated from field: string instance_id = 1;
367
- */
368
- this.instanceId = "";
369
- /**
370
- * @generated from field: string workspace_url = 2;
371
- */
372
- this.workspaceUrl = "";
373
- protobuf_1.proto3.util.initPartial(data, this);
374
- }
375
- static fromBinary(bytes, options) {
376
- return new StartWorkspaceResponse().fromBinary(bytes, options);
377
- }
378
- static fromJson(jsonValue, options) {
379
- return new StartWorkspaceResponse().fromJson(jsonValue, options);
380
- }
381
- static fromJsonString(jsonString, options) {
382
- return new StartWorkspaceResponse().fromJsonString(jsonString, options);
383
- }
384
- static equals(a, b) {
385
- return protobuf_1.proto3.util.equals(StartWorkspaceResponse, a, b);
386
- }
387
- }
388
- exports.StartWorkspaceResponse = StartWorkspaceResponse;
389
- StartWorkspaceResponse.runtime = protobuf_1.proto3;
390
- StartWorkspaceResponse.typeName = "gitpod.v1.StartWorkspaceResponse";
391
- StartWorkspaceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
141
+ export const StartWorkspaceResponse = proto3.makeMessageType(
142
+ "gitpod.v1.StartWorkspaceResponse",
143
+ () => [
392
144
  { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
393
145
  { no: 2, name: "workspace_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
394
- ]);
146
+ ],
147
+ );
148
+
395
149
  /**
396
150
  * @generated from message gitpod.v1.GetActiveWorkspaceInstanceRequest
397
151
  */
398
- class GetActiveWorkspaceInstanceRequest extends protobuf_1.Message {
399
- constructor(data) {
400
- super();
401
- /**
402
- * @generated from field: string workspace_id = 1;
403
- */
404
- this.workspaceId = "";
405
- protobuf_1.proto3.util.initPartial(data, this);
406
- }
407
- static fromBinary(bytes, options) {
408
- return new GetActiveWorkspaceInstanceRequest().fromBinary(bytes, options);
409
- }
410
- static fromJson(jsonValue, options) {
411
- return new GetActiveWorkspaceInstanceRequest().fromJson(jsonValue, options);
412
- }
413
- static fromJsonString(jsonString, options) {
414
- return new GetActiveWorkspaceInstanceRequest().fromJsonString(jsonString, options);
415
- }
416
- static equals(a, b) {
417
- return protobuf_1.proto3.util.equals(GetActiveWorkspaceInstanceRequest, a, b);
418
- }
419
- }
420
- exports.GetActiveWorkspaceInstanceRequest = GetActiveWorkspaceInstanceRequest;
421
- GetActiveWorkspaceInstanceRequest.runtime = protobuf_1.proto3;
422
- GetActiveWorkspaceInstanceRequest.typeName = "gitpod.v1.GetActiveWorkspaceInstanceRequest";
423
- GetActiveWorkspaceInstanceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
152
+ export const GetActiveWorkspaceInstanceRequest = proto3.makeMessageType(
153
+ "gitpod.v1.GetActiveWorkspaceInstanceRequest",
154
+ () => [
424
155
  { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
425
- ]);
156
+ ],
157
+ );
158
+
426
159
  /**
427
160
  * @generated from message gitpod.v1.GetActiveWorkspaceInstanceResponse
428
161
  */
429
- class GetActiveWorkspaceInstanceResponse extends protobuf_1.Message {
430
- constructor(data) {
431
- super();
432
- protobuf_1.proto3.util.initPartial(data, this);
433
- }
434
- static fromBinary(bytes, options) {
435
- return new GetActiveWorkspaceInstanceResponse().fromBinary(bytes, options);
436
- }
437
- static fromJson(jsonValue, options) {
438
- return new GetActiveWorkspaceInstanceResponse().fromJson(jsonValue, options);
439
- }
440
- static fromJsonString(jsonString, options) {
441
- return new GetActiveWorkspaceInstanceResponse().fromJsonString(jsonString, options);
442
- }
443
- static equals(a, b) {
444
- return protobuf_1.proto3.util.equals(GetActiveWorkspaceInstanceResponse, a, b);
445
- }
446
- }
447
- exports.GetActiveWorkspaceInstanceResponse = GetActiveWorkspaceInstanceResponse;
448
- GetActiveWorkspaceInstanceResponse.runtime = protobuf_1.proto3;
449
- GetActiveWorkspaceInstanceResponse.typeName = "gitpod.v1.GetActiveWorkspaceInstanceResponse";
450
- GetActiveWorkspaceInstanceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
162
+ export const GetActiveWorkspaceInstanceResponse = proto3.makeMessageType(
163
+ "gitpod.v1.GetActiveWorkspaceInstanceResponse",
164
+ () => [
451
165
  { no: 1, name: "instance", kind: "message", T: WorkspaceInstance },
452
- ]);
166
+ ],
167
+ );
168
+
453
169
  /**
454
170
  * @generated from message gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest
455
171
  */
456
- class GetWorkspaceInstanceOwnerTokenRequest extends protobuf_1.Message {
457
- constructor(data) {
458
- super();
459
- /**
460
- * @generated from field: string instance_id = 1;
461
- */
462
- this.instanceId = "";
463
- protobuf_1.proto3.util.initPartial(data, this);
464
- }
465
- static fromBinary(bytes, options) {
466
- return new GetWorkspaceInstanceOwnerTokenRequest().fromBinary(bytes, options);
467
- }
468
- static fromJson(jsonValue, options) {
469
- return new GetWorkspaceInstanceOwnerTokenRequest().fromJson(jsonValue, options);
470
- }
471
- static fromJsonString(jsonString, options) {
472
- return new GetWorkspaceInstanceOwnerTokenRequest().fromJsonString(jsonString, options);
473
- }
474
- static equals(a, b) {
475
- return protobuf_1.proto3.util.equals(GetWorkspaceInstanceOwnerTokenRequest, a, b);
476
- }
477
- }
478
- exports.GetWorkspaceInstanceOwnerTokenRequest = GetWorkspaceInstanceOwnerTokenRequest;
479
- GetWorkspaceInstanceOwnerTokenRequest.runtime = protobuf_1.proto3;
480
- GetWorkspaceInstanceOwnerTokenRequest.typeName = "gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest";
481
- GetWorkspaceInstanceOwnerTokenRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
172
+ export const GetWorkspaceInstanceOwnerTokenRequest = proto3.makeMessageType(
173
+ "gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest",
174
+ () => [
482
175
  { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
483
- ]);
176
+ ],
177
+ );
178
+
484
179
  /**
485
180
  * @generated from message gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse
486
181
  */
487
- class GetWorkspaceInstanceOwnerTokenResponse extends protobuf_1.Message {
488
- constructor(data) {
489
- super();
490
- /**
491
- * @generated from field: string owner_token = 1;
492
- */
493
- this.ownerToken = "";
494
- protobuf_1.proto3.util.initPartial(data, this);
495
- }
496
- static fromBinary(bytes, options) {
497
- return new GetWorkspaceInstanceOwnerTokenResponse().fromBinary(bytes, options);
498
- }
499
- static fromJson(jsonValue, options) {
500
- return new GetWorkspaceInstanceOwnerTokenResponse().fromJson(jsonValue, options);
501
- }
502
- static fromJsonString(jsonString, options) {
503
- return new GetWorkspaceInstanceOwnerTokenResponse().fromJsonString(jsonString, options);
504
- }
505
- static equals(a, b) {
506
- return protobuf_1.proto3.util.equals(GetWorkspaceInstanceOwnerTokenResponse, a, b);
507
- }
508
- }
509
- exports.GetWorkspaceInstanceOwnerTokenResponse = GetWorkspaceInstanceOwnerTokenResponse;
510
- GetWorkspaceInstanceOwnerTokenResponse.runtime = protobuf_1.proto3;
511
- GetWorkspaceInstanceOwnerTokenResponse.typeName = "gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse";
512
- GetWorkspaceInstanceOwnerTokenResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
182
+ export const GetWorkspaceInstanceOwnerTokenResponse = proto3.makeMessageType(
183
+ "gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse",
184
+ () => [
513
185
  { no: 1, name: "owner_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
514
- ]);
186
+ ],
187
+ );
188
+
515
189
  /**
516
190
  * @generated from message gitpod.v1.ListenToWorkspaceInstanceRequest
517
191
  */
518
- class ListenToWorkspaceInstanceRequest extends protobuf_1.Message {
519
- constructor(data) {
520
- super();
521
- /**
522
- * @generated from field: string instance_id = 1;
523
- */
524
- this.instanceId = "";
525
- protobuf_1.proto3.util.initPartial(data, this);
526
- }
527
- static fromBinary(bytes, options) {
528
- return new ListenToWorkspaceInstanceRequest().fromBinary(bytes, options);
529
- }
530
- static fromJson(jsonValue, options) {
531
- return new ListenToWorkspaceInstanceRequest().fromJson(jsonValue, options);
532
- }
533
- static fromJsonString(jsonString, options) {
534
- return new ListenToWorkspaceInstanceRequest().fromJsonString(jsonString, options);
535
- }
536
- static equals(a, b) {
537
- return protobuf_1.proto3.util.equals(ListenToWorkspaceInstanceRequest, a, b);
538
- }
539
- }
540
- exports.ListenToWorkspaceInstanceRequest = ListenToWorkspaceInstanceRequest;
541
- ListenToWorkspaceInstanceRequest.runtime = protobuf_1.proto3;
542
- ListenToWorkspaceInstanceRequest.typeName = "gitpod.v1.ListenToWorkspaceInstanceRequest";
543
- ListenToWorkspaceInstanceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
192
+ export const ListenToWorkspaceInstanceRequest = proto3.makeMessageType(
193
+ "gitpod.v1.ListenToWorkspaceInstanceRequest",
194
+ () => [
544
195
  { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
545
- ]);
196
+ ],
197
+ );
198
+
546
199
  /**
547
200
  * @generated from message gitpod.v1.ListenToWorkspaceInstanceResponse
548
201
  */
549
- class ListenToWorkspaceInstanceResponse extends protobuf_1.Message {
550
- constructor(data) {
551
- super();
552
- protobuf_1.proto3.util.initPartial(data, this);
553
- }
554
- static fromBinary(bytes, options) {
555
- return new ListenToWorkspaceInstanceResponse().fromBinary(bytes, options);
556
- }
557
- static fromJson(jsonValue, options) {
558
- return new ListenToWorkspaceInstanceResponse().fromJson(jsonValue, options);
559
- }
560
- static fromJsonString(jsonString, options) {
561
- return new ListenToWorkspaceInstanceResponse().fromJsonString(jsonString, options);
562
- }
563
- static equals(a, b) {
564
- return protobuf_1.proto3.util.equals(ListenToWorkspaceInstanceResponse, a, b);
565
- }
566
- }
567
- exports.ListenToWorkspaceInstanceResponse = ListenToWorkspaceInstanceResponse;
568
- ListenToWorkspaceInstanceResponse.runtime = protobuf_1.proto3;
569
- ListenToWorkspaceInstanceResponse.typeName = "gitpod.v1.ListenToWorkspaceInstanceResponse";
570
- ListenToWorkspaceInstanceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
202
+ export const ListenToWorkspaceInstanceResponse = proto3.makeMessageType(
203
+ "gitpod.v1.ListenToWorkspaceInstanceResponse",
204
+ () => [
571
205
  { no: 1, name: "instance_status", kind: "message", T: WorkspaceInstanceStatus },
572
- ]);
206
+ ],
207
+ );
208
+
573
209
  /**
574
210
  * @generated from message gitpod.v1.ListenToImageBuildLogsRequest
575
211
  */
576
- class ListenToImageBuildLogsRequest extends protobuf_1.Message {
577
- constructor(data) {
578
- super();
579
- /**
580
- * @generated from field: string instance_id = 1;
581
- */
582
- this.instanceId = "";
583
- protobuf_1.proto3.util.initPartial(data, this);
584
- }
585
- static fromBinary(bytes, options) {
586
- return new ListenToImageBuildLogsRequest().fromBinary(bytes, options);
587
- }
588
- static fromJson(jsonValue, options) {
589
- return new ListenToImageBuildLogsRequest().fromJson(jsonValue, options);
590
- }
591
- static fromJsonString(jsonString, options) {
592
- return new ListenToImageBuildLogsRequest().fromJsonString(jsonString, options);
593
- }
594
- static equals(a, b) {
595
- return protobuf_1.proto3.util.equals(ListenToImageBuildLogsRequest, a, b);
596
- }
597
- }
598
- exports.ListenToImageBuildLogsRequest = ListenToImageBuildLogsRequest;
599
- ListenToImageBuildLogsRequest.runtime = protobuf_1.proto3;
600
- ListenToImageBuildLogsRequest.typeName = "gitpod.v1.ListenToImageBuildLogsRequest";
601
- ListenToImageBuildLogsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
212
+ export const ListenToImageBuildLogsRequest = proto3.makeMessageType(
213
+ "gitpod.v1.ListenToImageBuildLogsRequest",
214
+ () => [
602
215
  { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
603
- ]);
216
+ ],
217
+ );
218
+
604
219
  /**
605
220
  * @generated from message gitpod.v1.ListenToImageBuildLogsResponse
606
221
  */
607
- class ListenToImageBuildLogsResponse extends protobuf_1.Message {
608
- constructor(data) {
609
- super();
610
- /**
611
- * @generated from field: string line = 1;
612
- */
613
- this.line = "";
614
- protobuf_1.proto3.util.initPartial(data, this);
615
- }
616
- static fromBinary(bytes, options) {
617
- return new ListenToImageBuildLogsResponse().fromBinary(bytes, options);
618
- }
619
- static fromJson(jsonValue, options) {
620
- return new ListenToImageBuildLogsResponse().fromJson(jsonValue, options);
621
- }
622
- static fromJsonString(jsonString, options) {
623
- return new ListenToImageBuildLogsResponse().fromJsonString(jsonString, options);
624
- }
625
- static equals(a, b) {
626
- return protobuf_1.proto3.util.equals(ListenToImageBuildLogsResponse, a, b);
627
- }
628
- }
629
- exports.ListenToImageBuildLogsResponse = ListenToImageBuildLogsResponse;
630
- ListenToImageBuildLogsResponse.runtime = protobuf_1.proto3;
631
- ListenToImageBuildLogsResponse.typeName = "gitpod.v1.ListenToImageBuildLogsResponse";
632
- ListenToImageBuildLogsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
222
+ export const ListenToImageBuildLogsResponse = proto3.makeMessageType(
223
+ "gitpod.v1.ListenToImageBuildLogsResponse",
224
+ () => [
633
225
  { no: 1, name: "line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
634
- ]);
226
+ ],
227
+ );
228
+
635
229
  /**
636
230
  * @generated from message gitpod.v1.StopWorkspaceRequest
637
231
  */
638
- class StopWorkspaceRequest extends protobuf_1.Message {
639
- constructor(data) {
640
- super();
641
- /**
642
- * @generated from field: string idempotency_token = 1;
643
- */
644
- this.idempotencyToken = "";
645
- /**
646
- * @generated from field: string workspace_id = 2;
647
- */
648
- this.workspaceId = "";
649
- protobuf_1.proto3.util.initPartial(data, this);
650
- }
651
- static fromBinary(bytes, options) {
652
- return new StopWorkspaceRequest().fromBinary(bytes, options);
653
- }
654
- static fromJson(jsonValue, options) {
655
- return new StopWorkspaceRequest().fromJson(jsonValue, options);
656
- }
657
- static fromJsonString(jsonString, options) {
658
- return new StopWorkspaceRequest().fromJsonString(jsonString, options);
659
- }
660
- static equals(a, b) {
661
- return protobuf_1.proto3.util.equals(StopWorkspaceRequest, a, b);
662
- }
663
- }
664
- exports.StopWorkspaceRequest = StopWorkspaceRequest;
665
- StopWorkspaceRequest.runtime = protobuf_1.proto3;
666
- StopWorkspaceRequest.typeName = "gitpod.v1.StopWorkspaceRequest";
667
- StopWorkspaceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
232
+ export const StopWorkspaceRequest = proto3.makeMessageType(
233
+ "gitpod.v1.StopWorkspaceRequest",
234
+ () => [
668
235
  { no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
669
236
  { no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
670
- ]);
237
+ ],
238
+ );
239
+
671
240
  /**
672
241
  * @generated from message gitpod.v1.StopWorkspaceResponse
673
242
  */
674
- class StopWorkspaceResponse extends protobuf_1.Message {
675
- constructor(data) {
676
- super();
677
- protobuf_1.proto3.util.initPartial(data, this);
678
- }
679
- static fromBinary(bytes, options) {
680
- return new StopWorkspaceResponse().fromBinary(bytes, options);
681
- }
682
- static fromJson(jsonValue, options) {
683
- return new StopWorkspaceResponse().fromJson(jsonValue, options);
684
- }
685
- static fromJsonString(jsonString, options) {
686
- return new StopWorkspaceResponse().fromJsonString(jsonString, options);
687
- }
688
- static equals(a, b) {
689
- return protobuf_1.proto3.util.equals(StopWorkspaceResponse, a, b);
690
- }
691
- }
692
- exports.StopWorkspaceResponse = StopWorkspaceResponse;
693
- StopWorkspaceResponse.runtime = protobuf_1.proto3;
694
- StopWorkspaceResponse.typeName = "gitpod.v1.StopWorkspaceResponse";
695
- StopWorkspaceResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
243
+ export const StopWorkspaceResponse = proto3.makeMessageType(
244
+ "gitpod.v1.StopWorkspaceResponse",
245
+ [],
246
+ );
247
+
696
248
  /**
697
249
  * Workspace describes a single workspace
698
250
  *
699
251
  * @generated from message gitpod.v1.Workspace
700
252
  */
701
- class Workspace extends protobuf_1.Message {
702
- constructor(data) {
703
- super();
704
- /**
705
- * workspace_id is the ID of the workspace
706
- *
707
- * @generated from field: string workspace_id = 1;
708
- */
709
- this.workspaceId = "";
710
- /**
711
- * owner_id is the ID of the user who created this workspace
712
- *
713
- * @generated from field: string owner_id = 2;
714
- */
715
- this.ownerId = "";
716
- /**
717
- * project_id is the ID of the project which this workspace belongs to
718
- *
719
- * @generated from field: string project_id = 3;
720
- */
721
- this.projectId = "";
722
- /**
723
- * description is a human readable description of the workspace
724
- *
725
- * @generated from field: string description = 5;
726
- */
727
- this.description = "";
728
- protobuf_1.proto3.util.initPartial(data, this);
729
- }
730
- static fromBinary(bytes, options) {
731
- return new Workspace().fromBinary(bytes, options);
732
- }
733
- static fromJson(jsonValue, options) {
734
- return new Workspace().fromJson(jsonValue, options);
735
- }
736
- static fromJsonString(jsonString, options) {
737
- return new Workspace().fromJsonString(jsonString, options);
738
- }
739
- static equals(a, b) {
740
- return protobuf_1.proto3.util.equals(Workspace, a, b);
741
- }
742
- }
743
- exports.Workspace = Workspace;
744
- Workspace.runtime = protobuf_1.proto3;
745
- Workspace.typeName = "gitpod.v1.Workspace";
746
- Workspace.fields = protobuf_1.proto3.util.newFieldList(() => [
253
+ export const Workspace = proto3.makeMessageType(
254
+ "gitpod.v1.Workspace",
255
+ () => [
747
256
  { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
748
257
  { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
749
258
  { no: 3, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
750
259
  { no: 4, name: "context", kind: "message", T: WorkspaceContext },
751
260
  { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
752
- ]);
261
+ ],
262
+ );
263
+
753
264
  /**
754
265
  * WorkspaceContext describes the context a workspace was created from
755
266
  *
756
267
  * @generated from message gitpod.v1.WorkspaceContext
757
268
  */
758
- class WorkspaceContext extends protobuf_1.Message {
759
- constructor(data) {
760
- super();
761
- /**
762
- * All workspace context originates from a URL - this is the context URL
763
- * which led to the creation of a workspace.
764
- *
765
- * @generated from field: string context_url = 1;
766
- */
767
- this.contextUrl = "";
768
- /**
769
- * @generated from oneof gitpod.v1.WorkspaceContext.details
770
- */
771
- this.details = { case: undefined };
772
- protobuf_1.proto3.util.initPartial(data, this);
773
- }
774
- static fromBinary(bytes, options) {
775
- return new WorkspaceContext().fromBinary(bytes, options);
776
- }
777
- static fromJson(jsonValue, options) {
778
- return new WorkspaceContext().fromJson(jsonValue, options);
779
- }
780
- static fromJsonString(jsonString, options) {
781
- return new WorkspaceContext().fromJsonString(jsonString, options);
782
- }
783
- static equals(a, b) {
784
- return protobuf_1.proto3.util.equals(WorkspaceContext, a, b);
785
- }
786
- }
787
- exports.WorkspaceContext = WorkspaceContext;
788
- WorkspaceContext.runtime = protobuf_1.proto3;
789
- WorkspaceContext.typeName = "gitpod.v1.WorkspaceContext";
790
- WorkspaceContext.fields = protobuf_1.proto3.util.newFieldList(() => [
269
+ export const WorkspaceContext = proto3.makeMessageType(
270
+ "gitpod.v1.WorkspaceContext",
271
+ () => [
791
272
  { no: 1, name: "context_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
792
273
  { no: 2, name: "git", kind: "message", T: WorkspaceContext_Git, oneof: "details" },
793
274
  { no: 3, name: "prebuild", kind: "message", T: WorkspaceContext_Prebuild, oneof: "details" },
794
275
  { no: 4, name: "snapshot", kind: "message", T: WorkspaceContext_Snapshot, oneof: "details" },
795
- ]);
276
+ ],
277
+ );
278
+
796
279
  /**
797
280
  * Explicit Git context
798
281
  *
799
282
  * @generated from message gitpod.v1.WorkspaceContext.Git
800
283
  */
801
- class WorkspaceContext_Git extends protobuf_1.Message {
802
- constructor(data) {
803
- super();
804
- /**
805
- * @generated from field: string normalized_context_url = 1;
806
- */
807
- this.normalizedContextUrl = "";
808
- /**
809
- * @generated from field: string commit = 2;
810
- */
811
- this.commit = "";
812
- protobuf_1.proto3.util.initPartial(data, this);
813
- }
814
- static fromBinary(bytes, options) {
815
- return new WorkspaceContext_Git().fromBinary(bytes, options);
816
- }
817
- static fromJson(jsonValue, options) {
818
- return new WorkspaceContext_Git().fromJson(jsonValue, options);
819
- }
820
- static fromJsonString(jsonString, options) {
821
- return new WorkspaceContext_Git().fromJsonString(jsonString, options);
822
- }
823
- static equals(a, b) {
824
- return protobuf_1.proto3.util.equals(WorkspaceContext_Git, a, b);
825
- }
826
- }
827
- exports.WorkspaceContext_Git = WorkspaceContext_Git;
828
- WorkspaceContext_Git.runtime = protobuf_1.proto3;
829
- WorkspaceContext_Git.typeName = "gitpod.v1.WorkspaceContext.Git";
830
- WorkspaceContext_Git.fields = protobuf_1.proto3.util.newFieldList(() => [
284
+ export const WorkspaceContext_Git = proto3.makeMessageType(
285
+ "gitpod.v1.WorkspaceContext.Git",
286
+ () => [
831
287
  { no: 1, name: "normalized_context_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
832
288
  { no: 2, name: "commit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
833
- ]);
289
+ ],
290
+ {localName: "WorkspaceContext_Git"},
291
+ );
292
+
834
293
  /**
835
294
  * Workspace was created from a prebuild
836
295
  *
837
296
  * @generated from message gitpod.v1.WorkspaceContext.Prebuild
838
297
  */
839
- class WorkspaceContext_Prebuild extends protobuf_1.Message {
840
- constructor(data) {
841
- super();
842
- /**
843
- * prebuild_id is the ID of the prebuild which was used to create this workspace
844
- *
845
- * @generated from field: string prebuild_id = 2;
846
- */
847
- this.prebuildId = "";
848
- protobuf_1.proto3.util.initPartial(data, this);
849
- }
850
- static fromBinary(bytes, options) {
851
- return new WorkspaceContext_Prebuild().fromBinary(bytes, options);
852
- }
853
- static fromJson(jsonValue, options) {
854
- return new WorkspaceContext_Prebuild().fromJson(jsonValue, options);
855
- }
856
- static fromJsonString(jsonString, options) {
857
- return new WorkspaceContext_Prebuild().fromJsonString(jsonString, options);
858
- }
859
- static equals(a, b) {
860
- return protobuf_1.proto3.util.equals(WorkspaceContext_Prebuild, a, b);
861
- }
862
- }
863
- exports.WorkspaceContext_Prebuild = WorkspaceContext_Prebuild;
864
- WorkspaceContext_Prebuild.runtime = protobuf_1.proto3;
865
- WorkspaceContext_Prebuild.typeName = "gitpod.v1.WorkspaceContext.Prebuild";
866
- WorkspaceContext_Prebuild.fields = protobuf_1.proto3.util.newFieldList(() => [
298
+ export const WorkspaceContext_Prebuild = proto3.makeMessageType(
299
+ "gitpod.v1.WorkspaceContext.Prebuild",
300
+ () => [
867
301
  { no: 1, name: "original_context", kind: "message", T: WorkspaceContext_Git },
868
302
  { no: 2, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
869
- ]);
303
+ ],
304
+ {localName: "WorkspaceContext_Prebuild"},
305
+ );
306
+
870
307
  /**
871
308
  * Snapshot context points to the snapshot which the workspace was created from
872
309
  *
873
310
  * @generated from message gitpod.v1.WorkspaceContext.Snapshot
874
311
  */
875
- class WorkspaceContext_Snapshot extends protobuf_1.Message {
876
- constructor(data) {
877
- super();
878
- /**
879
- * @generated from field: string snapshot_id = 1;
880
- */
881
- this.snapshotId = "";
882
- protobuf_1.proto3.util.initPartial(data, this);
883
- }
884
- static fromBinary(bytes, options) {
885
- return new WorkspaceContext_Snapshot().fromBinary(bytes, options);
886
- }
887
- static fromJson(jsonValue, options) {
888
- return new WorkspaceContext_Snapshot().fromJson(jsonValue, options);
889
- }
890
- static fromJsonString(jsonString, options) {
891
- return new WorkspaceContext_Snapshot().fromJsonString(jsonString, options);
892
- }
893
- static equals(a, b) {
894
- return protobuf_1.proto3.util.equals(WorkspaceContext_Snapshot, a, b);
895
- }
896
- }
897
- exports.WorkspaceContext_Snapshot = WorkspaceContext_Snapshot;
898
- WorkspaceContext_Snapshot.runtime = protobuf_1.proto3;
899
- WorkspaceContext_Snapshot.typeName = "gitpod.v1.WorkspaceContext.Snapshot";
900
- WorkspaceContext_Snapshot.fields = protobuf_1.proto3.util.newFieldList(() => [
312
+ export const WorkspaceContext_Snapshot = proto3.makeMessageType(
313
+ "gitpod.v1.WorkspaceContext.Snapshot",
314
+ () => [
901
315
  { no: 1, name: "snapshot_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
902
- ]);
316
+ ],
317
+ {localName: "WorkspaceContext_Snapshot"},
318
+ );
319
+
903
320
  /**
904
321
  * WorkspaceInstance describes a single workspace instance
905
322
  *
906
323
  * @generated from message gitpod.v1.WorkspaceInstance
907
324
  */
908
- class WorkspaceInstance extends protobuf_1.Message {
909
- constructor(data) {
910
- super();
911
- /**
912
- * Instance ID is the unique identifier of the workspace instance
913
- *
914
- * @generated from field: string instance_id = 1;
915
- */
916
- this.instanceId = "";
917
- /**
918
- * Worksapce ID is the unique identifier of the workspace this instance belongs to
919
- *
920
- * @generated from field: string workspace_id = 2;
921
- */
922
- this.workspaceId = "";
923
- protobuf_1.proto3.util.initPartial(data, this);
924
- }
925
- static fromBinary(bytes, options) {
926
- return new WorkspaceInstance().fromBinary(bytes, options);
927
- }
928
- static fromJson(jsonValue, options) {
929
- return new WorkspaceInstance().fromJson(jsonValue, options);
930
- }
931
- static fromJsonString(jsonString, options) {
932
- return new WorkspaceInstance().fromJsonString(jsonString, options);
933
- }
934
- static equals(a, b) {
935
- return protobuf_1.proto3.util.equals(WorkspaceInstance, a, b);
936
- }
937
- }
938
- exports.WorkspaceInstance = WorkspaceInstance;
939
- WorkspaceInstance.runtime = protobuf_1.proto3;
940
- WorkspaceInstance.typeName = "gitpod.v1.WorkspaceInstance";
941
- WorkspaceInstance.fields = protobuf_1.proto3.util.newFieldList(() => [
325
+ export const WorkspaceInstance = proto3.makeMessageType(
326
+ "gitpod.v1.WorkspaceInstance",
327
+ () => [
942
328
  { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
943
329
  { no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
944
- { no: 3, name: "created_at", kind: "message", T: protobuf_1.Timestamp },
330
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
945
331
  { no: 4, name: "status", kind: "message", T: WorkspaceInstanceStatus },
946
- ]);
332
+ ],
333
+ );
334
+
947
335
  /**
948
336
  * WorkspaceStatus describes a workspace status
949
337
  *
950
338
  * @generated from message gitpod.v1.WorkspaceInstanceStatus
951
339
  */
952
- class WorkspaceInstanceStatus extends protobuf_1.Message {
953
- constructor(data) {
954
- super();
955
- /**
956
- * version of the status update. Workspace instances themselves are unversioned,
957
- * but their statuus has different versions.
958
- * The value of this field has no semantic meaning (e.g. don't interpret it as
959
- * as a timestemp), but it can be used to impose a partial order.
960
- * If a.status_version < b.status_version then a was the status before b.
961
- *
962
- * @generated from field: uint64 status_version = 1;
963
- */
964
- this.statusVersion = protobuf_1.protoInt64.zero;
965
- /**
966
- * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
967
- *
968
- * @generated from field: gitpod.v1.WorkspaceInstanceStatus.Phase phase = 2;
969
- */
970
- this.phase = WorkspaceInstanceStatus_Phase.UNSPECIFIED;
971
- /**
972
- * message is an optional human-readable message detailing the current phase
973
- *
974
- * @generated from field: string message = 4;
975
- */
976
- this.message = "";
977
- /**
978
- * URL contains the endpoint at which the workspace instance is available
979
- *
980
- * @generated from field: string url = 5;
981
- */
982
- this.url = "";
983
- /**
984
- * Admission describes who can access a workspace instance and its ports.
985
- *
986
- * @generated from field: gitpod.v1.AdmissionLevel admission = 6;
987
- */
988
- this.admission = AdmissionLevel.UNSPECIFIED;
989
- protobuf_1.proto3.util.initPartial(data, this);
990
- }
991
- static fromBinary(bytes, options) {
992
- return new WorkspaceInstanceStatus().fromBinary(bytes, options);
993
- }
994
- static fromJson(jsonValue, options) {
995
- return new WorkspaceInstanceStatus().fromJson(jsonValue, options);
996
- }
997
- static fromJsonString(jsonString, options) {
998
- return new WorkspaceInstanceStatus().fromJsonString(jsonString, options);
999
- }
1000
- static equals(a, b) {
1001
- return protobuf_1.proto3.util.equals(WorkspaceInstanceStatus, a, b);
1002
- }
1003
- }
1004
- exports.WorkspaceInstanceStatus = WorkspaceInstanceStatus;
1005
- WorkspaceInstanceStatus.runtime = protobuf_1.proto3;
1006
- WorkspaceInstanceStatus.typeName = "gitpod.v1.WorkspaceInstanceStatus";
1007
- WorkspaceInstanceStatus.fields = protobuf_1.proto3.util.newFieldList(() => [
340
+ export const WorkspaceInstanceStatus = proto3.makeMessageType(
341
+ "gitpod.v1.WorkspaceInstanceStatus",
342
+ () => [
1008
343
  { no: 1, name: "status_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1009
- { no: 2, name: "phase", kind: "enum", T: protobuf_1.proto3.getEnumType(WorkspaceInstanceStatus_Phase) },
344
+ { no: 2, name: "phase", kind: "enum", T: proto3.getEnumType(WorkspaceInstanceStatus_Phase) },
1010
345
  { no: 3, name: "conditions", kind: "message", T: WorkspaceInstanceStatus_Conditions },
1011
346
  { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1012
347
  { no: 5, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1013
- { no: 6, name: "admission", kind: "enum", T: protobuf_1.proto3.getEnumType(AdmissionLevel) },
1014
- ]);
348
+ { no: 6, name: "admission", kind: "enum", T: proto3.getEnumType(AdmissionLevel) },
349
+ ],
350
+ );
351
+
1015
352
  /**
1016
353
  * Phase is a simple, high-level summary of where the workspace instance is in its lifecycle.
1017
354
  * The phase is not intended to be a comprehensive rollup of observations of the workspace state,
@@ -1020,137 +357,39 @@ WorkspaceInstanceStatus.fields = protobuf_1.proto3.util.newFieldList(() => [
1020
357
  *
1021
358
  * @generated from enum gitpod.v1.WorkspaceInstanceStatus.Phase
1022
359
  */
1023
- var WorkspaceInstanceStatus_Phase;
1024
- (function (WorkspaceInstanceStatus_Phase) {
1025
- /**
1026
- * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
1027
- * a workspace. This phase is usually accompanied by an error.
1028
- *
1029
- * @generated from enum value: PHASE_UNSPECIFIED = 0;
1030
- */
1031
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["UNSPECIFIED"] = 0] = "UNSPECIFIED";
1032
- /**
1033
- * Preparing means that we haven't actually started the workspace instance just yet, but rather
1034
- * are still preparing for launch.
1035
- *
1036
- * @generated from enum value: PHASE_PREPARING = 1;
1037
- */
1038
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["PREPARING"] = 1] = "PREPARING";
1039
- /**
1040
- * ImageBuild indicates that there's an image build running for this workspace.
1041
- *
1042
- * @generated from enum value: PHASE_IMAGEBUILD = 2;
1043
- */
1044
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["IMAGEBUILD"] = 2] = "IMAGEBUILD";
1045
- /**
1046
- * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
1047
- * some space within the cluster. If for example the cluster needs to scale up to accomodate the
1048
- * workspace, the workspace will be in Pending state until that happened.
1049
- *
1050
- * @generated from enum value: PHASE_PENDING = 3;
1051
- */
1052
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["PENDING"] = 3] = "PENDING";
1053
- /**
1054
- * Creating means the workspace is currently being created. That includes downloading the images required
1055
- * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
1056
- * network speed, image size and cache states.
1057
- *
1058
- * @generated from enum value: PHASE_CREATING = 4;
1059
- */
1060
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["CREATING"] = 4] = "CREATING";
1061
- /**
1062
- * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
1063
- * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
1064
- *
1065
- * @generated from enum value: PHASE_INITIALIZING = 5;
1066
- */
1067
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["INITIALIZING"] = 5] = "INITIALIZING";
1068
- /**
1069
- * Running means the workspace is able to actively perform work, either by serving a user through Theia,
1070
- * or as a headless workspace.
1071
- *
1072
- * @generated from enum value: PHASE_RUNNING = 6;
1073
- */
1074
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["RUNNING"] = 6] = "RUNNING";
1075
- /**
1076
- * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
1077
- * When in this state, we expect it to become running or stopping anytime soon.
1078
- *
1079
- * @generated from enum value: PHASE_INTERRUPTED = 7;
1080
- */
1081
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["INTERRUPTED"] = 7] = "INTERRUPTED";
1082
- /**
1083
- * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
1084
- *
1085
- * @generated from enum value: PHASE_STOPPING = 8;
1086
- */
1087
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["STOPPING"] = 8] = "STOPPING";
1088
- /**
1089
- * Stopped means the workspace ended regularly because it was shut down.
1090
- *
1091
- * @generated from enum value: PHASE_STOPPED = 9;
1092
- */
1093
- WorkspaceInstanceStatus_Phase[WorkspaceInstanceStatus_Phase["STOPPED"] = 9] = "STOPPED";
1094
- })(WorkspaceInstanceStatus_Phase = exports.WorkspaceInstanceStatus_Phase || (exports.WorkspaceInstanceStatus_Phase = {}));
1095
- // Retrieve enum metadata with: proto3.getEnumType(WorkspaceInstanceStatus_Phase)
1096
- protobuf_1.proto3.util.setEnumType(WorkspaceInstanceStatus_Phase, "gitpod.v1.WorkspaceInstanceStatus.Phase", [
1097
- { no: 0, name: "PHASE_UNSPECIFIED" },
1098
- { no: 1, name: "PHASE_PREPARING" },
1099
- { no: 2, name: "PHASE_IMAGEBUILD" },
1100
- { no: 3, name: "PHASE_PENDING" },
1101
- { no: 4, name: "PHASE_CREATING" },
1102
- { no: 5, name: "PHASE_INITIALIZING" },
1103
- { no: 6, name: "PHASE_RUNNING" },
1104
- { no: 7, name: "PHASE_INTERRUPTED" },
1105
- { no: 8, name: "PHASE_STOPPING" },
1106
- { no: 9, name: "PHASE_STOPPED" },
1107
- ]);
360
+ export const WorkspaceInstanceStatus_Phase = proto3.makeEnum(
361
+ "gitpod.v1.WorkspaceInstanceStatus.Phase",
362
+ [
363
+ {no: 0, name: "PHASE_UNSPECIFIED", localName: "UNSPECIFIED"},
364
+ {no: 1, name: "PHASE_PREPARING", localName: "PREPARING"},
365
+ {no: 2, name: "PHASE_IMAGEBUILD", localName: "IMAGEBUILD"},
366
+ {no: 3, name: "PHASE_PENDING", localName: "PENDING"},
367
+ {no: 4, name: "PHASE_CREATING", localName: "CREATING"},
368
+ {no: 5, name: "PHASE_INITIALIZING", localName: "INITIALIZING"},
369
+ {no: 6, name: "PHASE_RUNNING", localName: "RUNNING"},
370
+ {no: 7, name: "PHASE_INTERRUPTED", localName: "INTERRUPTED"},
371
+ {no: 8, name: "PHASE_STOPPING", localName: "STOPPING"},
372
+ {no: 9, name: "PHASE_STOPPED", localName: "STOPPED"},
373
+ ],
374
+ );
375
+
1108
376
  /**
1109
377
  * Conditions gives more detailed information as to the state of the workspace. Which condition actually
1110
378
  * has a value depends on the phase the workspace is in.
1111
379
  *
1112
380
  * @generated from message gitpod.v1.WorkspaceInstanceStatus.Conditions
1113
381
  */
1114
- class WorkspaceInstanceStatus_Conditions extends protobuf_1.Message {
1115
- constructor(data) {
1116
- super();
1117
- /**
1118
- * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
1119
- * This field is filled exclusively when caused by system errors.
1120
- *
1121
- * @generated from field: string failed = 1;
1122
- */
1123
- this.failed = "";
1124
- /**
1125
- * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
1126
- *
1127
- * @generated from field: string timeout = 2;
1128
- */
1129
- this.timeout = "";
1130
- protobuf_1.proto3.util.initPartial(data, this);
1131
- }
1132
- static fromBinary(bytes, options) {
1133
- return new WorkspaceInstanceStatus_Conditions().fromBinary(bytes, options);
1134
- }
1135
- static fromJson(jsonValue, options) {
1136
- return new WorkspaceInstanceStatus_Conditions().fromJson(jsonValue, options);
1137
- }
1138
- static fromJsonString(jsonString, options) {
1139
- return new WorkspaceInstanceStatus_Conditions().fromJsonString(jsonString, options);
1140
- }
1141
- static equals(a, b) {
1142
- return protobuf_1.proto3.util.equals(WorkspaceInstanceStatus_Conditions, a, b);
1143
- }
1144
- }
1145
- exports.WorkspaceInstanceStatus_Conditions = WorkspaceInstanceStatus_Conditions;
1146
- WorkspaceInstanceStatus_Conditions.runtime = protobuf_1.proto3;
1147
- WorkspaceInstanceStatus_Conditions.typeName = "gitpod.v1.WorkspaceInstanceStatus.Conditions";
1148
- WorkspaceInstanceStatus_Conditions.fields = protobuf_1.proto3.util.newFieldList(() => [
382
+ export const WorkspaceInstanceStatus_Conditions = proto3.makeMessageType(
383
+ "gitpod.v1.WorkspaceInstanceStatus.Conditions",
384
+ () => [
1149
385
  { no: 1, name: "failed", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1150
386
  { no: 2, name: "timeout", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1151
- { no: 9, name: "first_user_activity", kind: "message", T: protobuf_1.Timestamp },
387
+ { no: 9, name: "first_user_activity", kind: "message", T: Timestamp },
1152
388
  { no: 11, name: "stopped_by_request", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1153
- ]);
389
+ ],
390
+ {localName: "WorkspaceInstanceStatus_Conditions"},
391
+ );
392
+
1154
393
  /**
1155
394
  * StartWorkspaceSpec influences the workspace start
1156
395
  *
@@ -1158,26 +397,7 @@ WorkspaceInstanceStatus_Conditions.fields = protobuf_1.proto3.util.newFieldList(
1158
397
  *
1159
398
  * @generated from message gitpod.v1.StartWorkspaceSpec
1160
399
  */
1161
- class StartWorkspaceSpec extends protobuf_1.Message {
1162
- constructor(data) {
1163
- super();
1164
- protobuf_1.proto3.util.initPartial(data, this);
1165
- }
1166
- static fromBinary(bytes, options) {
1167
- return new StartWorkspaceSpec().fromBinary(bytes, options);
1168
- }
1169
- static fromJson(jsonValue, options) {
1170
- return new StartWorkspaceSpec().fromJson(jsonValue, options);
1171
- }
1172
- static fromJsonString(jsonString, options) {
1173
- return new StartWorkspaceSpec().fromJsonString(jsonString, options);
1174
- }
1175
- static equals(a, b) {
1176
- return protobuf_1.proto3.util.equals(StartWorkspaceSpec, a, b);
1177
- }
1178
- }
1179
- exports.StartWorkspaceSpec = StartWorkspaceSpec;
1180
- StartWorkspaceSpec.runtime = protobuf_1.proto3;
1181
- StartWorkspaceSpec.typeName = "gitpod.v1.StartWorkspaceSpec";
1182
- StartWorkspaceSpec.fields = protobuf_1.proto3.util.newFieldList(() => []);
1183
- //# sourceMappingURL=workspaces_pb.js.map
400
+ export const StartWorkspaceSpec = proto3.makeMessageType(
401
+ "gitpod.v1.StartWorkspaceSpec",
402
+ [],
403
+ );