@marleena/trb-proto 1.0.3 → 1.0.4

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.
@@ -0,0 +1,86 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for trb.test.public.contract.v1
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v7.34.1
11
+ // source: api/test/test.proto
12
+
13
+
14
+ /* eslint-disable */
15
+ // @ts-nocheck
16
+
17
+
18
+ import * as grpcWeb from 'grpc-web';
19
+
20
+ import * as api_test_test_pb from '../../api/test/test_pb'; // proto import: "api/test/test.proto"
21
+
22
+
23
+ export class TestClient {
24
+ client_: grpcWeb.AbstractClientBase;
25
+ hostname_: string;
26
+ credentials_: null | { [index: string]: string; };
27
+ options_: null | { [index: string]: any; };
28
+
29
+ constructor (hostname: string,
30
+ credentials?: null | { [index: string]: string; },
31
+ options?: null | { [index: string]: any; }) {
32
+ if (!options) options = {};
33
+ if (!credentials) credentials = {};
34
+ options['format'] = 'binary';
35
+
36
+ this.client_ = new grpcWeb.GrpcWebClientBase(options);
37
+ this.hostname_ = hostname.replace(/\/+$/, '');
38
+ this.credentials_ = credentials;
39
+ this.options_ = options;
40
+ }
41
+
42
+ methodDescriptorSyncInstruments = new grpcWeb.MethodDescriptor(
43
+ '/trb.test.public.contract.v1.Test/SyncInstruments',
44
+ grpcWeb.MethodType.UNARY,
45
+ api_test_test_pb.SyncInstrumentsRequest,
46
+ api_test_test_pb.SyncInstrumentsResponse,
47
+ (request: api_test_test_pb.SyncInstrumentsRequest) => {
48
+ return request.serializeBinary();
49
+ },
50
+ api_test_test_pb.SyncInstrumentsResponse.deserializeBinary
51
+ );
52
+
53
+ syncInstruments(
54
+ request: api_test_test_pb.SyncInstrumentsRequest,
55
+ metadata?: grpcWeb.Metadata | null): Promise<api_test_test_pb.SyncInstrumentsResponse>;
56
+
57
+ syncInstruments(
58
+ request: api_test_test_pb.SyncInstrumentsRequest,
59
+ metadata: grpcWeb.Metadata | null,
60
+ callback: (err: grpcWeb.RpcError,
61
+ response: api_test_test_pb.SyncInstrumentsResponse) => void): grpcWeb.ClientReadableStream<api_test_test_pb.SyncInstrumentsResponse>;
62
+
63
+ syncInstruments(
64
+ request: api_test_test_pb.SyncInstrumentsRequest,
65
+ metadata?: grpcWeb.Metadata | null,
66
+ callback?: (err: grpcWeb.RpcError,
67
+ response: api_test_test_pb.SyncInstrumentsResponse) => void) {
68
+ if (callback !== undefined) {
69
+ return this.client_.rpcCall(
70
+ this.hostname_ +
71
+ '/trb.test.public.contract.v1.Test/SyncInstruments',
72
+ request,
73
+ metadata || {},
74
+ this.methodDescriptorSyncInstruments,
75
+ callback);
76
+ }
77
+ return this.client_.unaryCall(
78
+ this.hostname_ +
79
+ '/trb.test.public.contract.v1.Test/SyncInstruments',
80
+ request,
81
+ metadata || {},
82
+ this.methodDescriptorSyncInstruments);
83
+ }
84
+
85
+ }
86
+
@@ -0,0 +1,40 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as google_api_annotations_pb from '../../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
+ import * as api_db_api_db_api_pb from '../../api/db_api/db_api_pb'; // proto import: "api/db_api/db_api.proto"
5
+
6
+
7
+ export class SyncInstrumentsRequest extends jspb.Message {
8
+ serializeBinary(): Uint8Array;
9
+ toObject(includeInstance?: boolean): SyncInstrumentsRequest.AsObject;
10
+ static toObject(includeInstance: boolean, msg: SyncInstrumentsRequest): SyncInstrumentsRequest.AsObject;
11
+ static serializeBinaryToWriter(message: SyncInstrumentsRequest, writer: jspb.BinaryWriter): void;
12
+ static deserializeBinary(bytes: Uint8Array): SyncInstrumentsRequest;
13
+ static deserializeBinaryFromReader(message: SyncInstrumentsRequest, reader: jspb.BinaryReader): SyncInstrumentsRequest;
14
+ }
15
+
16
+ export namespace SyncInstrumentsRequest {
17
+ export type AsObject = {
18
+ }
19
+ }
20
+
21
+ export class SyncInstrumentsResponse extends jspb.Message {
22
+ getUpsert(): api_db_api_db_api_pb.UpsertInstrumentsResponse | undefined;
23
+ setUpsert(value?: api_db_api_db_api_pb.UpsertInstrumentsResponse): SyncInstrumentsResponse;
24
+ hasUpsert(): boolean;
25
+ clearUpsert(): SyncInstrumentsResponse;
26
+
27
+ serializeBinary(): Uint8Array;
28
+ toObject(includeInstance?: boolean): SyncInstrumentsResponse.AsObject;
29
+ static toObject(includeInstance: boolean, msg: SyncInstrumentsResponse): SyncInstrumentsResponse.AsObject;
30
+ static serializeBinaryToWriter(message: SyncInstrumentsResponse, writer: jspb.BinaryWriter): void;
31
+ static deserializeBinary(bytes: Uint8Array): SyncInstrumentsResponse;
32
+ static deserializeBinaryFromReader(message: SyncInstrumentsResponse, reader: jspb.BinaryReader): SyncInstrumentsResponse;
33
+ }
34
+
35
+ export namespace SyncInstrumentsResponse {
36
+ export type AsObject = {
37
+ upsert?: api_db_api_db_api_pb.UpsertInstrumentsResponse.AsObject,
38
+ }
39
+ }
40
+
@@ -0,0 +1,324 @@
1
+ // source: api/test/test.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var api_db_api_db_api_pb = require('../../api/db_api/db_api_pb.js');
27
+ goog.object.extend(proto, api_db_api_db_api_pb);
28
+ goog.exportSymbol('proto.trb.test.public.contract.v1.SyncInstrumentsRequest', null, global);
29
+ goog.exportSymbol('proto.trb.test.public.contract.v1.SyncInstrumentsResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.trb.test.public.contract.v1.SyncInstrumentsRequest, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.displayName = 'proto.trb.test.public.contract.v1.SyncInstrumentsRequest';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.trb.test.public.contract.v1.SyncInstrumentsResponse, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.displayName = 'proto.trb.test.public.contract.v1.SyncInstrumentsResponse';
71
+ }
72
+
73
+
74
+
75
+ if (jspb.Message.GENERATE_TO_OBJECT) {
76
+ /**
77
+ * Creates an object representation of this proto.
78
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
79
+ * Optional fields that are not set will be set to undefined.
80
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
81
+ * For the list of reserved names please see:
82
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
83
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
84
+ * JSPB instance for transitional soy proto support:
85
+ * http://goto/soy-param-migration
86
+ * @return {!Object}
87
+ */
88
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.prototype.toObject = function(opt_includeInstance) {
89
+ return proto.trb.test.public.contract.v1.SyncInstrumentsRequest.toObject(opt_includeInstance, this);
90
+ };
91
+
92
+
93
+ /**
94
+ * Static version of the {@see toObject} method.
95
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
96
+ * the JSPB instance for transitional soy proto support:
97
+ * http://goto/soy-param-migration
98
+ * @param {!proto.trb.test.public.contract.v1.SyncInstrumentsRequest} msg The msg instance to transform.
99
+ * @return {!Object}
100
+ * @suppress {unusedLocalVariables} f is only used for nested messages
101
+ */
102
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.toObject = function(includeInstance, msg) {
103
+ var f, obj = {
104
+
105
+ };
106
+
107
+ if (includeInstance) {
108
+ obj.$jspbMessageInstance = msg;
109
+ }
110
+ return obj;
111
+ };
112
+ }
113
+
114
+
115
+ /**
116
+ * Deserializes binary data (in protobuf wire format).
117
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
118
+ * @return {!proto.trb.test.public.contract.v1.SyncInstrumentsRequest}
119
+ */
120
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.deserializeBinary = function(bytes) {
121
+ var reader = new jspb.BinaryReader(bytes);
122
+ var msg = new proto.trb.test.public.contract.v1.SyncInstrumentsRequest;
123
+ return proto.trb.test.public.contract.v1.SyncInstrumentsRequest.deserializeBinaryFromReader(msg, reader);
124
+ };
125
+
126
+
127
+ /**
128
+ * Deserializes binary data (in protobuf wire format) from the
129
+ * given reader into the given message object.
130
+ * @param {!proto.trb.test.public.contract.v1.SyncInstrumentsRequest} msg The message object to deserialize into.
131
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
132
+ * @return {!proto.trb.test.public.contract.v1.SyncInstrumentsRequest}
133
+ */
134
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
135
+ while (reader.nextField()) {
136
+ if (reader.isEndGroup()) {
137
+ break;
138
+ }
139
+ var field = reader.getFieldNumber();
140
+ switch (field) {
141
+ default:
142
+ reader.skipField();
143
+ break;
144
+ }
145
+ }
146
+ return msg;
147
+ };
148
+
149
+
150
+ /**
151
+ * Serializes the message to binary data (in protobuf wire format).
152
+ * @return {!Uint8Array}
153
+ */
154
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.prototype.serializeBinary = function() {
155
+ var writer = new jspb.BinaryWriter();
156
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.serializeBinaryToWriter(this, writer);
157
+ return writer.getResultBuffer();
158
+ };
159
+
160
+
161
+ /**
162
+ * Serializes the given message to binary data (in protobuf wire
163
+ * format), writing to the given BinaryWriter.
164
+ * @param {!proto.trb.test.public.contract.v1.SyncInstrumentsRequest} message
165
+ * @param {!jspb.BinaryWriter} writer
166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
167
+ */
168
+ proto.trb.test.public.contract.v1.SyncInstrumentsRequest.serializeBinaryToWriter = function(message, writer) {
169
+ var f = undefined;
170
+ };
171
+
172
+
173
+
174
+
175
+
176
+ if (jspb.Message.GENERATE_TO_OBJECT) {
177
+ /**
178
+ * Creates an object representation of this proto.
179
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
180
+ * Optional fields that are not set will be set to undefined.
181
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
182
+ * For the list of reserved names please see:
183
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
184
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
185
+ * JSPB instance for transitional soy proto support:
186
+ * http://goto/soy-param-migration
187
+ * @return {!Object}
188
+ */
189
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.prototype.toObject = function(opt_includeInstance) {
190
+ return proto.trb.test.public.contract.v1.SyncInstrumentsResponse.toObject(opt_includeInstance, this);
191
+ };
192
+
193
+
194
+ /**
195
+ * Static version of the {@see toObject} method.
196
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
197
+ * the JSPB instance for transitional soy proto support:
198
+ * http://goto/soy-param-migration
199
+ * @param {!proto.trb.test.public.contract.v1.SyncInstrumentsResponse} msg The msg instance to transform.
200
+ * @return {!Object}
201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
202
+ */
203
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.toObject = function(includeInstance, msg) {
204
+ var f, obj = {
205
+ upsert: (f = msg.getUpsert()) && api_db_api_db_api_pb.UpsertInstrumentsResponse.toObject(includeInstance, f)
206
+ };
207
+
208
+ if (includeInstance) {
209
+ obj.$jspbMessageInstance = msg;
210
+ }
211
+ return obj;
212
+ };
213
+ }
214
+
215
+
216
+ /**
217
+ * Deserializes binary data (in protobuf wire format).
218
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
219
+ * @return {!proto.trb.test.public.contract.v1.SyncInstrumentsResponse}
220
+ */
221
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.deserializeBinary = function(bytes) {
222
+ var reader = new jspb.BinaryReader(bytes);
223
+ var msg = new proto.trb.test.public.contract.v1.SyncInstrumentsResponse;
224
+ return proto.trb.test.public.contract.v1.SyncInstrumentsResponse.deserializeBinaryFromReader(msg, reader);
225
+ };
226
+
227
+
228
+ /**
229
+ * Deserializes binary data (in protobuf wire format) from the
230
+ * given reader into the given message object.
231
+ * @param {!proto.trb.test.public.contract.v1.SyncInstrumentsResponse} msg The message object to deserialize into.
232
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
233
+ * @return {!proto.trb.test.public.contract.v1.SyncInstrumentsResponse}
234
+ */
235
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
236
+ while (reader.nextField()) {
237
+ if (reader.isEndGroup()) {
238
+ break;
239
+ }
240
+ var field = reader.getFieldNumber();
241
+ switch (field) {
242
+ case 1:
243
+ var value = new api_db_api_db_api_pb.UpsertInstrumentsResponse;
244
+ reader.readMessage(value,api_db_api_db_api_pb.UpsertInstrumentsResponse.deserializeBinaryFromReader);
245
+ msg.setUpsert(value);
246
+ break;
247
+ default:
248
+ reader.skipField();
249
+ break;
250
+ }
251
+ }
252
+ return msg;
253
+ };
254
+
255
+
256
+ /**
257
+ * Serializes the message to binary data (in protobuf wire format).
258
+ * @return {!Uint8Array}
259
+ */
260
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.prototype.serializeBinary = function() {
261
+ var writer = new jspb.BinaryWriter();
262
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.serializeBinaryToWriter(this, writer);
263
+ return writer.getResultBuffer();
264
+ };
265
+
266
+
267
+ /**
268
+ * Serializes the given message to binary data (in protobuf wire
269
+ * format), writing to the given BinaryWriter.
270
+ * @param {!proto.trb.test.public.contract.v1.SyncInstrumentsResponse} message
271
+ * @param {!jspb.BinaryWriter} writer
272
+ * @suppress {unusedLocalVariables} f is only used for nested messages
273
+ */
274
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.serializeBinaryToWriter = function(message, writer) {
275
+ var f = undefined;
276
+ f = message.getUpsert();
277
+ if (f != null) {
278
+ writer.writeMessage(
279
+ 1,
280
+ f,
281
+ api_db_api_db_api_pb.UpsertInstrumentsResponse.serializeBinaryToWriter
282
+ );
283
+ }
284
+ };
285
+
286
+
287
+ /**
288
+ * optional trb.db.api.public.contract.v1.UpsertInstrumentsResponse upsert = 1;
289
+ * @return {?proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse}
290
+ */
291
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.prototype.getUpsert = function() {
292
+ return /** @type{?proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} */ (
293
+ jspb.Message.getWrapperField(this, api_db_api_db_api_pb.UpsertInstrumentsResponse, 1));
294
+ };
295
+
296
+
297
+ /**
298
+ * @param {?proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse|undefined} value
299
+ * @return {!proto.trb.test.public.contract.v1.SyncInstrumentsResponse} returns this
300
+ */
301
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.prototype.setUpsert = function(value) {
302
+ return jspb.Message.setWrapperField(this, 1, value);
303
+ };
304
+
305
+
306
+ /**
307
+ * Clears the message field making it undefined.
308
+ * @return {!proto.trb.test.public.contract.v1.SyncInstrumentsResponse} returns this
309
+ */
310
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.prototype.clearUpsert = function() {
311
+ return this.setUpsert(undefined);
312
+ };
313
+
314
+
315
+ /**
316
+ * Returns whether this field is set.
317
+ * @return {boolean}
318
+ */
319
+ proto.trb.test.public.contract.v1.SyncInstrumentsResponse.prototype.hasUpsert = function() {
320
+ return jspb.Message.getField(this, 1) != null;
321
+ };
322
+
323
+
324
+ goog.object.extend(exports, proto.trb.test.public.contract.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marleena/trb-proto",
3
- "version": "v1.0.3",
3
+ "version": "v1.0.4",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,215 +0,0 @@
1
- /**
2
- * @fileoverview gRPC-Web generated client stub for trb.db.api.public.contract.v1
3
- * @enhanceable
4
- * @public
5
- */
6
-
7
- // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
- // versions:
9
- // protoc-gen-grpc-web v1.5.0
10
- // protoc v7.34.1
11
- // source: api/data/data.proto
12
-
13
-
14
- /* eslint-disable */
15
- // @ts-nocheck
16
-
17
-
18
- import * as grpcWeb from 'grpc-web';
19
-
20
- import * as api_data_data_pb from '../../api/data/data_pb'; // proto import: "api/data/data.proto"
21
-
22
-
23
- export class DbApiClient {
24
- client_: grpcWeb.AbstractClientBase;
25
- hostname_: string;
26
- credentials_: null | { [index: string]: string; };
27
- options_: null | { [index: string]: any; };
28
-
29
- constructor (hostname: string,
30
- credentials?: null | { [index: string]: string; },
31
- options?: null | { [index: string]: any; }) {
32
- if (!options) options = {};
33
- if (!credentials) credentials = {};
34
- options['format'] = 'binary';
35
-
36
- this.client_ = new grpcWeb.GrpcWebClientBase(options);
37
- this.hostname_ = hostname.replace(/\/+$/, '');
38
- this.credentials_ = credentials;
39
- this.options_ = options;
40
- }
41
-
42
- methodDescriptorListInstruments = new grpcWeb.MethodDescriptor(
43
- '/trb.db.api.public.contract.v1.DbApi/ListInstruments',
44
- grpcWeb.MethodType.UNARY,
45
- api_data_data_pb.ListInstrumentsRequest,
46
- api_data_data_pb.ListInstrumentsResponse,
47
- (request: api_data_data_pb.ListInstrumentsRequest) => {
48
- return request.serializeBinary();
49
- },
50
- api_data_data_pb.ListInstrumentsResponse.deserializeBinary
51
- );
52
-
53
- listInstruments(
54
- request: api_data_data_pb.ListInstrumentsRequest,
55
- metadata?: grpcWeb.Metadata | null): Promise<api_data_data_pb.ListInstrumentsResponse>;
56
-
57
- listInstruments(
58
- request: api_data_data_pb.ListInstrumentsRequest,
59
- metadata: grpcWeb.Metadata | null,
60
- callback: (err: grpcWeb.RpcError,
61
- response: api_data_data_pb.ListInstrumentsResponse) => void): grpcWeb.ClientReadableStream<api_data_data_pb.ListInstrumentsResponse>;
62
-
63
- listInstruments(
64
- request: api_data_data_pb.ListInstrumentsRequest,
65
- metadata?: grpcWeb.Metadata | null,
66
- callback?: (err: grpcWeb.RpcError,
67
- response: api_data_data_pb.ListInstrumentsResponse) => void) {
68
- if (callback !== undefined) {
69
- return this.client_.rpcCall(
70
- this.hostname_ +
71
- '/trb.db.api.public.contract.v1.DbApi/ListInstruments',
72
- request,
73
- metadata || {},
74
- this.methodDescriptorListInstruments,
75
- callback);
76
- }
77
- return this.client_.unaryCall(
78
- this.hostname_ +
79
- '/trb.db.api.public.contract.v1.DbApi/ListInstruments',
80
- request,
81
- metadata || {},
82
- this.methodDescriptorListInstruments);
83
- }
84
-
85
- methodDescriptorListSchedulerTargets = new grpcWeb.MethodDescriptor(
86
- '/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
87
- grpcWeb.MethodType.UNARY,
88
- api_data_data_pb.ListSchedulerTargetsRequest,
89
- api_data_data_pb.ListSchedulerTargetsResponse,
90
- (request: api_data_data_pb.ListSchedulerTargetsRequest) => {
91
- return request.serializeBinary();
92
- },
93
- api_data_data_pb.ListSchedulerTargetsResponse.deserializeBinary
94
- );
95
-
96
- listSchedulerTargets(
97
- request: api_data_data_pb.ListSchedulerTargetsRequest,
98
- metadata?: grpcWeb.Metadata | null): Promise<api_data_data_pb.ListSchedulerTargetsResponse>;
99
-
100
- listSchedulerTargets(
101
- request: api_data_data_pb.ListSchedulerTargetsRequest,
102
- metadata: grpcWeb.Metadata | null,
103
- callback: (err: grpcWeb.RpcError,
104
- response: api_data_data_pb.ListSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<api_data_data_pb.ListSchedulerTargetsResponse>;
105
-
106
- listSchedulerTargets(
107
- request: api_data_data_pb.ListSchedulerTargetsRequest,
108
- metadata?: grpcWeb.Metadata | null,
109
- callback?: (err: grpcWeb.RpcError,
110
- response: api_data_data_pb.ListSchedulerTargetsResponse) => void) {
111
- if (callback !== undefined) {
112
- return this.client_.rpcCall(
113
- this.hostname_ +
114
- '/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
115
- request,
116
- metadata || {},
117
- this.methodDescriptorListSchedulerTargets,
118
- callback);
119
- }
120
- return this.client_.unaryCall(
121
- this.hostname_ +
122
- '/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
123
- request,
124
- metadata || {},
125
- this.methodDescriptorListSchedulerTargets);
126
- }
127
-
128
- methodDescriptorSyncSchedulerTargets = new grpcWeb.MethodDescriptor(
129
- '/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
130
- grpcWeb.MethodType.UNARY,
131
- api_data_data_pb.SyncSchedulerTargetsRequest,
132
- api_data_data_pb.SyncSchedulerTargetsResponse,
133
- (request: api_data_data_pb.SyncSchedulerTargetsRequest) => {
134
- return request.serializeBinary();
135
- },
136
- api_data_data_pb.SyncSchedulerTargetsResponse.deserializeBinary
137
- );
138
-
139
- syncSchedulerTargets(
140
- request: api_data_data_pb.SyncSchedulerTargetsRequest,
141
- metadata?: grpcWeb.Metadata | null): Promise<api_data_data_pb.SyncSchedulerTargetsResponse>;
142
-
143
- syncSchedulerTargets(
144
- request: api_data_data_pb.SyncSchedulerTargetsRequest,
145
- metadata: grpcWeb.Metadata | null,
146
- callback: (err: grpcWeb.RpcError,
147
- response: api_data_data_pb.SyncSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<api_data_data_pb.SyncSchedulerTargetsResponse>;
148
-
149
- syncSchedulerTargets(
150
- request: api_data_data_pb.SyncSchedulerTargetsRequest,
151
- metadata?: grpcWeb.Metadata | null,
152
- callback?: (err: grpcWeb.RpcError,
153
- response: api_data_data_pb.SyncSchedulerTargetsResponse) => void) {
154
- if (callback !== undefined) {
155
- return this.client_.rpcCall(
156
- this.hostname_ +
157
- '/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
158
- request,
159
- metadata || {},
160
- this.methodDescriptorSyncSchedulerTargets,
161
- callback);
162
- }
163
- return this.client_.unaryCall(
164
- this.hostname_ +
165
- '/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
166
- request,
167
- metadata || {},
168
- this.methodDescriptorSyncSchedulerTargets);
169
- }
170
-
171
- methodDescriptorListLastDownloads = new grpcWeb.MethodDescriptor(
172
- '/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
173
- grpcWeb.MethodType.UNARY,
174
- api_data_data_pb.ListLastDownloadsRequest,
175
- api_data_data_pb.ListLastDownloadsResponse,
176
- (request: api_data_data_pb.ListLastDownloadsRequest) => {
177
- return request.serializeBinary();
178
- },
179
- api_data_data_pb.ListLastDownloadsResponse.deserializeBinary
180
- );
181
-
182
- listLastDownloads(
183
- request: api_data_data_pb.ListLastDownloadsRequest,
184
- metadata?: grpcWeb.Metadata | null): Promise<api_data_data_pb.ListLastDownloadsResponse>;
185
-
186
- listLastDownloads(
187
- request: api_data_data_pb.ListLastDownloadsRequest,
188
- metadata: grpcWeb.Metadata | null,
189
- callback: (err: grpcWeb.RpcError,
190
- response: api_data_data_pb.ListLastDownloadsResponse) => void): grpcWeb.ClientReadableStream<api_data_data_pb.ListLastDownloadsResponse>;
191
-
192
- listLastDownloads(
193
- request: api_data_data_pb.ListLastDownloadsRequest,
194
- metadata?: grpcWeb.Metadata | null,
195
- callback?: (err: grpcWeb.RpcError,
196
- response: api_data_data_pb.ListLastDownloadsResponse) => void) {
197
- if (callback !== undefined) {
198
- return this.client_.rpcCall(
199
- this.hostname_ +
200
- '/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
201
- request,
202
- metadata || {},
203
- this.methodDescriptorListLastDownloads,
204
- callback);
205
- }
206
- return this.client_.unaryCall(
207
- this.hostname_ +
208
- '/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
209
- request,
210
- metadata || {},
211
- this.methodDescriptorListLastDownloads);
212
- }
213
-
214
- }
215
-