@meshtrade/api-old 1.35.0 → 1.36.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.
@@ -1,4 +1,4 @@
1
- import { AddSignatoriesToAccountRequest, AddSignatoriesToAccountResponse, CreateAccountRequest, GetAccountByNumberRequest, GetAccountRequest, ListAccountsRequest, ListAccountsResponse, OpenAccountRequest, OpenAccountResponse, RemoveSignatoriesFromAccountRequest, RemoveSignatoriesFromAccountResponse, SearchAccountsRequest, SearchAccountsResponse, UpdateAccountRequest } from "./service_pb";
1
+ import { AddSignatoriesToAccountRequest, AddSignatoriesToAccountResponse, CreateAccountRequest, DeregisterTokensFromAccountRequest, DeregisterTokensFromAccountResponse, GetAccountByNumberRequest, GetAccountRequest, ListAccountsRequest, ListAccountsResponse, OpenAccountRequest, OpenAccountResponse, RegisterTokensToAccountRequest, RegisterTokensToAccountResponse, RemoveSignatoriesFromAccountRequest, RemoveSignatoriesFromAccountResponse, SearchAccountsRequest, SearchAccountsResponse, UpdateAccountRequest } from "./service_pb";
2
2
  import { Account } from "./account_pb";
3
3
  import { UnaryInterceptor } from "grpc-web";
4
4
  import { ConfigOpts } from "../../../common/config";
@@ -80,4 +80,16 @@ export declare class AccountServiceGrpcWebClientV1 {
80
80
  * @returns {Promise<SearchAccountsResponse>} A promise that resolves with the search results.
81
81
  */
82
82
  searchAccounts(request: SearchAccountsRequest): Promise<SearchAccountsResponse>;
83
+ /**
84
+ * Performs registertokenstoaccount operation on account.
85
+ * @param {RegisterTokensToAccountRequest} request - The request object for registertokenstoaccount.
86
+ * @returns {Promise<RegisterTokensToAccountResponse>} A promise that resolves with the account.
87
+ */
88
+ registerTokensToAccount(request: RegisterTokensToAccountRequest): Promise<RegisterTokensToAccountResponse>;
89
+ /**
90
+ * Performs deregistertokensfromaccount operation on account.
91
+ * @param {DeregisterTokensFromAccountRequest} request - The request object for deregistertokensfromaccount.
92
+ * @returns {Promise<DeregisterTokensFromAccountResponse>} A promise that resolves with the account.
93
+ */
94
+ deregisterTokensFromAccount(request: DeregisterTokensFromAccountRequest): Promise<DeregisterTokensFromAccountResponse>;
83
95
  }
@@ -122,5 +122,21 @@ class AccountServiceGrpcWebClientV1 {
122
122
  searchAccounts(request) {
123
123
  return this._service.searchAccounts(request);
124
124
  }
125
+ /**
126
+ * Performs registertokenstoaccount operation on account.
127
+ * @param {RegisterTokensToAccountRequest} request - The request object for registertokenstoaccount.
128
+ * @returns {Promise<RegisterTokensToAccountResponse>} A promise that resolves with the account.
129
+ */
130
+ registerTokensToAccount(request) {
131
+ return this._service.registerTokensToAccount(request);
132
+ }
133
+ /**
134
+ * Performs deregistertokensfromaccount operation on account.
135
+ * @param {DeregisterTokensFromAccountRequest} request - The request object for deregistertokensfromaccount.
136
+ * @returns {Promise<DeregisterTokensFromAccountResponse>} A promise that resolves with the account.
137
+ */
138
+ deregisterTokensFromAccount(request) {
139
+ return this._service.deregisterTokensFromAccount(request);
140
+ }
125
141
  }
126
142
  exports.AccountServiceGrpcWebClientV1 = AccountServiceGrpcWebClientV1;
@@ -72,6 +72,20 @@ export class AccountServiceClient {
72
72
  response: meshtrade_wallet_account_v1_service_pb.SearchAccountsResponse) => void
73
73
  ): grpcWeb.ClientReadableStream<meshtrade_wallet_account_v1_service_pb.SearchAccountsResponse>;
74
74
 
75
+ registerTokensToAccount(
76
+ request: meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountRequest,
77
+ metadata: grpcWeb.Metadata | undefined,
78
+ callback: (err: grpcWeb.RpcError,
79
+ response: meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountResponse) => void
80
+ ): grpcWeb.ClientReadableStream<meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountResponse>;
81
+
82
+ deregisterTokensFromAccount(
83
+ request: meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountRequest,
84
+ metadata: grpcWeb.Metadata | undefined,
85
+ callback: (err: grpcWeb.RpcError,
86
+ response: meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountResponse) => void
87
+ ): grpcWeb.ClientReadableStream<meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountResponse>;
88
+
75
89
  }
76
90
 
77
91
  export class AccountServicePromiseClient {
@@ -124,5 +138,15 @@ export class AccountServicePromiseClient {
124
138
  metadata?: grpcWeb.Metadata
125
139
  ): Promise<meshtrade_wallet_account_v1_service_pb.SearchAccountsResponse>;
126
140
 
141
+ registerTokensToAccount(
142
+ request: meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountRequest,
143
+ metadata?: grpcWeb.Metadata
144
+ ): Promise<meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountResponse>;
145
+
146
+ deregisterTokensFromAccount(
147
+ request: meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountRequest,
148
+ metadata?: grpcWeb.Metadata
149
+ ): Promise<meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountResponse>;
150
+
127
151
  }
