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