@lansweeper/install-api-grpc 0.0.4 → 0.0.6

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.
@@ -1 +1 @@
1
- {"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"}],"service":[{"name":"InstallService","method":[{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,26,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,30]},{"path":[4,0],"span":[4,0,9,1]},{"path":[4,0,1],"span":[4,8,27]},{"path":[4,0,2,0],"span":[5,2,21]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,16]},{"path":[4,0,2,0,3],"span":[5,19,20]},{"path":[4,0,2,1],"span":[6,2,25]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,20]},{"path":[4,0,2,1,3],"span":[6,23,24]},{"path":[4,0,2,2],"span":[7,2,24]},{"path":[4,0,2,2,5],"span":[7,2,8]},{"path":[4,0,2,2,1],"span":[7,9,19]},{"path":[4,0,2,2,3],"span":[7,22,23]},{"path":[4,0,2,3],"span":[8,2,29]},{"path":[4,0,2,3,5],"span":[8,2,8]},{"path":[4,0,2,3,1],"span":[8,9,24]},{"path":[4,0,2,3,3],"span":[8,27,28]},{"path":[4,1],"span":[11,0,12,1]},{"path":[4,1,1],"span":[11,8,28]},{"path":[4,2],"span":[14,0,18,1]},{"path":[4,2,1],"span":[14,8,32]},{"path":[4,2,2,0],"span":[15,2,21]},{"path":[4,2,2,0,5],"span":[15,2,8]},{"path":[4,2,2,0,1],"span":[15,9,16]},{"path":[4,2,2,0,3],"span":[15,19,20]},{"path":[4,2,2,1],"span":[16,2,25]},{"path":[4,2,2,1,5],"span":[16,2,8]},{"path":[4,2,2,1,1],"span":[16,9,20]},{"path":[4,2,2,1,3],"span":[16,23,24]},{"path":[4,2,2,2],"span":[17,2,29]},{"path":[4,2,2,2,5],"span":[17,2,8]},{"path":[4,2,2,2,1],"span":[17,9,24]},{"path":[4,2,2,2,3],"span":[17,27,28]},{"path":[4,3],"span":[20,0,21,1]},{"path":[4,3,1],"span":[20,8,33]},{"path":[6,0],"span":[23,0,26,1]},{"path":[6,0,1],"span":[23,8,22]},{"path":[6,0,2,0],"span":[24,2,73]},{"path":[6,0,2,0,1],"span":[24,6,18]},{"path":[6,0,2,0,2],"span":[24,19,38]},{"path":[6,0,2,0,3],"span":[24,49,69]},{"path":[6,0,2,1],"span":[25,2,88]},{"path":[6,0,2,1,1],"span":[25,6,23]},{"path":[6,0,2,1,2],"span":[25,24,48]},{"path":[6,0,2,1,3],"span":[25,59,84]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
1
+ {"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"RemoveHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"RemoveHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,52,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,30]},{"path":[8],"span":[4,0,37]},{"path":[8,11],"span":[4,0,37]},{"path":[4,0],"span":[6,0,11,1]},{"path":[4,0,1],"span":[6,8,27]},{"path":[4,0,2,0],"span":[7,2,21]},{"path":[4,0,2,0,5],"span":[7,2,8]},{"path":[4,0,2,0,1],"span":[7,9,16]},{"path":[4,0,2,0,3],"span":[7,19,20]},{"path":[4,0,2,1],"span":[8,2,25]},{"path":[4,0,2,1,5],"span":[8,2,8]},{"path":[4,0,2,1,1],"span":[8,9,20]},{"path":[4,0,2,1,3],"span":[8,23,24]},{"path":[4,0,2,2],"span":[9,2,24]},{"path":[4,0,2,2,5],"span":[9,2,8]},{"path":[4,0,2,2,1],"span":[9,9,19]},{"path":[4,0,2,2,3],"span":[9,22,23]},{"path":[4,0,2,3],"span":[10,2,29]},{"path":[4,0,2,3,5],"span":[10,2,8]},{"path":[4,0,2,3,1],"span":[10,9,24]},{"path":[4,0,2,3,3],"span":[10,27,28]},{"path":[4,1],"span":[13,0,14,1]},{"path":[4,1,1],"span":[13,8,28]},{"path":[4,2],"span":[16,0,20,1]},{"path":[4,2,1],"span":[16,8,32]},{"path":[4,2,2,0],"span":[17,2,21]},{"path":[4,2,2,0,5],"span":[17,2,8]},{"path":[4,2,2,0,1],"span":[17,9,16]},{"path":[4,2,2,0,3],"span":[17,19,20]},{"path":[4,2,2,1],"span":[18,2,25]},{"path":[4,2,2,1,5],"span":[18,2,8]},{"path":[4,2,2,1,1],"span":[18,9,20]},{"path":[4,2,2,1,3],"span":[18,23,24]},{"path":[4,2,2,2],"span":[19,2,29]},{"path":[4,2,2,2,5],"span":[19,2,8]},{"path":[4,2,2,2,1],"span":[19,9,24]},{"path":[4,2,2,2,3],"span":[19,27,28]},{"path":[4,3],"span":[22,0,23,1]},{"path":[4,3,1],"span":[22,8,33]},{"path":[4,4],"span":[25,0,28,1]},{"path":[4,4,1],"span":[25,8,35]},{"path":[4,4,2,0],"span":[26,2,21]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,16]},{"path":[4,4,2,0,3],"span":[26,19,20]},{"path":[4,4,2,1],"span":[27,2,25]},{"path":[4,4,2,1,5],"span":[27,2,8]},{"path":[4,4,2,1,1],"span":[27,9,20]},{"path":[4,4,2,1,3],"span":[27,23,24]},{"path":[4,5],"span":[30,0,31,1]},{"path":[4,5,1],"span":[30,8,36]},{"path":[4,6],"span":[33,0,36,1]},{"path":[4,6,1],"span":[33,8,33]},{"path":[4,6,2,0],"span":[34,2,21]},{"path":[4,6,2,0,5],"span":[34,2,8]},{"path":[4,6,2,0,1],"span":[34,9,16]},{"path":[4,6,2,0,3],"span":[34,19,20]},{"path":[4,6,2,1],"span":[35,2,35]},{"path":[4,6,2,1,4],"span":[35,2,10]},{"path":[4,6,2,1,5],"span":[35,11,17]},{"path":[4,6,2,1,1],"span":[35,18,30]},{"path":[4,6,2,1,3],"span":[35,33,34]},{"path":[4,7],"span":[38,0,40,1]},{"path":[4,7,1],"span":[38,8,34]},{"path":[4,7,2,0],"span":[39,2,59]},{"path":[4,7,2,0,4],"span":[39,2,10]},{"path":[4,7,2,0,6],"span":[39,11,37]},{"path":[4,7,2,0,1],"span":[39,38,54]},{"path":[4,7,2,0,3],"span":[39,57,58]},{"path":[4,8],"span":[42,0,45,1]},{"path":[4,8,1],"span":[42,8,34]},{"path":[4,8,2,0],"span":[43,2,25]},{"path":[4,8,2,0,5],"span":[43,2,8]},{"path":[4,8,2,0,1],"span":[43,9,20]},{"path":[4,8,2,0,3],"span":[43,23,24]},{"path":[4,8,2,1],"span":[44,2,29]},{"path":[4,8,2,1,5],"span":[44,2,8]},{"path":[4,8,2,1,1],"span":[44,9,24]},{"path":[4,8,2,1,3],"span":[44,27,28]},{"path":[6,0],"span":[47,0,52,1]},{"path":[6,0,1],"span":[47,8,22]},{"path":[6,0,2,0],"span":[48,2,91]},{"path":[6,0,2,0,1],"span":[48,6,24]},{"path":[6,0,2,0,2],"span":[48,25,50]},{"path":[6,0,2,0,3],"span":[48,61,87]},{"path":[6,0,2,1],"span":[49,2,73]},{"path":[6,0,2,1,1],"span":[49,6,18]},{"path":[6,0,2,1,2],"span":[49,19,38]},{"path":[6,0,2,1,3],"span":[49,49,69]},{"path":[6,0,2,2],"span":[50,2,88]},{"path":[6,0,2,2,1],"span":[50,6,23]},{"path":[6,0,2,2,2],"span":[50,24,48]},{"path":[6,0,2,2,3],"span":[50,59,84]},{"path":[6,0,2,3],"span":[51,2,97]},{"path":[6,0,2,3,1],"span":[51,6,26]},{"path":[6,0,2,3,2],"span":[51,27,54]},{"path":[6,0,2,3,3],"span":[51,65,93]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -8,10 +8,21 @@ import * as grpc from "@grpc/grpc-js";
8
8
  import * as install_pb from "./install_pb";
9
9
 
10
10
  interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
+ getHubCertificates: IInstallServiceService_IGetHubCertificates;
11
12
  setPublicKey: IInstallServiceService_ISetPublicKey;
12
13
  setHubCertificate: IInstallServiceService_ISetHubCertificate;
14
+ removeHubCertificate: IInstallServiceService_IRemoveHubCertificate;
13
15
  }
14
16
 
17
+ interface IInstallServiceService_IGetHubCertificates extends grpc.MethodDefinition<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse> {
18
+ path: "/lansweeper.install.v1.InstallService/GetHubCertificates";
19
+ requestStream: false;
20
+ responseStream: false;
21
+ requestSerialize: grpc.serialize<install_pb.GetHubCertificatesRequest>;
22
+ requestDeserialize: grpc.deserialize<install_pb.GetHubCertificatesRequest>;
23
+ responseSerialize: grpc.serialize<install_pb.GetHubCertificatesResponse>;
24
+ responseDeserialize: grpc.deserialize<install_pb.GetHubCertificatesResponse>;
25
+ }
15
26
  interface IInstallServiceService_ISetPublicKey extends grpc.MethodDefinition<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse> {
16
27
  path: "/lansweeper.install.v1.InstallService/SetPublicKey";
17
28
  requestStream: false;
@@ -30,29 +41,52 @@ interface IInstallServiceService_ISetHubCertificate extends grpc.MethodDefinitio
30
41
  responseSerialize: grpc.serialize<install_pb.SetHubCertificateResponse>;
31
42
  responseDeserialize: grpc.deserialize<install_pb.SetHubCertificateResponse>;
32
43
  }
44
+ interface IInstallServiceService_IRemoveHubCertificate extends grpc.MethodDefinition<install_pb.RemoveHubCertificateRequest, install_pb.RemoveHubCertificateResponse> {
45
+ path: "/lansweeper.install.v1.InstallService/RemoveHubCertificate";
46
+ requestStream: false;
47
+ responseStream: false;
48
+ requestSerialize: grpc.serialize<install_pb.RemoveHubCertificateRequest>;
49
+ requestDeserialize: grpc.deserialize<install_pb.RemoveHubCertificateRequest>;
50
+ responseSerialize: grpc.serialize<install_pb.RemoveHubCertificateResponse>;
51
+ responseDeserialize: grpc.deserialize<install_pb.RemoveHubCertificateResponse>;
52
+ }
33
53
 
34
54
  export const InstallServiceService: IInstallServiceService;
35
55
 
36
56
  export interface IInstallServiceServer extends grpc.UntypedServiceImplementation {
57
+ getHubCertificates: grpc.handleUnaryCall<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse>;
37
58
  setPublicKey: grpc.handleUnaryCall<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse>;
38
59
  setHubCertificate: grpc.handleUnaryCall<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse>;
60
+ removeHubCertificate: grpc.handleUnaryCall<install_pb.RemoveHubCertificateRequest, install_pb.RemoveHubCertificateResponse>;
39
61
  }
40
62
 
41
63
  export interface IInstallServiceClient {
64
+ getHubCertificates(request: install_pb.GetHubCertificatesRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
65
+ getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
66
+ getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
42
67
  setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
43
68
  setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
44
69
  setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
45
70
  setHubCertificate(request: install_pb.SetHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
46
71
  setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
47
72
  setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
73
+ removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
74
+ removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
75
+ removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
48
76
  }
49
77
 
50
78
  export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
51
79
  constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
80
+ public getHubCertificates(request: install_pb.GetHubCertificatesRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
81
+ public getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
82
+ public getHubCertificates(request: install_pb.GetHubCertificatesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetHubCertificatesResponse) => void): grpc.ClientUnaryCall;
52
83
  public setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
53
84
  public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
54
85
  public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
55
86
  public setHubCertificate(request: install_pb.SetHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
56
87
  public setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
57
88
  public setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
89
+ public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
90
+ public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
91
+ public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
58
92
  }
@@ -4,6 +4,50 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var install_pb = require('./install_pb.js');
6
6
 
7
+ function serialize_lansweeper_install_v1_GetHubCertificatesRequest(arg) {
8
+ if (!(arg instanceof install_pb.GetHubCertificatesRequest)) {
9
+ throw new Error('Expected argument of type lansweeper.install.v1.GetHubCertificatesRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_lansweeper_install_v1_GetHubCertificatesRequest(buffer_arg) {
15
+ return install_pb.GetHubCertificatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_lansweeper_install_v1_GetHubCertificatesResponse(arg) {
19
+ if (!(arg instanceof install_pb.GetHubCertificatesResponse)) {
20
+ throw new Error('Expected argument of type lansweeper.install.v1.GetHubCertificatesResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_lansweeper_install_v1_GetHubCertificatesResponse(buffer_arg) {
26
+ return install_pb.GetHubCertificatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_lansweeper_install_v1_RemoveHubCertificateRequest(arg) {
30
+ if (!(arg instanceof install_pb.RemoveHubCertificateRequest)) {
31
+ throw new Error('Expected argument of type lansweeper.install.v1.RemoveHubCertificateRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_lansweeper_install_v1_RemoveHubCertificateRequest(buffer_arg) {
37
+ return install_pb.RemoveHubCertificateRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_lansweeper_install_v1_RemoveHubCertificateResponse(arg) {
41
+ if (!(arg instanceof install_pb.RemoveHubCertificateResponse)) {
42
+ throw new Error('Expected argument of type lansweeper.install.v1.RemoveHubCertificateResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_lansweeper_install_v1_RemoveHubCertificateResponse(buffer_arg) {
48
+ return install_pb.RemoveHubCertificateResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
7
51
  function serialize_lansweeper_install_v1_SetHubCertificateRequest(arg) {
8
52
  if (!(arg instanceof install_pb.SetHubCertificateRequest)) {
9
53
  throw new Error('Expected argument of type lansweeper.install.v1.SetHubCertificateRequest');
@@ -50,6 +94,17 @@ function deserialize_lansweeper_install_v1_SetPublicKeyResponse(buffer_arg) {
50
94
 
51
95
 
52
96
  var InstallServiceService = exports.InstallServiceService = {
97
+ getHubCertificates: {
98
+ path: '/lansweeper.install.v1.InstallService/GetHubCertificates',
99
+ requestStream: false,
100
+ responseStream: false,
101
+ requestType: install_pb.GetHubCertificatesRequest,
102
+ responseType: install_pb.GetHubCertificatesResponse,
103
+ requestSerialize: serialize_lansweeper_install_v1_GetHubCertificatesRequest,
104
+ requestDeserialize: deserialize_lansweeper_install_v1_GetHubCertificatesRequest,
105
+ responseSerialize: serialize_lansweeper_install_v1_GetHubCertificatesResponse,
106
+ responseDeserialize: deserialize_lansweeper_install_v1_GetHubCertificatesResponse,
107
+ },
53
108
  setPublicKey: {
54
109
  path: '/lansweeper.install.v1.InstallService/SetPublicKey',
55
110
  requestStream: false,
@@ -72,6 +127,17 @@ var InstallServiceService = exports.InstallServiceService = {
72
127
  responseSerialize: serialize_lansweeper_install_v1_SetHubCertificateResponse,
73
128
  responseDeserialize: deserialize_lansweeper_install_v1_SetHubCertificateResponse,
74
129
  },
130
+ removeHubCertificate: {
131
+ path: '/lansweeper.install.v1.InstallService/RemoveHubCertificate',
132
+ requestStream: false,
133
+ responseStream: false,
134
+ requestType: install_pb.RemoveHubCertificateRequest,
135
+ responseType: install_pb.RemoveHubCertificateResponse,
136
+ requestSerialize: serialize_lansweeper_install_v1_RemoveHubCertificateRequest,
137
+ requestDeserialize: deserialize_lansweeper_install_v1_RemoveHubCertificateRequest,
138
+ responseSerialize: serialize_lansweeper_install_v1_RemoveHubCertificateResponse,
139
+ responseDeserialize: deserialize_lansweeper_install_v1_RemoveHubCertificateResponse,
140
+ },
75
141
  };
76
142
 
77
143
  exports.InstallServiceClient = grpc.makeGenericClientConstructor(InstallServiceService);
@@ -94,3 +94,113 @@ export namespace SetHubCertificateResponse {
94
94
  export type AsObject = {
95
95
  }
96
96
  }
97
+
98
+ export class RemoveHubCertificateRequest extends jspb.Message {
99
+ getSiteId(): string;
100
+ setSiteId(value: string): RemoveHubCertificateRequest;
101
+ getInstallKey(): string;
102
+ setInstallKey(value: string): RemoveHubCertificateRequest;
103
+
104
+ serializeBinary(): Uint8Array;
105
+ toObject(includeInstance?: boolean): RemoveHubCertificateRequest.AsObject;
106
+ static toObject(includeInstance: boolean, msg: RemoveHubCertificateRequest): RemoveHubCertificateRequest.AsObject;
107
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
108
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
109
+ static serializeBinaryToWriter(message: RemoveHubCertificateRequest, writer: jspb.BinaryWriter): void;
110
+ static deserializeBinary(bytes: Uint8Array): RemoveHubCertificateRequest;
111
+ static deserializeBinaryFromReader(message: RemoveHubCertificateRequest, reader: jspb.BinaryReader): RemoveHubCertificateRequest;
112
+ }
113
+
114
+ export namespace RemoveHubCertificateRequest {
115
+ export type AsObject = {
116
+ siteId: string,
117
+ installKey: string,
118
+ }
119
+ }
120
+
121
+ export class RemoveHubCertificateResponse extends jspb.Message {
122
+
123
+ serializeBinary(): Uint8Array;
124
+ toObject(includeInstance?: boolean): RemoveHubCertificateResponse.AsObject;
125
+ static toObject(includeInstance: boolean, msg: RemoveHubCertificateResponse): RemoveHubCertificateResponse.AsObject;
126
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
127
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
128
+ static serializeBinaryToWriter(message: RemoveHubCertificateResponse, writer: jspb.BinaryWriter): void;
129
+ static deserializeBinary(bytes: Uint8Array): RemoveHubCertificateResponse;
130
+ static deserializeBinaryFromReader(message: RemoveHubCertificateResponse, reader: jspb.BinaryReader): RemoveHubCertificateResponse;
131
+ }
132
+
133
+ export namespace RemoveHubCertificateResponse {
134
+ export type AsObject = {
135
+ }
136
+ }
137
+
138
+ export class GetHubCertificatesRequest extends jspb.Message {
139
+ getSiteId(): string;
140
+ setSiteId(value: string): GetHubCertificatesRequest;
141
+ clearInstallKeysList(): void;
142
+ getInstallKeysList(): Array<string>;
143
+ setInstallKeysList(value: Array<string>): GetHubCertificatesRequest;
144
+ addInstallKeys(value: string, index?: number): string;
145
+
146
+ serializeBinary(): Uint8Array;
147
+ toObject(includeInstance?: boolean): GetHubCertificatesRequest.AsObject;
148
+ static toObject(includeInstance: boolean, msg: GetHubCertificatesRequest): GetHubCertificatesRequest.AsObject;
149
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
150
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
151
+ static serializeBinaryToWriter(message: GetHubCertificatesRequest, writer: jspb.BinaryWriter): void;
152
+ static deserializeBinary(bytes: Uint8Array): GetHubCertificatesRequest;
153
+ static deserializeBinaryFromReader(message: GetHubCertificatesRequest, reader: jspb.BinaryReader): GetHubCertificatesRequest;
154
+ }
155
+
156
+ export namespace GetHubCertificatesRequest {
157
+ export type AsObject = {
158
+ siteId: string,
159
+ installKeysList: Array<string>,
160
+ }
161
+ }
162
+
163
+ export class GetHubCertificatesResponse extends jspb.Message {
164
+ clearHubCertificatesList(): void;
165
+ getHubCertificatesList(): Array<HubCertificateInstallation>;
166
+ setHubCertificatesList(value: Array<HubCertificateInstallation>): GetHubCertificatesResponse;
167
+ addHubCertificates(value?: HubCertificateInstallation, index?: number): HubCertificateInstallation;
168
+
169
+ serializeBinary(): Uint8Array;
170
+ toObject(includeInstance?: boolean): GetHubCertificatesResponse.AsObject;
171
+ static toObject(includeInstance: boolean, msg: GetHubCertificatesResponse): GetHubCertificatesResponse.AsObject;
172
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
173
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
174
+ static serializeBinaryToWriter(message: GetHubCertificatesResponse, writer: jspb.BinaryWriter): void;
175
+ static deserializeBinary(bytes: Uint8Array): GetHubCertificatesResponse;
176
+ static deserializeBinaryFromReader(message: GetHubCertificatesResponse, reader: jspb.BinaryReader): GetHubCertificatesResponse;
177
+ }
178
+
179
+ export namespace GetHubCertificatesResponse {
180
+ export type AsObject = {
181
+ hubCertificatesList: Array<HubCertificateInstallation.AsObject>,
182
+ }
183
+ }
184
+
185
+ export class HubCertificateInstallation extends jspb.Message {
186
+ getInstallKey(): string;
187
+ setInstallKey(value: string): HubCertificateInstallation;
188
+ getHubCertificate(): string;
189
+ setHubCertificate(value: string): HubCertificateInstallation;
190
+
191
+ serializeBinary(): Uint8Array;
192
+ toObject(includeInstance?: boolean): HubCertificateInstallation.AsObject;
193
+ static toObject(includeInstance: boolean, msg: HubCertificateInstallation): HubCertificateInstallation.AsObject;
194
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
195
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
196
+ static serializeBinaryToWriter(message: HubCertificateInstallation, writer: jspb.BinaryWriter): void;
197
+ static deserializeBinary(bytes: Uint8Array): HubCertificateInstallation;
198
+ static deserializeBinaryFromReader(message: HubCertificateInstallation, reader: jspb.BinaryReader): HubCertificateInstallation;
199
+ }
200
+
201
+ export namespace HubCertificateInstallation {
202
+ export type AsObject = {
203
+ installKey: string,
204
+ hubCertificate: string,
205
+ }
206
+ }
@@ -21,6 +21,11 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesRequest', null, global);
25
+ goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesResponse', null, global);
26
+ goog.exportSymbol('proto.lansweeper.install.v1.HubCertificateInstallation', null, global);
27
+ goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateRequest', null, global);
28
+ goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateResponse', null, global);
24
29
  goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateRequest', null, global);
25
30
  goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateResponse', null, global);
26
31
  goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyRequest', null, global);
@@ -109,6 +114,111 @@ if (goog.DEBUG && !COMPILED) {
109
114
  */
110
115
  proto.lansweeper.install.v1.SetHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.SetHubCertificateResponse';
111
116
  }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.lansweeper.install.v1.RemoveHubCertificateRequest, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.displayName = 'proto.lansweeper.install.v1.RemoveHubCertificateRequest';
137
+ }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
150
+ };
151
+ goog.inherits(proto.lansweeper.install.v1.RemoveHubCertificateResponse, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.RemoveHubCertificateResponse';
158
+ }
159
+ /**
160
+ * Generated by JsPbCodeGenerator.
161
+ * @param {Array=} opt_data Optional initial data array, typically from a
162
+ * server response, or constructed directly in Javascript. The array is used
163
+ * in place and becomes part of the constructed object. It is not cloned.
164
+ * If no data is provided, the constructed object will be empty, but still
165
+ * valid.
166
+ * @extends {jspb.Message}
167
+ * @constructor
168
+ */
169
+ proto.lansweeper.install.v1.GetHubCertificatesRequest = function(opt_data) {
170
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetHubCertificatesRequest.repeatedFields_, null);
171
+ };
172
+ goog.inherits(proto.lansweeper.install.v1.GetHubCertificatesRequest, jspb.Message);
173
+ if (goog.DEBUG && !COMPILED) {
174
+ /**
175
+ * @public
176
+ * @override
177
+ */
178
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.displayName = 'proto.lansweeper.install.v1.GetHubCertificatesRequest';
179
+ }
180
+ /**
181
+ * Generated by JsPbCodeGenerator.
182
+ * @param {Array=} opt_data Optional initial data array, typically from a
183
+ * server response, or constructed directly in Javascript. The array is used
184
+ * in place and becomes part of the constructed object. It is not cloned.
185
+ * If no data is provided, the constructed object will be empty, but still
186
+ * valid.
187
+ * @extends {jspb.Message}
188
+ * @constructor
189
+ */
190
+ proto.lansweeper.install.v1.GetHubCertificatesResponse = function(opt_data) {
191
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetHubCertificatesResponse.repeatedFields_, null);
192
+ };
193
+ goog.inherits(proto.lansweeper.install.v1.GetHubCertificatesResponse, jspb.Message);
194
+ if (goog.DEBUG && !COMPILED) {
195
+ /**
196
+ * @public
197
+ * @override
198
+ */
199
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.displayName = 'proto.lansweeper.install.v1.GetHubCertificatesResponse';
200
+ }
201
+ /**
202
+ * Generated by JsPbCodeGenerator.
203
+ * @param {Array=} opt_data Optional initial data array, typically from a
204
+ * server response, or constructed directly in Javascript. The array is used
205
+ * in place and becomes part of the constructed object. It is not cloned.
206
+ * If no data is provided, the constructed object will be empty, but still
207
+ * valid.
208
+ * @extends {jspb.Message}
209
+ * @constructor
210
+ */
211
+ proto.lansweeper.install.v1.HubCertificateInstallation = function(opt_data) {
212
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
213
+ };
214
+ goog.inherits(proto.lansweeper.install.v1.HubCertificateInstallation, jspb.Message);
215
+ if (goog.DEBUG && !COMPILED) {
216
+ /**
217
+ * @public
218
+ * @override
219
+ */
220
+ proto.lansweeper.install.v1.HubCertificateInstallation.displayName = 'proto.lansweeper.install.v1.HubCertificateInstallation';
221
+ }
112
222
 
113
223
 
114
224
 
@@ -721,4 +831,771 @@ proto.lansweeper.install.v1.SetHubCertificateResponse.serializeBinaryToWriter =
721
831
  };
722
832
 
723
833
 
834
+
835
+
836
+
837
+ if (jspb.Message.GENERATE_TO_OBJECT) {
838
+ /**
839
+ * Creates an object representation of this proto.
840
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
841
+ * Optional fields that are not set will be set to undefined.
842
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
843
+ * For the list of reserved names please see:
844
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
845
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
846
+ * JSPB instance for transitional soy proto support:
847
+ * http://goto/soy-param-migration
848
+ * @return {!Object}
849
+ */
850
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.toObject = function(opt_includeInstance) {
851
+ return proto.lansweeper.install.v1.RemoveHubCertificateRequest.toObject(opt_includeInstance, this);
852
+ };
853
+
854
+
855
+ /**
856
+ * Static version of the {@see toObject} method.
857
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
858
+ * the JSPB instance for transitional soy proto support:
859
+ * http://goto/soy-param-migration
860
+ * @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} msg The msg instance to transform.
861
+ * @return {!Object}
862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
863
+ */
864
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.toObject = function(includeInstance, msg) {
865
+ var f, obj = {
866
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
867
+ installKey: jspb.Message.getFieldWithDefault(msg, 2, "")
868
+ };
869
+
870
+ if (includeInstance) {
871
+ obj.$jspbMessageInstance = msg;
872
+ }
873
+ return obj;
874
+ };
875
+ }
876
+
877
+
878
+ /**
879
+ * Deserializes binary data (in protobuf wire format).
880
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
881
+ * @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest}
882
+ */
883
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinary = function(bytes) {
884
+ var reader = new jspb.BinaryReader(bytes);
885
+ var msg = new proto.lansweeper.install.v1.RemoveHubCertificateRequest;
886
+ return proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinaryFromReader(msg, reader);
887
+ };
888
+
889
+
890
+ /**
891
+ * Deserializes binary data (in protobuf wire format) from the
892
+ * given reader into the given message object.
893
+ * @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} msg The message object to deserialize into.
894
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
895
+ * @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest}
896
+ */
897
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.deserializeBinaryFromReader = function(msg, reader) {
898
+ while (reader.nextField()) {
899
+ if (reader.isEndGroup()) {
900
+ break;
901
+ }
902
+ var field = reader.getFieldNumber();
903
+ switch (field) {
904
+ case 1:
905
+ var value = /** @type {string} */ (reader.readString());
906
+ msg.setSiteId(value);
907
+ break;
908
+ case 2:
909
+ var value = /** @type {string} */ (reader.readString());
910
+ msg.setInstallKey(value);
911
+ break;
912
+ default:
913
+ reader.skipField();
914
+ break;
915
+ }
916
+ }
917
+ return msg;
918
+ };
919
+
920
+
921
+ /**
922
+ * Serializes the message to binary data (in protobuf wire format).
923
+ * @return {!Uint8Array}
924
+ */
925
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.serializeBinary = function() {
926
+ var writer = new jspb.BinaryWriter();
927
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.serializeBinaryToWriter(this, writer);
928
+ return writer.getResultBuffer();
929
+ };
930
+
931
+
932
+ /**
933
+ * Serializes the given message to binary data (in protobuf wire
934
+ * format), writing to the given BinaryWriter.
935
+ * @param {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} message
936
+ * @param {!jspb.BinaryWriter} writer
937
+ * @suppress {unusedLocalVariables} f is only used for nested messages
938
+ */
939
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.serializeBinaryToWriter = function(message, writer) {
940
+ var f = undefined;
941
+ f = message.getSiteId();
942
+ if (f.length > 0) {
943
+ writer.writeString(
944
+ 1,
945
+ f
946
+ );
947
+ }
948
+ f = message.getInstallKey();
949
+ if (f.length > 0) {
950
+ writer.writeString(
951
+ 2,
952
+ f
953
+ );
954
+ }
955
+ };
956
+
957
+
958
+ /**
959
+ * optional string site_id = 1;
960
+ * @return {string}
961
+ */
962
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.getSiteId = function() {
963
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
964
+ };
965
+
966
+
967
+ /**
968
+ * @param {string} value
969
+ * @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} returns this
970
+ */
971
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.setSiteId = function(value) {
972
+ return jspb.Message.setProto3StringField(this, 1, value);
973
+ };
974
+
975
+
976
+ /**
977
+ * optional string install_key = 2;
978
+ * @return {string}
979
+ */
980
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.getInstallKey = function() {
981
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
982
+ };
983
+
984
+
985
+ /**
986
+ * @param {string} value
987
+ * @return {!proto.lansweeper.install.v1.RemoveHubCertificateRequest} returns this
988
+ */
989
+ proto.lansweeper.install.v1.RemoveHubCertificateRequest.prototype.setInstallKey = function(value) {
990
+ return jspb.Message.setProto3StringField(this, 2, value);
991
+ };
992
+
993
+
994
+
995
+
996
+
997
+ if (jspb.Message.GENERATE_TO_OBJECT) {
998
+ /**
999
+ * Creates an object representation of this proto.
1000
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1001
+ * Optional fields that are not set will be set to undefined.
1002
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1003
+ * For the list of reserved names please see:
1004
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1005
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1006
+ * JSPB instance for transitional soy proto support:
1007
+ * http://goto/soy-param-migration
1008
+ * @return {!Object}
1009
+ */
1010
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.prototype.toObject = function(opt_includeInstance) {
1011
+ return proto.lansweeper.install.v1.RemoveHubCertificateResponse.toObject(opt_includeInstance, this);
1012
+ };
1013
+
1014
+
1015
+ /**
1016
+ * Static version of the {@see toObject} method.
1017
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1018
+ * the JSPB instance for transitional soy proto support:
1019
+ * http://goto/soy-param-migration
1020
+ * @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} msg The msg instance to transform.
1021
+ * @return {!Object}
1022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1023
+ */
1024
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.toObject = function(includeInstance, msg) {
1025
+ var f, obj = {
1026
+
1027
+ };
1028
+
1029
+ if (includeInstance) {
1030
+ obj.$jspbMessageInstance = msg;
1031
+ }
1032
+ return obj;
1033
+ };
1034
+ }
1035
+
1036
+
1037
+ /**
1038
+ * Deserializes binary data (in protobuf wire format).
1039
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1040
+ * @return {!proto.lansweeper.install.v1.RemoveHubCertificateResponse}
1041
+ */
1042
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinary = function(bytes) {
1043
+ var reader = new jspb.BinaryReader(bytes);
1044
+ var msg = new proto.lansweeper.install.v1.RemoveHubCertificateResponse;
1045
+ return proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinaryFromReader(msg, reader);
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Deserializes binary data (in protobuf wire format) from the
1051
+ * given reader into the given message object.
1052
+ * @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} msg The message object to deserialize into.
1053
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1054
+ * @return {!proto.lansweeper.install.v1.RemoveHubCertificateResponse}
1055
+ */
1056
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.deserializeBinaryFromReader = function(msg, reader) {
1057
+ while (reader.nextField()) {
1058
+ if (reader.isEndGroup()) {
1059
+ break;
1060
+ }
1061
+ var field = reader.getFieldNumber();
1062
+ switch (field) {
1063
+ default:
1064
+ reader.skipField();
1065
+ break;
1066
+ }
1067
+ }
1068
+ return msg;
1069
+ };
1070
+
1071
+
1072
+ /**
1073
+ * Serializes the message to binary data (in protobuf wire format).
1074
+ * @return {!Uint8Array}
1075
+ */
1076
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.prototype.serializeBinary = function() {
1077
+ var writer = new jspb.BinaryWriter();
1078
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.serializeBinaryToWriter(this, writer);
1079
+ return writer.getResultBuffer();
1080
+ };
1081
+
1082
+
1083
+ /**
1084
+ * Serializes the given message to binary data (in protobuf wire
1085
+ * format), writing to the given BinaryWriter.
1086
+ * @param {!proto.lansweeper.install.v1.RemoveHubCertificateResponse} message
1087
+ * @param {!jspb.BinaryWriter} writer
1088
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1089
+ */
1090
+ proto.lansweeper.install.v1.RemoveHubCertificateResponse.serializeBinaryToWriter = function(message, writer) {
1091
+ var f = undefined;
1092
+ };
1093
+
1094
+
1095
+
1096
+ /**
1097
+ * List of repeated fields within this message type.
1098
+ * @private {!Array<number>}
1099
+ * @const
1100
+ */
1101
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.repeatedFields_ = [2];
1102
+
1103
+
1104
+
1105
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1106
+ /**
1107
+ * Creates an object representation of this proto.
1108
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1109
+ * Optional fields that are not set will be set to undefined.
1110
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1111
+ * For the list of reserved names please see:
1112
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1113
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1114
+ * JSPB instance for transitional soy proto support:
1115
+ * http://goto/soy-param-migration
1116
+ * @return {!Object}
1117
+ */
1118
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.toObject = function(opt_includeInstance) {
1119
+ return proto.lansweeper.install.v1.GetHubCertificatesRequest.toObject(opt_includeInstance, this);
1120
+ };
1121
+
1122
+
1123
+ /**
1124
+ * Static version of the {@see toObject} method.
1125
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1126
+ * the JSPB instance for transitional soy proto support:
1127
+ * http://goto/soy-param-migration
1128
+ * @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} msg The msg instance to transform.
1129
+ * @return {!Object}
1130
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1131
+ */
1132
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.toObject = function(includeInstance, msg) {
1133
+ var f, obj = {
1134
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1135
+ installKeysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1136
+ };
1137
+
1138
+ if (includeInstance) {
1139
+ obj.$jspbMessageInstance = msg;
1140
+ }
1141
+ return obj;
1142
+ };
1143
+ }
1144
+
1145
+
1146
+ /**
1147
+ * Deserializes binary data (in protobuf wire format).
1148
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1149
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest}
1150
+ */
1151
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinary = function(bytes) {
1152
+ var reader = new jspb.BinaryReader(bytes);
1153
+ var msg = new proto.lansweeper.install.v1.GetHubCertificatesRequest;
1154
+ return proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReader(msg, reader);
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * Deserializes binary data (in protobuf wire format) from the
1160
+ * given reader into the given message object.
1161
+ * @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} msg The message object to deserialize into.
1162
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1163
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest}
1164
+ */
1165
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.deserializeBinaryFromReader = function(msg, reader) {
1166
+ while (reader.nextField()) {
1167
+ if (reader.isEndGroup()) {
1168
+ break;
1169
+ }
1170
+ var field = reader.getFieldNumber();
1171
+ switch (field) {
1172
+ case 1:
1173
+ var value = /** @type {string} */ (reader.readString());
1174
+ msg.setSiteId(value);
1175
+ break;
1176
+ case 2:
1177
+ var value = /** @type {string} */ (reader.readString());
1178
+ msg.addInstallKeys(value);
1179
+ break;
1180
+ default:
1181
+ reader.skipField();
1182
+ break;
1183
+ }
1184
+ }
1185
+ return msg;
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * Serializes the message to binary data (in protobuf wire format).
1191
+ * @return {!Uint8Array}
1192
+ */
1193
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.serializeBinary = function() {
1194
+ var writer = new jspb.BinaryWriter();
1195
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter(this, writer);
1196
+ return writer.getResultBuffer();
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * Serializes the given message to binary data (in protobuf wire
1202
+ * format), writing to the given BinaryWriter.
1203
+ * @param {!proto.lansweeper.install.v1.GetHubCertificatesRequest} message
1204
+ * @param {!jspb.BinaryWriter} writer
1205
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1206
+ */
1207
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.serializeBinaryToWriter = function(message, writer) {
1208
+ var f = undefined;
1209
+ f = message.getSiteId();
1210
+ if (f.length > 0) {
1211
+ writer.writeString(
1212
+ 1,
1213
+ f
1214
+ );
1215
+ }
1216
+ f = message.getInstallKeysList();
1217
+ if (f.length > 0) {
1218
+ writer.writeRepeatedString(
1219
+ 2,
1220
+ f
1221
+ );
1222
+ }
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * optional string site_id = 1;
1228
+ * @return {string}
1229
+ */
1230
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.getSiteId = function() {
1231
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * @param {string} value
1237
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
1238
+ */
1239
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.setSiteId = function(value) {
1240
+ return jspb.Message.setProto3StringField(this, 1, value);
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * repeated string install_keys = 2;
1246
+ * @return {!Array<string>}
1247
+ */
1248
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.getInstallKeysList = function() {
1249
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * @param {!Array<string>} value
1255
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
1256
+ */
1257
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.setInstallKeysList = function(value) {
1258
+ return jspb.Message.setField(this, 2, value || []);
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * @param {string} value
1264
+ * @param {number=} opt_index
1265
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
1266
+ */
1267
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.addInstallKeys = function(value, opt_index) {
1268
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * Clears the list making it empty but non-null.
1274
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesRequest} returns this
1275
+ */
1276
+ proto.lansweeper.install.v1.GetHubCertificatesRequest.prototype.clearInstallKeysList = function() {
1277
+ return this.setInstallKeysList([]);
1278
+ };
1279
+
1280
+
1281
+
1282
+ /**
1283
+ * List of repeated fields within this message type.
1284
+ * @private {!Array<number>}
1285
+ * @const
1286
+ */
1287
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.repeatedFields_ = [1];
1288
+
1289
+
1290
+
1291
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1292
+ /**
1293
+ * Creates an object representation of this proto.
1294
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1295
+ * Optional fields that are not set will be set to undefined.
1296
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1297
+ * For the list of reserved names please see:
1298
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1299
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1300
+ * JSPB instance for transitional soy proto support:
1301
+ * http://goto/soy-param-migration
1302
+ * @return {!Object}
1303
+ */
1304
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.toObject = function(opt_includeInstance) {
1305
+ return proto.lansweeper.install.v1.GetHubCertificatesResponse.toObject(opt_includeInstance, this);
1306
+ };
1307
+
1308
+
1309
+ /**
1310
+ * Static version of the {@see toObject} method.
1311
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1312
+ * the JSPB instance for transitional soy proto support:
1313
+ * http://goto/soy-param-migration
1314
+ * @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} msg The msg instance to transform.
1315
+ * @return {!Object}
1316
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1317
+ */
1318
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.toObject = function(includeInstance, msg) {
1319
+ var f, obj = {
1320
+ hubCertificatesList: jspb.Message.toObjectList(msg.getHubCertificatesList(),
1321
+ proto.lansweeper.install.v1.HubCertificateInstallation.toObject, includeInstance)
1322
+ };
1323
+
1324
+ if (includeInstance) {
1325
+ obj.$jspbMessageInstance = msg;
1326
+ }
1327
+ return obj;
1328
+ };
1329
+ }
1330
+
1331
+
1332
+ /**
1333
+ * Deserializes binary data (in protobuf wire format).
1334
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1335
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse}
1336
+ */
1337
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinary = function(bytes) {
1338
+ var reader = new jspb.BinaryReader(bytes);
1339
+ var msg = new proto.lansweeper.install.v1.GetHubCertificatesResponse;
1340
+ return proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinaryFromReader(msg, reader);
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * Deserializes binary data (in protobuf wire format) from the
1346
+ * given reader into the given message object.
1347
+ * @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} msg The message object to deserialize into.
1348
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1349
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse}
1350
+ */
1351
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.deserializeBinaryFromReader = function(msg, reader) {
1352
+ while (reader.nextField()) {
1353
+ if (reader.isEndGroup()) {
1354
+ break;
1355
+ }
1356
+ var field = reader.getFieldNumber();
1357
+ switch (field) {
1358
+ case 1:
1359
+ var value = new proto.lansweeper.install.v1.HubCertificateInstallation;
1360
+ reader.readMessage(value,proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader);
1361
+ msg.addHubCertificates(value);
1362
+ break;
1363
+ default:
1364
+ reader.skipField();
1365
+ break;
1366
+ }
1367
+ }
1368
+ return msg;
1369
+ };
1370
+
1371
+
1372
+ /**
1373
+ * Serializes the message to binary data (in protobuf wire format).
1374
+ * @return {!Uint8Array}
1375
+ */
1376
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.serializeBinary = function() {
1377
+ var writer = new jspb.BinaryWriter();
1378
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.serializeBinaryToWriter(this, writer);
1379
+ return writer.getResultBuffer();
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * Serializes the given message to binary data (in protobuf wire
1385
+ * format), writing to the given BinaryWriter.
1386
+ * @param {!proto.lansweeper.install.v1.GetHubCertificatesResponse} message
1387
+ * @param {!jspb.BinaryWriter} writer
1388
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1389
+ */
1390
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.serializeBinaryToWriter = function(message, writer) {
1391
+ var f = undefined;
1392
+ f = message.getHubCertificatesList();
1393
+ if (f.length > 0) {
1394
+ writer.writeRepeatedMessage(
1395
+ 1,
1396
+ f,
1397
+ proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter
1398
+ );
1399
+ }
1400
+ };
1401
+
1402
+
1403
+ /**
1404
+ * repeated HubCertificateInstallation hub_certificates = 1;
1405
+ * @return {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>}
1406
+ */
1407
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.getHubCertificatesList = function() {
1408
+ return /** @type{!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} */ (
1409
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.HubCertificateInstallation, 1));
1410
+ };
1411
+
1412
+
1413
+ /**
1414
+ * @param {!Array<!proto.lansweeper.install.v1.HubCertificateInstallation>} value
1415
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse} returns this
1416
+ */
1417
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.setHubCertificatesList = function(value) {
1418
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1419
+ };
1420
+
1421
+
1422
+ /**
1423
+ * @param {!proto.lansweeper.install.v1.HubCertificateInstallation=} opt_value
1424
+ * @param {number=} opt_index
1425
+ * @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
1426
+ */
1427
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.addHubCertificates = function(opt_value, opt_index) {
1428
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.HubCertificateInstallation, opt_index);
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * Clears the list making it empty but non-null.
1434
+ * @return {!proto.lansweeper.install.v1.GetHubCertificatesResponse} returns this
1435
+ */
1436
+ proto.lansweeper.install.v1.GetHubCertificatesResponse.prototype.clearHubCertificatesList = function() {
1437
+ return this.setHubCertificatesList([]);
1438
+ };
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1445
+ /**
1446
+ * Creates an object representation of this proto.
1447
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1448
+ * Optional fields that are not set will be set to undefined.
1449
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1450
+ * For the list of reserved names please see:
1451
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1452
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1453
+ * JSPB instance for transitional soy proto support:
1454
+ * http://goto/soy-param-migration
1455
+ * @return {!Object}
1456
+ */
1457
+ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.toObject = function(opt_includeInstance) {
1458
+ return proto.lansweeper.install.v1.HubCertificateInstallation.toObject(opt_includeInstance, this);
1459
+ };
1460
+
1461
+
1462
+ /**
1463
+ * Static version of the {@see toObject} method.
1464
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1465
+ * the JSPB instance for transitional soy proto support:
1466
+ * http://goto/soy-param-migration
1467
+ * @param {!proto.lansweeper.install.v1.HubCertificateInstallation} msg The msg instance to transform.
1468
+ * @return {!Object}
1469
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1470
+ */
1471
+ proto.lansweeper.install.v1.HubCertificateInstallation.toObject = function(includeInstance, msg) {
1472
+ var f, obj = {
1473
+ installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
1474
+ hubCertificate: jspb.Message.getFieldWithDefault(msg, 3, "")
1475
+ };
1476
+
1477
+ if (includeInstance) {
1478
+ obj.$jspbMessageInstance = msg;
1479
+ }
1480
+ return obj;
1481
+ };
1482
+ }
1483
+
1484
+
1485
+ /**
1486
+ * Deserializes binary data (in protobuf wire format).
1487
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1488
+ * @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
1489
+ */
1490
+ proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinary = function(bytes) {
1491
+ var reader = new jspb.BinaryReader(bytes);
1492
+ var msg = new proto.lansweeper.install.v1.HubCertificateInstallation;
1493
+ return proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader(msg, reader);
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * Deserializes binary data (in protobuf wire format) from the
1499
+ * given reader into the given message object.
1500
+ * @param {!proto.lansweeper.install.v1.HubCertificateInstallation} msg The message object to deserialize into.
1501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1502
+ * @return {!proto.lansweeper.install.v1.HubCertificateInstallation}
1503
+ */
1504
+ proto.lansweeper.install.v1.HubCertificateInstallation.deserializeBinaryFromReader = function(msg, reader) {
1505
+ while (reader.nextField()) {
1506
+ if (reader.isEndGroup()) {
1507
+ break;
1508
+ }
1509
+ var field = reader.getFieldNumber();
1510
+ switch (field) {
1511
+ case 2:
1512
+ var value = /** @type {string} */ (reader.readString());
1513
+ msg.setInstallKey(value);
1514
+ break;
1515
+ case 3:
1516
+ var value = /** @type {string} */ (reader.readString());
1517
+ msg.setHubCertificate(value);
1518
+ break;
1519
+ default:
1520
+ reader.skipField();
1521
+ break;
1522
+ }
1523
+ }
1524
+ return msg;
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Serializes the message to binary data (in protobuf wire format).
1530
+ * @return {!Uint8Array}
1531
+ */
1532
+ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.serializeBinary = function() {
1533
+ var writer = new jspb.BinaryWriter();
1534
+ proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter(this, writer);
1535
+ return writer.getResultBuffer();
1536
+ };
1537
+
1538
+
1539
+ /**
1540
+ * Serializes the given message to binary data (in protobuf wire
1541
+ * format), writing to the given BinaryWriter.
1542
+ * @param {!proto.lansweeper.install.v1.HubCertificateInstallation} message
1543
+ * @param {!jspb.BinaryWriter} writer
1544
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1545
+ */
1546
+ proto.lansweeper.install.v1.HubCertificateInstallation.serializeBinaryToWriter = function(message, writer) {
1547
+ var f = undefined;
1548
+ f = message.getInstallKey();
1549
+ if (f.length > 0) {
1550
+ writer.writeString(
1551
+ 2,
1552
+ f
1553
+ );
1554
+ }
1555
+ f = message.getHubCertificate();
1556
+ if (f.length > 0) {
1557
+ writer.writeString(
1558
+ 3,
1559
+ f
1560
+ );
1561
+ }
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * optional string install_key = 2;
1567
+ * @return {string}
1568
+ */
1569
+ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.getInstallKey = function() {
1570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * @param {string} value
1576
+ * @return {!proto.lansweeper.install.v1.HubCertificateInstallation} returns this
1577
+ */
1578
+ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setInstallKey = function(value) {
1579
+ return jspb.Message.setProto3StringField(this, 2, value);
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * optional string hub_certificate = 3;
1585
+ * @return {string}
1586
+ */
1587
+ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.getHubCertificate = function() {
1588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1589
+ };
1590
+
1591
+
1592
+ /**
1593
+ * @param {string} value
1594
+ * @return {!proto.lansweeper.install.v1.HubCertificateInstallation} returns this
1595
+ */
1596
+ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setHubCertificate = function(value) {
1597
+ return jspb.Message.setProto3StringField(this, 3, value);
1598
+ };
1599
+
1600
+
724
1601
  goog.object.extend(exports, proto.lansweeper.install.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/install-api-grpc",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "install api grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "6323314d8a40ad78b42cd0430023408a7cbd26c6"
19
+ "gitHead": "1b8cb0bdaf7fcb4f1f20fa1e7508edd112b76a9e"
20
20
  }
@@ -2,6 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package lansweeper.install.v1;
4
4
 
5
+ option go_package = "./generated-go";
6
+
5
7
  message SetPublicKeyRequest {
6
8
  string site_id = 1;
7
9
  string install_key = 2;
@@ -21,7 +23,31 @@ message SetHubCertificateRequest {
21
23
  message SetHubCertificateResponse {
22
24
  }
23
25
 
26
+ message RemoveHubCertificateRequest {
27
+ string site_id = 1;
28
+ string install_key = 2;
29
+ }
30
+
31
+ message RemoveHubCertificateResponse {
32
+ }
33
+
34
+ message GetHubCertificatesRequest {
35
+ string site_id = 1;
36
+ repeated string install_keys = 2;
37
+ }
38
+
39
+ message GetHubCertificatesResponse {
40
+ repeated HubCertificateInstallation hub_certificates = 1;
41
+ }
42
+
43
+ message HubCertificateInstallation {
44
+ string install_key = 2;
45
+ string hub_certificate = 3;
46
+ }
47
+
24
48
  service InstallService {
49
+ rpc GetHubCertificates(GetHubCertificatesRequest) returns (GetHubCertificatesResponse) {}
25
50
  rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
26
51
  rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
52
+ rpc RemoveHubCertificate(RemoveHubCertificateRequest) returns (RemoveHubCertificateResponse) {}
27
53
  }