128
152
 
@@ -26,6 +26,8 @@ var meshtrade_option_method_options_v1_method_options_pb = require('../../../../
26
26
 
27
27
  var meshtrade_type_v1_sorting_pb = require('../../../../meshtrade/type/v1/sorting_pb.js')
28
28
 
29
+ var meshtrade_type_v1_token_pb = require('../../../../meshtrade/type/v1/token_pb.js')
30
+
29
31
  var meshtrade_wallet_account_v1_account_pb = require('../../../../meshtrade/wallet/account/v1/account_pb.js')
30
32
  const proto = {};
31
33
  proto.meshtrade = {};
@@ -634,5 +636,127 @@ proto.meshtrade.wallet.account.v1.AccountServicePromiseClient.prototype.searchAc
634
636
  };
635
637
 
636
638
 
639
+ /**
640
+ * @const
641
+ * @type {!grpc.web.MethodDescriptor<
642
+ * !proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest,
643
+ * !proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse>}
644
+ */
645
+ const methodDescriptor_AccountService_RegisterTokensToAccount = new grpc.web.MethodDescriptor(
646
+ '/meshtrade.wallet.account.v1.AccountService/RegisterTokensToAccount',
647
+ grpc.web.MethodType.UNARY,
648
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest,
649
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse,
650
+ /**
651
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} request
652
+ * @return {!Uint8Array}
653
+ */
654
+ function(request) {
655
+ return request.serializeBinary();
656
+ },
657
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.deserializeBinary
658
+ );
659
+
660
+
661
+ /**
662
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} request The
663
+ * request proto
664
+ * @param {?Object<string, string>} metadata User defined
665
+ * call metadata
666
+ * @param {function(?grpc.web.RpcError, ?proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse)}
667
+ * callback The callback function(error, response)
668
+ * @return {!grpc.web.ClientReadableStream<!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse>|undefined}
669
+ * The XHR Node Readable Stream
670
+ */
671
+ proto.meshtrade.wallet.account.v1.AccountServiceClient.prototype.registerTokensToAccount =
672
+ function(request, metadata, callback) {
673
+ return this.client_.rpcCall(this.hostname_ +
674
+ '/meshtrade.wallet.account.v1.AccountService/RegisterTokensToAccount',
675
+ request,
676
+ metadata || {},
677
+ methodDescriptor_AccountService_RegisterTokensToAccount,
678
+ callback);
679
+ };
680
+
681
+
682
+ /**
683
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} request The
684
+ * request proto
685
+ * @param {?Object<string, string>=} metadata User defined
686
+ * call metadata
687
+ * @return {!Promise<!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse>}
688
+ * Promise that resolves to the response
689
+ */
690
+ proto.meshtrade.wallet.account.v1.AccountServicePromiseClient.prototype.registerTokensToAccount =
691
+ function(request, metadata) {
692
+ return this.client_.unaryCall(this.hostname_ +
693
+ '/meshtrade.wallet.account.v1.AccountService/RegisterTokensToAccount',
694
+ request,
695
+ metadata || {},
696
+ methodDescriptor_AccountService_RegisterTokensToAccount);
697
+ };
698
+
699
+
700
+ /**
701
+ * @const
702
+ * @type {!grpc.web.MethodDescriptor<
703
+ * !proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest,
704
+ * !proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse>}
705
+ */
706
+ const methodDescriptor_AccountService_DeregisterTokensFromAccount = new grpc.web.MethodDescriptor(
707
+ '/meshtrade.wallet.account.v1.AccountService/DeregisterTokensFromAccount',
708
+ grpc.web.MethodType.UNARY,
709
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest,
710
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse,
711
+ /**
712
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} request
713
+ * @return {!Uint8Array}
714
+ */
715
+ function(request) {
716
+ return request.serializeBinary();
717
+ },
718
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.deserializeBinary
719
+ );
720
+
721
+
722
+ /**
723
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} request The
724
+ * request proto
725
+ * @param {?Object<string, string>} metadata User defined
726
+ * call metadata
727
+ * @param {function(?grpc.web.RpcError, ?proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse)}
728
+ * callback The callback function(error, response)
729
+ * @return {!grpc.web.ClientReadableStream<!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse>|undefined}
730
+ * The XHR Node Readable Stream
731
+ */
732
+ proto.meshtrade.wallet.account.v1.AccountServiceClient.prototype.deregisterTokensFromAccount =
733
+ function(request, metadata, callback) {
734
+ return this.client_.rpcCall(this.hostname_ +
735
+ '/meshtrade.wallet.account.v1.AccountService/DeregisterTokensFromAccount',
736
+ request,
737
+ metadata || {},
738
+ methodDescriptor_AccountService_DeregisterTokensFromAccount,
739
+ callback);
740
+ };
741
+
742
+
743
+ /**
744
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} request The
745
+ * request proto
746
+ * @param {?Object<string, string>=} metadata User defined
747
+ * call metadata
748
+ * @return {!Promise<!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse>}
749
+ * Promise that resolves to the response
750
+ */
751
+ proto.meshtrade.wallet.account.v1.AccountServicePromiseClient.prototype.deregisterTokensFromAccount =
752
+ function(request, metadata) {
753
+ return this.client_.unaryCall(this.hostname_ +
754
+ '/meshtrade.wallet.account.v1.AccountService/DeregisterTokensFromAccount',
755
+ request,
756
+ metadata || {},
757
+ methodDescriptor_AccountService_DeregisterTokensFromAccount);
758
+ };
759
+
760
+
637
761
  module.exports = proto.meshtrade.wallet.account.v1;
