@gitpod/public-api 0.1.5-sje-installer-proxy-config-backup.0 → 0.1.5-sje-no-log-envvars.0

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 +27 -30
  2. package/lib/gitpod/v1/pagination_pb.d.ts.map +1 -0
  3. package/lib/gitpod/v1/pagination_pb.js +43 -199
  4. package/lib/gitpod/v1/pagination_pb.js.map +1 -0
  5. package/lib/gitpod/v1/pagination_pb.ts +60 -0
  6. package/lib/gitpod/v1/prebuilds_connectweb.d.ts +65 -0
  7. package/lib/gitpod/v1/prebuilds_connectweb.d.ts.map +1 -0
  8. package/lib/gitpod/v1/prebuilds_connectweb.js +72 -0
  9. package/lib/gitpod/v1/prebuilds_connectweb.js.map +1 -0
  10. package/lib/gitpod/v1/prebuilds_connectweb.ts +71 -0
  11. package/lib/gitpod/v1/prebuilds_pb.d.ts +263 -265
  12. package/lib/gitpod/v1/prebuilds_pb.d.ts.map +1 -0
  13. package/lib/gitpod/v1/prebuilds_pb.js +398 -1960
  14. package/lib/gitpod/v1/prebuilds_pb.js.map +1 -0
  15. package/lib/gitpod/v1/prebuilds_pb.ts +540 -0
  16. package/lib/gitpod/v1/workspaces_connectweb.d.ts +134 -0
  17. package/lib/gitpod/v1/workspaces_connectweb.d.ts.map +1 -0
  18. package/lib/gitpod/v1/workspaces_connectweb.js +141 -0
  19. package/lib/gitpod/v1/workspaces_connectweb.js.map +1 -0
  20. package/lib/gitpod/v1/workspaces_connectweb.ts +140 -0
  21. package/lib/gitpod/v1/workspaces_pb.d.ts +819 -804
  22. package/lib/gitpod/v1/workspaces_pb.d.ts.map +1 -0
  23. package/lib/gitpod/v1/workspaces_pb.js +1148 -5941
  24. package/lib/gitpod/v1/workspaces_pb.js.map +1 -0
  25. package/lib/gitpod/v1/workspaces_pb.ts +1509 -0
  26. package/package.json +7 -10
  27. package/pkg-yarn.lock +5 -5
  28. package/provenance-bundle.jsonl +2 -2
  29. package/lib/gitpod/v1/pagination_grpc_pb.js +0 -7
  30. package/lib/gitpod/v1/prebuilds_grpc_pb.d.ts +0 -95
  31. package/lib/gitpod/v1/prebuilds_grpc_pb.js +0 -161
  32. package/lib/gitpod/v1/workspaces_grpc_pb.d.ts +0 -197
  33. package/lib/gitpod/v1/workspaces_grpc_pb.js +0 -368
