@marleena/trb-proto 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.
@@ -0,0 +1,1009 @@
1
+ // source: tinvest/sandbox.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 tinvest_common_pb = require('../tinvest/common_pb.js');
25
+ goog.object.extend(proto, tinvest_common_pb);
26
+ var tinvest_orders_pb = require('../tinvest/orders_pb.js');
27
+ goog.object.extend(proto, tinvest_orders_pb);
28
+ var tinvest_operations_pb = require('../tinvest/operations_pb.js');
29
+ goog.object.extend(proto, tinvest_operations_pb);
30
+ var tinvest_stoporders_pb = require('../tinvest/stoporders_pb.js');
31
+ goog.object.extend(proto, tinvest_stoporders_pb);
32
+ var tinvest_users_pb = require('../tinvest/users_pb.js');
33
+ goog.object.extend(proto, tinvest_users_pb);
34
+ var google_api_field_behavior_pb = require('../google/api/field_behavior_pb.js');
35
+ goog.object.extend(proto, google_api_field_behavior_pb);
36
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest', null, global);
37
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse', null, global);
38
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest', null, global);
39
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse', null, global);
40
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest', null, global);
41
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse', null, global);
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
+ };
55
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.displayName = 'proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.displayName = 'proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse';
83
+ }
84
+ /**
85
+ * Generated by JsPbCodeGenerator.
86
+ * @param {Array=} opt_data Optional initial data array, typically from a
87
+ * server response, or constructed directly in Javascript. The array is used
88
+ * in place and becomes part of the constructed object. It is not cloned.
89
+ * If no data is provided, the constructed object will be empty, but still
90
+ * valid.
91
+ * @extends {jspb.Message}
92
+ * @constructor
93
+ */
94
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest = function(opt_data) {
95
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
96
+ };
97
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest, jspb.Message);
98
+ if (goog.DEBUG && !COMPILED) {
99
+ /**
100
+ * @public
101
+ * @override
102
+ */
103
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.displayName = 'proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest';
104
+ }
105
+ /**
106
+ * Generated by JsPbCodeGenerator.
107
+ * @param {Array=} opt_data Optional initial data array, typically from a
108
+ * server response, or constructed directly in Javascript. The array is used
109
+ * in place and becomes part of the constructed object. It is not cloned.
110
+ * If no data is provided, the constructed object will be empty, but still
111
+ * valid.
112
+ * @extends {jspb.Message}
113
+ * @constructor
114
+ */
115
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse = function(opt_data) {
116
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
117
+ };
118
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse, jspb.Message);
119
+ if (goog.DEBUG && !COMPILED) {
120
+ /**
121
+ * @public
122
+ * @override
123
+ */
124
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.displayName = 'proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse';
125
+ }
126
+ /**
127
+ * Generated by JsPbCodeGenerator.
128
+ * @param {Array=} opt_data Optional initial data array, typically from a
129
+ * server response, or constructed directly in Javascript. The array is used
130
+ * in place and becomes part of the constructed object. It is not cloned.
131
+ * If no data is provided, the constructed object will be empty, but still
132
+ * valid.
133
+ * @extends {jspb.Message}
134
+ * @constructor
135
+ */
136
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest = function(opt_data) {
137
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
138
+ };
139
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest, jspb.Message);
140
+ if (goog.DEBUG && !COMPILED) {
141
+ /**
142
+ * @public
143
+ * @override
144
+ */
145
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.displayName = 'proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest';
146
+ }
147
+ /**
148
+ * Generated by JsPbCodeGenerator.
149
+ * @param {Array=} opt_data Optional initial data array, typically from a
150
+ * server response, or constructed directly in Javascript. The array is used
151
+ * in place and becomes part of the constructed object. It is not cloned.
152
+ * If no data is provided, the constructed object will be empty, but still
153
+ * valid.
154
+ * @extends {jspb.Message}
155
+ * @constructor
156
+ */
157
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse = function(opt_data) {
158
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
159
+ };
160
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse, jspb.Message);
161
+ if (goog.DEBUG && !COMPILED) {
162
+ /**
163
+ * @public
164
+ * @override
165
+ */
166
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.displayName = 'proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse';
167
+ }
168
+
169
+
170
+
171
+ if (jspb.Message.GENERATE_TO_OBJECT) {
172
+ /**
173
+ * Creates an object representation of this proto.
174
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
175
+ * Optional fields that are not set will be set to undefined.
176
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
177
+ * For the list of reserved names please see:
178
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
179
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
180
+ * JSPB instance for transitional soy proto support:
181
+ * http://goto/soy-param-migration
182
+ * @return {!Object}
183
+ */
184
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.prototype.toObject = function(opt_includeInstance) {
185
+ return proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.toObject(opt_includeInstance, this);
186
+ };
187
+
188
+
189
+ /**
190
+ * Static version of the {@see toObject} method.
191
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
192
+ * the JSPB instance for transitional soy proto support:
193
+ * http://goto/soy-param-migration
194
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest} msg The msg instance to transform.
195
+ * @return {!Object}
196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
197
+ */
198
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.toObject = function(includeInstance, msg) {
199
+ var f, obj = {
200
+ name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
201
+ };
202
+
203
+ if (includeInstance) {
204
+ obj.$jspbMessageInstance = msg;
205
+ }
206
+ return obj;
207
+ };
208
+ }
209
+
210
+
211
+ /**
212
+ * Deserializes binary data (in protobuf wire format).
213
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
214
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest}
215
+ */
216
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.deserializeBinary = function(bytes) {
217
+ var reader = new jspb.BinaryReader(bytes);
218
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest;
219
+ return proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.deserializeBinaryFromReader(msg, reader);
220
+ };
221
+
222
+
223
+ /**
224
+ * Deserializes binary data (in protobuf wire format) from the
225
+ * given reader into the given message object.
226
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest} msg The message object to deserialize into.
227
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
228
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest}
229
+ */
230
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
231
+ while (reader.nextField()) {
232
+ if (reader.isEndGroup()) {
233
+ break;
234
+ }
235
+ var field = reader.getFieldNumber();
236
+ switch (field) {
237
+ case 1:
238
+ var value = /** @type {string} */ (reader.readString());
239
+ msg.setName(value);
240
+ break;
241
+ default:
242
+ reader.skipField();
243
+ break;
244
+ }
245
+ }
246
+ return msg;
247
+ };
248
+
249
+
250
+ /**
251
+ * Serializes the message to binary data (in protobuf wire format).
252
+ * @return {!Uint8Array}
253
+ */
254
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.prototype.serializeBinary = function() {
255
+ var writer = new jspb.BinaryWriter();
256
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.serializeBinaryToWriter(this, writer);
257
+ return writer.getResultBuffer();
258
+ };
259
+
260
+
261
+ /**
262
+ * Serializes the given message to binary data (in protobuf wire
263
+ * format), writing to the given BinaryWriter.
264
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest} message
265
+ * @param {!jspb.BinaryWriter} writer
266
+ * @suppress {unusedLocalVariables} f is only used for nested messages
267
+ */
268
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.serializeBinaryToWriter = function(message, writer) {
269
+ var f = undefined;
270
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
271
+ if (f != null) {
272
+ writer.writeString(
273
+ 1,
274
+ f
275
+ );
276
+ }
277
+ };
278
+
279
+
280
+ /**
281
+ * optional string name = 1;
282
+ * @return {string}
283
+ */
284
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.prototype.getName = function() {
285
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
286
+ };
287
+
288
+
289
+ /**
290
+ * @param {string} value
291
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest} returns this
292
+ */
293
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.prototype.setName = function(value) {
294
+ return jspb.Message.setField(this, 1, value);
295
+ };
296
+
297
+
298
+ /**
299
+ * Clears the field making it undefined.
300
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest} returns this
301
+ */
302
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.prototype.clearName = function() {
303
+ return jspb.Message.setField(this, 1, undefined);
304
+ };
305
+
306
+
307
+ /**
308
+ * Returns whether this field is set.
309
+ * @return {boolean}
310
+ */
311
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountRequest.prototype.hasName = function() {
312
+ return jspb.Message.getField(this, 1) != null;
313
+ };
314
+
315
+
316
+
317
+
318
+
319
+ if (jspb.Message.GENERATE_TO_OBJECT) {
320
+ /**
321
+ * Creates an object representation of this proto.
322
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
323
+ * Optional fields that are not set will be set to undefined.
324
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
325
+ * For the list of reserved names please see:
326
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
327
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
328
+ * JSPB instance for transitional soy proto support:
329
+ * http://goto/soy-param-migration
330
+ * @return {!Object}
331
+ */
332
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.prototype.toObject = function(opt_includeInstance) {
333
+ return proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.toObject(opt_includeInstance, this);
334
+ };
335
+
336
+
337
+ /**
338
+ * Static version of the {@see toObject} method.
339
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
340
+ * the JSPB instance for transitional soy proto support:
341
+ * http://goto/soy-param-migration
342
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse} msg The msg instance to transform.
343
+ * @return {!Object}
344
+ * @suppress {unusedLocalVariables} f is only used for nested messages
345
+ */
346
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.toObject = function(includeInstance, msg) {
347
+ var f, obj = {
348
+ accountId: jspb.Message.getFieldWithDefault(msg, 1, "")
349
+ };
350
+
351
+ if (includeInstance) {
352
+ obj.$jspbMessageInstance = msg;
353
+ }
354
+ return obj;
355
+ };
356
+ }
357
+
358
+
359
+ /**
360
+ * Deserializes binary data (in protobuf wire format).
361
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
362
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse}
363
+ */
364
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.deserializeBinary = function(bytes) {
365
+ var reader = new jspb.BinaryReader(bytes);
366
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse;
367
+ return proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.deserializeBinaryFromReader(msg, reader);
368
+ };
369
+
370
+
371
+ /**
372
+ * Deserializes binary data (in protobuf wire format) from the
373
+ * given reader into the given message object.
374
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse} msg The message object to deserialize into.
375
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
376
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse}
377
+ */
378
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
379
+ while (reader.nextField()) {
380
+ if (reader.isEndGroup()) {
381
+ break;
382
+ }
383
+ var field = reader.getFieldNumber();
384
+ switch (field) {
385
+ case 1:
386
+ var value = /** @type {string} */ (reader.readString());
387
+ msg.setAccountId(value);
388
+ break;
389
+ default:
390
+ reader.skipField();
391
+ break;
392
+ }
393
+ }
394
+ return msg;
395
+ };
396
+
397
+
398
+ /**
399
+ * Serializes the message to binary data (in protobuf wire format).
400
+ * @return {!Uint8Array}
401
+ */
402
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.prototype.serializeBinary = function() {
403
+ var writer = new jspb.BinaryWriter();
404
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.serializeBinaryToWriter(this, writer);
405
+ return writer.getResultBuffer();
406
+ };
407
+
408
+
409
+ /**
410
+ * Serializes the given message to binary data (in protobuf wire
411
+ * format), writing to the given BinaryWriter.
412
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse} message
413
+ * @param {!jspb.BinaryWriter} writer
414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
415
+ */
416
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.serializeBinaryToWriter = function(message, writer) {
417
+ var f = undefined;
418
+ f = message.getAccountId();
419
+ if (f.length > 0) {
420
+ writer.writeString(
421
+ 1,
422
+ f
423
+ );
424
+ }
425
+ };
426
+
427
+
428
+ /**
429
+ * optional string account_id = 1;
430
+ * @return {string}
431
+ */
432
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.prototype.getAccountId = function() {
433
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
434
+ };
435
+
436
+
437
+ /**
438
+ * @param {string} value
439
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse} returns this
440
+ */
441
+ proto.tinkoff.public.invest.api.contract.v1.OpenSandboxAccountResponse.prototype.setAccountId = function(value) {
442
+ return jspb.Message.setProto3StringField(this, 1, value);
443
+ };
444
+
445
+
446
+
447
+
448
+
449
+ if (jspb.Message.GENERATE_TO_OBJECT) {
450
+ /**
451
+ * Creates an object representation of this proto.
452
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
453
+ * Optional fields that are not set will be set to undefined.
454
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
455
+ * For the list of reserved names please see:
456
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
457
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
458
+ * JSPB instance for transitional soy proto support:
459
+ * http://goto/soy-param-migration
460
+ * @return {!Object}
461
+ */
462
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.prototype.toObject = function(opt_includeInstance) {
463
+ return proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.toObject(opt_includeInstance, this);
464
+ };
465
+
466
+
467
+ /**
468
+ * Static version of the {@see toObject} method.
469
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
470
+ * the JSPB instance for transitional soy proto support:
471
+ * http://goto/soy-param-migration
472
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest} msg The msg instance to transform.
473
+ * @return {!Object}
474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
475
+ */
476
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.toObject = function(includeInstance, msg) {
477
+ var f, obj = {
478
+ accountId: jspb.Message.getFieldWithDefault(msg, 1, "")
479
+ };
480
+
481
+ if (includeInstance) {
482
+ obj.$jspbMessageInstance = msg;
483
+ }
484
+ return obj;
485
+ };
486
+ }
487
+
488
+
489
+ /**
490
+ * Deserializes binary data (in protobuf wire format).
491
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
492
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest}
493
+ */
494
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.deserializeBinary = function(bytes) {
495
+ var reader = new jspb.BinaryReader(bytes);
496
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest;
497
+ return proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.deserializeBinaryFromReader(msg, reader);
498
+ };
499
+
500
+
501
+ /**
502
+ * Deserializes binary data (in protobuf wire format) from the
503
+ * given reader into the given message object.
504
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest} msg The message object to deserialize into.
505
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
506
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest}
507
+ */
508
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
509
+ while (reader.nextField()) {
510
+ if (reader.isEndGroup()) {
511
+ break;
512
+ }
513
+ var field = reader.getFieldNumber();
514
+ switch (field) {
515
+ case 1:
516
+ var value = /** @type {string} */ (reader.readString());
517
+ msg.setAccountId(value);
518
+ break;
519
+ default:
520
+ reader.skipField();
521
+ break;
522
+ }
523
+ }
524
+ return msg;
525
+ };
526
+
527
+
528
+ /**
529
+ * Serializes the message to binary data (in protobuf wire format).
530
+ * @return {!Uint8Array}
531
+ */
532
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.prototype.serializeBinary = function() {
533
+ var writer = new jspb.BinaryWriter();
534
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.serializeBinaryToWriter(this, writer);
535
+ return writer.getResultBuffer();
536
+ };
537
+
538
+
539
+ /**
540
+ * Serializes the given message to binary data (in protobuf wire
541
+ * format), writing to the given BinaryWriter.
542
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest} message
543
+ * @param {!jspb.BinaryWriter} writer
544
+ * @suppress {unusedLocalVariables} f is only used for nested messages
545
+ */
546
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.serializeBinaryToWriter = function(message, writer) {
547
+ var f = undefined;
548
+ f = message.getAccountId();
549
+ if (f.length > 0) {
550
+ writer.writeString(
551
+ 1,
552
+ f
553
+ );
554
+ }
555
+ };
556
+
557
+
558
+ /**
559
+ * optional string account_id = 1;
560
+ * @return {string}
561
+ */
562
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.prototype.getAccountId = function() {
563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {string} value
569
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest} returns this
570
+ */
571
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest.prototype.setAccountId = function(value) {
572
+ return jspb.Message.setProto3StringField(this, 1, value);
573
+ };
574
+
575
+
576
+
577
+
578
+
579
+ if (jspb.Message.GENERATE_TO_OBJECT) {
580
+ /**
581
+ * Creates an object representation of this proto.
582
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
583
+ * Optional fields that are not set will be set to undefined.
584
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
585
+ * For the list of reserved names please see:
586
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
587
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
588
+ * JSPB instance for transitional soy proto support:
589
+ * http://goto/soy-param-migration
590
+ * @return {!Object}
591
+ */
592
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.prototype.toObject = function(opt_includeInstance) {
593
+ return proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.toObject(opt_includeInstance, this);
594
+ };
595
+
596
+
597
+ /**
598
+ * Static version of the {@see toObject} method.
599
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
600
+ * the JSPB instance for transitional soy proto support:
601
+ * http://goto/soy-param-migration
602
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse} msg The msg instance to transform.
603
+ * @return {!Object}
604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
605
+ */
606
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.toObject = function(includeInstance, msg) {
607
+ var f, obj = {
608
+
609
+ };
610
+
611
+ if (includeInstance) {
612
+ obj.$jspbMessageInstance = msg;
613
+ }
614
+ return obj;
615
+ };
616
+ }
617
+
618
+
619
+ /**
620
+ * Deserializes binary data (in protobuf wire format).
621
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
622
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse}
623
+ */
624
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.deserializeBinary = function(bytes) {
625
+ var reader = new jspb.BinaryReader(bytes);
626
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse;
627
+ return proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.deserializeBinaryFromReader(msg, reader);
628
+ };
629
+
630
+
631
+ /**
632
+ * Deserializes binary data (in protobuf wire format) from the
633
+ * given reader into the given message object.
634
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse} msg The message object to deserialize into.
635
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
636
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse}
637
+ */
638
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
639
+ while (reader.nextField()) {
640
+ if (reader.isEndGroup()) {
641
+ break;
642
+ }
643
+ var field = reader.getFieldNumber();
644
+ switch (field) {
645
+ default:
646
+ reader.skipField();
647
+ break;
648
+ }
649
+ }
650
+ return msg;
651
+ };
652
+
653
+
654
+ /**
655
+ * Serializes the message to binary data (in protobuf wire format).
656
+ * @return {!Uint8Array}
657
+ */
658
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.prototype.serializeBinary = function() {
659
+ var writer = new jspb.BinaryWriter();
660
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.serializeBinaryToWriter(this, writer);
661
+ return writer.getResultBuffer();
662
+ };
663
+
664
+
665
+ /**
666
+ * Serializes the given message to binary data (in protobuf wire
667
+ * format), writing to the given BinaryWriter.
668
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse} message
669
+ * @param {!jspb.BinaryWriter} writer
670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
671
+ */
672
+ proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse.serializeBinaryToWriter = function(message, writer) {
673
+ var f = undefined;
674
+ };
675
+
676
+
677
+
678
+
679
+
680
+ if (jspb.Message.GENERATE_TO_OBJECT) {
681
+ /**
682
+ * Creates an object representation of this proto.
683
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
684
+ * Optional fields that are not set will be set to undefined.
685
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
686
+ * For the list of reserved names please see:
687
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
688
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
689
+ * JSPB instance for transitional soy proto support:
690
+ * http://goto/soy-param-migration
691
+ * @return {!Object}
692
+ */
693
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.toObject = function(opt_includeInstance) {
694
+ return proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.toObject(opt_includeInstance, this);
695
+ };
696
+
697
+
698
+ /**
699
+ * Static version of the {@see toObject} method.
700
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
701
+ * the JSPB instance for transitional soy proto support:
702
+ * http://goto/soy-param-migration
703
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest} msg The msg instance to transform.
704
+ * @return {!Object}
705
+ * @suppress {unusedLocalVariables} f is only used for nested messages
706
+ */
707
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.toObject = function(includeInstance, msg) {
708
+ var f, obj = {
709
+ accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
710
+ amount: (f = msg.getAmount()) && tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
711
+ };
712
+
713
+ if (includeInstance) {
714
+ obj.$jspbMessageInstance = msg;
715
+ }
716
+ return obj;
717
+ };
718
+ }
719
+
720
+
721
+ /**
722
+ * Deserializes binary data (in protobuf wire format).
723
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
724
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest}
725
+ */
726
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.deserializeBinary = function(bytes) {
727
+ var reader = new jspb.BinaryReader(bytes);
728
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest;
729
+ return proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.deserializeBinaryFromReader(msg, reader);
730
+ };
731
+
732
+
733
+ /**
734
+ * Deserializes binary data (in protobuf wire format) from the
735
+ * given reader into the given message object.
736
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest} msg The message object to deserialize into.
737
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
738
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest}
739
+ */
740
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.deserializeBinaryFromReader = function(msg, reader) {
741
+ while (reader.nextField()) {
742
+ if (reader.isEndGroup()) {
743
+ break;
744
+ }
745
+ var field = reader.getFieldNumber();
746
+ switch (field) {
747
+ case 1:
748
+ var value = /** @type {string} */ (reader.readString());
749
+ msg.setAccountId(value);
750
+ break;
751
+ case 2:
752
+ var value = new tinvest_common_pb.MoneyValue;
753
+ reader.readMessage(value,tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
754
+ msg.setAmount(value);
755
+ break;
756
+ default:
757
+ reader.skipField();
758
+ break;
759
+ }
760
+ }
761
+ return msg;
762
+ };
763
+
764
+
765
+ /**
766
+ * Serializes the message to binary data (in protobuf wire format).
767
+ * @return {!Uint8Array}
768
+ */
769
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.serializeBinary = function() {
770
+ var writer = new jspb.BinaryWriter();
771
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.serializeBinaryToWriter(this, writer);
772
+ return writer.getResultBuffer();
773
+ };
774
+
775
+
776
+ /**
777
+ * Serializes the given message to binary data (in protobuf wire
778
+ * format), writing to the given BinaryWriter.
779
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest} message
780
+ * @param {!jspb.BinaryWriter} writer
781
+ * @suppress {unusedLocalVariables} f is only used for nested messages
782
+ */
783
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.serializeBinaryToWriter = function(message, writer) {
784
+ var f = undefined;
785
+ f = message.getAccountId();
786
+ if (f.length > 0) {
787
+ writer.writeString(
788
+ 1,
789
+ f
790
+ );
791
+ }
792
+ f = message.getAmount();
793
+ if (f != null) {
794
+ writer.writeMessage(
795
+ 2,
796
+ f,
797
+ tinvest_common_pb.MoneyValue.serializeBinaryToWriter
798
+ );
799
+ }
800
+ };
801
+
802
+
803
+ /**
804
+ * optional string account_id = 1;
805
+ * @return {string}
806
+ */
807
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.getAccountId = function() {
808
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
809
+ };
810
+
811
+
812
+ /**
813
+ * @param {string} value
814
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest} returns this
815
+ */
816
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.setAccountId = function(value) {
817
+ return jspb.Message.setProto3StringField(this, 1, value);
818
+ };
819
+
820
+
821
+ /**
822
+ * optional MoneyValue amount = 2;
823
+ * @return {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue}
824
+ */
825
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.getAmount = function() {
826
+ return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
827
+ jspb.Message.getWrapperField(this, tinvest_common_pb.MoneyValue, 2));
828
+ };
829
+
830
+
831
+ /**
832
+ * @param {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue|undefined} value
833
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest} returns this
834
+ */
835
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.setAmount = function(value) {
836
+ return jspb.Message.setWrapperField(this, 2, value);
837
+ };
838
+
839
+
840
+ /**
841
+ * Clears the message field making it undefined.
842
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest} returns this
843
+ */
844
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.clearAmount = function() {
845
+ return this.setAmount(undefined);
846
+ };
847
+
848
+
849
+ /**
850
+ * Returns whether this field is set.
851
+ * @return {boolean}
852
+ */
853
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.hasAmount = function() {
854
+ return jspb.Message.getField(this, 2) != null;
855
+ };
856
+
857
+
858
+
859
+
860
+
861
+ if (jspb.Message.GENERATE_TO_OBJECT) {
862
+ /**
863
+ * Creates an object representation of this proto.
864
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
865
+ * Optional fields that are not set will be set to undefined.
866
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
867
+ * For the list of reserved names please see:
868
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
869
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
870
+ * JSPB instance for transitional soy proto support:
871
+ * http://goto/soy-param-migration
872
+ * @return {!Object}
873
+ */
874
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.toObject = function(opt_includeInstance) {
875
+ return proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.toObject(opt_includeInstance, this);
876
+ };
877
+
878
+
879
+ /**
880
+ * Static version of the {@see toObject} method.
881
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
882
+ * the JSPB instance for transitional soy proto support:
883
+ * http://goto/soy-param-migration
884
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse} msg The msg instance to transform.
885
+ * @return {!Object}
886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
887
+ */
888
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.toObject = function(includeInstance, msg) {
889
+ var f, obj = {
890
+ balance: (f = msg.getBalance()) && tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
891
+ };
892
+
893
+ if (includeInstance) {
894
+ obj.$jspbMessageInstance = msg;
895
+ }
896
+ return obj;
897
+ };
898
+ }
899
+
900
+
901
+ /**
902
+ * Deserializes binary data (in protobuf wire format).
903
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
904
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse}
905
+ */
906
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.deserializeBinary = function(bytes) {
907
+ var reader = new jspb.BinaryReader(bytes);
908
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse;
909
+ return proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.deserializeBinaryFromReader(msg, reader);
910
+ };
911
+
912
+
913
+ /**
914
+ * Deserializes binary data (in protobuf wire format) from the
915
+ * given reader into the given message object.
916
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse} msg The message object to deserialize into.
917
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
918
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse}
919
+ */
920
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.deserializeBinaryFromReader = function(msg, reader) {
921
+ while (reader.nextField()) {
922
+ if (reader.isEndGroup()) {
923
+ break;
924
+ }
925
+ var field = reader.getFieldNumber();
926
+ switch (field) {
927
+ case 1:
928
+ var value = new tinvest_common_pb.MoneyValue;
929
+ reader.readMessage(value,tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
930
+ msg.setBalance(value);
931
+ break;
932
+ default:
933
+ reader.skipField();
934
+ break;
935
+ }
936
+ }
937
+ return msg;
938
+ };
939
+
940
+
941
+ /**
942
+ * Serializes the message to binary data (in protobuf wire format).
943
+ * @return {!Uint8Array}
944
+ */
945
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.serializeBinary = function() {
946
+ var writer = new jspb.BinaryWriter();
947
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.serializeBinaryToWriter(this, writer);
948
+ return writer.getResultBuffer();
949
+ };
950
+
951
+
952
+ /**
953
+ * Serializes the given message to binary data (in protobuf wire
954
+ * format), writing to the given BinaryWriter.
955
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse} message
956
+ * @param {!jspb.BinaryWriter} writer
957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
958
+ */
959
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.serializeBinaryToWriter = function(message, writer) {
960
+ var f = undefined;
961
+ f = message.getBalance();
962
+ if (f != null) {
963
+ writer.writeMessage(
964
+ 1,
965
+ f,
966
+ tinvest_common_pb.MoneyValue.serializeBinaryToWriter
967
+ );
968
+ }
969
+ };
970
+
971
+
972
+ /**
973
+ * optional MoneyValue balance = 1;
974
+ * @return {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue}
975
+ */
976
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.getBalance = function() {
977
+ return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
978
+ jspb.Message.getWrapperField(this, tinvest_common_pb.MoneyValue, 1));
979
+ };
980
+
981
+
982
+ /**
983
+ * @param {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue|undefined} value
984
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse} returns this
985
+ */
986
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.setBalance = function(value) {
987
+ return jspb.Message.setWrapperField(this, 1, value);
988
+ };
989
+
990
+
991
+ /**
992
+ * Clears the message field making it undefined.
993
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse} returns this
994
+ */
995
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.clearBalance = function() {
996
+ return this.setBalance(undefined);
997
+ };
998
+
999
+
1000
+ /**
1001
+ * Returns whether this field is set.
1002
+ * @return {boolean}
1003
+ */
1004
+ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.hasBalance = function() {
1005
+ return jspb.Message.getField(this, 1) != null;
1006
+ };
1007
+
1008
+
1009
+ goog.object.extend(exports, proto.tinkoff.public.invest.api.contract.v1);