@gitpod/public-api 0.1.5-sje-installer-proxy-config-backup.0 → 0.1.5-sje-kots-db-migration-logger.0

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