638
762
 
@@ -3,6 +3,7 @@ import * as jspb from 'google-protobuf'
3
3
  import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
4
4
  import * as meshtrade_option_method_options_v1_method_options_pb from '../../../../meshtrade/option/method_options/v1/method_options_pb'; // proto import: "meshtrade/option/method_options/v1/method_options.proto"
5
5
  import * as meshtrade_type_v1_sorting_pb from '../../../../meshtrade/type/v1/sorting_pb'; // proto import: "meshtrade/type/v1/sorting.proto"
6
+ import * as meshtrade_type_v1_token_pb from '../../../../meshtrade/type/v1/token_pb'; // proto import: "meshtrade/type/v1/token.proto"
6
7
  import * as meshtrade_wallet_account_v1_account_pb from '../../../../meshtrade/wallet/account/v1/account_pb'; // proto import: "meshtrade/wallet/account/v1/account.proto"
7
8
 
8
9
 
@@ -348,3 +349,87 @@ export namespace SearchAccountsResponse {
348
349
  }
349
350
  }
350
351
 
352
+ export class RegisterTokensToAccountRequest extends jspb.Message {
353
+ getName(): string;
354
+ setName(value: string): RegisterTokensToAccountRequest;
355
+
356
+ getTokensList(): Array<meshtrade_type_v1_token_pb.Token>;
357
+ setTokensList(value: Array<meshtrade_type_v1_token_pb.Token>): RegisterTokensToAccountRequest;
358
+ clearTokensList(): RegisterTokensToAccountRequest;
359
+ addTokens(value?: meshtrade_type_v1_token_pb.Token, index?: number): meshtrade_type_v1_token_pb.Token;
360
+
361
+ serializeBinary(): Uint8Array;
362
+ toObject(includeInstance?: boolean): RegisterTokensToAccountRequest.AsObject;
363
+ static toObject(includeInstance: boolean, msg: RegisterTokensToAccountRequest): RegisterTokensToAccountRequest.AsObject;
364
+ static serializeBinaryToWriter(message: RegisterTokensToAccountRequest, writer: jspb.BinaryWriter): void;
365
+ static deserializeBinary(bytes: Uint8Array): RegisterTokensToAccountRequest;
366
+ static deserializeBinaryFromReader(message: RegisterTokensToAccountRequest, reader: jspb.BinaryReader): RegisterTokensToAccountRequest;
367
+ }
368
+
369
+ export namespace RegisterTokensToAccountRequest {
370
+ export type AsObject = {
371
+ name: string,
372
+ tokensList: Array<meshtrade_type_v1_token_pb.Token.AsObject>,
373
+ }
374
+ }
375
+
376
+ export class RegisterTokensToAccountResponse extends jspb.Message {
377
+ getLedgerTransaction(): string;
378
+ setLedgerTransaction(value: string): RegisterTokensToAccountResponse;
379
+
380
+ serializeBinary(): Uint8Array;
381
+ toObject(includeInstance?: boolean): RegisterTokensToAccountResponse.AsObject;
382
+ static toObject(includeInstance: boolean, msg: RegisterTokensToAccountResponse): RegisterTokensToAccountResponse.AsObject;
383
+ static serializeBinaryToWriter(message: RegisterTokensToAccountResponse, writer: jspb.BinaryWriter): void;
384
+ static deserializeBinary(bytes: Uint8Array): RegisterTokensToAccountResponse;
385
+ static deserializeBinaryFromReader(message: RegisterTokensToAccountResponse, reader: jspb.BinaryReader): RegisterTokensToAccountResponse;
386
+ }
387
+
388
+ export namespace RegisterTokensToAccountResponse {
389
+ export type AsObject = {
390
+ ledgerTransaction: string,
391
+ }
392
+ }
393
+
394
+ export class DeregisterTokensFromAccountRequest extends jspb.Message {
395
+ getName(): string;
396
+ setName(value: string): DeregisterTokensFromAccountRequest;
397
+
398
+ getTokensList(): Array<meshtrade_type_v1_token_pb.Token>;
399
+ setTokensList(value: Array<meshtrade_type_v1_token_pb.Token>): DeregisterTokensFromAccountRequest;
400
+ clearTokensList(): DeregisterTokensFromAccountRequest;
401
+ addTokens(value?: meshtrade_type_v1_token_pb.Token, index?: number): meshtrade_type_v1_token_pb.Token;
402
+
403
+ serializeBinary(): Uint8Array;
404
+ toObject(includeInstance?: boolean): DeregisterTokensFromAccountRequest.AsObject;
405
+ static toObject(includeInstance: boolean, msg: DeregisterTokensFromAccountRequest): DeregisterTokensFromAccountRequest.AsObject;
406
+ static serializeBinaryToWriter(message: DeregisterTokensFromAccountRequest, writer: jspb.BinaryWriter): void;
407
+ static deserializeBinary(bytes: Uint8Array): DeregisterTokensFromAccountRequest;
408
+ static deserializeBinaryFromReader(message: DeregisterTokensFromAccountRequest, reader: jspb.BinaryReader): DeregisterTokensFromAccountRequest;
409
+ }
410
+
411
+ export namespace DeregisterTokensFromAccountRequest {
412
+ export type AsObject = {
413
+ name: string,
414
+ tokensList: Array<meshtrade_type_v1_token_pb.Token.AsObject>,
415
+ }
416
+ }
417
+
418
+ export class DeregisterTokensFromAccountResponse extends jspb.Message {
419
+ getLedgerTransaction(): string;
420
+ setLedgerTransaction(value: string): DeregisterTokensFromAccountResponse;
421
+
422
+ serializeBinary(): Uint8Array;
423
+ toObject(includeInstance?: boolean): DeregisterTokensFromAccountResponse.AsObject;
424
+ static toObject(includeInstance: boolean, msg: DeregisterTokensFromAccountResponse): DeregisterTokensFromAccountResponse.AsObject;
425
+ static serializeBinaryToWriter(message: DeregisterTokensFromAccountResponse, writer: jspb.BinaryWriter): void;
426
+ static deserializeBinary(bytes: Uint8Array): DeregisterTokensFromAccountResponse;
427
+ static deserializeBinaryFromReader(message: DeregisterTokensFromAccountResponse, reader: jspb.BinaryReader): DeregisterTokensFromAccountResponse;
428
+ }
429
+
430
+ export namespace DeregisterTokensFromAccountResponse {
431
+ export type AsObject = {
432
+ ledgerTransaction: string,
433
+ }
434
+ }
435
+
@@ -27,11 +27,15 @@ var meshtrade_option_method_options_v1_method_options_pb = require('../../../../
27
27
  goog.object.extend(proto, meshtrade_option_method_options_v1_method_options_pb);
28
28
  var meshtrade_type_v1_sorting_pb = require('../../../../meshtrade/type/v1/sorting_pb.js');
29
29
  goog.object.extend(proto, meshtrade_type_v1_sorting_pb);
30
+ var meshtrade_type_v1_token_pb = require('../../../../meshtrade/type/v1/token_pb.js');
31
+ goog.object.extend(proto, meshtrade_type_v1_token_pb);
30
32
  var meshtrade_wallet_account_v1_account_pb = require('../../../../meshtrade/wallet/account/v1/account_pb.js');
31
33
  goog.object.extend(proto, meshtrade_wallet_account_v1_account_pb);
32
34
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.AddSignatoriesToAccountRequest', null, global);
33
35
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.AddSignatoriesToAccountResponse', null, global);
34
36
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.CreateAccountRequest', null, global);
37
+ goog.exportSymbol('proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest', null, global);
38
+ goog.exportSymbol('proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse', null, global);
35
39
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.GetAccountByNumberRequest', null, global);
36
40
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.GetAccountRequest', null, global);
37
41
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.ListAccountsRequest', null, global);
@@ -39,6 +43,8 @@ goog.exportSymbol('proto.meshtrade.wallet.account.v1.ListAccountsRequest.Sorting
39
43
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.ListAccountsResponse', null, global);
40
44
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.OpenAccountRequest', null, global);
41
45
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.OpenAccountResponse', null, global);
46
+ goog.exportSymbol('proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest', null, global);
47
+ goog.exportSymbol('proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse', null, global);
42
48
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.RemoveSignatoriesFromAccountRequest', null, global);
43
49
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.RemoveSignatoriesFromAccountResponse', null, global);
44
50
  goog.exportSymbol('proto.meshtrade.wallet.account.v1.SearchAccountsRequest', null, global);
@@ -381,6 +387,90 @@ if (goog.DEBUG && !COMPILED) {
381
387
  */
382
388
  proto.meshtrade.wallet.account.v1.SearchAccountsResponse.displayName = 'proto.meshtrade.wallet.account.v1.SearchAccountsResponse';
383
389
  }
390
+ /**
391
+ * Generated by JsPbCodeGenerator.
392
+ * @param {Array=} opt_data Optional initial data array, typically from a
393
+ * server response, or constructed directly in Javascript. The array is used
394
+ * in place and becomes part of the constructed object. It is not cloned.
395
+ * If no data is provided, the constructed object will be empty, but still
396
+ * valid.
397
+ * @extends {jspb.Message}
398
+ * @constructor
399
+ */
400
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest = function(opt_data) {
401
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.repeatedFields_, null);
402
+ };
403
+ goog.inherits(proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest, jspb.Message);
404
+ if (goog.DEBUG && !COMPILED) {
405
+ /**
406
+ * @public
407
+ * @override
408
+ */
409
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.displayName = 'proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest';
410
+ }
411
+ /**
412
+ * Generated by JsPbCodeGenerator.
413
+ * @param {Array=} opt_data Optional initial data array, typically from a
414
+ * server response, or constructed directly in Javascript. The array is used
415
+ * in place and becomes part of the constructed object. It is not cloned.
416
+ * If no data is provided, the constructed object will be empty, but still
417
+ * valid.
418
+ * @extends {jspb.Message}
419
+ * @constructor
420
+ */
421
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse = function(opt_data) {
422
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
423
+ };
424
+ goog.inherits(proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse, jspb.Message);
425
+ if (goog.DEBUG && !COMPILED) {
426
+ /**
427
+ * @public
428
+ * @override
429
+ */
430
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.displayName = 'proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse';
431
+ }
432
+ /**
433
+ * Generated by JsPbCodeGenerator.
434
+ * @param {Array=} opt_data Optional initial data array, typically from a
435
+ * server response, or constructed directly in Javascript. The array is used
436
+ * in place and becomes part of the constructed object. It is not cloned.
437
+ * If no data is provided, the constructed object will be empty, but still
438
+ * valid.
439
+ * @extends {jspb.Message}
440
+ * @constructor
441
+ */
442
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest = function(opt_data) {
443
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.repeatedFields_, null);
444
+ };
445
+ goog.inherits(proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest, jspb.Message);
446
+ if (goog.DEBUG && !COMPILED) {
447
+ /**
448
+ * @public
449
+ * @override
450
+ */
451
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.displayName = 'proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest';
452
+ }
453
+ /**
454
+ * Generated by JsPbCodeGenerator.
455
+ * @param {Array=} opt_data Optional initial data array, typically from a
456
+ * server response, or constructed directly in Javascript. The array is used
457
+ * in place and becomes part of the constructed object. It is not cloned.
458
+ * If no data is provided, the constructed object will be empty, but still
459
+ * valid.
460
+ * @extends {jspb.Message}
461
+ * @constructor
462
+ */
463
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse = function(opt_data) {
464
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
465
+ };
466
+ goog.inherits(proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse, jspb.Message);
467
+ if (goog.DEBUG && !COMPILED) {
468
+ /**
469
+ * @public
470
+ * @override
471
+ */
472
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.displayName = 'proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse';
473
+ }
384
474
 
