@gitpod/supervisor-api-grpc 0.1.5-se-career-tip.1 → 0.1.5-se-init.1

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.
@@ -2,8 +2,9 @@
2
2
  // file: control.proto
3
3
 
4
4
  /* tslint:disable */
5
+ /* eslint-disable */
5
6
 
6
- import * as grpc from "grpc";
7
+ import * as grpc from "@grpc/grpc-js";
7
8
  import * as control_pb from "./control_pb";
8
9
 
9
10
  interface IControlServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
@@ -11,9 +12,9 @@ interface IControlServiceService extends grpc.ServiceDefinition<grpc.UntypedServ
11
12
  }
12
13
 
13
14
  interface IControlServiceService_IExposePort extends grpc.MethodDefinition<control_pb.ExposePortRequest, control_pb.ExposePortResponse> {
14
- path: string; // "/supervisor.ControlService/ExposePort"
15
- requestStream: boolean; // false
16
- responseStream: boolean; // false
15
+ path: "/supervisor.ControlService/ExposePort";
16
+ requestStream: false;
17
+ responseStream: false;
17
18
  requestSerialize: grpc.serialize<control_pb.ExposePortRequest>;
18
19
  requestDeserialize: grpc.deserialize<control_pb.ExposePortRequest>;
19
20
  responseSerialize: grpc.serialize<control_pb.ExposePortResponse>;
@@ -22,7 +23,7 @@ interface IControlServiceService_IExposePort extends grpc.MethodDefinition<contr
22
23
 
23
24
  export const ControlServiceService: IControlServiceService;
24
25
 
25
- export interface IControlServiceServer {
26
+ export interface IControlServiceServer extends grpc.UntypedServiceImplementation {
26
27
  exposePort: grpc.handleUnaryCall<control_pb.ExposePortRequest, control_pb.ExposePortResponse>;
27
28
  }
28
29
 
@@ -33,7 +34,7 @@ export interface IControlServiceClient {
33
34
  }
34
35
 
35
36
  export class ControlServiceClient extends grpc.Client implements IControlServiceClient {
36
- constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
37
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
37
38
  public exposePort(request: control_pb.ExposePortRequest, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
38
39
  public exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
39
40
  public exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
@@ -2,16 +2,13 @@
2
2
  // file: control.proto
3
3
 
4
4
  /* tslint:disable */
5
+ /* eslint-disable */
5
6
 
6
7
  import * as jspb from "google-protobuf";
7
8
 
8
9
  export class ExposePortRequest extends jspb.Message {
9
10
  getPort(): number;
10
- setPort(value: number): void;
11
-
12
- getTargetPort(): number;
13
- setTargetPort(value: number): void;
14
-
11
+ setPort(value: number): ExposePortRequest;
15
12
 
16
13
  serializeBinary(): Uint8Array;
17
14
  toObject(includeInstance?: boolean): ExposePortRequest.AsObject;
@@ -26,7 +23,6 @@ export class ExposePortRequest extends jspb.Message {
26
23
  export namespace ExposePortRequest {
27
24
  export type AsObject = {
28
25
  port: number,
29
- targetPort: number,
30
26
  }
31
27
  }
32
28
 
package/lib/control_pb.js CHANGED
@@ -1,15 +1,25 @@
1
+ // source: control.proto
1
2
  /**
2
3
  * @fileoverview
3
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
4
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
5
7
  * field starts with 'MSG_' and isn't a translatable message.
6
8
  * @public
7
9
  */
8
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
9
13
 
10
14
  var jspb = require('google-protobuf');
11
15
  var goog = jspb;
12
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
13
23
 
14
24
  goog.exportSymbol('proto.supervisor.ExposePortRequest', null, global);
15
25
  goog.exportSymbol('proto.supervisor.ExposePortResponse', null, global);
@@ -60,13 +70,15 @@ if (goog.DEBUG && !COMPILED) {
60
70
 
61
71
  if (jspb.Message.GENERATE_TO_OBJECT) {
62
72
  /**
63
- * Creates an object representation of this proto suitable for use in Soy templates.
73
+ * Creates an object representation of this proto.
64
74
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
75
+ * Optional fields that are not set will be set to undefined.
65
76
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66
77
  * For the list of reserved names please see:
67
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
68
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
69
- * for transitional soy proto support: http://goto/soy-param-migration
78
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
80
+ * JSPB instance for transitional soy proto support:
81
+ * http://goto/soy-param-migration
70
82
  * @return {!Object}
71
83
  */
72
84
  proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInstance) {
@@ -76,8 +88,8 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
76
88
 
77
89
  /**
78
90
  * Static version of the {@see toObject} method.
79
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
80
- * instance for transitional soy proto support:
91
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
92
+ * the JSPB instance for transitional soy proto support:
81
93
  * http://goto/soy-param-migration
82
94
  * @param {!proto.supervisor.ExposePortRequest} msg The msg instance to transform.
83
95
  * @return {!Object}
@@ -85,8 +97,7 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
85
97
  */
86
98
  proto.supervisor.ExposePortRequest.toObject = function(includeInstance, msg) {
87
99
  var f, obj = {
88
- port: jspb.Message.getFieldWithDefault(msg, 1, 0),
89
- targetPort: jspb.Message.getFieldWithDefault(msg, 2, 0)
100
+ port: jspb.Message.getFieldWithDefault(msg, 1, 0)
90
101
  };
91
102
 
92
103
  if (includeInstance) {
@@ -127,10 +138,6 @@ proto.supervisor.ExposePortRequest.deserializeBinaryFromReader = function(msg, r
127
138
  var value = /** @type {number} */ (reader.readUint32());
128
139
  msg.setPort(value);
129
140
  break;
130
- case 2:
131
- var value = /** @type {number} */ (reader.readUint32());
132
- msg.setTargetPort(value);
133
- break;
134
141
  default:
135
142
  reader.skipField();
136
143
  break;
@@ -167,13 +174,6 @@ proto.supervisor.ExposePortRequest.serializeBinaryToWriter = function(message, w
167
174
  f
168
175
  );
169
176
  }
170
- f = message.getTargetPort();
171
- if (f !== 0) {
172
- writer.writeUint32(
173
- 2,
174
- f
175
- );
176
- }
177
177
  };
178
178
 
179
179
 
@@ -186,24 +186,12 @@ proto.supervisor.ExposePortRequest.prototype.getPort = function() {
186
186
  };
187
187
 
188
188
 
189
- /** @param {number} value */
190
- proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
191
- jspb.Message.setProto3IntField(this, 1, value);
192
- };
193
-
194
-
195
189
  /**
196
- * optional uint32 target_port = 2;
197
- * @return {number}
190
+ * @param {number} value
191
+ * @return {!proto.supervisor.ExposePortRequest} returns this
198
192
  */
199
- proto.supervisor.ExposePortRequest.prototype.getTargetPort = function() {
200
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
201
- };
202
-
203
-
204
- /** @param {number} value */
205
- proto.supervisor.ExposePortRequest.prototype.setTargetPort = function(value) {
206
- jspb.Message.setProto3IntField(this, 2, value);
193
+ proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
194
+ return jspb.Message.setProto3IntField(this, 1, value);
207
195
  };
208
196
 
209
197
 
@@ -212,13 +200,15 @@ proto.supervisor.ExposePortRequest.prototype.setTargetPort = function(value) {
212
200
 
213
201
  if (jspb.Message.GENERATE_TO_OBJECT) {
214
202
  /**
215
- * Creates an object representation of this proto suitable for use in Soy templates.
203
+ * Creates an object representation of this proto.
216
204
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
205
+ * Optional fields that are not set will be set to undefined.
217
206
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
218
207
  * For the list of reserved names please see:
219
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
220
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
221
- * for transitional soy proto support: http://goto/soy-param-migration
208
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
209
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
210
+ * JSPB instance for transitional soy proto support:
211
+ * http://goto/soy-param-migration
222
212
  * @return {!Object}
223
213
  */
224
214
  proto.supervisor.ExposePortResponse.prototype.toObject = function(opt_includeInstance) {
@@ -228,8 +218,8 @@ proto.supervisor.ExposePortResponse.prototype.toObject = function(opt_includeIns
228
218
 
229
219
  /**
230
220
  * Static version of the {@see toObject} method.
231
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
232
- * instance for transitional soy proto support:
221
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
222
+ * the JSPB instance for transitional soy proto support:
233
223
  * http://goto/soy-param-migration
234
224
  * @param {!proto.supervisor.ExposePortResponse} msg The msg instance to transform.
235
225
  * @return {!Object}
@@ -2,8 +2,9 @@
2
2
  // file: info.proto
3
3
 
4
4
  /* tslint:disable */
5
+ /* eslint-disable */
5
6
 
6
- import * as grpc from "grpc";
7
+ import * as grpc from "@grpc/grpc-js";
7
8
  import * as info_pb from "./info_pb";
8
9
 
9
10
  interface IInfoServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
@@ -11,9 +12,9 @@ interface IInfoServiceService extends grpc.ServiceDefinition<grpc.UntypedService
11
12
  }
12
13
 
13
14
  interface IInfoServiceService_IWorkspaceInfo extends grpc.MethodDefinition<info_pb.WorkspaceInfoRequest, info_pb.WorkspaceInfoResponse> {
14
- path: string; // "/supervisor.InfoService/WorkspaceInfo"
15
- requestStream: boolean; // false
16
- responseStream: boolean; // false
15
+ path: "/supervisor.InfoService/WorkspaceInfo";
16
+ requestStream: false;
17
+ responseStream: false;
17
18
  requestSerialize: grpc.serialize<info_pb.WorkspaceInfoRequest>;
18
19
  requestDeserialize: grpc.deserialize<info_pb.WorkspaceInfoRequest>;
19
20
  responseSerialize: grpc.serialize<info_pb.WorkspaceInfoResponse>;
@@ -22,7 +23,7 @@ interface IInfoServiceService_IWorkspaceInfo extends grpc.MethodDefinition<info_
22
23
 
23
24
  export const InfoServiceService: IInfoServiceService;
24
25
 
25
- export interface IInfoServiceServer {
26
+ export interface IInfoServiceServer extends grpc.UntypedServiceImplementation {
26
27
  workspaceInfo: grpc.handleUnaryCall<info_pb.WorkspaceInfoRequest, info_pb.WorkspaceInfoResponse>;
27
28
  }
28
29
 
@@ -33,7 +34,7 @@ export interface IInfoServiceClient {
33
34
  }
34
35
 
35
36
  export class InfoServiceClient extends grpc.Client implements IInfoServiceClient {
36
- constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
37
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
37
38
  public workspaceInfo(request: info_pb.WorkspaceInfoRequest, callback: (error: grpc.ServiceError | null, response: info_pb.WorkspaceInfoResponse) => void): grpc.ClientUnaryCall;
38
39
  public workspaceInfo(request: info_pb.WorkspaceInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: info_pb.WorkspaceInfoResponse) => void): grpc.ClientUnaryCall;
39
40
  public workspaceInfo(request: info_pb.WorkspaceInfoRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: info_pb.WorkspaceInfoResponse) => void): grpc.ClientUnaryCall;
package/lib/info_pb.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  // file: info.proto
3
3
 
4
4
  /* tslint:disable */
5
+ /* eslint-disable */
5
6
 
6
7
  import * as jspb from "google-protobuf";
7
8
 
@@ -24,38 +25,45 @@ export namespace WorkspaceInfoRequest {
24
25
 
25
26
  export class WorkspaceInfoResponse extends jspb.Message {
26
27
  getWorkspaceId(): string;
27
- setWorkspaceId(value: string): void;
28
-
28
+ setWorkspaceId(value: string): WorkspaceInfoResponse;
29
29
  getInstanceId(): string;
30
- setInstanceId(value: string): void;
31
-
30
+ setInstanceId(value: string): WorkspaceInfoResponse;
32
31
  getCheckoutLocation(): string;
33
- setCheckoutLocation(value: string): void;
34
-
32
+ setCheckoutLocation(value: string): WorkspaceInfoResponse;
35
33
 
36
34
  hasWorkspaceLocationFile(): boolean;
37
35
  clearWorkspaceLocationFile(): void;
38
36
  getWorkspaceLocationFile(): string;
39
- setWorkspaceLocationFile(value: string): void;
40
-
37
+ setWorkspaceLocationFile(value: string): WorkspaceInfoResponse;
41
38
 
42
39
  hasWorkspaceLocationFolder(): boolean;
43
40
  clearWorkspaceLocationFolder(): void;
44
41
  getWorkspaceLocationFolder(): string;
45
- setWorkspaceLocationFolder(value: string): void;
46
-
42
+ setWorkspaceLocationFolder(value: string): WorkspaceInfoResponse;
47
43
  getUserHome(): string;
48
- setUserHome(value: string): void;
49
-
44
+ setUserHome(value: string): WorkspaceInfoResponse;
50
45
 
51
46
  hasGitpodApi(): boolean;
52
47
  clearGitpodApi(): void;
53
48
  getGitpodApi(): WorkspaceInfoResponse.GitpodAPI | undefined;
54
- setGitpodApi(value?: WorkspaceInfoResponse.GitpodAPI): void;
55
-
49
+ setGitpodApi(value?: WorkspaceInfoResponse.GitpodAPI): WorkspaceInfoResponse;
56
50
  getGitpodHost(): string;
57
- setGitpodHost(value: string): void;
58
-
51
+ setGitpodHost(value: string): WorkspaceInfoResponse;
52
+ getWorkspaceContextUrl(): string;
53
+ setWorkspaceContextUrl(value: string): WorkspaceInfoResponse;
54
+
55
+ hasRepository(): boolean;
56
+ clearRepository(): void;
57
+ getRepository(): WorkspaceInfoResponse.Repository | undefined;
58
+ setRepository(value?: WorkspaceInfoResponse.Repository): WorkspaceInfoResponse;
59
+ getWorkspaceClusterHost(): string;
60
+ setWorkspaceClusterHost(value: string): WorkspaceInfoResponse;
61
+ getWorkspaceUrl(): string;
62
+ setWorkspaceUrl(value: string): WorkspaceInfoResponse;
63
+ getIdeAlias(): string;
64
+ setIdeAlias(value: string): WorkspaceInfoResponse;
65
+ getIdePort(): number;
66
+ setIdePort(value: number): WorkspaceInfoResponse;
59
67
 
60
68
  getWorkspaceLocationCase(): WorkspaceInfoResponse.WorkspaceLocationCase;
61
69
 
@@ -79,16 +87,20 @@ export namespace WorkspaceInfoResponse {
79
87
  userHome: string,
80
88
  gitpodApi?: WorkspaceInfoResponse.GitpodAPI.AsObject,
81
89
  gitpodHost: string,
90
+ workspaceContextUrl: string,
91
+ repository?: WorkspaceInfoResponse.Repository.AsObject,
92
+ workspaceClusterHost: string,
93
+ workspaceUrl: string,
94
+ ideAlias: string,
95
+ idePort: number,
82
96
  }
83
97
 
84
98
 
85
99
  export class GitpodAPI extends jspb.Message {
86
- getEndpoint(): string;
87
- setEndpoint(value: string): void;
88
-
89
- getHost(): string;
90
- setHost(value: string): void;
91
-
100
+ getEndpoint(): string;
101
+ setEndpoint(value: string): GitpodAPI;
102
+ getHost(): string;
103
+ setHost(value: string): GitpodAPI;
92
104
 
93
105
  serializeBinary(): Uint8Array;
94
106
  toObject(includeInstance?: boolean): GitpodAPI.AsObject;
@@ -102,19 +114,39 @@ export namespace WorkspaceInfoResponse {
102
114
 
103
115
  export namespace GitpodAPI {
104
116
  export type AsObject = {
105
- endpoint: string,
106
- host: string,
117
+ endpoint: string,
118
+ host: string,
107
119
  }
108
120
  }
109
121
 
122
+ export class Repository extends jspb.Message {
123
+ getOwner(): string;
124
+ setOwner(value: string): Repository;
125
+ getName(): string;
126
+ setName(value: string): Repository;
110
127
 
111
- export enum WorkspaceLocationCase {
112
- WORKSPACELOCATION_NOT_SET = 0,
113
-
114
- WORKSPACE_LOCATION_FILE = 4,
128
+ serializeBinary(): Uint8Array;
129
+ toObject(includeInstance?: boolean): Repository.AsObject;
130
+ static toObject(includeInstance: boolean, msg: Repository): Repository.AsObject;
131
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
132
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
133
+ static serializeBinaryToWriter(message: Repository, writer: jspb.BinaryWriter): void;
134
+ static deserializeBinary(bytes: Uint8Array): Repository;
135
+ static deserializeBinaryFromReader(message: Repository, reader: jspb.BinaryReader): Repository;
136
+ }
115
137
 
116
- WORKSPACE_LOCATION_FOLDER = 5,
138
+ export namespace Repository {
139
+ export type AsObject = {
140
+ owner: string,
141
+ name: string,
142
+ }
143
+ }
117
144
 
145
+
146
+ export enum WorkspaceLocationCase {
147
+ WORKSPACE_LOCATION_NOT_SET = 0,
148
+ WORKSPACE_LOCATION_FILE = 4,
149
+ WORKSPACE_LOCATION_FOLDER = 5,
118
150
  }
119
151
 
120
152
  }