@@ -0,0 +1,1509 @@
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/v1/workspaces.proto (package gitpod.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.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.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.v1.ListWorkspacesRequest
50
+ */
51
+ export class ListWorkspacesRequest extends Message<ListWorkspacesRequest> {
52
+ /**
53
+ * @generated from field: gitpod.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.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.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.v1.ListWorkspacesResponse.WorkspaceAndInstance result = 2;
102
+ */
103
+ result: ListWorkspacesResponse_WorkspaceAndInstance[] = [];
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.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: ListWorkspacesResponse_WorkspaceAndInstance, 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.v1.ListWorkspacesResponse.WorkspaceAndInstance
136
+ */
137
+ export class ListWorkspacesResponse_WorkspaceAndInstance extends Message<ListWorkspacesResponse_WorkspaceAndInstance> {
138
+ /**
139
+ * @generated from field: gitpod.v1.Workspace result = 1;
140
+ */
141
+ result?: Workspace;
142
+
143
+ /**
144
+ * @generated from field: gitpod.v1.WorkspaceInstance last_active_instances = 2;
145
+ */
146
+ lastActiveInstances?: WorkspaceInstance;
147
+
148
+ constructor(data?: PartialMessage<ListWorkspacesResponse_WorkspaceAndInstance>) {
149
+ super();
150
+ proto3.util.initPartial(data, this);
151
+ }
152
+
153
+ static readonly runtime = proto3;
154
+ static readonly typeName = "gitpod.v1.ListWorkspacesResponse.WorkspaceAndInstance";
155
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
156
+ { no: 1, name: "result", kind: "message", T: Workspace },
157
+ { no: 2, name: "last_active_instances", kind: "message", T: WorkspaceInstance },
158
+ ]);
159
+
160
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListWorkspacesResponse_WorkspaceAndInstance {
161
+ return new ListWorkspacesResponse_WorkspaceAndInstance().fromBinary(bytes, options);
162
+ }
163
+
164
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListWorkspacesResponse_WorkspaceAndInstance {
165
+ return new ListWorkspacesResponse_WorkspaceAndInstance().fromJson(jsonValue, options);
166
+ }
167
+
168
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListWorkspacesResponse_WorkspaceAndInstance {
169
+ return new ListWorkspacesResponse_WorkspaceAndInstance().fromJsonString(jsonString, options);
170
+ }
171
+
172
+ static equals(a: ListWorkspacesResponse_WorkspaceAndInstance | PlainMessage<ListWorkspacesResponse_WorkspaceAndInstance> | undefined, b: ListWorkspacesResponse_WorkspaceAndInstance | PlainMessage<ListWorkspacesResponse_WorkspaceAndInstance> | undefined): boolean {
173
+ return proto3.util.equals(ListWorkspacesResponse_WorkspaceAndInstance, a, b);
174
+ }
175
+ }
176
+
177
+ /**
178
+ * @generated from message gitpod.v1.GetWorkspaceRequest
179
+ */
180
+ export class GetWorkspaceRequest extends Message<GetWorkspaceRequest> {
181
+ /**
182
+ * @generated from field: string workspace_id = 1;
183
+ */
184
+ workspaceId = "";
185
+
186
+ constructor(data?: PartialMessage<GetWorkspaceRequest>) {
187
+ super();
188
+ proto3.util.initPartial(data, this);
189
+ }
190
+
191
+ static readonly runtime = proto3;
192
+ static readonly typeName = "gitpod.v1.GetWorkspaceRequest";
193
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
194
+ { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195
+ ]);
196
+
197
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceRequest {
198
+ return new GetWorkspaceRequest().fromBinary(bytes, options);
199
+ }
200
+
201
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceRequest {
202
+ return new GetWorkspaceRequest().fromJson(jsonValue, options);
203
+ }
204
+
205
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceRequest {
206
+ return new GetWorkspaceRequest().fromJsonString(jsonString, options);
207
+ }
208
+
209
+ static equals(a: GetWorkspaceRequest | PlainMessage<GetWorkspaceRequest> | undefined, b: GetWorkspaceRequest | PlainMessage<GetWorkspaceRequest> | undefined): boolean {
210
+ return proto3.util.equals(GetWorkspaceRequest, a, b);
211
+ }
212
+ }
213
+
214
+ /**
215
+ * @generated from message gitpod.v1.GetWorkspaceResponse
216
+ */
217
+ export class GetWorkspaceResponse extends Message<GetWorkspaceResponse> {
218
+ /**
219
+ * @generated from field: gitpod.v1.Workspace result = 1;
220
+ */
221
+ result?: Workspace;
222
+
223
+ constructor(data?: PartialMessage<GetWorkspaceResponse>) {
224
+ super();
225
+ proto3.util.initPartial(data, this);
226
+ }
227
+
228
+ static readonly runtime = proto3;
229
+ static readonly typeName = "gitpod.v1.GetWorkspaceResponse";
230
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
231
+ { no: 1, name: "result", kind: "message", T: Workspace },
232
+ ]);
233
+
234
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceResponse {
235
+ return new GetWorkspaceResponse().fromBinary(bytes, options);
236
+ }
237
+
238
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceResponse {
239
+ return new GetWorkspaceResponse().fromJson(jsonValue, options);
240
+ }
241
+
242
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceResponse {
243
+ return new GetWorkspaceResponse().fromJsonString(jsonString, options);
244
+ }
245
+
246
+ static equals(a: GetWorkspaceResponse | PlainMessage<GetWorkspaceResponse> | undefined, b: GetWorkspaceResponse | PlainMessage<GetWorkspaceResponse> | undefined): boolean {
247
+ return proto3.util.equals(GetWorkspaceResponse, a, b);
248
+ }
249
+ }
250
+
251
+ /**
252
+ * @generated from message gitpod.v1.GetOwnerTokenRequest
253
+ */
254
+ export class GetOwnerTokenRequest extends Message<GetOwnerTokenRequest> {
255
+ /**
256
+ * @generated from field: string workspace_id = 1;
257
+ */
258
+ workspaceId = "";
259
+
260
+ constructor(data?: PartialMessage<GetOwnerTokenRequest>) {
261
+ super();
262
+ proto3.util.initPartial(data, this);
263
+ }
264
+
265
+ static readonly runtime = proto3;
266
+ static readonly typeName = "gitpod.v1.GetOwnerTokenRequest";
267
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
268
+ { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
269
+ ]);
270
+
271
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOwnerTokenRequest {
272
+ return new GetOwnerTokenRequest().fromBinary(bytes, options);
273
+ }
274
+
275
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOwnerTokenRequest {
276
+ return new GetOwnerTokenRequest().fromJson(jsonValue, options);
277
+ }
278
+
279
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOwnerTokenRequest {
280
+ return new GetOwnerTokenRequest().fromJsonString(jsonString, options);
281
+ }
282
+
283
+ static equals(a: GetOwnerTokenRequest | PlainMessage<GetOwnerTokenRequest> | undefined, b: GetOwnerTokenRequest | PlainMessage<GetOwnerTokenRequest> | undefined): boolean {
284
+ return proto3.util.equals(GetOwnerTokenRequest, a, b);
285
+ }
286
+ }
287
+
288
+ /**
289
+ * @generated from message gitpod.v1.GetOwnerTokenResponse
290
+ */
291
+ export class GetOwnerTokenResponse extends Message<GetOwnerTokenResponse> {
292
+ /**
293
+ * @generated from field: string token = 1;
294
+ */
295
+ token = "";
296
+
297
+ constructor(data?: PartialMessage<GetOwnerTokenResponse>) {
298
+ super();
299
+ proto3.util.initPartial(data, this);
300
+ }
301
+
302
+ static readonly runtime = proto3;
303
+ static readonly typeName = "gitpod.v1.GetOwnerTokenResponse";
304
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
305
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
306
+ ]);
307
+
308
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOwnerTokenResponse {
309
+ return new GetOwnerTokenResponse().fromBinary(bytes, options);
310
+ }
311
+
312
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOwnerTokenResponse {
313
+ return new GetOwnerTokenResponse().fromJson(jsonValue, options);
314
+ }
315
+
316
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOwnerTokenResponse {
317
+ return new GetOwnerTokenResponse().fromJsonString(jsonString, options);
318
+ }
319
+
320
+ static equals(a: GetOwnerTokenResponse | PlainMessage<GetOwnerTokenResponse> | undefined, b: GetOwnerTokenResponse | PlainMessage<GetOwnerTokenResponse> | undefined): boolean {
321
+ return proto3.util.equals(GetOwnerTokenResponse, a, b);
322
+ }
323
+ }
324
+
325
+ /**
326
+ * @generated from message gitpod.v1.CreateAndStartWorkspaceRequest
327
+ */
328
+ export class CreateAndStartWorkspaceRequest extends Message<CreateAndStartWorkspaceRequest> {
329
+ /**
330
+ * @generated from field: string idempotency_token = 1;
331
+ */
332
+ idempotencyToken = "";
333
+
334
+ /**
335
+ * @generated from oneof gitpod.v1.CreateAndStartWorkspaceRequest.source
336
+ */
337
+ source: {
338
+ /**
339
+ * @generated from field: string context_url = 2;
340
+ */
341
+ value: string;
342
+ case: "contextUrl";
343
+ } | {
344
+ /**
345
+ * @generated from field: string prebuild_id = 3;
346
+ */
347
+ value: string;
348
+ case: "prebuildId";
349
+ } | { case: undefined; value?: undefined } = { case: undefined };
350
+
351
+ /**
352
+ * @generated from field: gitpod.v1.StartWorkspaceSpec start_spec = 5;
353
+ */
354
+ startSpec?: StartWorkspaceSpec;
355
+
356
+ constructor(data?: PartialMessage<CreateAndStartWorkspaceRequest>) {
357
+ super();
358
+ proto3.util.initPartial(data, this);
359
+ }
360
+
361
+ static readonly runtime = proto3;
362
+ static readonly typeName = "gitpod.v1.CreateAndStartWorkspaceRequest";
363
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
364
+ { no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
365
+ { no: 2, name: "context_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
366
+ { no: 3, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
367
+ { no: 5, name: "start_spec", kind: "message", T: StartWorkspaceSpec },
368
+ ]);
369
+
370
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAndStartWorkspaceRequest {
371
+ return new CreateAndStartWorkspaceRequest().fromBinary(bytes, options);
372
+ }
373
+
374
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAndStartWorkspaceRequest {
375
+ return new CreateAndStartWorkspaceRequest().fromJson(jsonValue, options);
376
+ }
377
+
378
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAndStartWorkspaceRequest {
379
+ return new CreateAndStartWorkspaceRequest().fromJsonString(jsonString, options);
380
+ }
381
+
382
+ static equals(a: CreateAndStartWorkspaceRequest | PlainMessage<CreateAndStartWorkspaceRequest> | undefined, b: CreateAndStartWorkspaceRequest | PlainMessage<CreateAndStartWorkspaceRequest> | undefined): boolean {
383
+ return proto3.util.equals(CreateAndStartWorkspaceRequest, a, b);
384
+ }
385
+ }
386
+
387
+ /**
388
+ * @generated from message gitpod.v1.CreateAndStartWorkspaceResponse
389
+ */
390
+ export class CreateAndStartWorkspaceResponse extends Message<CreateAndStartWorkspaceResponse> {
391
+ /**
392
+ * @generated from field: string workspace_id = 1;
393
+ */
394
+ workspaceId = "";
395
+
396
+ constructor(data?: PartialMessage<CreateAndStartWorkspaceResponse>) {
397
+ super();
398
+ proto3.util.initPartial(data, this);
399
+ }
400
+
401
+ static readonly runtime = proto3;
402
+ static readonly typeName = "gitpod.v1.CreateAndStartWorkspaceResponse";
403
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
404
+ { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
405
+ ]);
406
+
407
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAndStartWorkspaceResponse {
408
+ return new CreateAndStartWorkspaceResponse().fromBinary(bytes, options);
409
+ }
410
+
411
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAndStartWorkspaceResponse {
412
+ return new CreateAndStartWorkspaceResponse().fromJson(jsonValue, options);
413
+ }
414
+
415
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAndStartWorkspaceResponse {
416
+ return new CreateAndStartWorkspaceResponse().fromJsonString(jsonString, options);
417
+ }
418
+
419
+ static equals(a: CreateAndStartWorkspaceResponse | PlainMessage<CreateAndStartWorkspaceResponse> | undefined, b: CreateAndStartWorkspaceResponse | PlainMessage<CreateAndStartWorkspaceResponse> | undefined): boolean {
420
+ return proto3.util.equals(CreateAndStartWorkspaceResponse, a, b);
421
+ }
422
+ }
423
+
424
+ /**
425
+ * @generated from message gitpod.v1.StartWorkspaceRequest
426
+ */
427
+ export class StartWorkspaceRequest extends Message<StartWorkspaceRequest> {
428
+ /**
429
+ * @generated from field: string idempotency_token = 1;
430
+ */
431
+ idempotencyToken = "";
432
+
433
+ /**
434
+ * @generated from field: string workspace_id = 2;
435
+ */
436
+ workspaceId = "";
437
+
438
+ /**
439
+ * @generated from field: gitpod.v1.StartWorkspaceSpec spec = 3;
440
+ */
441
+ spec?: StartWorkspaceSpec;
442
+
443
+ constructor(data?: PartialMessage<StartWorkspaceRequest>) {
444
+ super();
445
+ proto3.util.initPartial(data, this);
446
+ }
447
+
448
+ static readonly runtime = proto3;
449
+ static readonly typeName = "gitpod.v1.StartWorkspaceRequest";
450
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
451
+ { no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
452
+ { no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
453
+ { no: 3, name: "spec", kind: "message", T: StartWorkspaceSpec },
454
+ ]);
455
+
456
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartWorkspaceRequest {
457
+ return new StartWorkspaceRequest().fromBinary(bytes, options);
458
+ }
459
+
460
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartWorkspaceRequest {
461
+ return new StartWorkspaceRequest().fromJson(jsonValue, options);
462
+ }
463
+
464
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartWorkspaceRequest {
465
+ return new StartWorkspaceRequest().fromJsonString(jsonString, options);
466
+ }
467
+
468
+ static equals(a: StartWorkspaceRequest | PlainMessage<StartWorkspaceRequest> | undefined, b: StartWorkspaceRequest | PlainMessage<StartWorkspaceRequest> | undefined): boolean {
469
+ return proto3.util.equals(StartWorkspaceRequest, a, b);
470
+ }
471
+ }
472
+
473
+ /**
474
+ * @generated from message gitpod.v1.StartWorkspaceResponse
475
+ */
476
+ export class StartWorkspaceResponse extends Message<StartWorkspaceResponse> {
477
+ /**
478
+ * @generated from field: string instance_id = 1;
479
+ */
480
+ instanceId = "";
481
+
482
+ /**
483
+ * @generated from field: string workspace_url = 2;
484
+ */
485
+ workspaceUrl = "";
486
+
487
+ constructor(data?: PartialMessage<StartWorkspaceResponse>) {
488
+ super();
489
+ proto3.util.initPartial(data, this);
490
+ }
491
+
492
+ static readonly runtime = proto3;
493
+ static readonly typeName = "gitpod.v1.StartWorkspaceResponse";
494
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
495
+ { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
496
+ { no: 2, name: "workspace_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
497
+ ]);
498
+
499
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartWorkspaceResponse {
500
+ return new StartWorkspaceResponse().fromBinary(bytes, options);
501
+ }
502
+
503
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartWorkspaceResponse {
504
+ return new StartWorkspaceResponse().fromJson(jsonValue, options);
505
+ }
506
+
507
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartWorkspaceResponse {
508
+ return new StartWorkspaceResponse().fromJsonString(jsonString, options);
509
+ }
510
+
511
+ static equals(a: StartWorkspaceResponse | PlainMessage<StartWorkspaceResponse> | undefined, b: StartWorkspaceResponse | PlainMessage<StartWorkspaceResponse> | undefined): boolean {
512
+ return proto3.util.equals(StartWorkspaceResponse, a, b);
513
+ }
514
+ }
515
+
516
+ /**
517
+ * @generated from message gitpod.v1.GetActiveWorkspaceInstanceRequest
518
+ */
519
+ export class GetActiveWorkspaceInstanceRequest extends Message<GetActiveWorkspaceInstanceRequest> {
520
+ /**
521
+ * @generated from field: string workspace_id = 1;
522
+ */
523
+ workspaceId = "";
524
+
525
+ constructor(data?: PartialMessage<GetActiveWorkspaceInstanceRequest>) {
526
+ super();
527
+ proto3.util.initPartial(data, this);
528
+ }
529
+
530
+ static readonly runtime = proto3;
531
+ static readonly typeName = "gitpod.v1.GetActiveWorkspaceInstanceRequest";
532
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
533
+ { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
534
+ ]);
535
+
536
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActiveWorkspaceInstanceRequest {
537
+ return new GetActiveWorkspaceInstanceRequest().fromBinary(bytes, options);
538
+ }
539
+
540
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActiveWorkspaceInstanceRequest {
541
+ return new GetActiveWorkspaceInstanceRequest().fromJson(jsonValue, options);
542
+ }
543
+
544
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActiveWorkspaceInstanceRequest {
545
+ return new GetActiveWorkspaceInstanceRequest().fromJsonString(jsonString, options);
546
+ }
547
+
548
+ static equals(a: GetActiveWorkspaceInstanceRequest | PlainMessage<GetActiveWorkspaceInstanceRequest> | undefined, b: GetActiveWorkspaceInstanceRequest | PlainMessage<GetActiveWorkspaceInstanceRequest> | undefined): boolean {
549
+ return proto3.util.equals(GetActiveWorkspaceInstanceRequest, a, b);
550
+ }
551
+ }
552
+
553
+ /**
554
+ * @generated from message gitpod.v1.GetActiveWorkspaceInstanceResponse
555
+ */
556
+ export class GetActiveWorkspaceInstanceResponse extends Message<GetActiveWorkspaceInstanceResponse> {
557
+ /**
558
+ * @generated from field: gitpod.v1.WorkspaceInstance instance = 1;
559
+ */
560
+ instance?: WorkspaceInstance;
561
+
562
+ constructor(data?: PartialMessage<GetActiveWorkspaceInstanceResponse>) {
563
+ super();
564
+ proto3.util.initPartial(data, this);
565
+ }
566
+
567
+ static readonly runtime = proto3;
568
+ static readonly typeName = "gitpod.v1.GetActiveWorkspaceInstanceResponse";
569
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
570
+ { no: 1, name: "instance", kind: "message", T: WorkspaceInstance },
571
+ ]);
572
+
573
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActiveWorkspaceInstanceResponse {
574
+ return new GetActiveWorkspaceInstanceResponse().fromBinary(bytes, options);
575
+ }
576
+
577
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActiveWorkspaceInstanceResponse {
578
+ return new GetActiveWorkspaceInstanceResponse().fromJson(jsonValue, options);
579
+ }
580
+
581
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActiveWorkspaceInstanceResponse {
582
+ return new GetActiveWorkspaceInstanceResponse().fromJsonString(jsonString, options);
583
+ }
584
+
585
+ static equals(a: GetActiveWorkspaceInstanceResponse | PlainMessage<GetActiveWorkspaceInstanceResponse> | undefined, b: GetActiveWorkspaceInstanceResponse | PlainMessage<GetActiveWorkspaceInstanceResponse> | undefined): boolean {
586
+ return proto3.util.equals(GetActiveWorkspaceInstanceResponse, a, b);
587
+ }
588
+ }
589
+
590
+ /**
591
+ * @generated from message gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest
592
+ */
593
+ export class GetWorkspaceInstanceOwnerTokenRequest extends Message<GetWorkspaceInstanceOwnerTokenRequest> {
594
+ /**
595
+ * @generated from field: string instance_id = 1;
596
+ */
597
+ instanceId = "";
598
+
599
+ constructor(data?: PartialMessage<GetWorkspaceInstanceOwnerTokenRequest>) {
600
+ super();
601
+ proto3.util.initPartial(data, this);
602
+ }
603
+
604
+ static readonly runtime = proto3;
605
+ static readonly typeName = "gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest";
606
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
607
+ { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
608
+ ]);
609
+
610
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceInstanceOwnerTokenRequest {
611
+ return new GetWorkspaceInstanceOwnerTokenRequest().fromBinary(bytes, options);
612
+ }
613
+
614
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceInstanceOwnerTokenRequest {
615
+ return new GetWorkspaceInstanceOwnerTokenRequest().fromJson(jsonValue, options);
616
+ }
617
+
618
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceInstanceOwnerTokenRequest {
619
+ return new GetWorkspaceInstanceOwnerTokenRequest().fromJsonString(jsonString, options);
620
+ }
621
+
622
+ static equals(a: GetWorkspaceInstanceOwnerTokenRequest | PlainMessage<GetWorkspaceInstanceOwnerTokenRequest> | undefined, b: GetWorkspaceInstanceOwnerTokenRequest | PlainMessage<GetWorkspaceInstanceOwnerTokenRequest> | undefined): boolean {
623
+ return proto3.util.equals(GetWorkspaceInstanceOwnerTokenRequest, a, b);
624
+ }
625
+ }
626
+
627
+ /**
628
+ * @generated from message gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse
629
+ */
630
+ export class GetWorkspaceInstanceOwnerTokenResponse extends Message<GetWorkspaceInstanceOwnerTokenResponse> {
631
+ /**
632
+ * @generated from field: string owner_token = 1;
633
+ */
634
+ ownerToken = "";
635
+
636
+ constructor(data?: PartialMessage<GetWorkspaceInstanceOwnerTokenResponse>) {
637
+ super();
638
+ proto3.util.initPartial(data, this);
639
+ }
640
+
641
+ static readonly runtime = proto3;
642
+ static readonly typeName = "gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse";
643
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
644
+ { no: 1, name: "owner_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
645
+ ]);
646
+
647
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceInstanceOwnerTokenResponse {
648
+ return new GetWorkspaceInstanceOwnerTokenResponse().fromBinary(bytes, options);
649
+ }
650
+
651
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceInstanceOwnerTokenResponse {
652
+ return new GetWorkspaceInstanceOwnerTokenResponse().fromJson(jsonValue, options);
653
+ }
654
+
655
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceInstanceOwnerTokenResponse {
656
+ return new GetWorkspaceInstanceOwnerTokenResponse().fromJsonString(jsonString, options);
657
+ }
658
+
659
+ static equals(a: GetWorkspaceInstanceOwnerTokenResponse | PlainMessage<GetWorkspaceInstanceOwnerTokenResponse> | undefined, b: GetWorkspaceInstanceOwnerTokenResponse | PlainMessage<GetWorkspaceInstanceOwnerTokenResponse> | undefined): boolean {
660
+ return proto3.util.equals(GetWorkspaceInstanceOwnerTokenResponse, a, b);
661
+ }
662
+ }
663
+
664
+ /**
665
+ * @generated from message gitpod.v1.ListenToWorkspaceInstanceRequest
666
+ */
667
+ export class ListenToWorkspaceInstanceRequest extends Message<ListenToWorkspaceInstanceRequest> {
668
+ /**
669
+ * @generated from field: string instance_id = 1;
670
+ */
671
+ instanceId = "";
672
+
673
+ constructor(data?: PartialMessage<ListenToWorkspaceInstanceRequest>) {
674
+ super();
675
+ proto3.util.initPartial(data, this);
676
+ }
677
+
678
+ static readonly runtime = proto3;
679
+ static readonly typeName = "gitpod.v1.ListenToWorkspaceInstanceRequest";
680
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
681
+ { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
682
+ ]);
683
+
684
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListenToWorkspaceInstanceRequest {
685
+ return new ListenToWorkspaceInstanceRequest().fromBinary(bytes, options);
686
+ }
687
+
688
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListenToWorkspaceInstanceRequest {
689
+ return new ListenToWorkspaceInstanceRequest().fromJson(jsonValue, options);
690
+ }
691
+
692
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListenToWorkspaceInstanceRequest {
693
+ return new ListenToWorkspaceInstanceRequest().fromJsonString(jsonString, options);
694
+ }
695
+
696
+ static equals(a: ListenToWorkspaceInstanceRequest | PlainMessage<ListenToWorkspaceInstanceRequest> | undefined, b: ListenToWorkspaceInstanceRequest | PlainMessage<ListenToWorkspaceInstanceRequest> | undefined): boolean {
697
+ return proto3.util.equals(ListenToWorkspaceInstanceRequest, a, b);
698
+ }
699
+ }
700
+
701
+ /**
702
+ * @generated from message gitpod.v1.ListenToWorkspaceInstanceResponse
703
+ */
704
+ export class ListenToWorkspaceInstanceResponse extends Message<ListenToWorkspaceInstanceResponse> {
705
+ /**
706
+ * @generated from field: gitpod.v1.WorkspaceInstanceStatus instance_status = 1;
707
+ */
708
+ instanceStatus?: WorkspaceInstanceStatus;
709
+
710
+ constructor(data?: PartialMessage<ListenToWorkspaceInstanceResponse>) {
711
+ super();
712
+ proto3.util.initPartial(data, this);
713
+ }
714
+
715
+ static readonly runtime = proto3;
716
+ static readonly typeName = "gitpod.v1.ListenToWorkspaceInstanceResponse";
717
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
718
+ { no: 1, name: "instance_status", kind: "message", T: WorkspaceInstanceStatus },
719
+ ]);
720
+
721
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListenToWorkspaceInstanceResponse {
722
+ return new ListenToWorkspaceInstanceResponse().fromBinary(bytes, options);
723
+ }
724
+
725
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListenToWorkspaceInstanceResponse {
726
+ return new ListenToWorkspaceInstanceResponse().fromJson(jsonValue, options);
727
+ }
728
+
729
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListenToWorkspaceInstanceResponse {
730
+ return new ListenToWorkspaceInstanceResponse().fromJsonString(jsonString, options);
731
+ }
732
+
733
+ static equals(a: ListenToWorkspaceInstanceResponse | PlainMessage<ListenToWorkspaceInstanceResponse> | undefined, b: ListenToWorkspaceInstanceResponse | PlainMessage<ListenToWorkspaceInstanceResponse> | undefined): boolean {
734
+ return proto3.util.equals(ListenToWorkspaceInstanceResponse, a, b);
735
+ }
736
+ }
737
+
738
+ /**
739
+ * @generated from message gitpod.v1.ListenToImageBuildLogsRequest
740
+ */
741
+ export class ListenToImageBuildLogsRequest extends Message<ListenToImageBuildLogsRequest> {
742
+ /**
743
+ * @generated from field: string instance_id = 1;
744
+ */
745
+ instanceId = "";
746
+
747
+ constructor(data?: PartialMessage<ListenToImageBuildLogsRequest>) {
748
+ super();
749
+ proto3.util.initPartial(data, this);
750
+ }
751
+
752
+ static readonly runtime = proto3;
753
+ static readonly typeName = "gitpod.v1.ListenToImageBuildLogsRequest";
754
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
755
+ { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
756
+ ]);
757
+
758
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListenToImageBuildLogsRequest {
759
+ return new ListenToImageBuildLogsRequest().fromBinary(bytes, options);
760
+ }
761
+
762
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListenToImageBuildLogsRequest {
763
+ return new ListenToImageBuildLogsRequest().fromJson(jsonValue, options);
764
+ }
765
+
766
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListenToImageBuildLogsRequest {
767
+ return new ListenToImageBuildLogsRequest().fromJsonString(jsonString, options);
768
+ }
769
+
770
+ static equals(a: ListenToImageBuildLogsRequest | PlainMessage<ListenToImageBuildLogsRequest> | undefined, b: ListenToImageBuildLogsRequest | PlainMessage<ListenToImageBuildLogsRequest> | undefined): boolean {
771
+ return proto3.util.equals(ListenToImageBuildLogsRequest, a, b);
772
+ }
773
+ }
774
+
775
+ /**
776
+ * @generated from message gitpod.v1.ListenToImageBuildLogsResponse
777
+ */
778
+ export class ListenToImageBuildLogsResponse extends Message<ListenToImageBuildLogsResponse> {
779
+ /**
780
+ * @generated from field: string line = 1;
781
+ */
782
+ line = "";
783
+
784
+ constructor(data?: PartialMessage<ListenToImageBuildLogsResponse>) {
785
+ super();
786
+ proto3.util.initPartial(data, this);
787
+ }
788
+
789
+ static readonly runtime = proto3;
790
+ static readonly typeName = "gitpod.v1.ListenToImageBuildLogsResponse";
791
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
792
+ { no: 1, name: "line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
793
+ ]);
794
+
795
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListenToImageBuildLogsResponse {
796
+ return new ListenToImageBuildLogsResponse().fromBinary(bytes, options);
797
+ }
798
+
799
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListenToImageBuildLogsResponse {
800
+ return new ListenToImageBuildLogsResponse().fromJson(jsonValue, options);
801
+ }
802
+
803
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListenToImageBuildLogsResponse {
804
+ return new ListenToImageBuildLogsResponse().fromJsonString(jsonString, options);
805
+ }
806
+
807
+ static equals(a: ListenToImageBuildLogsResponse | PlainMessage<ListenToImageBuildLogsResponse> | undefined, b: ListenToImageBuildLogsResponse | PlainMessage<ListenToImageBuildLogsResponse> | undefined): boolean {
808
+ return proto3.util.equals(ListenToImageBuildLogsResponse, a, b);
809
+ }
810
+ }
811
+
812
+ /**
813
+ * @generated from message gitpod.v1.StopWorkspaceRequest
814
+ */
815
+ export class StopWorkspaceRequest extends Message<StopWorkspaceRequest> {
816
+ /**
817
+ * @generated from field: string idempotency_token = 1;
818
+ */
819
+ idempotencyToken = "";
820
+
821
+ /**
822
+ * @generated from field: string workspace_id = 2;
823
+ */
824
+ workspaceId = "";
825
+
826
+ constructor(data?: PartialMessage<StopWorkspaceRequest>) {
827
+ super();
828
+ proto3.util.initPartial(data, this);
829
+ }
830
+
831
+ static readonly runtime = proto3;
832
+ static readonly typeName = "gitpod.v1.StopWorkspaceRequest";
833
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
834
+ { no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
835
+ { no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
836
+ ]);
837
+
838
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StopWorkspaceRequest {
839
+ return new StopWorkspaceRequest().fromBinary(bytes, options);
840
+ }
841
+
842
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StopWorkspaceRequest {
843
+ return new StopWorkspaceRequest().fromJson(jsonValue, options);
844
+ }
845
+
846
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StopWorkspaceRequest {
847
+ return new StopWorkspaceRequest().fromJsonString(jsonString, options);
848
+ }
849
+
850
+ static equals(a: StopWorkspaceRequest | PlainMessage<StopWorkspaceRequest> | undefined, b: StopWorkspaceRequest | PlainMessage<StopWorkspaceRequest> | undefined): boolean {
851
+ return proto3.util.equals(StopWorkspaceRequest, a, b);
852
+ }
853
+ }
854
+
855
+ /**
856
+ * @generated from message gitpod.v1.StopWorkspaceResponse
857
+ */
858
+ export class StopWorkspaceResponse extends Message<StopWorkspaceResponse> {
859
+ constructor(data?: PartialMessage<StopWorkspaceResponse>) {
860
+ super();
861
+ proto3.util.initPartial(data, this);
862
+ }
863
+
864
+ static readonly runtime = proto3;
865
+ static readonly typeName = "gitpod.v1.StopWorkspaceResponse";
866
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
867
+ ]);
868
+
869
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StopWorkspaceResponse {
870
+ return new StopWorkspaceResponse().fromBinary(bytes, options);
871
+ }
872
+
873
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StopWorkspaceResponse {
874
+ return new StopWorkspaceResponse().fromJson(jsonValue, options);
875
+ }
876
+
877
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StopWorkspaceResponse {
878
+ return new StopWorkspaceResponse().fromJsonString(jsonString, options);
879
+ }
880
+
881
+ static equals(a: StopWorkspaceResponse | PlainMessage<StopWorkspaceResponse> | undefined, b: StopWorkspaceResponse | PlainMessage<StopWorkspaceResponse> | undefined): boolean {
882
+ return proto3.util.equals(StopWorkspaceResponse, a, b);
883
+ }
884
+ }
885
+
886
+ /**
887
+ * Workspace describes a single workspace
888
+ *
889
+ * @generated from message gitpod.v1.Workspace
890
+ */
891
+ export class Workspace extends Message<Workspace> {
892
+ /**
893
+ * workspace_id is the ID of the workspace
894
+ *
895
+ * @generated from field: string workspace_id = 1;
896
+ */
897
+ workspaceId = "";
898
+
899
+ /**
900
+ * owner_id is the ID of the user who created this workspace
901
+ *
902
+ * @generated from field: string owner_id = 2;
903
+ */
904
+ ownerId = "";
905
+
906
+ /**
907
+ * project_id is the ID of the project which this workspace belongs to
908
+ *
909
+ * @generated from field: string project_id = 3;
910
+ */
911
+ projectId = "";
912
+
913
+ /**
914
+ * context reports the original context the workspace was created from
915
+ *
916
+ * @generated from field: gitpod.v1.WorkspaceContext context = 4;
917
+ */
918
+ context?: WorkspaceContext;
919
+
920
+ /**
921
+ * description is a human readable description of the workspace
922
+ *
923
+ * @generated from field: string description = 5;
924
+ */
925
+ description = "";
926
+
927
+ constructor(data?: PartialMessage<Workspace>) {
928
+ super();
929
+ proto3.util.initPartial(data, this);
930
+ }
931
+
932
+ static readonly runtime = proto3;
933
+ static readonly typeName = "gitpod.v1.Workspace";
934
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
935
+ { no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
936
+ { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
937
+ { no: 3, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
938
+ { no: 4, name: "context", kind: "message", T: WorkspaceContext },
939
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
940
+ ]);
941
+
942
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Workspace {
943
+ return new Workspace().fromBinary(bytes, options);
944
+ }
945
+
946
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Workspace {
947
+ return new Workspace().fromJson(jsonValue, options);
948
+ }
949
+
950
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Workspace {
951
+ return new Workspace().fromJsonString(jsonString, options);
952
+ }
953
+
954
+ static equals(a: Workspace | PlainMessage<Workspace> | undefined, b: Workspace | PlainMessage<Workspace> | undefined): boolean {
955
+ return proto3.util.equals(Workspace, a, b);
956
+ }
957
+ }
958
+
959
+ /**
960
+ * WorkspaceContext describes the context a workspace was created from
961
+ *
962
+ * @generated from message gitpod.v1.WorkspaceContext
963
+ */
964
+ export class WorkspaceContext extends Message<WorkspaceContext> {
965
+ /**
966
+ * All workspace context originates from a URL - this is the context URL
967
+ * which led to the creation of a workspace.
968
+ *
969
+ * @generated from field: string context_url = 1;
970
+ */
971
+ contextUrl = "";
972
+
973
+ /**
974
+ * @generated from oneof gitpod.v1.WorkspaceContext.details
975
+ */
976
+ details: {
977
+ /**
978
+ * @generated from field: gitpod.v1.WorkspaceContext.Git git = 2;
979
+ */
980
+ value: WorkspaceContext_Git;
981
+ case: "git";
982
+ } | {
983
+ /**
984
+ * @generated from field: gitpod.v1.WorkspaceContext.Prebuild prebuild = 3;
985
+ */
986
+ value: WorkspaceContext_Prebuild;
987
+ case: "prebuild";
988
+ } | {
989
+ /**
990
+ * @generated from field: gitpod.v1.WorkspaceContext.Snapshot snapshot = 4;
991
+ */
992
+ value: WorkspaceContext_Snapshot;
993
+ case: "snapshot";
994
+ } | { case: undefined; value?: undefined } = { case: undefined };
995
+
996
+ constructor(data?: PartialMessage<WorkspaceContext>) {
997
+ super();
998
+ proto3.util.initPartial(data, this);
999
+ }
1000
+
1001
+ static readonly runtime = proto3;
1002
+ static readonly typeName = "gitpod.v1.WorkspaceContext";
1003
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1004
+ { no: 1, name: "context_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1005
+ { no: 2, name: "git", kind: "message", T: WorkspaceContext_Git, oneof: "details" },
1006
+ { no: 3, name: "prebuild", kind: "message", T: WorkspaceContext_Prebuild, oneof: "details" },
1007
+ { no: 4, name: "snapshot", kind: "message", T: WorkspaceContext_Snapshot, oneof: "details" },
1008
+ ]);
1009
+
1010
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceContext {
1011
+ return new WorkspaceContext().fromBinary(bytes, options);
1012
+ }
1013
+
1014
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceContext {
1015
+ return new WorkspaceContext().fromJson(jsonValue, options);
1016
+ }
1017
+
1018
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceContext {
1019
+ return new WorkspaceContext().fromJsonString(jsonString, options);
1020
+ }
1021
+
1022
+ static equals(a: WorkspaceContext | PlainMessage<WorkspaceContext> | undefined, b: WorkspaceContext | PlainMessage<WorkspaceContext> | undefined): boolean {
1023
+ return proto3.util.equals(WorkspaceContext, a, b);
1024
+ }
1025
+ }
1026
+
1027
+ /**
1028
+ * Explicit Git context
1029
+ *
1030
+ * @generated from message gitpod.v1.WorkspaceContext.Git
1031
+ */
1032
+ export class WorkspaceContext_Git extends Message<WorkspaceContext_Git> {
1033
+ /**
1034
+ * @generated from field: string normalized_context_url = 1;
1035
+ */
1036
+ normalizedContextUrl = "";
1037
+
1038
+ /**
1039
+ * @generated from field: string commit = 2;
1040
+ */
1041
+ commit = "";
1042
+
1043
+ constructor(data?: PartialMessage<WorkspaceContext_Git>) {
1044
+ super();
1045
+ proto3.util.initPartial(data, this);
1046
+ }
1047
+
1048
+ static readonly runtime = proto3;
1049
+ static readonly typeName = "gitpod.v1.WorkspaceContext.Git";
1050
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1051
+ { no: 1, name: "normalized_context_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1052
+ { no: 2, name: "commit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1053
+ ]);
1054
+
1055
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceContext_Git {
1056
+ return new WorkspaceContext_Git().fromBinary(bytes, options);
1057
+ }
1058
+
1059
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceContext_Git {
1060
+ return new WorkspaceContext_Git().fromJson(jsonValue, options);
1061
+ }
1062
+
1063
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceContext_Git {
1064
+ return new WorkspaceContext_Git().fromJsonString(jsonString, options);
1065
+ }
1066
+
1067
+ static equals(a: WorkspaceContext_Git | PlainMessage<WorkspaceContext_Git> | undefined, b: WorkspaceContext_Git | PlainMessage<WorkspaceContext_Git> | undefined): boolean {
1068
+ return proto3.util.equals(WorkspaceContext_Git, a, b);
1069
+ }
1070
+ }
1071
+
1072
+ /**
1073
+ * Workspace was created from a prebuild
1074
+ *
1075
+ * @generated from message gitpod.v1.WorkspaceContext.Prebuild
1076
+ */
1077
+ export class WorkspaceContext_Prebuild extends Message<WorkspaceContext_Prebuild> {
1078
+ /**
1079
+ * original_context is the Git context which lead to the selection
1080
+ * of a prebuild.
1081
+ *
1082
+ * @generated from field: gitpod.v1.WorkspaceContext.Git original_context = 1;
1083
+ */
1084
+ originalContext?: WorkspaceContext_Git;
1085
+
1086
+ /**
1087
+ * prebuild_id is the ID of the prebuild which was used to create this workspace
1088
+ *
1089
+ * @generated from field: string prebuild_id = 2;
1090
+ */
1091
+ prebuildId = "";
1092
+
1093
+ constructor(data?: PartialMessage<WorkspaceContext_Prebuild>) {
1094
+ super();
1095
+ proto3.util.initPartial(data, this);
1096
+ }
1097
+
1098
+ static readonly runtime = proto3;
1099
+ static readonly typeName = "gitpod.v1.WorkspaceContext.Prebuild";
1100
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1101
+ { no: 1, name: "original_context", kind: "message", T: WorkspaceContext_Git },
1102
+ { no: 2, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1103
+ ]);
1104
+
1105
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceContext_Prebuild {
1106
+ return new WorkspaceContext_Prebuild().fromBinary(bytes, options);
1107
+ }
1108
+
1109
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceContext_Prebuild {
1110
+ return new WorkspaceContext_Prebuild().fromJson(jsonValue, options);
1111
+ }
1112
+
1113
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceContext_Prebuild {
1114
+ return new WorkspaceContext_Prebuild().fromJsonString(jsonString, options);
1115
+ }
1116
+
1117
+ static equals(a: WorkspaceContext_Prebuild | PlainMessage<WorkspaceContext_Prebuild> | undefined, b: WorkspaceContext_Prebuild | PlainMessage<WorkspaceContext_Prebuild> | undefined): boolean {
1118
+ return proto3.util.equals(WorkspaceContext_Prebuild, a, b);
1119
+ }
1120
+ }
1121
+
1122
+ /**
1123
+ * Snapshot context points to the snapshot which the workspace was created from
1124
+ *
1125
+ * @generated from message gitpod.v1.WorkspaceContext.Snapshot
1126
+ */
1127
+ export class WorkspaceContext_Snapshot extends Message<WorkspaceContext_Snapshot> {
1128
+ /**
1129
+ * @generated from field: string snapshot_id = 1;
1130
+ */
1131
+ snapshotId = "";
1132
+
1133
+ constructor(data?: PartialMessage<WorkspaceContext_Snapshot>) {
1134
+ super();
1135
+ proto3.util.initPartial(data, this);
1136
+ }
1137
+
1138
+ static readonly runtime = proto3;
1139
+ static readonly typeName = "gitpod.v1.WorkspaceContext.Snapshot";
1140
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1141
+ { no: 1, name: "snapshot_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1142
+ ]);
1143
+
1144
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceContext_Snapshot {
1145
+ return new WorkspaceContext_Snapshot().fromBinary(bytes, options);
1146
+ }
1147
+
1148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceContext_Snapshot {
1149
+ return new WorkspaceContext_Snapshot().fromJson(jsonValue, options);
1150
+ }
1151
+
1152
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceContext_Snapshot {
1153
+ return new WorkspaceContext_Snapshot().fromJsonString(jsonString, options);
1154
+ }
1155
+
1156
+ static equals(a: WorkspaceContext_Snapshot | PlainMessage<WorkspaceContext_Snapshot> | undefined, b: WorkspaceContext_Snapshot | PlainMessage<WorkspaceContext_Snapshot> | undefined): boolean {
1157
+ return proto3.util.equals(WorkspaceContext_Snapshot, a, b);
1158
+ }
1159
+ }
1160
+
1161
+ /**
1162
+ * WorkspaceInstance describes a single workspace instance
1163
+ *
1164
+ * @generated from message gitpod.v1.WorkspaceInstance
1165
+ */
1166
+ export class WorkspaceInstance extends Message<WorkspaceInstance> {
1167
+ /**
1168
+ * Instance ID is the unique identifier of the workspace instance
1169
+ *
1170
+ * @generated from field: string instance_id = 1;
1171
+ */
1172
+ instanceId = "";
1173
+
1174
+ /**
1175
+ * Worksapce ID is the unique identifier of the workspace this instance belongs to
1176
+ *
1177
+ * @generated from field: string workspace_id = 2;
1178
+ */
1179
+ workspaceId = "";
1180
+
1181
+ /**
1182
+ * @generated from field: google.protobuf.Timestamp created_at = 3;
1183
+ */
1184
+ createdAt?: Timestamp;
1185
+
1186
+ /**
1187
+ * @generated from field: gitpod.v1.WorkspaceInstanceStatus status = 4;
1188
+ */
1189
+ status?: WorkspaceInstanceStatus;
1190
+
1191
+ constructor(data?: PartialMessage<WorkspaceInstance>) {
1192
+ super();
1193
+ proto3.util.initPartial(data, this);
1194
+ }
1195
+
1196
+ static readonly runtime = proto3;
1197
+ static readonly typeName = "gitpod.v1.WorkspaceInstance";
1198
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1199
+ { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1200
+ { no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1201
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
1202
+ { no: 4, name: "status", kind: "message", T: WorkspaceInstanceStatus },
1203
+ ]);
1204
+
1205
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceInstance {
1206
+ return new WorkspaceInstance().fromBinary(bytes, options);
1207
+ }
1208
+
1209
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceInstance {
1210
+ return new WorkspaceInstance().fromJson(jsonValue, options);
1211
+ }
1212
+
1213
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceInstance {
1214
+ return new WorkspaceInstance().fromJsonString(jsonString, options);
1215
+ }
1216
+
1217
+ static equals(a: WorkspaceInstance | PlainMessage<WorkspaceInstance> | undefined, b: WorkspaceInstance | PlainMessage<WorkspaceInstance> | undefined): boolean {
1218
+ return proto3.util.equals(WorkspaceInstance, a, b);
1219
+ }
1220
+ }
1221
+
1222
+ /**
1223
+ * WorkspaceStatus describes a workspace status
1224
+ *
1225
+ * @generated from message gitpod.v1.WorkspaceInstanceStatus
1226
+ */
1227
+ export class WorkspaceInstanceStatus extends Message<WorkspaceInstanceStatus> {
1228
+ /**
1229
+ * version of the status update. Workspace instances themselves are unversioned,
1230
+ * but their statuus has different versions.
1231
+ * The value of this field has no semantic meaning (e.g. don't interpret it as
1232
+ * as a timestemp), but it can be used to impose a partial order.
1233
+ * If a.status_version < b.status_version then a was the status before b.
1234
+ *
1235
+ * @generated from field: uint64 status_version = 1;
1236
+ */
1237
+ statusVersion = protoInt64.zero;
1238
+
1239
+ /**
1240
+ * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
1241
+ *
1242
+ * @generated from field: gitpod.v1.WorkspaceInstanceStatus.Phase phase = 2;
1243
+ */
1244
+ phase = WorkspaceInstanceStatus_Phase.UNSPECIFIED;
1245
+
1246
+ /**
1247
+ * conditions detail the current state of the workspace instance
1248
+ *
1249
+ * @generated from field: gitpod.v1.WorkspaceInstanceStatus.Conditions conditions = 3;
1250
+ */
1251
+ conditions?: WorkspaceInstanceStatus_Conditions;
1252
+
1253
+ /**
1254
+ * message is an optional human-readable message detailing the current phase
1255
+ *
1256
+ * @generated from field: string message = 4;
1257
+ */
1258
+ message = "";
1259
+
1260
+ /**
1261
+ * URL contains the endpoint at which the workspace instance is available
1262
+ *
1263
+ * @generated from field: string url = 5;
1264
+ */
1265
+ url = "";
1266
+
1267
+ /**
1268
+ * Admission describes who can access a workspace instance and its ports.
1269
+ *
1270
+ * @generated from field: gitpod.v1.AdmissionLevel admission = 6;
1271
+ */
1272
+ admission = AdmissionLevel.UNSPECIFIED;
1273
+
1274
+ constructor(data?: PartialMessage<WorkspaceInstanceStatus>) {
1275
+ super();
1276
+ proto3.util.initPartial(data, this);
1277
+ }
1278
+
1279
+ static readonly runtime = proto3;
1280
+ static readonly typeName = "gitpod.v1.WorkspaceInstanceStatus";
1281
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1282
+ { no: 1, name: "status_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1283
+ { no: 2, name: "phase", kind: "enum", T: proto3.getEnumType(WorkspaceInstanceStatus_Phase) },
1284
+ { no: 3, name: "conditions", kind: "message", T: WorkspaceInstanceStatus_Conditions },
1285
+ { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1286
+ { no: 5, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1287
+ { no: 6, name: "admission", kind: "enum", T: proto3.getEnumType(AdmissionLevel) },
1288
+ ]);
1289
+
1290
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceInstanceStatus {
1291
+ return new WorkspaceInstanceStatus().fromBinary(bytes, options);
1292
+ }
1293
+
1294
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceInstanceStatus {
1295
+ return new WorkspaceInstanceStatus().fromJson(jsonValue, options);
1296
+ }
1297
+
1298
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceInstanceStatus {
1299
+ return new WorkspaceInstanceStatus().fromJsonString(jsonString, options);
1300
+ }
1301
+
1302
+ static equals(a: WorkspaceInstanceStatus | PlainMessage<WorkspaceInstanceStatus> | undefined, b: WorkspaceInstanceStatus | PlainMessage<WorkspaceInstanceStatus> | undefined): boolean {
1303
+ return proto3.util.equals(WorkspaceInstanceStatus, a, b);
1304
+ }
1305
+ }
1306
+
1307
+ /**
1308
+ * Phase is a simple, high-level summary of where the workspace instance is in its lifecycle.
1309
+ * The phase is not intended to be a comprehensive rollup of observations of the workspace state,
1310
+ * nor is it intended to be a comprehensive state machine.
1311
+ * (based on https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
1312
+ *
1313
+ * @generated from enum gitpod.v1.WorkspaceInstanceStatus.Phase
1314
+ */
1315
+ export enum WorkspaceInstanceStatus_Phase {
1316
+ /**
1317
+ * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
1318
+ * a workspace. This phase is usually accompanied by an error.
1319
+ *
1320
+ * @generated from enum value: PHASE_UNSPECIFIED = 0;
1321
+ */
1322
+ UNSPECIFIED = 0,
1323
+
1324
+ /**
1325
+ * Preparing means that we haven't actually started the workspace instance just yet, but rather
1326
+ * are still preparing for launch.
1327
+ *
1328
+ * @generated from enum value: PHASE_PREPARING = 1;
1329
+ */
1330
+ PREPARING = 1,
1331
+
1332
+ /**
1333
+ * ImageBuild indicates that there's an image build running for this workspace.
1334
+ *
1335
+ * @generated from enum value: PHASE_IMAGEBUILD = 2;
1336
+ */
1337
+ IMAGEBUILD = 2,
1338
+
1339
+ /**
1340
+ * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
1341
+ * some space within the cluster. If for example the cluster needs to scale up to accomodate the
1342
+ * workspace, the workspace will be in Pending state until that happened.
1343
+ *
1344
+ * @generated from enum value: PHASE_PENDING = 3;
1345
+ */
1346
+ PENDING = 3,
1347
+
1348
+ /**
1349
+ * Creating means the workspace is currently being created. That includes downloading the images required
1350
+ * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
1351
+ * network speed, image size and cache states.
1352
+ *
1353
+ * @generated from enum value: PHASE_CREATING = 4;
1354
+ */
1355
+ CREATING = 4,
1356
+
1357
+ /**
1358
+ * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
1359
+ * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
1360
+ *
1361
+ * @generated from enum value: PHASE_INITIALIZING = 5;
1362
+ */
1363
+ INITIALIZING = 5,
1364
+
1365
+ /**
1366
+ * Running means the workspace is able to actively perform work, either by serving a user through Theia,
1367
+ * or as a headless workspace.
1368
+ *
1369
+ * @generated from enum value: PHASE_RUNNING = 6;
1370
+ */
1371
+ RUNNING = 6,
1372
+
1373
+ /**
1374
+ * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
1375
+ * When in this state, we expect it to become running or stopping anytime soon.
1376
+ *
1377
+ * @generated from enum value: PHASE_INTERRUPTED = 7;
1378
+ */
1379
+ INTERRUPTED = 7,
1380
+
1381
+ /**
1382
+ * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
1383
+ *
1384
+ * @generated from enum value: PHASE_STOPPING = 8;
1385
+ */
1386
+ STOPPING = 8,
1387
+
1388
+ /**
1389
+ * Stopped means the workspace ended regularly because it was shut down.
1390
+ *
1391
+ * @generated from enum value: PHASE_STOPPED = 9;
1392
+ */
1393
+ STOPPED = 9,
1394
+ }
1395
+ // Retrieve enum metadata with: proto3.getEnumType(WorkspaceInstanceStatus_Phase)
1396
+ proto3.util.setEnumType(WorkspaceInstanceStatus_Phase, "gitpod.v1.WorkspaceInstanceStatus.Phase", [
1397
+ { no: 0, name: "PHASE_UNSPECIFIED" },
1398
+ { no: 1, name: "PHASE_PREPARING" },
1399
+ { no: 2, name: "PHASE_IMAGEBUILD" },
1400
+ { no: 3, name: "PHASE_PENDING" },
1401
+ { no: 4, name: "PHASE_CREATING" },
1402
+ { no: 5, name: "PHASE_INITIALIZING" },
1403
+ { no: 6, name: "PHASE_RUNNING" },
1404
+ { no: 7, name: "PHASE_INTERRUPTED" },
1405
+ { no: 8, name: "PHASE_STOPPING" },
1406
+ { no: 9, name: "PHASE_STOPPED" },
1407
+ ]);
1408
+
1409
+ /**
1410
+ * Conditions gives more detailed information as to the state of the workspace. Which condition actually
1411
+ * has a value depends on the phase the workspace is in.
1412
+ *
1413
+ * @generated from message gitpod.v1.WorkspaceInstanceStatus.Conditions
1414
+ */
1415
+ export class WorkspaceInstanceStatus_Conditions extends Message<WorkspaceInstanceStatus_Conditions> {
1416
+ /**
1417
+ * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
1418
+ * This field is filled exclusively when caused by system errors.
1419
+ *
1420
+ * @generated from field: string failed = 1;
1421
+ */
1422
+ failed = "";
1423
+
1424
+ /**
1425
+ * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
1426
+ *
1427
+ * @generated from field: string timeout = 2;
1428
+ */
1429
+ timeout = "";
1430
+
1431
+ /**
1432
+ * first_user_activity is the time when MarkActive was first called on the workspace
1433
+ *
1434
+ * @generated from field: google.protobuf.Timestamp first_user_activity = 9;
1435
+ */
1436
+ firstUserActivity?: Timestamp;
1437
+
1438
+ /**
1439
+ * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
1440
+ *
1441
+ * @generated from field: optional bool stopped_by_request = 11;
1442
+ */
1443
+ stoppedByRequest?: boolean;
1444
+
1445
+ constructor(data?: PartialMessage<WorkspaceInstanceStatus_Conditions>) {
1446
+ super();
1447
+ proto3.util.initPartial(data, this);
1448
+ }
1449
+
1450
+ static readonly runtime = proto3;
1451
+ static readonly typeName = "gitpod.v1.WorkspaceInstanceStatus.Conditions";
1452
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1453
+ { no: 1, name: "failed", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1454
+ { no: 2, name: "timeout", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1455
+ { no: 9, name: "first_user_activity", kind: "message", T: Timestamp },
1456
+ { no: 11, name: "stopped_by_request", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1457
+ ]);
1458
+
1459
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceInstanceStatus_Conditions {
1460
+ return new WorkspaceInstanceStatus_Conditions().fromBinary(bytes, options);
1461
+ }
1462
+
1463
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceInstanceStatus_Conditions {
1464
+ return new WorkspaceInstanceStatus_Conditions().fromJson(jsonValue, options);
1465
+ }
1466
+
1467
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceInstanceStatus_Conditions {
1468
+ return new WorkspaceInstanceStatus_Conditions().fromJsonString(jsonString, options);
1469
+ }
1470
+
1471
+ static equals(a: WorkspaceInstanceStatus_Conditions | PlainMessage<WorkspaceInstanceStatus_Conditions> | undefined, b: WorkspaceInstanceStatus_Conditions | PlainMessage<WorkspaceInstanceStatus_Conditions> | undefined): boolean {
1472
+ return proto3.util.equals(WorkspaceInstanceStatus_Conditions, a, b);
1473
+ }
1474
+ }
1475
+
1476
+ /**
1477
+ * StartWorkspaceSpec influences the workspace start
1478
+ *
1479
+ * future per-workspace-start fields, e.g. region
1480
+ *
1481
+ * @generated from message gitpod.v1.StartWorkspaceSpec
1482
+ */
1483
+ export class StartWorkspaceSpec extends Message<StartWorkspaceSpec> {
1484
+ constructor(data?: PartialMessage<StartWorkspaceSpec>) {
1485
+ super();
1486
+ proto3.util.initPartial(data, this);
1487
+ }
1488
+
1489
+ static readonly runtime = proto3;
1490
+ static readonly typeName = "gitpod.v1.StartWorkspaceSpec";
1491
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1492
+ ]);
1493
+
1494
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartWorkspaceSpec {
1495
+ return new StartWorkspaceSpec().fromBinary(bytes, options);
1496
+ }
1497
+
1498
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartWorkspaceSpec {
1499
+ return new StartWorkspaceSpec().fromJson(jsonValue, options);
1500
+ }
1501
+
1502
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartWorkspaceSpec {
1503
+ return new StartWorkspaceSpec().fromJsonString(jsonString, options);
1504
+ }
1505
+
1506
+ static equals(a: StartWorkspaceSpec | PlainMessage<StartWorkspaceSpec> | undefined, b: StartWorkspaceSpec | PlainMessage<StartWorkspaceSpec> | undefined): boolean {
1507
+ return proto3.util.equals(StartWorkspaceSpec, a, b);
1508
+ }
1509
+ }