385
475
 
386
476
 
@@ -2927,4 +3017,644 @@ proto.meshtrade.wallet.account.v1.SearchAccountsResponse.prototype.clearAccounts
2927
3017
  };
2928
3018
 
2929
3019
 
3020
+
3021
+ /**
3022
+ * List of repeated fields within this message type.
3023
+ * @private {!Array<number>}
3024
+ * @const
3025
+ */
3026
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.repeatedFields_ = [2];
3027
+
3028
+
3029
+
3030
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3031
+ /**
3032
+ * Creates an object representation of this proto.
3033
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3034
+ * Optional fields that are not set will be set to undefined.
3035
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3036
+ * For the list of reserved names please see:
3037
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3038
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3039
+ * JSPB instance for transitional soy proto support:
3040
+ * http://goto/soy-param-migration
3041
+ * @return {!Object}
3042
+ */
3043
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.toObject = function(opt_includeInstance) {
3044
+ return proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.toObject(opt_includeInstance, this);
3045
+ };
3046
+
3047
+
3048
+ /**
3049
+ * Static version of the {@see toObject} method.
3050
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3051
+ * the JSPB instance for transitional soy proto support:
3052
+ * http://goto/soy-param-migration
3053
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} msg The msg instance to transform.
3054
+ * @return {!Object}
3055
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3056
+ */
3057
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.toObject = function(includeInstance, msg) {
3058
+ var f, obj = {
3059
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3060
+ tokensList: jspb.Message.toObjectList(msg.getTokensList(),
3061
+ meshtrade_type_v1_token_pb.Token.toObject, includeInstance)
3062
+ };
3063
+
3064
+ if (includeInstance) {
3065
+ obj.$jspbMessageInstance = msg;
3066
+ }
3067
+ return obj;
3068
+ };
3069
+ }
3070
+
3071
+
3072
+ /**
3073
+ * Deserializes binary data (in protobuf wire format).
3074
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3075
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest}
3076
+ */
3077
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.deserializeBinary = function(bytes) {
3078
+ var reader = new jspb.BinaryReader(bytes);
3079
+ var msg = new proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest;
3080
+ return proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.deserializeBinaryFromReader(msg, reader);
3081
+ };
3082
+
3083
+
3084
+ /**
3085
+ * Deserializes binary data (in protobuf wire format) from the
3086
+ * given reader into the given message object.
3087
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} msg The message object to deserialize into.
3088
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3089
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest}
3090
+ */
3091
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
3092
+ while (reader.nextField()) {
3093
+ if (reader.isEndGroup()) {
3094
+ break;
3095
+ }
3096
+ var field = reader.getFieldNumber();
3097
+ switch (field) {
3098
+ case 1:
3099
+ var value = /** @type {string} */ (reader.readString());
3100
+ msg.setName(value);
3101
+ break;
3102
+ case 2:
3103
+ var value = new meshtrade_type_v1_token_pb.Token;
3104
+ reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
3105
+ msg.addTokens(value);
3106
+ break;
3107
+ default:
3108
+ reader.skipField();
3109
+ break;
3110
+ }
3111
+ }
3112
+ return msg;
3113
+ };
3114
+
3115
+
3116
+ /**
3117
+ * Serializes the message to binary data (in protobuf wire format).
3118
+ * @return {!Uint8Array}
3119
+ */
3120
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.serializeBinary = function() {
3121
+ var writer = new jspb.BinaryWriter();
3122
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.serializeBinaryToWriter(this, writer);
3123
+ return writer.getResultBuffer();
3124
+ };
3125
+
3126
+
3127
+ /**
3128
+ * Serializes the given message to binary data (in protobuf wire
3129
+ * format), writing to the given BinaryWriter.
3130
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} message
3131
+ * @param {!jspb.BinaryWriter} writer
3132
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3133
+ */
3134
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.serializeBinaryToWriter = function(message, writer) {
3135
+ var f = undefined;
3136
+ f = message.getName();
3137
+ if (f.length > 0) {
3138
+ writer.writeString(
3139
+ 1,
3140
+ f
3141
+ );
3142
+ }
3143
+ f = message.getTokensList();
3144
+ if (f.length > 0) {
3145
+ writer.writeRepeatedMessage(
3146
+ 2,
3147
+ f,
3148
+ meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
3149
+ );
3150
+ }
3151
+ };
3152
+
3153
+
3154
+ /**
3155
+ * optional string name = 1;
3156
+ * @return {string}
3157
+ */
3158
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.getName = function() {
3159
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3160
+ };
3161
+
3162
+
3163
+ /**
3164
+ * @param {string} value
3165
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} returns this
3166
+ */
3167
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.setName = function(value) {
3168
+ return jspb.Message.setProto3StringField(this, 1, value);
3169
+ };
3170
+
3171
+
3172
+ /**
3173
+ * repeated meshtrade.type.v1.Token tokens = 2;
3174
+ * @return {!Array<!proto.meshtrade.type.v1.Token>}
3175
+ */
3176
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.getTokensList = function() {
3177
+ return /** @type{!Array<!proto.meshtrade.type.v1.Token>} */ (
3178
+ jspb.Message.getRepeatedWrapperField(this, meshtrade_type_v1_token_pb.Token, 2));
3179
+ };
3180
+
3181
+
3182
+ /**
3183
+ * @param {!Array<!proto.meshtrade.type.v1.Token>} value
3184
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} returns this
3185
+ */
3186
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.setTokensList = function(value) {
3187
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3188
+ };
3189
+
3190
+
3191
+ /**
3192
+ * @param {!proto.meshtrade.type.v1.Token=} opt_value
3193
+ * @param {number=} opt_index
3194
+ * @return {!proto.meshtrade.type.v1.Token}
3195
+ */
3196
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.addTokens = function(opt_value, opt_index) {
3197
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.meshtrade.type.v1.Token, opt_index);
3198
+ };
3199
+
3200
+
3201
+ /**
3202
+ * Clears the list making it empty but non-null.
3203
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} returns this
3204
+ */
3205
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest.prototype.clearTokensList = function() {
3206
+ return this.setTokensList([]);
3207
+ };
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3214
+ /**
3215
+ * Creates an object representation of this proto.
3216
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3217
+ * Optional fields that are not set will be set to undefined.
3218
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3219
+ * For the list of reserved names please see:
3220
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3221
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3222
+ * JSPB instance for transitional soy proto support:
3223
+ * http://goto/soy-param-migration
3224
+ * @return {!Object}
3225
+ */
3226
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.prototype.toObject = function(opt_includeInstance) {
3227
+ return proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.toObject(opt_includeInstance, this);
3228
+ };
3229
+
3230
+
3231
+ /**
3232
+ * Static version of the {@see toObject} method.
3233
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3234
+ * the JSPB instance for transitional soy proto support:
3235
+ * http://goto/soy-param-migration
3236
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse} msg The msg instance to transform.
3237
+ * @return {!Object}
3238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3239
+ */
3240
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.toObject = function(includeInstance, msg) {
3241
+ var f, obj = {
3242
+ ledgerTransaction: jspb.Message.getFieldWithDefault(msg, 1, "")
3243
+ };
3244
+
3245
+ if (includeInstance) {
3246
+ obj.$jspbMessageInstance = msg;
3247
+ }
3248
+ return obj;
3249
+ };
3250
+ }
3251
+
3252
+
3253
+ /**
3254
+ * Deserializes binary data (in protobuf wire format).
3255
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3256
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse}
3257
+ */
3258
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.deserializeBinary = function(bytes) {
3259
+ var reader = new jspb.BinaryReader(bytes);
3260
+ var msg = new proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse;
3261
+ return proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.deserializeBinaryFromReader(msg, reader);
3262
+ };
3263
+
3264
+
3265
+ /**
3266
+ * Deserializes binary data (in protobuf wire format) from the
3267
+ * given reader into the given message object.
3268
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse} msg The message object to deserialize into.
3269
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3270
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse}
3271
+ */
3272
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
3273
+ while (reader.nextField()) {
3274
+ if (reader.isEndGroup()) {
3275
+ break;
3276
+ }
3277
+ var field = reader.getFieldNumber();
3278
+ switch (field) {
3279
+ case 1:
3280
+ var value = /** @type {string} */ (reader.readString());
3281
+ msg.setLedgerTransaction(value);
3282
+ break;
3283
+ default:
3284
+ reader.skipField();
3285
+ break;
3286
+ }
3287
+ }
3288
+ return msg;
3289
+ };
3290
+
3291
+
3292
+ /**
3293
+ * Serializes the message to binary data (in protobuf wire format).
3294
+ * @return {!Uint8Array}
3295
+ */
3296
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.prototype.serializeBinary = function() {
3297
+ var writer = new jspb.BinaryWriter();
3298
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.serializeBinaryToWriter(this, writer);
3299
+ return writer.getResultBuffer();
3300
+ };
3301
+
3302
+
3303
+ /**
3304
+ * Serializes the given message to binary data (in protobuf wire
3305
+ * format), writing to the given BinaryWriter.
3306
+ * @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse} message
3307
+ * @param {!jspb.BinaryWriter} writer
3308
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3309
+ */
3310
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.serializeBinaryToWriter = function(message, writer) {
3311
+ var f = undefined;
3312
+ f = message.getLedgerTransaction();
3313
+ if (f.length > 0) {
3314
+ writer.writeString(
3315
+ 1,
3316
+ f
3317
+ );
3318
+ }
3319
+ };
3320
+
3321
+
3322
+ /**
3323
+ * optional string ledger_transaction = 1;
3324
+ * @return {string}
3325
+ */
3326
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.prototype.getLedgerTransaction = function() {
3327
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3328
+ };
3329
+
3330
+
3331
+ /**
3332
+ * @param {string} value
3333
+ * @return {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse} returns this
3334
+ */
3335
+ proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.prototype.setLedgerTransaction = function(value) {
3336
+ return jspb.Message.setProto3StringField(this, 1, value);
3337
+ };
3338
+
3339
+
3340
+
3341
+ /**
3342
+ * List of repeated fields within this message type.
3343
+ * @private {!Array<number>}
3344
+ * @const
3345
+ */
3346
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.repeatedFields_ = [2];
3347
+
3348
+
3349
+
3350
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3351
+ /**
3352
+ * Creates an object representation of this proto.
3353
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3354
+ * Optional fields that are not set will be set to undefined.
3355
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3356
+ * For the list of reserved names please see:
3357
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3358
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3359
+ * JSPB instance for transitional soy proto support:
3360
+ * http://goto/soy-param-migration
3361
+ * @return {!Object}
3362
+ */
3363
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.toObject = function(opt_includeInstance) {
3364
+ return proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.toObject(opt_includeInstance, this);
3365
+ };
3366
+
3367
+
3368
+ /**
3369
+ * Static version of the {@see toObject} method.
3370
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3371
+ * the JSPB instance for transitional soy proto support:
3372
+ * http://goto/soy-param-migration
3373
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} msg The msg instance to transform.
3374
+ * @return {!Object}
3375
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3376
+ */
3377
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.toObject = function(includeInstance, msg) {
3378
+ var f, obj = {
3379
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3380
+ tokensList: jspb.Message.toObjectList(msg.getTokensList(),
3381
+ meshtrade_type_v1_token_pb.Token.toObject, includeInstance)
3382
+ };
3383
+
3384
+ if (includeInstance) {
3385
+ obj.$jspbMessageInstance = msg;
3386
+ }
3387
+ return obj;
3388
+ };
3389
+ }
3390
+
3391
+
3392
+ /**
3393
+ * Deserializes binary data (in protobuf wire format).
3394
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3395
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest}
3396
+ */
3397
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.deserializeBinary = function(bytes) {
3398
+ var reader = new jspb.BinaryReader(bytes);
3399
+ var msg = new proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest;
3400
+ return proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.deserializeBinaryFromReader(msg, reader);
3401
+ };
3402
+
3403
+
3404
+ /**
3405
+ * Deserializes binary data (in protobuf wire format) from the
3406
+ * given reader into the given message object.
3407
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} msg The message object to deserialize into.
3408
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3409
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest}
3410
+ */
3411
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
3412
+ while (reader.nextField()) {
3413
+ if (reader.isEndGroup()) {
3414
+ break;
3415
+ }
3416
+ var field = reader.getFieldNumber();
3417
+ switch (field) {
3418
+ case 1:
3419
+ var value = /** @type {string} */ (reader.readString());
3420
+ msg.setName(value);
3421
+ break;
3422
+ case 2:
3423
+ var value = new meshtrade_type_v1_token_pb.Token;
3424
+ reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
3425
+ msg.addTokens(value);
3426
+ break;
3427
+ default:
3428
+ reader.skipField();
3429
+ break;
3430
+ }
3431
+ }
3432
+ return msg;
3433
+ };
3434
+
3435
+
3436
+ /**
3437
+ * Serializes the message to binary data (in protobuf wire format).
3438
+ * @return {!Uint8Array}
3439
+ */
3440
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.serializeBinary = function() {
3441
+ var writer = new jspb.BinaryWriter();
3442
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.serializeBinaryToWriter(this, writer);
3443
+ return writer.getResultBuffer();
3444
+ };
3445
+
3446
+
3447
+ /**
3448
+ * Serializes the given message to binary data (in protobuf wire
3449
+ * format), writing to the given BinaryWriter.
3450
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} message
3451
+ * @param {!jspb.BinaryWriter} writer
3452
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3453
+ */
3454
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.serializeBinaryToWriter = function(message, writer) {
3455
+ var f = undefined;
3456
+ f = message.getName();
3457
+ if (f.length > 0) {
3458
+ writer.writeString(
3459
+ 1,
3460
+ f
3461
+ );
3462
+ }
3463
+ f = message.getTokensList();
3464
+ if (f.length > 0) {
3465
+ writer.writeRepeatedMessage(
3466
+ 2,
3467
+ f,
3468
+ meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
3469
+ );
3470
+ }
3471
+ };
3472
+
3473
+
3474
+ /**
3475
+ * optional string name = 1;
3476
+ * @return {string}
3477
+ */
3478
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.getName = function() {
3479
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3480
+ };
3481
+
3482
+
3483
+ /**
3484
+ * @param {string} value
3485
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} returns this
3486
+ */
3487
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.setName = function(value) {
3488
+ return jspb.Message.setProto3StringField(this, 1, value);
3489
+ };
3490
+
3491
+
3492
+ /**
3493
+ * repeated meshtrade.type.v1.Token tokens = 2;
3494
+ * @return {!Array<!proto.meshtrade.type.v1.Token>}
3495
+ */
3496
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.getTokensList = function() {
3497
+ return /** @type{!Array<!proto.meshtrade.type.v1.Token>} */ (
3498
+ jspb.Message.getRepeatedWrapperField(this, meshtrade_type_v1_token_pb.Token, 2));
3499
+ };
3500
+
3501
+
3502
+ /**
3503
+ * @param {!Array<!proto.meshtrade.type.v1.Token>} value
3504
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} returns this
3505
+ */
3506
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.setTokensList = function(value) {
3507
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3508
+ };
3509
+
3510
+
3511
+ /**
3512
+ * @param {!proto.meshtrade.type.v1.Token=} opt_value
3513
+ * @param {number=} opt_index
3514
+ * @return {!proto.meshtrade.type.v1.Token}
3515
+ */
3516
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.addTokens = function(opt_value, opt_index) {
3517
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.meshtrade.type.v1.Token, opt_index);
3518
+ };
3519
+
3520
+
3521
+ /**
3522
+ * Clears the list making it empty but non-null.
3523
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} returns this
3524
+ */
3525
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest.prototype.clearTokensList = function() {
3526
+ return this.setTokensList([]);
3527
+ };
3528
+
3529
+
3530
+
3531
+
3532
+
3533
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3534
+ /**
3535
+ * Creates an object representation of this proto.
3536
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3537
+ * Optional fields that are not set will be set to undefined.
3538
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3539
+ * For the list of reserved names please see:
3540
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3541
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3542
+ * JSPB instance for transitional soy proto support:
3543
+ * http://goto/soy-param-migration
3544
+ * @return {!Object}
3545
+ */
3546
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.prototype.toObject = function(opt_includeInstance) {
3547
+ return proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.toObject(opt_includeInstance, this);
3548
+ };
3549
+
3550
+
3551
+ /**
3552
+ * Static version of the {@see toObject} method.
3553
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3554
+ * the JSPB instance for transitional soy proto support:
3555
+ * http://goto/soy-param-migration
3556
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse} msg The msg instance to transform.
3557
+ * @return {!Object}
3558
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3559
+ */
3560
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.toObject = function(includeInstance, msg) {
3561
+ var f, obj = {
3562
+ ledgerTransaction: jspb.Message.getFieldWithDefault(msg, 1, "")
3563
+ };
3564
+
3565
+ if (includeInstance) {
3566
+ obj.$jspbMessageInstance = msg;
3567
+ }
3568
+ return obj;
3569
+ };
3570
+ }
3571
+
3572
+
3573
+ /**
3574
+ * Deserializes binary data (in protobuf wire format).
3575
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3576
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse}
3577
+ */
3578
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.deserializeBinary = function(bytes) {
3579
+ var reader = new jspb.BinaryReader(bytes);
3580
+ var msg = new proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse;
3581
+ return proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.deserializeBinaryFromReader(msg, reader);
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * Deserializes binary data (in protobuf wire format) from the
3587
+ * given reader into the given message object.
3588
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse} msg The message object to deserialize into.
3589
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3590
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse}
3591
+ */
3592
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
3593
+ while (reader.nextField()) {
3594
+ if (reader.isEndGroup()) {
3595
+ break;
3596
+ }
3597
+ var field = reader.getFieldNumber();
3598
+ switch (field) {
3599
+ case 1:
3600
+ var value = /** @type {string} */ (reader.readString());
3601
+ msg.setLedgerTransaction(value);
3602
+ break;
3603
+ default:
3604
+ reader.skipField();
3605
+ break;
3606
+ }
3607
+ }
3608
+ return msg;
3609
+ };
3610
+
3611
+
3612
+ /**
3613
+ * Serializes the message to binary data (in protobuf wire format).
3614
+ * @return {!Uint8Array}
3615
+ */
3616
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.prototype.serializeBinary = function() {
3617
+ var writer = new jspb.BinaryWriter();
3618
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.serializeBinaryToWriter(this, writer);
3619
+ return writer.getResultBuffer();
3620
+ };
3621
+
3622
+
3623
+ /**
3624
+ * Serializes the given message to binary data (in protobuf wire
3625
+ * format), writing to the given BinaryWriter.
3626
+ * @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse} message
3627
+ * @param {!jspb.BinaryWriter} writer
3628
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3629
+ */
3630
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.serializeBinaryToWriter = function(message, writer) {
3631
+ var f = undefined;
3632
+ f = message.getLedgerTransaction();
3633
+ if (f.length > 0) {
3634
+ writer.writeString(
3635
+ 1,
3636
+ f
3637
+ );
3638
+ }
3639
+ };
3640
+
3641
+
3642
+ /**
3643
+ * optional string ledger_transaction = 1;
3644
+ * @return {string}
3645
+ */
3646
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.prototype.getLedgerTransaction = function() {
3647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3648
+ };
3649
+
3650
+
3651
+ /**
3652
+ * @param {string} value
3653
+ * @return {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse} returns this
3654
+ */
3655
+ proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.prototype.setLedgerTransaction = function(value) {
3656
+ return jspb.Message.setProto3StringField(this, 1, value);
3657
+ };
3658
+
3659
+
2930
3660
  goog.object.extend(exports, proto.meshtrade.wallet.account.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-old",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "description": "Mesh Typescript SDK (Legacy)",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",