@lansweeper/installer-grpc 0.0.2
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 +8 -0
- package/buf.yaml +22 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +2 -0
- package/gen-proto/index.js +3 -0
- package/gen-proto/installer_grpc_pb.d.ts +41 -0
- package/gen-proto/installer_grpc_pb.js +44 -0
- package/gen-proto/installer_pb.d.ts +50 -0
- package/gen-proto/installer_pb.js +352 -0
- package/generated-go/installer.pb.go +229 -0
- package/generated-go/installer_grpc.pb.go +105 -0
- package/go.mod +3 -0
- package/package.json +19 -0
- package/proto/installer.proto +18 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 0.0.2 (2022-10-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @lansweeper/installer-grpc
|
package/buf.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
version: v1
|
|
2
|
+
build:
|
|
3
|
+
excludes:
|
|
4
|
+
- node_modules
|
|
5
|
+
lint:
|
|
6
|
+
use:
|
|
7
|
+
- DEFAULT
|
|
8
|
+
except:
|
|
9
|
+
- FIELD_LOWER_SNAKE_CASE
|
|
10
|
+
- PACKAGE_DIRECTORY_MATCH
|
|
11
|
+
- PACKAGE_SAME_DIRECTORY
|
|
12
|
+
- SERVICE_SUFFIX
|
|
13
|
+
- RPC_REQUEST_STANDARD_NAME
|
|
14
|
+
- RPC_RESPONSE_STANDARD_NAME
|
|
15
|
+
- RPC_REQUEST_RESPONSE_UNIQUE
|
|
16
|
+
- ENUM_ZERO_VALUE_SUFFIX
|
|
17
|
+
- ENUM_VALUE_PREFIX
|
|
18
|
+
breaking:
|
|
19
|
+
use:
|
|
20
|
+
- FILE
|
|
21
|
+
except:
|
|
22
|
+
- FILE_SAME_GO_PACKAGE
|
|
@@ -0,0 +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}}]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// package: lansweeper.installer.v1
|
|
2
|
+
// file: installer.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as installer_pb from "./installer_pb";
|
|
9
|
+
|
|
10
|
+
interface IInstallerServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
generateInstaller: IInstallerServiceService_IGenerateInstaller;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface IInstallerServiceService_IGenerateInstaller extends grpc.MethodDefinition<installer_pb.GenerateInstallerRequest, installer_pb.GenerateInstallerResponse> {
|
|
15
|
+
path: "/lansweeper.installer.v1.InstallerService/GenerateInstaller";
|
|
16
|
+
requestStream: false;
|
|
17
|
+
responseStream: false;
|
|
18
|
+
requestSerialize: grpc.serialize<installer_pb.GenerateInstallerRequest>;
|
|
19
|
+
requestDeserialize: grpc.deserialize<installer_pb.GenerateInstallerRequest>;
|
|
20
|
+
responseSerialize: grpc.serialize<installer_pb.GenerateInstallerResponse>;
|
|
21
|
+
responseDeserialize: grpc.deserialize<installer_pb.GenerateInstallerResponse>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const InstallerServiceService: IInstallerServiceService;
|
|
25
|
+
|
|
26
|
+
export interface IInstallerServiceServer extends grpc.UntypedServiceImplementation {
|
|
27
|
+
generateInstaller: grpc.handleUnaryCall<installer_pb.GenerateInstallerRequest, installer_pb.GenerateInstallerResponse>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface IInstallerServiceClient {
|
|
31
|
+
generateInstaller(request: installer_pb.GenerateInstallerRequest, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
|
|
32
|
+
generateInstaller(request: installer_pb.GenerateInstallerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
|
|
33
|
+
generateInstaller(request: installer_pb.GenerateInstallerRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class InstallerServiceClient extends grpc.Client implements IInstallerServiceClient {
|
|
37
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
38
|
+
public generateInstaller(request: installer_pb.GenerateInstallerRequest, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
|
|
39
|
+
public generateInstaller(request: installer_pb.GenerateInstallerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: installer_pb.GenerateInstallerResponse) => void): grpc.ClientUnaryCall;
|
|
40
|
+
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;
|
|
41
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var installer_pb = require('./installer_pb.js');
|
|
6
|
+
|
|
7
|
+
function serialize_lansweeper_installer_v1_GenerateInstallerRequest(arg) {
|
|
8
|
+
if (!(arg instanceof installer_pb.GenerateInstallerRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type lansweeper.installer.v1.GenerateInstallerRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_lansweeper_installer_v1_GenerateInstallerRequest(buffer_arg) {
|
|
15
|
+
return installer_pb.GenerateInstallerRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_lansweeper_installer_v1_GenerateInstallerResponse(arg) {
|
|
19
|
+
if (!(arg instanceof installer_pb.GenerateInstallerResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type lansweeper.installer.v1.GenerateInstallerResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_lansweeper_installer_v1_GenerateInstallerResponse(buffer_arg) {
|
|
26
|
+
return installer_pb.GenerateInstallerResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var InstallerServiceService = exports.InstallerServiceService = {
|
|
31
|
+
generateInstaller: {
|
|
32
|
+
path: '/lansweeper.installer.v1.InstallerService/GenerateInstaller',
|
|
33
|
+
requestStream: false,
|
|
34
|
+
responseStream: false,
|
|
35
|
+
requestType: installer_pb.GenerateInstallerRequest,
|
|
36
|
+
responseType: installer_pb.GenerateInstallerResponse,
|
|
37
|
+
requestSerialize: serialize_lansweeper_installer_v1_GenerateInstallerRequest,
|
|
38
|
+
requestDeserialize: deserialize_lansweeper_installer_v1_GenerateInstallerRequest,
|
|
39
|
+
responseSerialize: serialize_lansweeper_installer_v1_GenerateInstallerResponse,
|
|
40
|
+
responseDeserialize: deserialize_lansweeper_installer_v1_GenerateInstallerResponse,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.InstallerServiceClient = grpc.makeGenericClientConstructor(InstallerServiceService);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// package: lansweeper.installer.v1
|
|
2
|
+
// file: installer.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class GenerateInstallerRequest extends jspb.Message {
|
|
10
|
+
getClientId(): string;
|
|
11
|
+
setClientId(value: string): GenerateInstallerRequest;
|
|
12
|
+
getClientSecret(): string;
|
|
13
|
+
setClientSecret(value: string): GenerateInstallerRequest;
|
|
14
|
+
|
|
15
|
+
serializeBinary(): Uint8Array;
|
|
16
|
+
toObject(includeInstance?: boolean): GenerateInstallerRequest.AsObject;
|
|
17
|
+
static toObject(includeInstance: boolean, msg: GenerateInstallerRequest): GenerateInstallerRequest.AsObject;
|
|
18
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
19
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
20
|
+
static serializeBinaryToWriter(message: GenerateInstallerRequest, writer: jspb.BinaryWriter): void;
|
|
21
|
+
static deserializeBinary(bytes: Uint8Array): GenerateInstallerRequest;
|
|
22
|
+
static deserializeBinaryFromReader(message: GenerateInstallerRequest, reader: jspb.BinaryReader): GenerateInstallerRequest;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace GenerateInstallerRequest {
|
|
26
|
+
export type AsObject = {
|
|
27
|
+
clientId: string,
|
|
28
|
+
clientSecret: string,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class GenerateInstallerResponse extends jspb.Message {
|
|
33
|
+
getSuccess(): boolean;
|
|
34
|
+
setSuccess(value: boolean): GenerateInstallerResponse;
|
|
35
|
+
|
|
36
|
+
serializeBinary(): Uint8Array;
|
|
37
|
+
toObject(includeInstance?: boolean): GenerateInstallerResponse.AsObject;
|
|
38
|
+
static toObject(includeInstance: boolean, msg: GenerateInstallerResponse): GenerateInstallerResponse.AsObject;
|
|
39
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
40
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
41
|
+
static serializeBinaryToWriter(message: GenerateInstallerResponse, writer: jspb.BinaryWriter): void;
|
|
42
|
+
static deserializeBinary(bytes: Uint8Array): GenerateInstallerResponse;
|
|
43
|
+
static deserializeBinaryFromReader(message: GenerateInstallerResponse, reader: jspb.BinaryReader): GenerateInstallerResponse;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export namespace GenerateInstallerResponse {
|
|
47
|
+
export type AsObject = {
|
|
48
|
+
success: boolean,
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
// source: installer.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = Function('return this')();
|
|
17
|
+
|
|
18
|
+
goog.exportSymbol('proto.lansweeper.installer.v1.GenerateInstallerRequest', null, global);
|
|
19
|
+
goog.exportSymbol('proto.lansweeper.installer.v1.GenerateInstallerResponse', null, global);
|
|
20
|
+
/**
|
|
21
|
+
* Generated by JsPbCodeGenerator.
|
|
22
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
23
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
24
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
25
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
26
|
+
* valid.
|
|
27
|
+
* @extends {jspb.Message}
|
|
28
|
+
* @constructor
|
|
29
|
+
*/
|
|
30
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest = function(opt_data) {
|
|
31
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
32
|
+
};
|
|
33
|
+
goog.inherits(proto.lansweeper.installer.v1.GenerateInstallerRequest, jspb.Message);
|
|
34
|
+
if (goog.DEBUG && !COMPILED) {
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @override
|
|
38
|
+
*/
|
|
39
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.displayName = 'proto.lansweeper.installer.v1.GenerateInstallerRequest';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Generated by JsPbCodeGenerator.
|
|
43
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
44
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
45
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
46
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
47
|
+
* valid.
|
|
48
|
+
* @extends {jspb.Message}
|
|
49
|
+
* @constructor
|
|
50
|
+
*/
|
|
51
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse = function(opt_data) {
|
|
52
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
53
|
+
};
|
|
54
|
+
goog.inherits(proto.lansweeper.installer.v1.GenerateInstallerResponse, jspb.Message);
|
|
55
|
+
if (goog.DEBUG && !COMPILED) {
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @override
|
|
59
|
+
*/
|
|
60
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.displayName = 'proto.lansweeper.installer.v1.GenerateInstallerResponse';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
66
|
+
/**
|
|
67
|
+
* Creates an object representation of this proto.
|
|
68
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
69
|
+
* Optional fields that are not set will be set to undefined.
|
|
70
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71
|
+
* For the list of reserved names please see:
|
|
72
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
73
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
74
|
+
* JSPB instance for transitional soy proto support:
|
|
75
|
+
* http://goto/soy-param-migration
|
|
76
|
+
* @return {!Object}
|
|
77
|
+
*/
|
|
78
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
79
|
+
return proto.lansweeper.installer.v1.GenerateInstallerRequest.toObject(opt_includeInstance, this);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Static version of the {@see toObject} method.
|
|
85
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
86
|
+
* the JSPB instance for transitional soy proto support:
|
|
87
|
+
* http://goto/soy-param-migration
|
|
88
|
+
* @param {!proto.lansweeper.installer.v1.GenerateInstallerRequest} msg The msg instance to transform.
|
|
89
|
+
* @return {!Object}
|
|
90
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91
|
+
*/
|
|
92
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.toObject = function(includeInstance, msg) {
|
|
93
|
+
var f, obj = {
|
|
94
|
+
clientId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
95
|
+
clientSecret: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
if (includeInstance) {
|
|
99
|
+
obj.$jspbMessageInstance = msg;
|
|
100
|
+
}
|
|
101
|
+
return obj;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Deserializes binary data (in protobuf wire format).
|
|
108
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
109
|
+
* @return {!proto.lansweeper.installer.v1.GenerateInstallerRequest}
|
|
110
|
+
*/
|
|
111
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.deserializeBinary = function(bytes) {
|
|
112
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113
|
+
var msg = new proto.lansweeper.installer.v1.GenerateInstallerRequest;
|
|
114
|
+
return proto.lansweeper.installer.v1.GenerateInstallerRequest.deserializeBinaryFromReader(msg, reader);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
120
|
+
* given reader into the given message object.
|
|
121
|
+
* @param {!proto.lansweeper.installer.v1.GenerateInstallerRequest} msg The message object to deserialize into.
|
|
122
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
123
|
+
* @return {!proto.lansweeper.installer.v1.GenerateInstallerRequest}
|
|
124
|
+
*/
|
|
125
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
126
|
+
while (reader.nextField()) {
|
|
127
|
+
if (reader.isEndGroup()) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
var field = reader.getFieldNumber();
|
|
131
|
+
switch (field) {
|
|
132
|
+
case 1:
|
|
133
|
+
var value = /** @type {string} */ (reader.readString());
|
|
134
|
+
msg.setClientId(value);
|
|
135
|
+
break;
|
|
136
|
+
case 2:
|
|
137
|
+
var value = /** @type {string} */ (reader.readString());
|
|
138
|
+
msg.setClientSecret(value);
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
reader.skipField();
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return msg;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
151
|
+
* @return {!Uint8Array}
|
|
152
|
+
*/
|
|
153
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.prototype.serializeBinary = function() {
|
|
154
|
+
var writer = new jspb.BinaryWriter();
|
|
155
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.serializeBinaryToWriter(this, writer);
|
|
156
|
+
return writer.getResultBuffer();
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
162
|
+
* format), writing to the given BinaryWriter.
|
|
163
|
+
* @param {!proto.lansweeper.installer.v1.GenerateInstallerRequest} message
|
|
164
|
+
* @param {!jspb.BinaryWriter} writer
|
|
165
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
166
|
+
*/
|
|
167
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
168
|
+
var f = undefined;
|
|
169
|
+
f = message.getClientId();
|
|
170
|
+
if (f.length > 0) {
|
|
171
|
+
writer.writeString(
|
|
172
|
+
1,
|
|
173
|
+
f
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
f = message.getClientSecret();
|
|
177
|
+
if (f.length > 0) {
|
|
178
|
+
writer.writeString(
|
|
179
|
+
2,
|
|
180
|
+
f
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* optional string client_id = 1;
|
|
188
|
+
* @return {string}
|
|
189
|
+
*/
|
|
190
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.prototype.getClientId = function() {
|
|
191
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @param {string} value
|
|
197
|
+
* @return {!proto.lansweeper.installer.v1.GenerateInstallerRequest} returns this
|
|
198
|
+
*/
|
|
199
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.prototype.setClientId = function(value) {
|
|
200
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* optional string client_secret = 2;
|
|
206
|
+
* @return {string}
|
|
207
|
+
*/
|
|
208
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.prototype.getClientSecret = function() {
|
|
209
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {string} value
|
|
215
|
+
* @return {!proto.lansweeper.installer.v1.GenerateInstallerRequest} returns this
|
|
216
|
+
*/
|
|
217
|
+
proto.lansweeper.installer.v1.GenerateInstallerRequest.prototype.setClientSecret = function(value) {
|
|
218
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
226
|
+
/**
|
|
227
|
+
* Creates an object representation of this proto.
|
|
228
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
229
|
+
* Optional fields that are not set will be set to undefined.
|
|
230
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
231
|
+
* For the list of reserved names please see:
|
|
232
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
233
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
234
|
+
* JSPB instance for transitional soy proto support:
|
|
235
|
+
* http://goto/soy-param-migration
|
|
236
|
+
* @return {!Object}
|
|
237
|
+
*/
|
|
238
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.prototype.toObject = function(opt_includeInstance) {
|
|
239
|
+
return proto.lansweeper.installer.v1.GenerateInstallerResponse.toObject(opt_includeInstance, this);
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Static version of the {@see toObject} method.
|
|
245
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
246
|
+
* the JSPB instance for transitional soy proto support:
|
|
247
|
+
* http://goto/soy-param-migration
|
|
248
|
+
* @param {!proto.lansweeper.installer.v1.GenerateInstallerResponse} msg The msg instance to transform.
|
|
249
|
+
* @return {!Object}
|
|
250
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
251
|
+
*/
|
|
252
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.toObject = function(includeInstance, msg) {
|
|
253
|
+
var f, obj = {
|
|
254
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
if (includeInstance) {
|
|
258
|
+
obj.$jspbMessageInstance = msg;
|
|
259
|
+
}
|
|
260
|
+
return obj;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Deserializes binary data (in protobuf wire format).
|
|
267
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
268
|
+
* @return {!proto.lansweeper.installer.v1.GenerateInstallerResponse}
|
|
269
|
+
*/
|
|
270
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.deserializeBinary = function(bytes) {
|
|
271
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
272
|
+
var msg = new proto.lansweeper.installer.v1.GenerateInstallerResponse;
|
|
273
|
+
return proto.lansweeper.installer.v1.GenerateInstallerResponse.deserializeBinaryFromReader(msg, reader);
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
279
|
+
* given reader into the given message object.
|
|
280
|
+
* @param {!proto.lansweeper.installer.v1.GenerateInstallerResponse} msg The message object to deserialize into.
|
|
281
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
282
|
+
* @return {!proto.lansweeper.installer.v1.GenerateInstallerResponse}
|
|
283
|
+
*/
|
|
284
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
285
|
+
while (reader.nextField()) {
|
|
286
|
+
if (reader.isEndGroup()) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
var field = reader.getFieldNumber();
|
|
290
|
+
switch (field) {
|
|
291
|
+
case 1:
|
|
292
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
293
|
+
msg.setSuccess(value);
|
|
294
|
+
break;
|
|
295
|
+
default:
|
|
296
|
+
reader.skipField();
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return msg;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
306
|
+
* @return {!Uint8Array}
|
|
307
|
+
*/
|
|
308
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.prototype.serializeBinary = function() {
|
|
309
|
+
var writer = new jspb.BinaryWriter();
|
|
310
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.serializeBinaryToWriter(this, writer);
|
|
311
|
+
return writer.getResultBuffer();
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
317
|
+
* format), writing to the given BinaryWriter.
|
|
318
|
+
* @param {!proto.lansweeper.installer.v1.GenerateInstallerResponse} message
|
|
319
|
+
* @param {!jspb.BinaryWriter} writer
|
|
320
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
321
|
+
*/
|
|
322
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.serializeBinaryToWriter = function(message, writer) {
|
|
323
|
+
var f = undefined;
|
|
324
|
+
f = message.getSuccess();
|
|
325
|
+
if (f) {
|
|
326
|
+
writer.writeBool(
|
|
327
|
+
1,
|
|
328
|
+
f
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* optional bool success = 1;
|
|
336
|
+
* @return {boolean}
|
|
337
|
+
*/
|
|
338
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.prototype.getSuccess = function() {
|
|
339
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @param {boolean} value
|
|
345
|
+
* @return {!proto.lansweeper.installer.v1.GenerateInstallerResponse} returns this
|
|
346
|
+
*/
|
|
347
|
+
proto.lansweeper.installer.v1.GenerateInstallerResponse.prototype.setSuccess = function(value) {
|
|
348
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
goog.object.extend(exports, proto.lansweeper.installer.v1);
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-go v1.28.1
|
|
4
|
+
// protoc v3.6.1
|
|
5
|
+
// source: installer.proto
|
|
6
|
+
|
|
7
|
+
package proto
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
11
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
12
|
+
reflect "reflect"
|
|
13
|
+
sync "sync"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
const (
|
|
17
|
+
// Verify that this generated code is sufficiently up-to-date.
|
|
18
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
19
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
20
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
type GenerateInstallerRequest struct {
|
|
24
|
+
state protoimpl.MessageState
|
|
25
|
+
sizeCache protoimpl.SizeCache
|
|
26
|
+
unknownFields protoimpl.UnknownFields
|
|
27
|
+
|
|
28
|
+
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
29
|
+
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
func (x *GenerateInstallerRequest) Reset() {
|
|
33
|
+
*x = GenerateInstallerRequest{}
|
|
34
|
+
if protoimpl.UnsafeEnabled {
|
|
35
|
+
mi := &file_installer_proto_msgTypes[0]
|
|
36
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
37
|
+
ms.StoreMessageInfo(mi)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
func (x *GenerateInstallerRequest) String() string {
|
|
42
|
+
return protoimpl.X.MessageStringOf(x)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
func (*GenerateInstallerRequest) ProtoMessage() {}
|
|
46
|
+
|
|
47
|
+
func (x *GenerateInstallerRequest) ProtoReflect() protoreflect.Message {
|
|
48
|
+
mi := &file_installer_proto_msgTypes[0]
|
|
49
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
50
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
51
|
+
if ms.LoadMessageInfo() == nil {
|
|
52
|
+
ms.StoreMessageInfo(mi)
|
|
53
|
+
}
|
|
54
|
+
return ms
|
|
55
|
+
}
|
|
56
|
+
return mi.MessageOf(x)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Deprecated: Use GenerateInstallerRequest.ProtoReflect.Descriptor instead.
|
|
60
|
+
func (*GenerateInstallerRequest) Descriptor() ([]byte, []int) {
|
|
61
|
+
return file_installer_proto_rawDescGZIP(), []int{0}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
func (x *GenerateInstallerRequest) GetClientId() string {
|
|
65
|
+
if x != nil {
|
|
66
|
+
return x.ClientId
|
|
67
|
+
}
|
|
68
|
+
return ""
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
func (x *GenerateInstallerRequest) GetClientSecret() string {
|
|
72
|
+
if x != nil {
|
|
73
|
+
return x.ClientSecret
|
|
74
|
+
}
|
|
75
|
+
return ""
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
type GenerateInstallerResponse struct {
|
|
79
|
+
state protoimpl.MessageState
|
|
80
|
+
sizeCache protoimpl.SizeCache
|
|
81
|
+
unknownFields protoimpl.UnknownFields
|
|
82
|
+
|
|
83
|
+
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
func (x *GenerateInstallerResponse) Reset() {
|
|
87
|
+
*x = GenerateInstallerResponse{}
|
|
88
|
+
if protoimpl.UnsafeEnabled {
|
|
89
|
+
mi := &file_installer_proto_msgTypes[1]
|
|
90
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
91
|
+
ms.StoreMessageInfo(mi)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
func (x *GenerateInstallerResponse) String() string {
|
|
96
|
+
return protoimpl.X.MessageStringOf(x)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
func (*GenerateInstallerResponse) ProtoMessage() {}
|
|
100
|
+
|
|
101
|
+
func (x *GenerateInstallerResponse) ProtoReflect() protoreflect.Message {
|
|
102
|
+
mi := &file_installer_proto_msgTypes[1]
|
|
103
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
104
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
105
|
+
if ms.LoadMessageInfo() == nil {
|
|
106
|
+
ms.StoreMessageInfo(mi)
|
|
107
|
+
}
|
|
108
|
+
return ms
|
|
109
|
+
}
|
|
110
|
+
return mi.MessageOf(x)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Deprecated: Use GenerateInstallerResponse.ProtoReflect.Descriptor instead.
|
|
114
|
+
func (*GenerateInstallerResponse) Descriptor() ([]byte, []int) {
|
|
115
|
+
return file_installer_proto_rawDescGZIP(), []int{1}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
func (x *GenerateInstallerResponse) GetSuccess() bool {
|
|
119
|
+
if x != nil {
|
|
120
|
+
return x.Success
|
|
121
|
+
}
|
|
122
|
+
return false
|
|
123
|
+
}
|
|
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,
|
|
146
|
+
0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c,
|
|
147
|
+
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,
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
var (
|
|
154
|
+
file_installer_proto_rawDescOnce sync.Once
|
|
155
|
+
file_installer_proto_rawDescData = file_installer_proto_rawDesc
|
|
156
|
+
)
|
|
157
|
+
|
|
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)
|
|
161
|
+
})
|
|
162
|
+
return file_installer_proto_rawDescData
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var file_installer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
166
|
+
var file_installer_proto_goTypes = []interface{}{
|
|
167
|
+
(*GenerateInstallerRequest)(nil), // 0: lansweeper.installer.v1.GenerateInstallerRequest
|
|
168
|
+
(*GenerateInstallerResponse)(nil), // 1: lansweeper.installer.v1.GenerateInstallerResponse
|
|
169
|
+
}
|
|
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
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
func init() { file_installer_proto_init() }
|
|
181
|
+
func file_installer_proto_init() {
|
|
182
|
+
if File_installer_proto != nil {
|
|
183
|
+
return
|
|
184
|
+
}
|
|
185
|
+
if !protoimpl.UnsafeEnabled {
|
|
186
|
+
file_installer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
187
|
+
switch v := v.(*GenerateInstallerRequest); i {
|
|
188
|
+
case 0:
|
|
189
|
+
return &v.state
|
|
190
|
+
case 1:
|
|
191
|
+
return &v.sizeCache
|
|
192
|
+
case 2:
|
|
193
|
+
return &v.unknownFields
|
|
194
|
+
default:
|
|
195
|
+
return nil
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
file_installer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
199
|
+
switch v := v.(*GenerateInstallerResponse); i {
|
|
200
|
+
case 0:
|
|
201
|
+
return &v.state
|
|
202
|
+
case 1:
|
|
203
|
+
return &v.sizeCache
|
|
204
|
+
case 2:
|
|
205
|
+
return &v.unknownFields
|
|
206
|
+
default:
|
|
207
|
+
return nil
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
type x struct{}
|
|
212
|
+
out := protoimpl.TypeBuilder{
|
|
213
|
+
File: protoimpl.DescBuilder{
|
|
214
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
215
|
+
RawDescriptor: file_installer_proto_rawDesc,
|
|
216
|
+
NumEnums: 0,
|
|
217
|
+
NumMessages: 2,
|
|
218
|
+
NumExtensions: 0,
|
|
219
|
+
NumServices: 1,
|
|
220
|
+
},
|
|
221
|
+
GoTypes: file_installer_proto_goTypes,
|
|
222
|
+
DependencyIndexes: file_installer_proto_depIdxs,
|
|
223
|
+
MessageInfos: file_installer_proto_msgTypes,
|
|
224
|
+
}.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
|
|
229
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// - protoc-gen-go-grpc v1.2.0
|
|
4
|
+
// - protoc v3.6.1
|
|
5
|
+
// source: installer.proto
|
|
6
|
+
|
|
7
|
+
package proto
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
context "context"
|
|
11
|
+
grpc "google.golang.org/grpc"
|
|
12
|
+
codes "google.golang.org/grpc/codes"
|
|
13
|
+
status "google.golang.org/grpc/status"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
// This is a compile-time assertion to ensure that this generated file
|
|
17
|
+
// is compatible with the grpc package it is being compiled against.
|
|
18
|
+
// Requires gRPC-Go v1.32.0 or later.
|
|
19
|
+
const _ = grpc.SupportPackageIsVersion7
|
|
20
|
+
|
|
21
|
+
// InstallerServiceClient is the client API for InstallerService service.
|
|
22
|
+
//
|
|
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
|
+
type InstallerServiceClient interface {
|
|
25
|
+
GenerateInstaller(ctx context.Context, in *GenerateInstallerRequest, opts ...grpc.CallOption) (*GenerateInstallerResponse, error)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type installerServiceClient struct {
|
|
29
|
+
cc grpc.ClientConnInterface
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
func NewInstallerServiceClient(cc grpc.ClientConnInterface) InstallerServiceClient {
|
|
33
|
+
return &installerServiceClient{cc}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
func (c *installerServiceClient) GenerateInstaller(ctx context.Context, in *GenerateInstallerRequest, opts ...grpc.CallOption) (*GenerateInstallerResponse, error) {
|
|
37
|
+
out := new(GenerateInstallerResponse)
|
|
38
|
+
err := c.cc.Invoke(ctx, "/lansweeper.installer.v1.InstallerService/GenerateInstaller", in, out, opts...)
|
|
39
|
+
if err != nil {
|
|
40
|
+
return nil, err
|
|
41
|
+
}
|
|
42
|
+
return out, nil
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// InstallerServiceServer is the server API for InstallerService service.
|
|
46
|
+
// All implementations must embed UnimplementedInstallerServiceServer
|
|
47
|
+
// for forward compatibility
|
|
48
|
+
type InstallerServiceServer interface {
|
|
49
|
+
GenerateInstaller(context.Context, *GenerateInstallerRequest) (*GenerateInstallerResponse, error)
|
|
50
|
+
mustEmbedUnimplementedInstallerServiceServer()
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// UnimplementedInstallerServiceServer must be embedded to have forward compatible implementations.
|
|
54
|
+
type UnimplementedInstallerServiceServer struct {
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
func (UnimplementedInstallerServiceServer) GenerateInstaller(context.Context, *GenerateInstallerRequest) (*GenerateInstallerResponse, error) {
|
|
58
|
+
return nil, status.Errorf(codes.Unimplemented, "method GenerateInstaller not implemented")
|
|
59
|
+
}
|
|
60
|
+
func (UnimplementedInstallerServiceServer) mustEmbedUnimplementedInstallerServiceServer() {}
|
|
61
|
+
|
|
62
|
+
// UnsafeInstallerServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
63
|
+
// Use of this interface is not recommended, as added methods to InstallerServiceServer will
|
|
64
|
+
// result in compilation errors.
|
|
65
|
+
type UnsafeInstallerServiceServer interface {
|
|
66
|
+
mustEmbedUnimplementedInstallerServiceServer()
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
func RegisterInstallerServiceServer(s grpc.ServiceRegistrar, srv InstallerServiceServer) {
|
|
70
|
+
s.RegisterService(&InstallerService_ServiceDesc, srv)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
func _InstallerService_GenerateInstaller_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
74
|
+
in := new(GenerateInstallerRequest)
|
|
75
|
+
if err := dec(in); err != nil {
|
|
76
|
+
return nil, err
|
|
77
|
+
}
|
|
78
|
+
if interceptor == nil {
|
|
79
|
+
return srv.(InstallerServiceServer).GenerateInstaller(ctx, in)
|
|
80
|
+
}
|
|
81
|
+
info := &grpc.UnaryServerInfo{
|
|
82
|
+
Server: srv,
|
|
83
|
+
FullMethod: "/lansweeper.installer.v1.InstallerService/GenerateInstaller",
|
|
84
|
+
}
|
|
85
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
86
|
+
return srv.(InstallerServiceServer).GenerateInstaller(ctx, req.(*GenerateInstallerRequest))
|
|
87
|
+
}
|
|
88
|
+
return interceptor(ctx, in, info, handler)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// InstallerService_ServiceDesc is the grpc.ServiceDesc for InstallerService service.
|
|
92
|
+
// It's only intended for direct use with grpc.RegisterService,
|
|
93
|
+
// and not to be introspected or modified (even as a copy)
|
|
94
|
+
var InstallerService_ServiceDesc = grpc.ServiceDesc{
|
|
95
|
+
ServiceName: "lansweeper.installer.v1.InstallerService",
|
|
96
|
+
HandlerType: (*InstallerServiceServer)(nil),
|
|
97
|
+
Methods: []grpc.MethodDesc{
|
|
98
|
+
{
|
|
99
|
+
MethodName: "GenerateInstaller",
|
|
100
|
+
Handler: _InstallerService_GenerateInstaller_Handler,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
Streams: []grpc.StreamDesc{},
|
|
104
|
+
Metadata: "installer.proto",
|
|
105
|
+
}
|
package/go.mod
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lansweeper/installer-grpc",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Installer grpc",
|
|
5
|
+
"main": "gen-proto/index.js",
|
|
6
|
+
"types": "gen-proto/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"google-protobuf": "^3.17.0"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@grpc/grpc-js": "^1.6.2",
|
|
13
|
+
"@types/google-protobuf": "^3.15.5"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@grpc/grpc-js": "^1.6.2"
|
|
17
|
+
},
|
|
18
|
+
"gitHead": "47226bd945bf6d590523aa2bbebc8db186f83cac"
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.installer.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "./generated-go";
|
|
6
|
+
|
|
7
|
+
message GenerateInstallerRequest {
|
|
8
|
+
string client_id = 1;
|
|
9
|
+
string client_secret = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message GenerateInstallerResponse {
|
|
13
|
+
bool success = 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
service InstallerService {
|
|
17
|
+
rpc GenerateInstaller(GenerateInstallerRequest) returns (GenerateInstallerResponse) {}
|
|
18
|
+
}
|