@lansweeper/installer-grpc 0.0.2 → 0.0.3

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.3](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/installer-grpc@0.0.2...@lansweeper/installer-grpc@0.0.3) (2022-11-28)
7
+
8
+ **Note:** Version bump only for package @lansweeper/installer-grpc
9
+
10
+
11
+
12
+
13
+
6
14
  ## 0.0.2 (2022-10-26)
7
15
 
8
16
  **Note:** Version bump only for package @lansweeper/installer-grpc
@@ -1 +1 @@
1
- {"file":[{"name":"proto/installer.proto","package":"lansweeper.installer.v1","messageType":[{"name":"GenerateInstallerRequest","field":[{"name":"client_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientId"},{"name":"client_secret","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientSecret"}]},{"name":"GenerateInstallerResponse","field":[{"name":"success","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"success"}]}],"service":[{"name":"InstallerService","method":[{"name":"GenerateInstaller","inputType":".lansweeper.installer.v1.GenerateInstallerRequest","outputType":".lansweeper.installer.v1.GenerateInstallerResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,17,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,32]},{"path":[8],"span":[4,0,37]},{"path":[8,11],"span":[4,0,37]},{"path":[4,0],"span":[6,0,9,1]},{"path":[4,0,1],"span":[6,8,32]},{"path":[4,0,2,0],"span":[7,4,25]},{"path":[4,0,2,0,5],"span":[7,4,10]},{"path":[4,0,2,0,1],"span":[7,11,20]},{"path":[4,0,2,0,3],"span":[7,23,24]},{"path":[4,0,2,1],"span":[8,4,29]},{"path":[4,0,2,1,5],"span":[8,4,10]},{"path":[4,0,2,1,1],"span":[8,11,24]},{"path":[4,0,2,1,3],"span":[8,27,28]},{"path":[4,1],"span":[11,0,13,1]},{"path":[4,1,1],"span":[11,8,33]},{"path":[4,1,2,0],"span":[12,4,21]},{"path":[4,1,2,0,5],"span":[12,4,8]},{"path":[4,1,2,0,1],"span":[12,9,16]},{"path":[4,1,2,0,3],"span":[12,19,20]},{"path":[6,0],"span":[15,0,17,1]},{"path":[6,0,1],"span":[15,8,24]},{"path":[6,0,2,0],"span":[16,4,90]},{"path":[6,0,2,0,1],"span":[16,8,25]},{"path":[6,0,2,0,2],"span":[16,26,50]},{"path":[6,0,2,0,3],"span":[16,61,86]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
1
+ {"file":[{"name":"proto/installer.proto","package":"lansweeper.installer.v1","messageType":[{"name":"GenerateInstallerRequest","field":[{"name":"client_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientId"},{"name":"client_secret","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"clientSecret"}]},{"name":"GenerateInstallerResponse","field":[{"name":"success","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"success"}]},{"name":"NullableString","field":[{"name":"data","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","oneofIndex":0,"jsonName":"data"}],"oneofDecl":[{"name":"kind"}]},{"name":"GetInstallerUrlRequest","field":[{"name":"client_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.installer.v1.NullableString","jsonName":"clientId"}]},{"name":"GetInstallerUrlResponse","field":[{"name":"url","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"url"}]}],"service":[{"name":"InstallerService","method":[{"name":"GenerateInstaller","inputType":".lansweeper.installer.v1.GenerateInstallerRequest","outputType":".lansweeper.installer.v1.GenerateInstallerResponse","options":{}},{"name":"GetInstallerUrl","inputType":".lansweeper.installer.v1.GetInstallerUrlRequest","outputType":".lansweeper.installer.v1.GetInstallerUrlResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,32,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,32]},{"path":[8],"span":[4,0,37]},{"path":[8,11],"span":[4,0,37]},{"path":[4,0],"span":[6,0,9,1]},{"path":[4,0,1],"span":[6,8,32]},{"path":[4,0,2,0],"span":[7,4,25]},{"path":[4,0,2,0,5],"span":[7,4,10]},{"path":[4,0,2,0,1],"span":[7,11,20]},{"path":[4,0,2,0,3],"span":[7,23,24]},{"path":[4,0,2,1],"span":[8,4,29]},{"path":[4,0,2,1,5],"span":[8,4,10]},{"path":[4,0,2,1,1],"span":[8,11,24]},{"path":[4,0,2,1,3],"span":[8,27,28]},{"path":[4,1],"span":[11,0,13,1]},{"path":[4,1,1],"span":[11,8,33]},{"path":[4,1,2,0],"span":[12,4,21]},{"path":[4,1,2,0,5],"span":[12,4,8]},{"path":[4,1,2,0,1],"span":[12,9,16]},{"path":[4,1,2,0,3],"span":[12,19,20]},{"path":[4,2],"span":[15,0,19,1]},{"path":[4,2,1],"span":[15,8,22]},{"path":[4,2,8,0],"span":[16,2,18,3]},{"path":[4,2,8,0,1],"span":[16,8,12]},{"path":[4,2,2,0],"span":[17,6,22]},{"path":[4,2,2,0,5],"span":[17,6,12]},{"path":[4,2,2,0,1],"span":[17,13,17]},{"path":[4,2,2,0,3],"span":[17,20,21]},{"path":[4,3],"span":[21,0,23,1]},{"path":[4,3,1],"span":[21,8,30]},{"path":[4,3,2,0],"span":[22,2,31]},{"path":[4,3,2,0,6],"span":[22,2,16]},{"path":[4,3,2,0,1],"span":[22,17,26]},{"path":[4,3,2,0,3],"span":[22,29,30]},{"path":[4,4],"span":[25,0,27,1]},{"path":[4,4,1],"span":[25,8,31]},{"path":[4,4,2,0],"span":[26,2,17]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,12]},{"path":[4,4,2,0,3],"span":[26,15,16]},{"path":[6,0],"span":[29,0,32,1]},{"path":[6,0,1],"span":[29,8,24]},{"path":[6,0,2,0],"span":[30,4,90]},{"path":[6,0,2,0,1],"span":[30,8,25]},{"path":[6,0,2,0,2],"span":[30,26,50]},{"path":[6,0,2,0,3],"span":[30,61,86]},{"path":[6,0,2,1],"span":[31,4,84]},{"path":[6,0,2,1,1],"span":[31,8,23]},{"path":[6,0,2,1,2],"span":[31,24,46]},{"path":[6,0,2,1,3],"span":[31,57,80]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -9,6 +9,7 @@ import * as installer_pb from "./installer_pb";
9
9
 
10
10
  interface IInstallerServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
11
  generateInstaller: IInstallerServiceService_IGenerateInstaller;
12
+ getInstallerUrl: IInstallerServiceService_IGetInstallerUrl;
12
13
  }
13
14
 
14
15
  interface IInstallerServiceService_IGenerateInstaller extends grpc.MethodDefinition<installer_pb.GenerateInstallerRequest, installer_pb.GenerateInstallerResponse> {
@@ -20,17 +21,30 @@ interface IInstallerServiceService_IGenerateInstaller extends grpc.MethodDefinit
20
21
  responseSerialize: grpc.serialize<installer_pb.GenerateInstallerResponse>;
21
22
  responseDeserialize: grpc.deserialize<installer_pb.GenerateInstallerResponse>;
22
23
  }
24
+ interface IInstallerServiceService_IGetInstallerUrl extends grpc.MethodDefinition<installer_pb.GetInstallerUrlRequest, installer_pb.GetInstallerUrlResponse> {
25
+ path: "/lansweeper.installer.v1.InstallerService/GetInstallerUrl";
26
+ requestStream: false;
27
+ responseStream: false;
28
+ requestSerialize: grpc.serialize<installer_pb.GetInstallerUrlRequest>;
29
+ requestDeserialize: grpc.deserialize<installer_pb.GetInstallerUrlRequest>;
30
+ responseSerialize: grpc.serialize<installer_pb.GetInstallerUrlResponse>;
31
+ responseDeserialize: grpc.deserialize<installer_pb.GetInstallerUrlResponse>;
32
+ }
23
33
 
24
34
  export const InstallerServiceService: IInstallerServiceService;
25
35
 
26
36
  export interface IInstallerServiceServer extends grpc.UntypedServiceImplementation {
27
37
  generateInstaller: grpc.handleUnaryCall<installer_pb.GenerateInstallerRequest, installer_pb.GenerateInstallerResponse>;
38
+ getInstallerUrl: grpc.handleUnaryCall<installer_pb.GetInstallerUrlRequest, installer_pb.GetInstallerUrlResponse>;
28
39
  }
29
40
 
30
41
  export interface IInstallerServiceClient {
31
42
  generateInstaller(request: installer_pb.GenerateInstallerRequest, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
32
43
  generateInstaller(request: installer_pb.GenerateInstallerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
33
44
  generateInstaller(request: installer_pb.GenerateInstallerRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
45
+ getInstallerUrl(request: installer_pb.GetInstallerUrlRequest, callback: (error: grpc.ServiceError | null, response: installer_pb.GetInstallerUrlResponse) => void): grpc.ClientUnaryCall;
46
+ getInstallerUrl(request: installer_pb.GetInstallerUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: installer_pb.GetInstallerUrlResponse) => void): grpc.ClientUnaryCall;
47
+ getInstallerUrl(request: installer_pb.GetInstallerUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: installer_pb.GetInstallerUrlResponse) => void): grpc.ClientUnaryCall;
34
48
  }
35
49
 
36
50
  export class InstallerServiceClient extends grpc.Client implements IInstallerServiceClient {
@@ -38,4 +52,7 @@ export class InstallerServiceClient extends grpc.Client implements IInstallerSer
38
52
  public generateInstaller(request: installer_pb.GenerateInstallerRequest, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
39
53
  public generateInstaller(request: installer_pb.GenerateInstallerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
40
54
  public generateInstaller(request: installer_pb.GenerateInstallerRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
55
+ public getInstallerUrl(request: installer_pb.GetInstallerUrlRequest, callback: (error: grpc.ServiceError | null, response: installer_pb.GetInstallerUrlResponse) => void): grpc.ClientUnaryCall;
56
+ public getInstallerUrl(request: installer_pb.GetInstallerUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: installer_pb.GetInstallerUrlResponse) => void): grpc.ClientUnaryCall;
57
+ public getInstallerUrl(request: installer_pb.GetInstallerUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: installer_pb.GetInstallerUrlResponse) => void): grpc.ClientUnaryCall;
41
58
  }
@@ -26,6 +26,28 @@ function deserialize_lansweeper_installer_v1_GenerateInstallerResponse(buffer_ar
26
26
  return installer_pb.GenerateInstallerResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
27
  }
28
28
 
29
+ function serialize_lansweeper_installer_v1_GetInstallerUrlRequest(arg) {
30
+ if (!(arg instanceof installer_pb.GetInstallerUrlRequest)) {
31
+ throw new Error('Expected argument of type lansweeper.installer.v1.GetInstallerUrlRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_lansweeper_installer_v1_GetInstallerUrlRequest(buffer_arg) {
37
+ return installer_pb.GetInstallerUrlRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_lansweeper_installer_v1_GetInstallerUrlResponse(arg) {
41
+ if (!(arg instanceof installer_pb.GetInstallerUrlResponse)) {
42
+ throw new Error('Expected argument of type lansweeper.installer.v1.GetInstallerUrlResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_lansweeper_installer_v1_GetInstallerUrlResponse(buffer_arg) {
48
+ return installer_pb.GetInstallerUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
29
51
 
30
52
  var InstallerServiceService = exports.InstallerServiceService = {
31
53
  generateInstaller: {
@@ -39,6 +61,17 @@ var InstallerServiceService = exports.InstallerServiceService = {
39
61
  responseSerialize: serialize_lansweeper_installer_v1_GenerateInstallerResponse,
40
62
  responseDeserialize: deserialize_lansweeper_installer_v1_GenerateInstallerResponse,
41
63
  },
64
+ getInstallerUrl: {
65
+ path: '/lansweeper.installer.v1.InstallerService/GetInstallerUrl',
66
+ requestStream: false,
67
+ responseStream: false,
68
+ requestType: installer_pb.GetInstallerUrlRequest,
69
+ responseType: installer_pb.GetInstallerUrlResponse,
70
+ requestSerialize: serialize_lansweeper_installer_v1_GetInstallerUrlRequest,
71
+ requestDeserialize: deserialize_lansweeper_installer_v1_GetInstallerUrlRequest,
72
+ responseSerialize: serialize_lansweeper_installer_v1_GetInstallerUrlResponse,
73
+ responseDeserialize: deserialize_lansweeper_installer_v1_GetInstallerUrlResponse,
74
+ },
42
75
  };
43
76
 
44
77
  exports.InstallerServiceClient = grpc.makeGenericClientConstructor(InstallerServiceService);
@@ -48,3 +48,77 @@ export namespace GenerateInstallerResponse {
48
48
  success: boolean,
49
49
  }
50
50
  }
51
+
52
+ export class NullableString extends jspb.Message {
53
+
54
+ hasData(): boolean;
55
+ clearData(): void;
56
+ getData(): string;
57
+ setData(value: string): NullableString;
58
+
59
+ getKindCase(): NullableString.KindCase;
60
+
61
+ serializeBinary(): Uint8Array;
62
+ toObject(includeInstance?: boolean): NullableString.AsObject;
63
+ static toObject(includeInstance: boolean, msg: NullableString): NullableString.AsObject;
64
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
65
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
66
+ static serializeBinaryToWriter(message: NullableString, writer: jspb.BinaryWriter): void;
67
+ static deserializeBinary(bytes: Uint8Array): NullableString;
68
+ static deserializeBinaryFromReader(message: NullableString, reader: jspb.BinaryReader): NullableString;
69
+ }
70
+
71
+ export namespace NullableString {
72
+ export type AsObject = {
73
+ data: string,
74
+ }
75
+
76
+ export enum KindCase {
77
+ KIND_NOT_SET = 0,
78
+ DATA = 1,
79
+ }
80
+
81
+ }
82
+
83
+ export class GetInstallerUrlRequest extends jspb.Message {
84
+
85
+ hasClientId(): boolean;
86
+ clearClientId(): void;
87
+ getClientId(): NullableString | undefined;
88
+ setClientId(value?: NullableString): GetInstallerUrlRequest;
89
+
90
+ serializeBinary(): Uint8Array;
91
+ toObject(includeInstance?: boolean): GetInstallerUrlRequest.AsObject;
92
+ static toObject(includeInstance: boolean, msg: GetInstallerUrlRequest): GetInstallerUrlRequest.AsObject;
93
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
94
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
95
+ static serializeBinaryToWriter(message: GetInstallerUrlRequest, writer: jspb.BinaryWriter): void;
96
+ static deserializeBinary(bytes: Uint8Array): GetInstallerUrlRequest;
97
+ static deserializeBinaryFromReader(message: GetInstallerUrlRequest, reader: jspb.BinaryReader): GetInstallerUrlRequest;
98
+ }
99
+
100
+ export namespace GetInstallerUrlRequest {
101
+ export type AsObject = {
102
+ clientId?: NullableString.AsObject,
103
+ }
104
+ }
105
+
106
+ export class GetInstallerUrlResponse extends jspb.Message {
107
+ getUrl(): string;
108
+ setUrl(value: string): GetInstallerUrlResponse;
109
+
110
+ serializeBinary(): Uint8Array;
111
+ toObject(includeInstance?: boolean): GetInstallerUrlResponse.AsObject;
112
+ static toObject(includeInstance: boolean, msg: GetInstallerUrlResponse): GetInstallerUrlResponse.AsObject;
113
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
114
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
115
+ static serializeBinaryToWriter(message: GetInstallerUrlResponse, writer: jspb.BinaryWriter): void;
116
+ static deserializeBinary(bytes: Uint8Array): GetInstallerUrlResponse;
117
+ static deserializeBinaryFromReader(message: GetInstallerUrlResponse, reader: jspb.BinaryReader): GetInstallerUrlResponse;
118
+ }
119
+
120
+ export namespace GetInstallerUrlResponse {
121
+ export type AsObject = {
122
+ url: string,
123
+ }
124
+ }
@@ -17,6 +17,10 @@ var global = Function('return this')();
17
17
 
18
18
  goog.exportSymbol('proto.lansweeper.installer.v1.GenerateInstallerRequest', null, global);
19
19
  goog.exportSymbol('proto.lansweeper.installer.v1.GenerateInstallerResponse', null, global);
20
+ goog.exportSymbol('proto.lansweeper.installer.v1.GetInstallerUrlRequest', null, global);
21
+ goog.exportSymbol('proto.lansweeper.installer.v1.GetInstallerUrlResponse', null, global);
22
+ goog.exportSymbol('proto.lansweeper.installer.v1.NullableString', null, global);
23
+ goog.exportSymbol('proto.lansweeper.installer.v1.NullableString.KindCase', null, global);
20
24
  /**
21
25
  * Generated by JsPbCodeGenerator.
22
26
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -59,6 +63,69 @@ if (goog.DEBUG && !COMPILED) {
59
63
  */
60
64
  proto.lansweeper.installer.v1.GenerateInstallerResponse.displayName = 'proto.lansweeper.installer.v1.GenerateInstallerResponse';
61
65
  }
66
+ /**
67
+ * Generated by JsPbCodeGenerator.
68
+ * @param {Array=} opt_data Optional initial data array, typically from a
69
+ * server response, or constructed directly in Javascript. The array is used
70
+ * in place and becomes part of the constructed object. It is not cloned.
71
+ * If no data is provided, the constructed object will be empty, but still
72
+ * valid.
73
+ * @extends {jspb.Message}
74
+ * @constructor
75
+ */
76
+ proto.lansweeper.installer.v1.NullableString = function(opt_data) {
77
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lansweeper.installer.v1.NullableString.oneofGroups_);
78
+ };
79
+ goog.inherits(proto.lansweeper.installer.v1.NullableString, jspb.Message);
80
+ if (goog.DEBUG && !COMPILED) {
81
+ /**
82
+ * @public
83
+ * @override
84
+ */
85
+ proto.lansweeper.installer.v1.NullableString.displayName = 'proto.lansweeper.installer.v1.NullableString';
86
+ }
87
+ /**
88
+ * Generated by JsPbCodeGenerator.
89
+ * @param {Array=} opt_data Optional initial data array, typically from a
90
+ * server response, or constructed directly in Javascript. The array is used
91
+ * in place and becomes part of the constructed object. It is not cloned.
92
+ * If no data is provided, the constructed object will be empty, but still
93
+ * valid.
94
+ * @extends {jspb.Message}
95
+ * @constructor
96
+ */
97
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest = function(opt_data) {
98
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
99
+ };
100
+ goog.inherits(proto.lansweeper.installer.v1.GetInstallerUrlRequest, jspb.Message);
101
+ if (goog.DEBUG && !COMPILED) {
102
+ /**
103
+ * @public
104
+ * @override
105
+ */
106
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.displayName = 'proto.lansweeper.installer.v1.GetInstallerUrlRequest';
107
+ }
108
+ /**
109
+ * Generated by JsPbCodeGenerator.
110
+ * @param {Array=} opt_data Optional initial data array, typically from a
111
+ * server response, or constructed directly in Javascript. The array is used
112
+ * in place and becomes part of the constructed object. It is not cloned.
113
+ * If no data is provided, the constructed object will be empty, but still
114
+ * valid.
115
+ * @extends {jspb.Message}
116
+ * @constructor
117
+ */
118
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse = function(opt_data) {
119
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
120
+ };
121
+ goog.inherits(proto.lansweeper.installer.v1.GetInstallerUrlResponse, jspb.Message);
122
+ if (goog.DEBUG && !COMPILED) {
123
+ /**
124
+ * @public
125
+ * @override
126
+ */
127
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.displayName = 'proto.lansweeper.installer.v1.GetInstallerUrlResponse';
128
+ }
62
129
 
63
130
 
64
131
 
@@ -349,4 +416,458 @@ proto.lansweeper.installer.v1.GenerateInstallerResponse.prototype.setSuccess = f
349
416
  };
350
417
 
351
418
 
419
+
420
+ /**
421
+ * Oneof group definitions for this message. Each group defines the field
422
+ * numbers belonging to that group. When of these fields' value is set, all
423
+ * other fields in the group are cleared. During deserialization, if multiple
424
+ * fields are encountered for a group, only the last value seen will be kept.
425
+ * @private {!Array<!Array<number>>}
426
+ * @const
427
+ */
428
+ proto.lansweeper.installer.v1.NullableString.oneofGroups_ = [[1]];
429
+
430
+ /**
431
+ * @enum {number}
432
+ */
433
+ proto.lansweeper.installer.v1.NullableString.KindCase = {
434
+ KIND_NOT_SET: 0,
435
+ DATA: 1
436
+ };
437
+
438
+ /**
439
+ * @return {proto.lansweeper.installer.v1.NullableString.KindCase}
440
+ */
441
+ proto.lansweeper.installer.v1.NullableString.prototype.getKindCase = function() {
442
+ return /** @type {proto.lansweeper.installer.v1.NullableString.KindCase} */(jspb.Message.computeOneofCase(this, proto.lansweeper.installer.v1.NullableString.oneofGroups_[0]));
443
+ };
444
+
445
+
446
+
447
+ if (jspb.Message.GENERATE_TO_OBJECT) {
448
+ /**
449
+ * Creates an object representation of this proto.
450
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
451
+ * Optional fields that are not set will be set to undefined.
452
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
453
+ * For the list of reserved names please see:
454
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
455
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
456
+ * JSPB instance for transitional soy proto support:
457
+ * http://goto/soy-param-migration
458
+ * @return {!Object}
459
+ */
460
+ proto.lansweeper.installer.v1.NullableString.prototype.toObject = function(opt_includeInstance) {
461
+ return proto.lansweeper.installer.v1.NullableString.toObject(opt_includeInstance, this);
462
+ };
463
+
464
+
465
+ /**
466
+ * Static version of the {@see toObject} method.
467
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
468
+ * the JSPB instance for transitional soy proto support:
469
+ * http://goto/soy-param-migration
470
+ * @param {!proto.lansweeper.installer.v1.NullableString} msg The msg instance to transform.
471
+ * @return {!Object}
472
+ * @suppress {unusedLocalVariables} f is only used for nested messages
473
+ */
474
+ proto.lansweeper.installer.v1.NullableString.toObject = function(includeInstance, msg) {
475
+ var f, obj = {
476
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
477
+ };
478
+
479
+ if (includeInstance) {
480
+ obj.$jspbMessageInstance = msg;
481
+ }
482
+ return obj;
483
+ };
484
+ }
485
+
486
+
487
+ /**
488
+ * Deserializes binary data (in protobuf wire format).
489
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
490
+ * @return {!proto.lansweeper.installer.v1.NullableString}
491
+ */
492
+ proto.lansweeper.installer.v1.NullableString.deserializeBinary = function(bytes) {
493
+ var reader = new jspb.BinaryReader(bytes);
494
+ var msg = new proto.lansweeper.installer.v1.NullableString;
495
+ return proto.lansweeper.installer.v1.NullableString.deserializeBinaryFromReader(msg, reader);
496
+ };
497
+
498
+
499
+ /**
500
+ * Deserializes binary data (in protobuf wire format) from the
501
+ * given reader into the given message object.
502
+ * @param {!proto.lansweeper.installer.v1.NullableString} msg The message object to deserialize into.
503
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
504
+ * @return {!proto.lansweeper.installer.v1.NullableString}
505
+ */
506
+ proto.lansweeper.installer.v1.NullableString.deserializeBinaryFromReader = function(msg, reader) {
507
+ while (reader.nextField()) {
508
+ if (reader.isEndGroup()) {
509
+ break;
510
+ }
511
+ var field = reader.getFieldNumber();
512
+ switch (field) {
513
+ case 1:
514
+ var value = /** @type {string} */ (reader.readString());
515
+ msg.setData(value);
516
+ break;
517
+ default:
518
+ reader.skipField();
519
+ break;
520
+ }
521
+ }
522
+ return msg;
523
+ };
524
+
525
+
526
+ /**
527
+ * Serializes the message to binary data (in protobuf wire format).
528
+ * @return {!Uint8Array}
529
+ */
530
+ proto.lansweeper.installer.v1.NullableString.prototype.serializeBinary = function() {
531
+ var writer = new jspb.BinaryWriter();
532
+ proto.lansweeper.installer.v1.NullableString.serializeBinaryToWriter(this, writer);
533
+ return writer.getResultBuffer();
534
+ };
535
+
536
+
537
+ /**
538
+ * Serializes the given message to binary data (in protobuf wire
539
+ * format), writing to the given BinaryWriter.
540
+ * @param {!proto.lansweeper.installer.v1.NullableString} message
541
+ * @param {!jspb.BinaryWriter} writer
542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
543
+ */
544
+ proto.lansweeper.installer.v1.NullableString.serializeBinaryToWriter = function(message, writer) {
545
+ var f = undefined;
546
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
547
+ if (f != null) {
548
+ writer.writeString(
549
+ 1,
550
+ f
551
+ );
552
+ }
553
+ };
554
+
555
+
556
+ /**
557
+ * optional string data = 1;
558
+ * @return {string}
559
+ */
560
+ proto.lansweeper.installer.v1.NullableString.prototype.getData = function() {
561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
562
+ };
563
+
564
+
565
+ /**
566
+ * @param {string} value
567
+ * @return {!proto.lansweeper.installer.v1.NullableString} returns this
568
+ */
569
+ proto.lansweeper.installer.v1.NullableString.prototype.setData = function(value) {
570
+ return jspb.Message.setOneofField(this, 1, proto.lansweeper.installer.v1.NullableString.oneofGroups_[0], value);
571
+ };
572
+
573
+
574
+ /**
575
+ * Clears the field making it undefined.
576
+ * @return {!proto.lansweeper.installer.v1.NullableString} returns this
577
+ */
578
+ proto.lansweeper.installer.v1.NullableString.prototype.clearData = function() {
579
+ return jspb.Message.setOneofField(this, 1, proto.lansweeper.installer.v1.NullableString.oneofGroups_[0], undefined);
580
+ };
581
+
582
+
583
+ /**
584
+ * Returns whether this field is set.
585
+ * @return {boolean}
586
+ */
587
+ proto.lansweeper.installer.v1.NullableString.prototype.hasData = function() {
588
+ return jspb.Message.getField(this, 1) != null;
589
+ };
590
+
591
+
592
+
593
+
594
+
595
+ if (jspb.Message.GENERATE_TO_OBJECT) {
596
+ /**
597
+ * Creates an object representation of this proto.
598
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
599
+ * Optional fields that are not set will be set to undefined.
600
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
601
+ * For the list of reserved names please see:
602
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
603
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
604
+ * JSPB instance for transitional soy proto support:
605
+ * http://goto/soy-param-migration
606
+ * @return {!Object}
607
+ */
608
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.prototype.toObject = function(opt_includeInstance) {
609
+ return proto.lansweeper.installer.v1.GetInstallerUrlRequest.toObject(opt_includeInstance, this);
610
+ };
611
+
612
+
613
+ /**
614
+ * Static version of the {@see toObject} method.
615
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
616
+ * the JSPB instance for transitional soy proto support:
617
+ * http://goto/soy-param-migration
618
+ * @param {!proto.lansweeper.installer.v1.GetInstallerUrlRequest} msg The msg instance to transform.
619
+ * @return {!Object}
620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
621
+ */
622
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.toObject = function(includeInstance, msg) {
623
+ var f, obj = {
624
+ clientId: (f = msg.getClientId()) && proto.lansweeper.installer.v1.NullableString.toObject(includeInstance, f)
625
+ };
626
+
627
+ if (includeInstance) {
628
+ obj.$jspbMessageInstance = msg;
629
+ }
630
+ return obj;
631
+ };
632
+ }
633
+
634
+
635
+ /**
636
+ * Deserializes binary data (in protobuf wire format).
637
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
638
+ * @return {!proto.lansweeper.installer.v1.GetInstallerUrlRequest}
639
+ */
640
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.deserializeBinary = function(bytes) {
641
+ var reader = new jspb.BinaryReader(bytes);
642
+ var msg = new proto.lansweeper.installer.v1.GetInstallerUrlRequest;
643
+ return proto.lansweeper.installer.v1.GetInstallerUrlRequest.deserializeBinaryFromReader(msg, reader);
644
+ };
645
+
646
+
647
+ /**
648
+ * Deserializes binary data (in protobuf wire format) from the
649
+ * given reader into the given message object.
650
+ * @param {!proto.lansweeper.installer.v1.GetInstallerUrlRequest} msg The message object to deserialize into.
651
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
652
+ * @return {!proto.lansweeper.installer.v1.GetInstallerUrlRequest}
653
+ */
654
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.deserializeBinaryFromReader = function(msg, reader) {
655
+ while (reader.nextField()) {
656
+ if (reader.isEndGroup()) {
657
+ break;
658
+ }
659
+ var field = reader.getFieldNumber();
660
+ switch (field) {
661
+ case 1:
662
+ var value = new proto.lansweeper.installer.v1.NullableString;
663
+ reader.readMessage(value,proto.lansweeper.installer.v1.NullableString.deserializeBinaryFromReader);
664
+ msg.setClientId(value);
665
+ break;
666
+ default:
667
+ reader.skipField();
668
+ break;
669
+ }
670
+ }
671
+ return msg;
672
+ };
673
+
674
+
675
+ /**
676
+ * Serializes the message to binary data (in protobuf wire format).
677
+ * @return {!Uint8Array}
678
+ */
679
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.prototype.serializeBinary = function() {
680
+ var writer = new jspb.BinaryWriter();
681
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.serializeBinaryToWriter(this, writer);
682
+ return writer.getResultBuffer();
683
+ };
684
+
685
+
686
+ /**
687
+ * Serializes the given message to binary data (in protobuf wire
688
+ * format), writing to the given BinaryWriter.
689
+ * @param {!proto.lansweeper.installer.v1.GetInstallerUrlRequest} message
690
+ * @param {!jspb.BinaryWriter} writer
691
+ * @suppress {unusedLocalVariables} f is only used for nested messages
692
+ */
693
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.serializeBinaryToWriter = function(message, writer) {
694
+ var f = undefined;
695
+ f = message.getClientId();
696
+ if (f != null) {
697
+ writer.writeMessage(
698
+ 1,
699
+ f,
700
+ proto.lansweeper.installer.v1.NullableString.serializeBinaryToWriter
701
+ );
702
+ }
703
+ };
704
+
705
+
706
+ /**
707
+ * optional NullableString client_id = 1;
708
+ * @return {?proto.lansweeper.installer.v1.NullableString}
709
+ */
710
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.prototype.getClientId = function() {
711
+ return /** @type{?proto.lansweeper.installer.v1.NullableString} */ (
712
+ jspb.Message.getWrapperField(this, proto.lansweeper.installer.v1.NullableString, 1));
713
+ };
714
+
715
+
716
+ /**
717
+ * @param {?proto.lansweeper.installer.v1.NullableString|undefined} value
718
+ * @return {!proto.lansweeper.installer.v1.GetInstallerUrlRequest} returns this
719
+ */
720
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.prototype.setClientId = function(value) {
721
+ return jspb.Message.setWrapperField(this, 1, value);
722
+ };
723
+
724
+
725
+ /**
726
+ * Clears the message field making it undefined.
727
+ * @return {!proto.lansweeper.installer.v1.GetInstallerUrlRequest} returns this
728
+ */
729
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.prototype.clearClientId = function() {
730
+ return this.setClientId(undefined);
731
+ };
732
+
733
+
734
+ /**
735
+ * Returns whether this field is set.
736
+ * @return {boolean}
737
+ */
738
+ proto.lansweeper.installer.v1.GetInstallerUrlRequest.prototype.hasClientId = function() {
739
+ return jspb.Message.getField(this, 1) != null;
740
+ };
741
+
742
+
743
+
744
+
745
+
746
+ if (jspb.Message.GENERATE_TO_OBJECT) {
747
+ /**
748
+ * Creates an object representation of this proto.
749
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
750
+ * Optional fields that are not set will be set to undefined.
751
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
752
+ * For the list of reserved names please see:
753
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
754
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
755
+ * JSPB instance for transitional soy proto support:
756
+ * http://goto/soy-param-migration
757
+ * @return {!Object}
758
+ */
759
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.toObject = function(opt_includeInstance) {
760
+ return proto.lansweeper.installer.v1.GetInstallerUrlResponse.toObject(opt_includeInstance, this);
761
+ };
762
+
763
+
764
+ /**
765
+ * Static version of the {@see toObject} method.
766
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
767
+ * the JSPB instance for transitional soy proto support:
768
+ * http://goto/soy-param-migration
769
+ * @param {!proto.lansweeper.installer.v1.GetInstallerUrlResponse} msg The msg instance to transform.
770
+ * @return {!Object}
771
+ * @suppress {unusedLocalVariables} f is only used for nested messages
772
+ */
773
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.toObject = function(includeInstance, msg) {
774
+ var f, obj = {
775
+ url: jspb.Message.getFieldWithDefault(msg, 1, "")
776
+ };
777
+
778
+ if (includeInstance) {
779
+ obj.$jspbMessageInstance = msg;
780
+ }
781
+ return obj;
782
+ };
783
+ }
784
+
785
+
786
+ /**
787
+ * Deserializes binary data (in protobuf wire format).
788
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
789
+ * @return {!proto.lansweeper.installer.v1.GetInstallerUrlResponse}
790
+ */
791
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.deserializeBinary = function(bytes) {
792
+ var reader = new jspb.BinaryReader(bytes);
793
+ var msg = new proto.lansweeper.installer.v1.GetInstallerUrlResponse;
794
+ return proto.lansweeper.installer.v1.GetInstallerUrlResponse.deserializeBinaryFromReader(msg, reader);
795
+ };
796
+
797
+
798
+ /**
799
+ * Deserializes binary data (in protobuf wire format) from the
800
+ * given reader into the given message object.
801
+ * @param {!proto.lansweeper.installer.v1.GetInstallerUrlResponse} msg The message object to deserialize into.
802
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
803
+ * @return {!proto.lansweeper.installer.v1.GetInstallerUrlResponse}
804
+ */
805
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.deserializeBinaryFromReader = function(msg, reader) {
806
+ while (reader.nextField()) {
807
+ if (reader.isEndGroup()) {
808
+ break;
809
+ }
810
+ var field = reader.getFieldNumber();
811
+ switch (field) {
812
+ case 1:
813
+ var value = /** @type {string} */ (reader.readString());
814
+ msg.setUrl(value);
815
+ break;
816
+ default:
817
+ reader.skipField();
818
+ break;
819
+ }
820
+ }
821
+ return msg;
822
+ };
823
+
824
+
825
+ /**
826
+ * Serializes the message to binary data (in protobuf wire format).
827
+ * @return {!Uint8Array}
828
+ */
829
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.serializeBinary = function() {
830
+ var writer = new jspb.BinaryWriter();
831
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.serializeBinaryToWriter(this, writer);
832
+ return writer.getResultBuffer();
833
+ };
834
+
835
+
836
+ /**
837
+ * Serializes the given message to binary data (in protobuf wire
838
+ * format), writing to the given BinaryWriter.
839
+ * @param {!proto.lansweeper.installer.v1.GetInstallerUrlResponse} message
840
+ * @param {!jspb.BinaryWriter} writer
841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
842
+ */
843
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.serializeBinaryToWriter = function(message, writer) {
844
+ var f = undefined;
845
+ f = message.getUrl();
846
+ if (f.length > 0) {
847
+ writer.writeString(
848
+ 1,
849
+ f
850
+ );
851
+ }
852
+ };
853
+
854
+
855
+ /**
856
+ * optional string url = 1;
857
+ * @return {string}
858
+ */
859
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.getUrl = function() {
860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
861
+ };
862
+
863
+
864
+ /**
865
+ * @param {string} value
866
+ * @return {!proto.lansweeper.installer.v1.GetInstallerUrlResponse} returns this
867
+ */
868
+ proto.lansweeper.installer.v1.GetInstallerUrlResponse.prototype.setUrl = function(value) {
869
+ return jspb.Message.setProto3StringField(this, 1, value);
870
+ };
871
+
872
+
352
873
  goog.object.extend(exports, proto.lansweeper.installer.v1);
@@ -2,9 +2,9 @@
2
2
  // versions:
3
3
  // protoc-gen-go v1.28.1
4
4
  // protoc v3.6.1
5
- // source: installer.proto
5
+ // source: proto/installer.proto
6
6
 
7
- package proto
7
+ package generated_go
8
8
 
9
9
  import (
10
10
  protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@@ -32,7 +32,7 @@ type GenerateInstallerRequest struct {
32
32
  func (x *GenerateInstallerRequest) Reset() {
33
33
  *x = GenerateInstallerRequest{}
34
34
  if protoimpl.UnsafeEnabled {
35
- mi := &file_installer_proto_msgTypes[0]
35
+ mi := &file_proto_installer_proto_msgTypes[0]
36
36
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37
37
  ms.StoreMessageInfo(mi)
38
38
  }
@@ -45,7 +45,7 @@ func (x *GenerateInstallerRequest) String() string {
45
45
  func (*GenerateInstallerRequest) ProtoMessage() {}
46
46
 
47
47
  func (x *GenerateInstallerRequest) ProtoReflect() protoreflect.Message {
48
- mi := &file_installer_proto_msgTypes[0]
48
+ mi := &file_proto_installer_proto_msgTypes[0]
49
49
  if protoimpl.UnsafeEnabled && x != nil {
50
50
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51
51
  if ms.LoadMessageInfo() == nil {
@@ -58,7 +58,7 @@ func (x *GenerateInstallerRequest) ProtoReflect() protoreflect.Message {
58
58
 
59
59
  // Deprecated: Use GenerateInstallerRequest.ProtoReflect.Descriptor instead.
60
60
  func (*GenerateInstallerRequest) Descriptor() ([]byte, []int) {
61
- return file_installer_proto_rawDescGZIP(), []int{0}
61
+ return file_proto_installer_proto_rawDescGZIP(), []int{0}
62
62
  }
63
63
 
64
64
  func (x *GenerateInstallerRequest) GetClientId() string {
@@ -86,7 +86,7 @@ type GenerateInstallerResponse struct {
86
86
  func (x *GenerateInstallerResponse) Reset() {
87
87
  *x = GenerateInstallerResponse{}
88
88
  if protoimpl.UnsafeEnabled {
89
- mi := &file_installer_proto_msgTypes[1]
89
+ mi := &file_proto_installer_proto_msgTypes[1]
90
90
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
91
91
  ms.StoreMessageInfo(mi)
92
92
  }
@@ -99,7 +99,7 @@ func (x *GenerateInstallerResponse) String() string {
99
99
  func (*GenerateInstallerResponse) ProtoMessage() {}
100
100
 
101
101
  func (x *GenerateInstallerResponse) ProtoReflect() protoreflect.Message {
102
- mi := &file_installer_proto_msgTypes[1]
102
+ mi := &file_proto_installer_proto_msgTypes[1]
103
103
  if protoimpl.UnsafeEnabled && x != nil {
104
104
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105
105
  if ms.LoadMessageInfo() == nil {
@@ -112,7 +112,7 @@ func (x *GenerateInstallerResponse) ProtoReflect() protoreflect.Message {
112
112
 
113
113
  // Deprecated: Use GenerateInstallerResponse.ProtoReflect.Descriptor instead.
114
114
  func (*GenerateInstallerResponse) Descriptor() ([]byte, []int) {
115
- return file_installer_proto_rawDescGZIP(), []int{1}
115
+ return file_proto_installer_proto_rawDescGZIP(), []int{1}
116
116
  }
117
117
 
118
118
  func (x *GenerateInstallerResponse) GetSuccess() bool {
@@ -122,68 +122,255 @@ func (x *GenerateInstallerResponse) GetSuccess() bool {
122
122
  return false
123
123
  }
124
124
 
125
- var File_installer_proto protoreflect.FileDescriptor
126
-
127
- var file_installer_proto_rawDesc = []byte{
128
- 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
129
- 0x6f, 0x12, 0x17, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e,
130
- 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22, 0x5c, 0x0a, 0x18, 0x47, 0x65,
131
- 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52,
132
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
133
- 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e,
134
- 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65,
135
- 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65,
136
- 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x35, 0x0a, 0x19, 0x47, 0x65, 0x6e, 0x65,
137
- 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73,
138
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
139
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x32,
140
- 0x90, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72,
141
- 0x76, 0x69, 0x63, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,
142
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x6e, 0x73,
143
- 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72,
144
- 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
145
- 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6c,
125
+ type NullableString struct {
126
+ state protoimpl.MessageState
127
+ sizeCache protoimpl.SizeCache
128
+ unknownFields protoimpl.UnknownFields
129
+
130
+ // Types that are assignable to Kind:
131
+ //
132
+ // *NullableString_Data
133
+ Kind isNullableString_Kind `protobuf_oneof:"kind"`
134
+ }
135
+
136
+ func (x *NullableString) Reset() {
137
+ *x = NullableString{}
138
+ if protoimpl.UnsafeEnabled {
139
+ mi := &file_proto_installer_proto_msgTypes[2]
140
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141
+ ms.StoreMessageInfo(mi)
142
+ }
143
+ }
144
+
145
+ func (x *NullableString) String() string {
146
+ return protoimpl.X.MessageStringOf(x)
147
+ }
148
+
149
+ func (*NullableString) ProtoMessage() {}
150
+
151
+ func (x *NullableString) ProtoReflect() protoreflect.Message {
152
+ mi := &file_proto_installer_proto_msgTypes[2]
153
+ if protoimpl.UnsafeEnabled && x != nil {
154
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
155
+ if ms.LoadMessageInfo() == nil {
156
+ ms.StoreMessageInfo(mi)
157
+ }
158
+ return ms
159
+ }
160
+ return mi.MessageOf(x)
161
+ }
162
+
163
+ // Deprecated: Use NullableString.ProtoReflect.Descriptor instead.
164
+ func (*NullableString) Descriptor() ([]byte, []int) {
165
+ return file_proto_installer_proto_rawDescGZIP(), []int{2}
166
+ }
167
+
168
+ func (m *NullableString) GetKind() isNullableString_Kind {
169
+ if m != nil {
170
+ return m.Kind
171
+ }
172
+ return nil
173
+ }
174
+
175
+ func (x *NullableString) GetData() string {
176
+ if x, ok := x.GetKind().(*NullableString_Data); ok {
177
+ return x.Data
178
+ }
179
+ return ""
180
+ }
181
+
182
+ type isNullableString_Kind interface {
183
+ isNullableString_Kind()
184
+ }
185
+
186
+ type NullableString_Data struct {
187
+ Data string `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
188
+ }
189
+
190
+ func (*NullableString_Data) isNullableString_Kind() {}
191
+
192
+ type GetInstallerUrlRequest struct {
193
+ state protoimpl.MessageState
194
+ sizeCache protoimpl.SizeCache
195
+ unknownFields protoimpl.UnknownFields
196
+
197
+ ClientId *NullableString `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
198
+ }
199
+
200
+ func (x *GetInstallerUrlRequest) Reset() {
201
+ *x = GetInstallerUrlRequest{}
202
+ if protoimpl.UnsafeEnabled {
203
+ mi := &file_proto_installer_proto_msgTypes[3]
204
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
205
+ ms.StoreMessageInfo(mi)
206
+ }
207
+ }
208
+
209
+ func (x *GetInstallerUrlRequest) String() string {
210
+ return protoimpl.X.MessageStringOf(x)
211
+ }
212
+
213
+ func (*GetInstallerUrlRequest) ProtoMessage() {}
214
+
215
+ func (x *GetInstallerUrlRequest) ProtoReflect() protoreflect.Message {
216
+ mi := &file_proto_installer_proto_msgTypes[3]
217
+ if protoimpl.UnsafeEnabled && x != nil {
218
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
219
+ if ms.LoadMessageInfo() == nil {
220
+ ms.StoreMessageInfo(mi)
221
+ }
222
+ return ms
223
+ }
224
+ return mi.MessageOf(x)
225
+ }
226
+
227
+ // Deprecated: Use GetInstallerUrlRequest.ProtoReflect.Descriptor instead.
228
+ func (*GetInstallerUrlRequest) Descriptor() ([]byte, []int) {
229
+ return file_proto_installer_proto_rawDescGZIP(), []int{3}
230
+ }
231
+
232
+ func (x *GetInstallerUrlRequest) GetClientId() *NullableString {
233
+ if x != nil {
234
+ return x.ClientId
235
+ }
236
+ return nil
237
+ }
238
+
239
+ type GetInstallerUrlResponse struct {
240
+ state protoimpl.MessageState
241
+ sizeCache protoimpl.SizeCache
242
+ unknownFields protoimpl.UnknownFields
243
+
244
+ Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
245
+ }
246
+
247
+ func (x *GetInstallerUrlResponse) Reset() {
248
+ *x = GetInstallerUrlResponse{}
249
+ if protoimpl.UnsafeEnabled {
250
+ mi := &file_proto_installer_proto_msgTypes[4]
251
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
252
+ ms.StoreMessageInfo(mi)
253
+ }
254
+ }
255
+
256
+ func (x *GetInstallerUrlResponse) String() string {
257
+ return protoimpl.X.MessageStringOf(x)
258
+ }
259
+
260
+ func (*GetInstallerUrlResponse) ProtoMessage() {}
261
+
262
+ func (x *GetInstallerUrlResponse) ProtoReflect() protoreflect.Message {
263
+ mi := &file_proto_installer_proto_msgTypes[4]
264
+ if protoimpl.UnsafeEnabled && x != nil {
265
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
266
+ if ms.LoadMessageInfo() == nil {
267
+ ms.StoreMessageInfo(mi)
268
+ }
269
+ return ms
270
+ }
271
+ return mi.MessageOf(x)
272
+ }
273
+
274
+ // Deprecated: Use GetInstallerUrlResponse.ProtoReflect.Descriptor instead.
275
+ func (*GetInstallerUrlResponse) Descriptor() ([]byte, []int) {
276
+ return file_proto_installer_proto_rawDescGZIP(), []int{4}
277
+ }
278
+
279
+ func (x *GetInstallerUrlResponse) GetUrl() string {
280
+ if x != nil {
281
+ return x.Url
282
+ }
283
+ return ""
284
+ }
285
+
286
+ var File_proto_installer_proto protoreflect.FileDescriptor
287
+
288
+ var file_proto_installer_proto_rawDesc = []byte{
289
+ 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65,
290
+ 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65,
291
+ 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31,
292
+ 0x22, 0x5c, 0x0a, 0x18, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
293
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09,
294
+ 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
295
+ 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69,
296
+ 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
297
+ 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x35,
298
+ 0x0a, 0x19, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c,
299
+ 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
300
+ 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75,
301
+ 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x2e, 0x0a, 0x0e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c,
302
+ 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
303
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x0a,
304
+ 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x5e, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
305
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
306
+ 0x44, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
307
+ 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e,
308
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6c,
309
+ 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x63, 0x6c, 0x69,
310
+ 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x2b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
311
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
312
+ 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
313
+ 0x72, 0x6c, 0x32, 0x88, 0x02, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72,
314
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72,
315
+ 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x31, 0x2e, 0x6c,
146
316
  0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c,
147
317
  0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49,
148
- 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
149
- 0x22, 0x00, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70,
150
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
318
+ 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
319
+ 0x32, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73,
320
+ 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61,
321
+ 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
322
+ 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
323
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77,
324
+ 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e,
325
+ 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55,
326
+ 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x73,
327
+ 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72,
328
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72,
329
+ 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a,
330
+ 0x0e, 0x2e, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x62,
331
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
151
332
  }
152
333
 
153
334
  var (
154
- file_installer_proto_rawDescOnce sync.Once
155
- file_installer_proto_rawDescData = file_installer_proto_rawDesc
335
+ file_proto_installer_proto_rawDescOnce sync.Once
336
+ file_proto_installer_proto_rawDescData = file_proto_installer_proto_rawDesc
156
337
  )
157
338
 
158
- func file_installer_proto_rawDescGZIP() []byte {
159
- file_installer_proto_rawDescOnce.Do(func() {
160
- file_installer_proto_rawDescData = protoimpl.X.CompressGZIP(file_installer_proto_rawDescData)
339
+ func file_proto_installer_proto_rawDescGZIP() []byte {
340
+ file_proto_installer_proto_rawDescOnce.Do(func() {
341
+ file_proto_installer_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_installer_proto_rawDescData)
161
342
  })
162
- return file_installer_proto_rawDescData
343
+ return file_proto_installer_proto_rawDescData
163
344
  }
164
345
 
165
- var file_installer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
166
- var file_installer_proto_goTypes = []interface{}{
346
+ var file_proto_installer_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
347
+ var file_proto_installer_proto_goTypes = []interface{}{
167
348
  (*GenerateInstallerRequest)(nil), // 0: lansweeper.installer.v1.GenerateInstallerRequest
168
349
  (*GenerateInstallerResponse)(nil), // 1: lansweeper.installer.v1.GenerateInstallerResponse
350
+ (*NullableString)(nil), // 2: lansweeper.installer.v1.NullableString
351
+ (*GetInstallerUrlRequest)(nil), // 3: lansweeper.installer.v1.GetInstallerUrlRequest
352
+ (*GetInstallerUrlResponse)(nil), // 4: lansweeper.installer.v1.GetInstallerUrlResponse
169
353
  }
170
- var file_installer_proto_depIdxs = []int32{
171
- 0, // 0: lansweeper.installer.v1.InstallerService.GenerateInstaller:input_type -> lansweeper.installer.v1.GenerateInstallerRequest
172
- 1, // 1: lansweeper.installer.v1.InstallerService.GenerateInstaller:output_type -> lansweeper.installer.v1.GenerateInstallerResponse
173
- 1, // [1:2] is the sub-list for method output_type
174
- 0, // [0:1] is the sub-list for method input_type
175
- 0, // [0:0] is the sub-list for extension type_name
176
- 0, // [0:0] is the sub-list for extension extendee
177
- 0, // [0:0] is the sub-list for field type_name
354
+ var file_proto_installer_proto_depIdxs = []int32{
355
+ 2, // 0: lansweeper.installer.v1.GetInstallerUrlRequest.client_id:type_name -> lansweeper.installer.v1.NullableString
356
+ 0, // 1: lansweeper.installer.v1.InstallerService.GenerateInstaller:input_type -> lansweeper.installer.v1.GenerateInstallerRequest
357
+ 3, // 2: lansweeper.installer.v1.InstallerService.GetInstallerUrl:input_type -> lansweeper.installer.v1.GetInstallerUrlRequest
358
+ 1, // 3: lansweeper.installer.v1.InstallerService.GenerateInstaller:output_type -> lansweeper.installer.v1.GenerateInstallerResponse
359
+ 4, // 4: lansweeper.installer.v1.InstallerService.GetInstallerUrl:output_type -> lansweeper.installer.v1.GetInstallerUrlResponse
360
+ 3, // [3:5] is the sub-list for method output_type
361
+ 1, // [1:3] is the sub-list for method input_type
362
+ 1, // [1:1] is the sub-list for extension type_name
363
+ 1, // [1:1] is the sub-list for extension extendee
364
+ 0, // [0:1] is the sub-list for field type_name
178
365
  }
179
366
 
180
- func init() { file_installer_proto_init() }
181
- func file_installer_proto_init() {
182
- if File_installer_proto != nil {
367
+ func init() { file_proto_installer_proto_init() }
368
+ func file_proto_installer_proto_init() {
369
+ if File_proto_installer_proto != nil {
183
370
  return
184
371
  }
185
372
  if !protoimpl.UnsafeEnabled {
186
- file_installer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
373
+ file_proto_installer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
187
374
  switch v := v.(*GenerateInstallerRequest); i {
188
375
  case 0:
189
376
  return &v.state
@@ -195,7 +382,7 @@ func file_installer_proto_init() {
195
382
  return nil
196
383
  }
197
384
  }
198
- file_installer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
385
+ file_proto_installer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
199
386
  switch v := v.(*GenerateInstallerResponse); i {
200
387
  case 0:
201
388
  return &v.state
@@ -207,23 +394,62 @@ func file_installer_proto_init() {
207
394
  return nil
208
395
  }
209
396
  }
397
+ file_proto_installer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
398
+ switch v := v.(*NullableString); i {
399
+ case 0:
400
+ return &v.state
401
+ case 1:
402
+ return &v.sizeCache
403
+ case 2:
404
+ return &v.unknownFields
405
+ default:
406
+ return nil
407
+ }
408
+ }
409
+ file_proto_installer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
410
+ switch v := v.(*GetInstallerUrlRequest); i {
411
+ case 0:
412
+ return &v.state
413
+ case 1:
414
+ return &v.sizeCache
415
+ case 2:
416
+ return &v.unknownFields
417
+ default:
418
+ return nil
419
+ }
420
+ }
421
+ file_proto_installer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
422
+ switch v := v.(*GetInstallerUrlResponse); i {
423
+ case 0:
424
+ return &v.state
425
+ case 1:
426
+ return &v.sizeCache
427
+ case 2:
428
+ return &v.unknownFields
429
+ default:
430
+ return nil
431
+ }
432
+ }
433
+ }
434
+ file_proto_installer_proto_msgTypes[2].OneofWrappers = []interface{}{
435
+ (*NullableString_Data)(nil),
210
436
  }
211
437
  type x struct{}
212
438
  out := protoimpl.TypeBuilder{
213
439
  File: protoimpl.DescBuilder{
214
440
  GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
215
- RawDescriptor: file_installer_proto_rawDesc,
441
+ RawDescriptor: file_proto_installer_proto_rawDesc,
216
442
  NumEnums: 0,
217
- NumMessages: 2,
443
+ NumMessages: 5,
218
444
  NumExtensions: 0,
219
445
  NumServices: 1,
220
446
  },
221
- GoTypes: file_installer_proto_goTypes,
222
- DependencyIndexes: file_installer_proto_depIdxs,
223
- MessageInfos: file_installer_proto_msgTypes,
447
+ GoTypes: file_proto_installer_proto_goTypes,
448
+ DependencyIndexes: file_proto_installer_proto_depIdxs,
449
+ MessageInfos: file_proto_installer_proto_msgTypes,
224
450
  }.Build()
225
- File_installer_proto = out.File
226
- file_installer_proto_rawDesc = nil
227
- file_installer_proto_goTypes = nil
228
- file_installer_proto_depIdxs = nil
451
+ File_proto_installer_proto = out.File
452
+ file_proto_installer_proto_rawDesc = nil
453
+ file_proto_installer_proto_goTypes = nil
454
+ file_proto_installer_proto_depIdxs = nil
229
455
  }
@@ -2,9 +2,9 @@
2
2
  // versions:
3
3
  // - protoc-gen-go-grpc v1.2.0
4
4
  // - protoc v3.6.1
5
- // source: installer.proto
5
+ // source: proto/installer.proto
6
6
 
7
- package proto
7
+ package generated_go
8
8
 
9
9
  import (
10
10
  context "context"
@@ -23,6 +23,7 @@ const _ = grpc.SupportPackageIsVersion7
23
23
  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
24
24
  type InstallerServiceClient interface {
25
25
  GenerateInstaller(ctx context.Context, in *GenerateInstallerRequest, opts ...grpc.CallOption) (*GenerateInstallerResponse, error)
26
+ GetInstallerUrl(ctx context.Context, in *GetInstallerUrlRequest, opts ...grpc.CallOption) (*GetInstallerUrlResponse, error)
26
27
  }
27
28
 
28
29
  type installerServiceClient struct {
@@ -42,11 +43,21 @@ func (c *installerServiceClient) GenerateInstaller(ctx context.Context, in *Gene
42
43
  return out, nil
43
44
  }
44
45
 
46
+ func (c *installerServiceClient) GetInstallerUrl(ctx context.Context, in *GetInstallerUrlRequest, opts ...grpc.CallOption) (*GetInstallerUrlResponse, error) {
47
+ out := new(GetInstallerUrlResponse)
48
+ err := c.cc.Invoke(ctx, "/lansweeper.installer.v1.InstallerService/GetInstallerUrl", in, out, opts...)
49
+ if err != nil {
50
+ return nil, err
51
+ }
52
+ return out, nil
53
+ }
54
+
45
55
  // InstallerServiceServer is the server API for InstallerService service.
46
56
  // All implementations must embed UnimplementedInstallerServiceServer
47
57
  // for forward compatibility
48
58
  type InstallerServiceServer interface {
49
59
  GenerateInstaller(context.Context, *GenerateInstallerRequest) (*GenerateInstallerResponse, error)
60
+ GetInstallerUrl(context.Context, *GetInstallerUrlRequest) (*GetInstallerUrlResponse, error)
50
61
  mustEmbedUnimplementedInstallerServiceServer()
51
62
  }
52
63
 
@@ -57,6 +68,9 @@ type UnimplementedInstallerServiceServer struct {
57
68
  func (UnimplementedInstallerServiceServer) GenerateInstaller(context.Context, *GenerateInstallerRequest) (*GenerateInstallerResponse, error) {
58
69
  return nil, status.Errorf(codes.Unimplemented, "method GenerateInstaller not implemented")
59
70
  }
71
+ func (UnimplementedInstallerServiceServer) GetInstallerUrl(context.Context, *GetInstallerUrlRequest) (*GetInstallerUrlResponse, error) {
72
+ return nil, status.Errorf(codes.Unimplemented, "method GetInstallerUrl not implemented")
73
+ }
60
74
  func (UnimplementedInstallerServiceServer) mustEmbedUnimplementedInstallerServiceServer() {}
61
75
 
62
76
  // UnsafeInstallerServiceServer may be embedded to opt out of forward compatibility for this service.
@@ -88,6 +102,24 @@ func _InstallerService_GenerateInstaller_Handler(srv interface{}, ctx context.Co
88
102
  return interceptor(ctx, in, info, handler)
89
103
  }
90
104
 
105
+ func _InstallerService_GetInstallerUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
106
+ in := new(GetInstallerUrlRequest)
107
+ if err := dec(in); err != nil {
108
+ return nil, err
109
+ }
110
+ if interceptor == nil {
111
+ return srv.(InstallerServiceServer).GetInstallerUrl(ctx, in)
112
+ }
113
+ info := &grpc.UnaryServerInfo{
114
+ Server: srv,
115
+ FullMethod: "/lansweeper.installer.v1.InstallerService/GetInstallerUrl",
116
+ }
117
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
118
+ return srv.(InstallerServiceServer).GetInstallerUrl(ctx, req.(*GetInstallerUrlRequest))
119
+ }
120
+ return interceptor(ctx, in, info, handler)
121
+ }
122
+
91
123
  // InstallerService_ServiceDesc is the grpc.ServiceDesc for InstallerService service.
92
124
  // It's only intended for direct use with grpc.RegisterService,
93
125
  // and not to be introspected or modified (even as a copy)
@@ -99,7 +131,11 @@ var InstallerService_ServiceDesc = grpc.ServiceDesc{
99
131
  MethodName: "GenerateInstaller",
100
132
  Handler: _InstallerService_GenerateInstaller_Handler,
101
133
  },
134
+ {
135
+ MethodName: "GetInstallerUrl",
136
+ Handler: _InstallerService_GetInstallerUrl_Handler,
137
+ },
102
138
  },
103
139
  Streams: []grpc.StreamDesc{},
104
- Metadata: "installer.proto",
140
+ Metadata: "proto/installer.proto",
105
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/installer-grpc",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Installer grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -15,5 +15,5 @@
15
15
  "peerDependencies": {
16
16
  "@grpc/grpc-js": "^1.6.2"
17
17
  },
18
- "gitHead": "47226bd945bf6d590523aa2bbebc8db186f83cac"
18
+ "gitHead": "522bc69b5b7c95a9c205b6ad9c6928d4935bee1c"
19
19
  }
@@ -13,6 +13,21 @@ message GenerateInstallerResponse {
13
13
  bool success = 1;
14
14
  }
15
15
 
16
+ message NullableString {
17
+ oneof kind {
18
+ string data = 1;
19
+ }
20
+ }
21
+
22
+ message GetInstallerUrlRequest {
23
+ NullableString client_id = 1;
24
+ }
25
+
26
+ message GetInstallerUrlResponse {
27
+ string url = 1;
28
+ }
29
+
16
30
  service InstallerService {
17
31
  rpc GenerateInstaller(GenerateInstallerRequest) returns (GenerateInstallerResponse) {}
32
+ rpc GetInstallerUrl(GetInstallerUrlRequest) returns (GetInstallerUrlResponse) {}
18
33
  }