@lansweeper/integrations-limit-checker-grpc 0.1.0
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 +14 -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/limit_checker_api_grpc_pb.d.ts +41 -0
- package/gen-proto/limit_checker_api_grpc_pb.js +44 -0
- package/gen-proto/limit_checker_api_pb.d.ts +49 -0
- package/gen-proto/limit_checker_api_pb.js +319 -0
- package/package.json +11 -0
- package/proto/limit_checker_api.proto +15 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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.1.0 (2020-08-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* added limit checker proto ([3b51c7f](https://github.com/Lansweeper/lansweeperapis/commit/3b51c7f7bb730b136827c15e79536edb4b240f7e))
|
|
12
|
+
* fixed grpc lint ([aaa95cf](https://github.com/Lansweeper/lansweeperapis/commit/aaa95cff5858ec7c387778345225e465e7fd7bb5))
|
|
13
|
+
* fixed package proto name ([401babf](https://github.com/Lansweeper/lansweeperapis/commit/401babfe24b45bbb9a54e9cb55c35328be229575))
|
|
14
|
+
* fixed protos names conventions ([79edbf2](https://github.com/Lansweeper/lansweeperapis/commit/79edbf2d072b58160e1c598f4be1bd9499b8d865))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":[{"name":"limit_checker_api.proto","package":"lansweeper.integrationslimitchecker.v1","messageType":[{"name":"ExportStatusLimitCheckerRequest","field":[{"name":"appId","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"appId"}]},{"name":"ExportStatusLimitCheckerResponse","field":[{"name":"message","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"message"}]}],"service":[{"name":"IntegrationsLimitCheckerService","method":[{"name":"ExportStatusLimitChecker","inputType":".lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest","outputType":".lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,14,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,47]},{"path":[4,0],"span":[4,0,6,1]},{"path":[4,0,1],"span":[4,8,39]},{"path":[4,0,2,0],"span":[5,2,19]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,14]},{"path":[4,0,2,0,3],"span":[5,17,18]},{"path":[4,1],"span":[8,0,10,1]},{"path":[4,1,1],"span":[8,8,40]},{"path":[4,1,2,0],"span":[9,2,21]},{"path":[4,1,2,0,5],"span":[9,2,8]},{"path":[4,1,2,0,1],"span":[9,9,16]},{"path":[4,1,2,0,3],"span":[9,19,20]},{"path":[6,0],"span":[12,0,14,1]},{"path":[6,0,1],"span":[12,8,39]},{"path":[6,0,2,0],"span":[13,2,110]},{"path":[6,0,2,0,1],"span":[13,6,30]},{"path":[6,0,2,0,2],"span":[13,32,63]},{"path":[6,0,2,0,3],"span":[13,74,106]}]},"syntax":"proto3"}],"bufbuildImageExtension":{}}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// package: lansweeper.integrationslimitchecker.v1
|
|
2
|
+
// file: limit_checker_api.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "grpc";
|
|
8
|
+
import * as limit_checker_api_pb from "./limit_checker_api_pb";
|
|
9
|
+
|
|
10
|
+
interface IIntegrationsLimitCheckerServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
exportStatusLimitChecker: IIntegrationsLimitCheckerServiceService_IExportStatusLimitChecker;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface IIntegrationsLimitCheckerServiceService_IExportStatusLimitChecker extends grpc.MethodDefinition<limit_checker_api_pb.ExportStatusLimitCheckerRequest, limit_checker_api_pb.ExportStatusLimitCheckerResponse> {
|
|
15
|
+
path: string; // "/lansweeper.integrationslimitchecker.v1.IntegrationsLimitCheckerService/ExportStatusLimitChecker"
|
|
16
|
+
requestStream: false;
|
|
17
|
+
responseStream: false;
|
|
18
|
+
requestSerialize: grpc.serialize<limit_checker_api_pb.ExportStatusLimitCheckerRequest>;
|
|
19
|
+
requestDeserialize: grpc.deserialize<limit_checker_api_pb.ExportStatusLimitCheckerRequest>;
|
|
20
|
+
responseSerialize: grpc.serialize<limit_checker_api_pb.ExportStatusLimitCheckerResponse>;
|
|
21
|
+
responseDeserialize: grpc.deserialize<limit_checker_api_pb.ExportStatusLimitCheckerResponse>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const IntegrationsLimitCheckerServiceService: IIntegrationsLimitCheckerServiceService;
|
|
25
|
+
|
|
26
|
+
export interface IIntegrationsLimitCheckerServiceServer {
|
|
27
|
+
exportStatusLimitChecker: grpc.handleUnaryCall<limit_checker_api_pb.ExportStatusLimitCheckerRequest, limit_checker_api_pb.ExportStatusLimitCheckerResponse>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface IIntegrationsLimitCheckerServiceClient {
|
|
31
|
+
exportStatusLimitChecker(request: limit_checker_api_pb.ExportStatusLimitCheckerRequest, callback: (error: grpc.ServiceError | null, response: limit_checker_api_pb.ExportStatusLimitCheckerResponse) => void): grpc.ClientUnaryCall;
|
|
32
|
+
exportStatusLimitChecker(request: limit_checker_api_pb.ExportStatusLimitCheckerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: limit_checker_api_pb.ExportStatusLimitCheckerResponse) => void): grpc.ClientUnaryCall;
|
|
33
|
+
exportStatusLimitChecker(request: limit_checker_api_pb.ExportStatusLimitCheckerRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: limit_checker_api_pb.ExportStatusLimitCheckerResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class IntegrationsLimitCheckerServiceClient extends grpc.Client implements IIntegrationsLimitCheckerServiceClient {
|
|
37
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
38
|
+
public exportStatusLimitChecker(request: limit_checker_api_pb.ExportStatusLimitCheckerRequest, callback: (error: grpc.ServiceError | null, response: limit_checker_api_pb.ExportStatusLimitCheckerResponse) => void): grpc.ClientUnaryCall;
|
|
39
|
+
public exportStatusLimitChecker(request: limit_checker_api_pb.ExportStatusLimitCheckerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: limit_checker_api_pb.ExportStatusLimitCheckerResponse) => void): grpc.ClientUnaryCall;
|
|
40
|
+
public exportStatusLimitChecker(request: limit_checker_api_pb.ExportStatusLimitCheckerRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: limit_checker_api_pb.ExportStatusLimitCheckerResponse) => void): grpc.ClientUnaryCall;
|
|
41
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('grpc');
|
|
5
|
+
var limit_checker_api_pb = require('./limit_checker_api_pb.js');
|
|
6
|
+
|
|
7
|
+
function serialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerRequest(arg) {
|
|
8
|
+
if (!(arg instanceof limit_checker_api_pb.ExportStatusLimitCheckerRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerRequest(buffer_arg) {
|
|
15
|
+
return limit_checker_api_pb.ExportStatusLimitCheckerRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerResponse(arg) {
|
|
19
|
+
if (!(arg instanceof limit_checker_api_pb.ExportStatusLimitCheckerResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerResponse(buffer_arg) {
|
|
26
|
+
return limit_checker_api_pb.ExportStatusLimitCheckerResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var IntegrationsLimitCheckerServiceService = exports.IntegrationsLimitCheckerServiceService = {
|
|
31
|
+
exportStatusLimitChecker: {
|
|
32
|
+
path: '/lansweeper.integrationslimitchecker.v1.IntegrationsLimitCheckerService/ExportStatusLimitChecker',
|
|
33
|
+
requestStream: false,
|
|
34
|
+
responseStream: false,
|
|
35
|
+
requestType: limit_checker_api_pb.ExportStatusLimitCheckerRequest,
|
|
36
|
+
responseType: limit_checker_api_pb.ExportStatusLimitCheckerResponse,
|
|
37
|
+
requestSerialize: serialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerRequest,
|
|
38
|
+
requestDeserialize: deserialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerRequest,
|
|
39
|
+
responseSerialize: serialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerResponse,
|
|
40
|
+
responseDeserialize: deserialize_lansweeper_integrationslimitchecker_v1_ExportStatusLimitCheckerResponse,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.IntegrationsLimitCheckerServiceClient = grpc.makeGenericClientConstructor(IntegrationsLimitCheckerServiceService);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// package: lansweeper.integrationslimitchecker.v1
|
|
2
|
+
// file: limit_checker_api.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class ExportStatusLimitCheckerRequest extends jspb.Message {
|
|
10
|
+
getAppid(): string;
|
|
11
|
+
setAppid(value: string): ExportStatusLimitCheckerRequest;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
serializeBinary(): Uint8Array;
|
|
15
|
+
toObject(includeInstance?: boolean): ExportStatusLimitCheckerRequest.AsObject;
|
|
16
|
+
static toObject(includeInstance: boolean, msg: ExportStatusLimitCheckerRequest): ExportStatusLimitCheckerRequest.AsObject;
|
|
17
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
18
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
19
|
+
static serializeBinaryToWriter(message: ExportStatusLimitCheckerRequest, writer: jspb.BinaryWriter): void;
|
|
20
|
+
static deserializeBinary(bytes: Uint8Array): ExportStatusLimitCheckerRequest;
|
|
21
|
+
static deserializeBinaryFromReader(message: ExportStatusLimitCheckerRequest, reader: jspb.BinaryReader): ExportStatusLimitCheckerRequest;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export namespace ExportStatusLimitCheckerRequest {
|
|
25
|
+
export type AsObject = {
|
|
26
|
+
appid: string,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class ExportStatusLimitCheckerResponse extends jspb.Message {
|
|
31
|
+
getMessage(): string;
|
|
32
|
+
setMessage(value: string): ExportStatusLimitCheckerResponse;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
serializeBinary(): Uint8Array;
|
|
36
|
+
toObject(includeInstance?: boolean): ExportStatusLimitCheckerResponse.AsObject;
|
|
37
|
+
static toObject(includeInstance: boolean, msg: ExportStatusLimitCheckerResponse): ExportStatusLimitCheckerResponse.AsObject;
|
|
38
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
39
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
40
|
+
static serializeBinaryToWriter(message: ExportStatusLimitCheckerResponse, writer: jspb.BinaryWriter): void;
|
|
41
|
+
static deserializeBinary(bytes: Uint8Array): ExportStatusLimitCheckerResponse;
|
|
42
|
+
static deserializeBinaryFromReader(message: ExportStatusLimitCheckerResponse, reader: jspb.BinaryReader): ExportStatusLimitCheckerResponse;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace ExportStatusLimitCheckerResponse {
|
|
46
|
+
export type AsObject = {
|
|
47
|
+
message: string,
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
// source: limit_checker_api.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
6
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
10
|
+
|
|
11
|
+
var jspb = require('google-protobuf');
|
|
12
|
+
var goog = jspb;
|
|
13
|
+
var global = Function('return this')();
|
|
14
|
+
|
|
15
|
+
goog.exportSymbol('proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest', null, global);
|
|
16
|
+
goog.exportSymbol('proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse', null, global);
|
|
17
|
+
/**
|
|
18
|
+
* Generated by JsPbCodeGenerator.
|
|
19
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
20
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
21
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
22
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
23
|
+
* valid.
|
|
24
|
+
* @extends {jspb.Message}
|
|
25
|
+
* @constructor
|
|
26
|
+
*/
|
|
27
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest = function(opt_data) {
|
|
28
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
29
|
+
};
|
|
30
|
+
goog.inherits(proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest, jspb.Message);
|
|
31
|
+
if (goog.DEBUG && !COMPILED) {
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
* @override
|
|
35
|
+
*/
|
|
36
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.displayName = 'proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest';
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Generated by JsPbCodeGenerator.
|
|
40
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
41
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
42
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
43
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
44
|
+
* valid.
|
|
45
|
+
* @extends {jspb.Message}
|
|
46
|
+
* @constructor
|
|
47
|
+
*/
|
|
48
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse = function(opt_data) {
|
|
49
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
50
|
+
};
|
|
51
|
+
goog.inherits(proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse, jspb.Message);
|
|
52
|
+
if (goog.DEBUG && !COMPILED) {
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
* @override
|
|
56
|
+
*/
|
|
57
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.displayName = 'proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
63
|
+
/**
|
|
64
|
+
* Creates an object representation of this proto.
|
|
65
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
66
|
+
* Optional fields that are not set will be set to undefined.
|
|
67
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68
|
+
* For the list of reserved names please see:
|
|
69
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
70
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71
|
+
* JSPB instance for transitional soy proto support:
|
|
72
|
+
* http://goto/soy-param-migration
|
|
73
|
+
* @return {!Object}
|
|
74
|
+
*/
|
|
75
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
76
|
+
return proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.toObject(opt_includeInstance, this);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Static version of the {@see toObject} method.
|
|
82
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
83
|
+
* the JSPB instance for transitional soy proto support:
|
|
84
|
+
* http://goto/soy-param-migration
|
|
85
|
+
* @param {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest} msg The msg instance to transform.
|
|
86
|
+
* @return {!Object}
|
|
87
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88
|
+
*/
|
|
89
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.toObject = function(includeInstance, msg) {
|
|
90
|
+
var f, obj = {
|
|
91
|
+
appid: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
if (includeInstance) {
|
|
95
|
+
obj.$jspbMessageInstance = msg;
|
|
96
|
+
}
|
|
97
|
+
return obj;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Deserializes binary data (in protobuf wire format).
|
|
104
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
105
|
+
* @return {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest}
|
|
106
|
+
*/
|
|
107
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.deserializeBinary = function(bytes) {
|
|
108
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
109
|
+
var msg = new proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest;
|
|
110
|
+
return proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.deserializeBinaryFromReader(msg, reader);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
116
|
+
* given reader into the given message object.
|
|
117
|
+
* @param {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest} msg The message object to deserialize into.
|
|
118
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
119
|
+
* @return {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest}
|
|
120
|
+
*/
|
|
121
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
122
|
+
while (reader.nextField()) {
|
|
123
|
+
if (reader.isEndGroup()) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
var field = reader.getFieldNumber();
|
|
127
|
+
switch (field) {
|
|
128
|
+
case 1:
|
|
129
|
+
var value = /** @type {string} */ (reader.readString());
|
|
130
|
+
msg.setAppid(value);
|
|
131
|
+
break;
|
|
132
|
+
default:
|
|
133
|
+
reader.skipField();
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return msg;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
143
|
+
* @return {!Uint8Array}
|
|
144
|
+
*/
|
|
145
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.prototype.serializeBinary = function() {
|
|
146
|
+
var writer = new jspb.BinaryWriter();
|
|
147
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.serializeBinaryToWriter(this, writer);
|
|
148
|
+
return writer.getResultBuffer();
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
154
|
+
* format), writing to the given BinaryWriter.
|
|
155
|
+
* @param {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest} message
|
|
156
|
+
* @param {!jspb.BinaryWriter} writer
|
|
157
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
158
|
+
*/
|
|
159
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
160
|
+
var f = undefined;
|
|
161
|
+
f = message.getAppid();
|
|
162
|
+
if (f.length > 0) {
|
|
163
|
+
writer.writeString(
|
|
164
|
+
1,
|
|
165
|
+
f
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* optional string appId = 1;
|
|
173
|
+
* @return {string}
|
|
174
|
+
*/
|
|
175
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.prototype.getAppid = function() {
|
|
176
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @param {string} value
|
|
182
|
+
* @return {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest} returns this
|
|
183
|
+
*/
|
|
184
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerRequest.prototype.setAppid = function(value) {
|
|
185
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
193
|
+
/**
|
|
194
|
+
* Creates an object representation of this proto.
|
|
195
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
196
|
+
* Optional fields that are not set will be set to undefined.
|
|
197
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
198
|
+
* For the list of reserved names please see:
|
|
199
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
200
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
201
|
+
* JSPB instance for transitional soy proto support:
|
|
202
|
+
* http://goto/soy-param-migration
|
|
203
|
+
* @return {!Object}
|
|
204
|
+
*/
|
|
205
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.prototype.toObject = function(opt_includeInstance) {
|
|
206
|
+
return proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.toObject(opt_includeInstance, this);
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Static version of the {@see toObject} method.
|
|
212
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
213
|
+
* the JSPB instance for transitional soy proto support:
|
|
214
|
+
* http://goto/soy-param-migration
|
|
215
|
+
* @param {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse} msg The msg instance to transform.
|
|
216
|
+
* @return {!Object}
|
|
217
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
218
|
+
*/
|
|
219
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.toObject = function(includeInstance, msg) {
|
|
220
|
+
var f, obj = {
|
|
221
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
if (includeInstance) {
|
|
225
|
+
obj.$jspbMessageInstance = msg;
|
|
226
|
+
}
|
|
227
|
+
return obj;
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Deserializes binary data (in protobuf wire format).
|
|
234
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
235
|
+
* @return {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse}
|
|
236
|
+
*/
|
|
237
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.deserializeBinary = function(bytes) {
|
|
238
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
239
|
+
var msg = new proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse;
|
|
240
|
+
return proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.deserializeBinaryFromReader(msg, reader);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
246
|
+
* given reader into the given message object.
|
|
247
|
+
* @param {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse} msg The message object to deserialize into.
|
|
248
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
249
|
+
* @return {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse}
|
|
250
|
+
*/
|
|
251
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
252
|
+
while (reader.nextField()) {
|
|
253
|
+
if (reader.isEndGroup()) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
var field = reader.getFieldNumber();
|
|
257
|
+
switch (field) {
|
|
258
|
+
case 1:
|
|
259
|
+
var value = /** @type {string} */ (reader.readString());
|
|
260
|
+
msg.setMessage(value);
|
|
261
|
+
break;
|
|
262
|
+
default:
|
|
263
|
+
reader.skipField();
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return msg;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
273
|
+
* @return {!Uint8Array}
|
|
274
|
+
*/
|
|
275
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.prototype.serializeBinary = function() {
|
|
276
|
+
var writer = new jspb.BinaryWriter();
|
|
277
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.serializeBinaryToWriter(this, writer);
|
|
278
|
+
return writer.getResultBuffer();
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
284
|
+
* format), writing to the given BinaryWriter.
|
|
285
|
+
* @param {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse} message
|
|
286
|
+
* @param {!jspb.BinaryWriter} writer
|
|
287
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
288
|
+
*/
|
|
289
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.serializeBinaryToWriter = function(message, writer) {
|
|
290
|
+
var f = undefined;
|
|
291
|
+
f = message.getMessage();
|
|
292
|
+
if (f.length > 0) {
|
|
293
|
+
writer.writeString(
|
|
294
|
+
1,
|
|
295
|
+
f
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* optional string message = 1;
|
|
303
|
+
* @return {string}
|
|
304
|
+
*/
|
|
305
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.prototype.getMessage = function() {
|
|
306
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @param {string} value
|
|
312
|
+
* @return {!proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse} returns this
|
|
313
|
+
*/
|
|
314
|
+
proto.lansweeper.integrationslimitchecker.v1.ExportStatusLimitCheckerResponse.prototype.setMessage = function(value) {
|
|
315
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
goog.object.extend(exports, proto.lansweeper.integrationslimitchecker.v1);
|
package/package.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lansweeper/integrations-limit-checker-grpc",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "gen-proto/index.js",
|
|
5
|
+
"types": "gen-proto/index.d.ts",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"grpc": "^1.24.3"
|
|
9
|
+
},
|
|
10
|
+
"gitHead": "2eaabcf3034401b6bfb1b344f61b29b22c1b3d75"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.integrationslimitchecker.v1;
|
|
4
|
+
|
|
5
|
+
message ExportStatusLimitCheckerRequest {
|
|
6
|
+
string appId = 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message ExportStatusLimitCheckerResponse {
|
|
10
|
+
string message = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
service IntegrationsLimitCheckerService {
|
|
14
|
+
rpc ExportStatusLimitChecker (ExportStatusLimitCheckerRequest) returns (ExportStatusLimitCheckerResponse) {}
|
|
15
|
+
}
|