@sniipwebmaster/user-service-client-grpcweb 26.8.14779 → 26.8.14803

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.
@@ -9777,5 +9777,127 @@ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.redeemCapa
9777
9777
  };
9778
9778
 
9779
9779
 
9780
+ /**
9781
+ * @const
9782
+ * @type {!grpc.web.MethodDescriptor<
9783
+ * !proto.sniipuserservice.MintBillReadTokenRequest,
9784
+ * !proto.sniipuserservice.MintBillReadTokenResponse>}
9785
+ */
9786
+ const methodDescriptor_SniipUserServiceService_MintBillReadToken = new grpc.web.MethodDescriptor(
9787
+ '/sniipuserservice.SniipUserServiceService/MintBillReadToken',
9788
+ grpc.web.MethodType.UNARY,
9789
+ proto.sniipuserservice.MintBillReadTokenRequest,
9790
+ proto.sniipuserservice.MintBillReadTokenResponse,
9791
+ /**
9792
+ * @param {!proto.sniipuserservice.MintBillReadTokenRequest} request
9793
+ * @return {!Uint8Array}
9794
+ */
9795
+ function(request) {
9796
+ return request.serializeBinary();
9797
+ },
9798
+ proto.sniipuserservice.MintBillReadTokenResponse.deserializeBinary
9799
+ );
9800
+
9801
+
9802
+ /**
9803
+ * @param {!proto.sniipuserservice.MintBillReadTokenRequest} request The
9804
+ * request proto
9805
+ * @param {?Object<string, string>} metadata User defined
9806
+ * call metadata
9807
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.MintBillReadTokenResponse)}
9808
+ * callback The callback function(error, response)
9809
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.MintBillReadTokenResponse>|undefined}
9810
+ * The XHR Node Readable Stream
9811
+ */
9812
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.mintBillReadToken =
9813
+ function(request, metadata, callback) {
9814
+ return this.client_.rpcCall(this.hostname_ +
9815
+ '/sniipuserservice.SniipUserServiceService/MintBillReadToken',
9816
+ request,
9817
+ metadata || {},
9818
+ methodDescriptor_SniipUserServiceService_MintBillReadToken,
9819
+ callback);
9820
+ };
9821
+
9822
+
9823
+ /**
9824
+ * @param {!proto.sniipuserservice.MintBillReadTokenRequest} request The
9825
+ * request proto
9826
+ * @param {?Object<string, string>=} metadata User defined
9827
+ * call metadata
9828
+ * @return {!Promise<!proto.sniipuserservice.MintBillReadTokenResponse>}
9829
+ * Promise that resolves to the response
9830
+ */
9831
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.mintBillReadToken =
9832
+ function(request, metadata) {
9833
+ return this.client_.unaryCall(this.hostname_ +
9834
+ '/sniipuserservice.SniipUserServiceService/MintBillReadToken',
9835
+ request,
9836
+ metadata || {},
9837
+ methodDescriptor_SniipUserServiceService_MintBillReadToken);
9838
+ };
9839
+
9840
+
9841
+ /**
9842
+ * @const
9843
+ * @type {!grpc.web.MethodDescriptor<
9844
+ * !proto.sniipuserservice.ValidateBillReadTokenRequest,
9845
+ * !proto.sniipuserservice.ValidateBillReadTokenResponse>}
9846
+ */
9847
+ const methodDescriptor_SniipUserServiceService_ValidateBillReadToken = new grpc.web.MethodDescriptor(
9848
+ '/sniipuserservice.SniipUserServiceService/ValidateBillReadToken',
9849
+ grpc.web.MethodType.UNARY,
9850
+ proto.sniipuserservice.ValidateBillReadTokenRequest,
9851
+ proto.sniipuserservice.ValidateBillReadTokenResponse,
9852
+ /**
9853
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenRequest} request
9854
+ * @return {!Uint8Array}
9855
+ */
9856
+ function(request) {
9857
+ return request.serializeBinary();
9858
+ },
9859
+ proto.sniipuserservice.ValidateBillReadTokenResponse.deserializeBinary
9860
+ );
9861
+
9862
+
9863
+ /**
9864
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenRequest} request The
9865
+ * request proto
9866
+ * @param {?Object<string, string>} metadata User defined
9867
+ * call metadata
9868
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.ValidateBillReadTokenResponse)}
9869
+ * callback The callback function(error, response)
9870
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.ValidateBillReadTokenResponse>|undefined}
9871
+ * The XHR Node Readable Stream
9872
+ */
9873
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.validateBillReadToken =
9874
+ function(request, metadata, callback) {
9875
+ return this.client_.rpcCall(this.hostname_ +
9876
+ '/sniipuserservice.SniipUserServiceService/ValidateBillReadToken',
9877
+ request,
9878
+ metadata || {},
9879
+ methodDescriptor_SniipUserServiceService_ValidateBillReadToken,
9880
+ callback);
9881
+ };
9882
+
9883
+
9884
+ /**
9885
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenRequest} request The
9886
+ * request proto
9887
+ * @param {?Object<string, string>=} metadata User defined
9888
+ * call metadata
9889
+ * @return {!Promise<!proto.sniipuserservice.ValidateBillReadTokenResponse>}
9890
+ * Promise that resolves to the response
9891
+ */
9892
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.validateBillReadToken =
9893
+ function(request, metadata) {
9894
+ return this.client_.unaryCall(this.hostname_ +
9895
+ '/sniipuserservice.SniipUserServiceService/ValidateBillReadToken',
9896
+ request,
9897
+ metadata || {},
9898
+ methodDescriptor_SniipUserServiceService_ValidateBillReadToken);
9899
+ };
9900
+
9901
+
9780
9902
  module.exports = proto.sniipuserservice;
9781
9903
 
@@ -142,6 +142,8 @@ goog.exportSymbol('proto.sniipuserservice.MarkOnboardingScreensAsViewedRequest',
142
142
  goog.exportSymbol('proto.sniipuserservice.MarkUserAsBusinessRequest', null, global);
143
143
  goog.exportSymbol('proto.sniipuserservice.MfaSecretStatus', null, global);
144
144
  goog.exportSymbol('proto.sniipuserservice.MigrateAccountRequest', null, global);
145
+ goog.exportSymbol('proto.sniipuserservice.MintBillReadTokenRequest', null, global);
146
+ goog.exportSymbol('proto.sniipuserservice.MintBillReadTokenResponse', null, global);
145
147
  goog.exportSymbol('proto.sniipuserservice.NotificationTokenResponse', null, global);
146
148
  goog.exportSymbol('proto.sniipuserservice.NotificationTokensResponse', null, global);
147
149
  goog.exportSymbol('proto.sniipuserservice.OnboardingScreen', null, global);
@@ -245,6 +247,8 @@ goog.exportSymbol('proto.sniipuserservice.UserProfilesRequest', null, global);
245
247
  goog.exportSymbol('proto.sniipuserservice.UserProfilesResponse', null, global);
246
248
  goog.exportSymbol('proto.sniipuserservice.UserStatusUpdateRequest', null, global);
247
249
  goog.exportSymbol('proto.sniipuserservice.UserStatusUpdateV2Request', null, global);
250
+ goog.exportSymbol('proto.sniipuserservice.ValidateBillReadTokenRequest', null, global);
251
+ goog.exportSymbol('proto.sniipuserservice.ValidateBillReadTokenResponse', null, global);
248
252
  goog.exportSymbol('proto.sniipuserservice.ValidateEmailV2Request', null, global);
249
253
  goog.exportSymbol('proto.sniipuserservice.ValidatePasswordRequest', null, global);
250
254
  goog.exportSymbol('proto.sniipuserservice.ValidatePinRequest', null, global);
@@ -5112,6 +5116,90 @@ if (goog.DEBUG && !COMPILED) {
5112
5116
  */
5113
5117
  proto.sniipuserservice.RedeemCapabilityTokenResponse.displayName = 'proto.sniipuserservice.RedeemCapabilityTokenResponse';
5114
5118
  }
5119
+ /**
5120
+ * Generated by JsPbCodeGenerator.
5121
+ * @param {Array=} opt_data Optional initial data array, typically from a
5122
+ * server response, or constructed directly in Javascript. The array is used
5123
+ * in place and becomes part of the constructed object. It is not cloned.
5124
+ * If no data is provided, the constructed object will be empty, but still
5125
+ * valid.
5126
+ * @extends {jspb.Message}
5127
+ * @constructor
5128
+ */
5129
+ proto.sniipuserservice.MintBillReadTokenRequest = function(opt_data) {
5130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5131
+ };
5132
+ goog.inherits(proto.sniipuserservice.MintBillReadTokenRequest, jspb.Message);
5133
+ if (goog.DEBUG && !COMPILED) {
5134
+ /**
5135
+ * @public
5136
+ * @override
5137
+ */
5138
+ proto.sniipuserservice.MintBillReadTokenRequest.displayName = 'proto.sniipuserservice.MintBillReadTokenRequest';
5139
+ }
5140
+ /**
5141
+ * Generated by JsPbCodeGenerator.
5142
+ * @param {Array=} opt_data Optional initial data array, typically from a
5143
+ * server response, or constructed directly in Javascript. The array is used
5144
+ * in place and becomes part of the constructed object. It is not cloned.
5145
+ * If no data is provided, the constructed object will be empty, but still
5146
+ * valid.
5147
+ * @extends {jspb.Message}
5148
+ * @constructor
5149
+ */
5150
+ proto.sniipuserservice.MintBillReadTokenResponse = function(opt_data) {
5151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5152
+ };
5153
+ goog.inherits(proto.sniipuserservice.MintBillReadTokenResponse, jspb.Message);
5154
+ if (goog.DEBUG && !COMPILED) {
5155
+ /**
5156
+ * @public
5157
+ * @override
5158
+ */
5159
+ proto.sniipuserservice.MintBillReadTokenResponse.displayName = 'proto.sniipuserservice.MintBillReadTokenResponse';
5160
+ }
5161
+ /**
5162
+ * Generated by JsPbCodeGenerator.
5163
+ * @param {Array=} opt_data Optional initial data array, typically from a
5164
+ * server response, or constructed directly in Javascript. The array is used
5165
+ * in place and becomes part of the constructed object. It is not cloned.
5166
+ * If no data is provided, the constructed object will be empty, but still
5167
+ * valid.
5168
+ * @extends {jspb.Message}
5169
+ * @constructor
5170
+ */
5171
+ proto.sniipuserservice.ValidateBillReadTokenRequest = function(opt_data) {
5172
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5173
+ };
5174
+ goog.inherits(proto.sniipuserservice.ValidateBillReadTokenRequest, jspb.Message);
5175
+ if (goog.DEBUG && !COMPILED) {
5176
+ /**
5177
+ * @public
5178
+ * @override
5179
+ */
5180
+ proto.sniipuserservice.ValidateBillReadTokenRequest.displayName = 'proto.sniipuserservice.ValidateBillReadTokenRequest';
5181
+ }
5182
+ /**
5183
+ * Generated by JsPbCodeGenerator.
5184
+ * @param {Array=} opt_data Optional initial data array, typically from a
5185
+ * server response, or constructed directly in Javascript. The array is used
5186
+ * in place and becomes part of the constructed object. It is not cloned.
5187
+ * If no data is provided, the constructed object will be empty, but still
5188
+ * valid.
5189
+ * @extends {jspb.Message}
5190
+ * @constructor
5191
+ */
5192
+ proto.sniipuserservice.ValidateBillReadTokenResponse = function(opt_data) {
5193
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5194
+ };
5195
+ goog.inherits(proto.sniipuserservice.ValidateBillReadTokenResponse, jspb.Message);
5196
+ if (goog.DEBUG && !COMPILED) {
5197
+ /**
5198
+ * @public
5199
+ * @override
5200
+ */
5201
+ proto.sniipuserservice.ValidateBillReadTokenResponse.displayName = 'proto.sniipuserservice.ValidateBillReadTokenResponse';
5202
+ }
5115
5203
 
5116
5204
 
5117
5205
 
@@ -56175,6 +56263,556 @@ proto.sniipuserservice.RedeemCapabilityTokenResponse.prototype.setValid = functi
56175
56263
  };
56176
56264
 
56177
56265
 
56266
+
56267
+
56268
+
56269
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56270
+ /**
56271
+ * Creates an object representation of this proto.
56272
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56273
+ * Optional fields that are not set will be set to undefined.
56274
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56275
+ * For the list of reserved names please see:
56276
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56277
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56278
+ * JSPB instance for transitional soy proto support:
56279
+ * http://goto/soy-param-migration
56280
+ * @return {!Object}
56281
+ */
56282
+ proto.sniipuserservice.MintBillReadTokenRequest.prototype.toObject = function(opt_includeInstance) {
56283
+ return proto.sniipuserservice.MintBillReadTokenRequest.toObject(opt_includeInstance, this);
56284
+ };
56285
+
56286
+
56287
+ /**
56288
+ * Static version of the {@see toObject} method.
56289
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56290
+ * the JSPB instance for transitional soy proto support:
56291
+ * http://goto/soy-param-migration
56292
+ * @param {!proto.sniipuserservice.MintBillReadTokenRequest} msg The msg instance to transform.
56293
+ * @return {!Object}
56294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56295
+ */
56296
+ proto.sniipuserservice.MintBillReadTokenRequest.toObject = function(includeInstance, msg) {
56297
+ var f, obj = {
56298
+ billid: jspb.Message.getFieldWithDefault(msg, 1, 0)
56299
+ };
56300
+
56301
+ if (includeInstance) {
56302
+ obj.$jspbMessageInstance = msg;
56303
+ }
56304
+ return obj;
56305
+ };
56306
+ }
56307
+
56308
+
56309
+ /**
56310
+ * Deserializes binary data (in protobuf wire format).
56311
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56312
+ * @return {!proto.sniipuserservice.MintBillReadTokenRequest}
56313
+ */
56314
+ proto.sniipuserservice.MintBillReadTokenRequest.deserializeBinary = function(bytes) {
56315
+ var reader = new jspb.BinaryReader(bytes);
56316
+ var msg = new proto.sniipuserservice.MintBillReadTokenRequest;
56317
+ return proto.sniipuserservice.MintBillReadTokenRequest.deserializeBinaryFromReader(msg, reader);
56318
+ };
56319
+
56320
+
56321
+ /**
56322
+ * Deserializes binary data (in protobuf wire format) from the
56323
+ * given reader into the given message object.
56324
+ * @param {!proto.sniipuserservice.MintBillReadTokenRequest} msg The message object to deserialize into.
56325
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56326
+ * @return {!proto.sniipuserservice.MintBillReadTokenRequest}
56327
+ */
56328
+ proto.sniipuserservice.MintBillReadTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
56329
+ while (reader.nextField()) {
56330
+ if (reader.isEndGroup()) {
56331
+ break;
56332
+ }
56333
+ var field = reader.getFieldNumber();
56334
+ switch (field) {
56335
+ case 1:
56336
+ var value = /** @type {number} */ (reader.readInt64());
56337
+ msg.setBillid(value);
56338
+ break;
56339
+ default:
56340
+ reader.skipField();
56341
+ break;
56342
+ }
56343
+ }
56344
+ return msg;
56345
+ };
56346
+
56347
+
56348
+ /**
56349
+ * Serializes the message to binary data (in protobuf wire format).
56350
+ * @return {!Uint8Array}
56351
+ */
56352
+ proto.sniipuserservice.MintBillReadTokenRequest.prototype.serializeBinary = function() {
56353
+ var writer = new jspb.BinaryWriter();
56354
+ proto.sniipuserservice.MintBillReadTokenRequest.serializeBinaryToWriter(this, writer);
56355
+ return writer.getResultBuffer();
56356
+ };
56357
+
56358
+
56359
+ /**
56360
+ * Serializes the given message to binary data (in protobuf wire
56361
+ * format), writing to the given BinaryWriter.
56362
+ * @param {!proto.sniipuserservice.MintBillReadTokenRequest} message
56363
+ * @param {!jspb.BinaryWriter} writer
56364
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56365
+ */
56366
+ proto.sniipuserservice.MintBillReadTokenRequest.serializeBinaryToWriter = function(message, writer) {
56367
+ var f = undefined;
56368
+ f = message.getBillid();
56369
+ if (f !== 0) {
56370
+ writer.writeInt64(
56371
+ 1,
56372
+ f
56373
+ );
56374
+ }
56375
+ };
56376
+
56377
+
56378
+ /**
56379
+ * optional int64 billId = 1;
56380
+ * @return {number}
56381
+ */
56382
+ proto.sniipuserservice.MintBillReadTokenRequest.prototype.getBillid = function() {
56383
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
56384
+ };
56385
+
56386
+
56387
+ /**
56388
+ * @param {number} value
56389
+ * @return {!proto.sniipuserservice.MintBillReadTokenRequest} returns this
56390
+ */
56391
+ proto.sniipuserservice.MintBillReadTokenRequest.prototype.setBillid = function(value) {
56392
+ return jspb.Message.setProto3IntField(this, 1, value);
56393
+ };
56394
+
56395
+
56396
+
56397
+
56398
+
56399
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56400
+ /**
56401
+ * Creates an object representation of this proto.
56402
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56403
+ * Optional fields that are not set will be set to undefined.
56404
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56405
+ * For the list of reserved names please see:
56406
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56407
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56408
+ * JSPB instance for transitional soy proto support:
56409
+ * http://goto/soy-param-migration
56410
+ * @return {!Object}
56411
+ */
56412
+ proto.sniipuserservice.MintBillReadTokenResponse.prototype.toObject = function(opt_includeInstance) {
56413
+ return proto.sniipuserservice.MintBillReadTokenResponse.toObject(opt_includeInstance, this);
56414
+ };
56415
+
56416
+
56417
+ /**
56418
+ * Static version of the {@see toObject} method.
56419
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56420
+ * the JSPB instance for transitional soy proto support:
56421
+ * http://goto/soy-param-migration
56422
+ * @param {!proto.sniipuserservice.MintBillReadTokenResponse} msg The msg instance to transform.
56423
+ * @return {!Object}
56424
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56425
+ */
56426
+ proto.sniipuserservice.MintBillReadTokenResponse.toObject = function(includeInstance, msg) {
56427
+ var f, obj = {
56428
+ readtoken: jspb.Message.getFieldWithDefault(msg, 1, "")
56429
+ };
56430
+
56431
+ if (includeInstance) {
56432
+ obj.$jspbMessageInstance = msg;
56433
+ }
56434
+ return obj;
56435
+ };
56436
+ }
56437
+
56438
+
56439
+ /**
56440
+ * Deserializes binary data (in protobuf wire format).
56441
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56442
+ * @return {!proto.sniipuserservice.MintBillReadTokenResponse}
56443
+ */
56444
+ proto.sniipuserservice.MintBillReadTokenResponse.deserializeBinary = function(bytes) {
56445
+ var reader = new jspb.BinaryReader(bytes);
56446
+ var msg = new proto.sniipuserservice.MintBillReadTokenResponse;
56447
+ return proto.sniipuserservice.MintBillReadTokenResponse.deserializeBinaryFromReader(msg, reader);
56448
+ };
56449
+
56450
+
56451
+ /**
56452
+ * Deserializes binary data (in protobuf wire format) from the
56453
+ * given reader into the given message object.
56454
+ * @param {!proto.sniipuserservice.MintBillReadTokenResponse} msg The message object to deserialize into.
56455
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56456
+ * @return {!proto.sniipuserservice.MintBillReadTokenResponse}
56457
+ */
56458
+ proto.sniipuserservice.MintBillReadTokenResponse.deserializeBinaryFromReader = function(msg, reader) {
56459
+ while (reader.nextField()) {
56460
+ if (reader.isEndGroup()) {
56461
+ break;
56462
+ }
56463
+ var field = reader.getFieldNumber();
56464
+ switch (field) {
56465
+ case 1:
56466
+ var value = /** @type {string} */ (reader.readString());
56467
+ msg.setReadtoken(value);
56468
+ break;
56469
+ default:
56470
+ reader.skipField();
56471
+ break;
56472
+ }
56473
+ }
56474
+ return msg;
56475
+ };
56476
+
56477
+
56478
+ /**
56479
+ * Serializes the message to binary data (in protobuf wire format).
56480
+ * @return {!Uint8Array}
56481
+ */
56482
+ proto.sniipuserservice.MintBillReadTokenResponse.prototype.serializeBinary = function() {
56483
+ var writer = new jspb.BinaryWriter();
56484
+ proto.sniipuserservice.MintBillReadTokenResponse.serializeBinaryToWriter(this, writer);
56485
+ return writer.getResultBuffer();
56486
+ };
56487
+
56488
+
56489
+ /**
56490
+ * Serializes the given message to binary data (in protobuf wire
56491
+ * format), writing to the given BinaryWriter.
56492
+ * @param {!proto.sniipuserservice.MintBillReadTokenResponse} message
56493
+ * @param {!jspb.BinaryWriter} writer
56494
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56495
+ */
56496
+ proto.sniipuserservice.MintBillReadTokenResponse.serializeBinaryToWriter = function(message, writer) {
56497
+ var f = undefined;
56498
+ f = message.getReadtoken();
56499
+ if (f.length > 0) {
56500
+ writer.writeString(
56501
+ 1,
56502
+ f
56503
+ );
56504
+ }
56505
+ };
56506
+
56507
+
56508
+ /**
56509
+ * optional string readToken = 1;
56510
+ * @return {string}
56511
+ */
56512
+ proto.sniipuserservice.MintBillReadTokenResponse.prototype.getReadtoken = function() {
56513
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
56514
+ };
56515
+
56516
+
56517
+ /**
56518
+ * @param {string} value
56519
+ * @return {!proto.sniipuserservice.MintBillReadTokenResponse} returns this
56520
+ */
56521
+ proto.sniipuserservice.MintBillReadTokenResponse.prototype.setReadtoken = function(value) {
56522
+ return jspb.Message.setProto3StringField(this, 1, value);
56523
+ };
56524
+
56525
+
56526
+
56527
+
56528
+
56529
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56530
+ /**
56531
+ * Creates an object representation of this proto.
56532
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56533
+ * Optional fields that are not set will be set to undefined.
56534
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56535
+ * For the list of reserved names please see:
56536
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56537
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56538
+ * JSPB instance for transitional soy proto support:
56539
+ * http://goto/soy-param-migration
56540
+ * @return {!Object}
56541
+ */
56542
+ proto.sniipuserservice.ValidateBillReadTokenRequest.prototype.toObject = function(opt_includeInstance) {
56543
+ return proto.sniipuserservice.ValidateBillReadTokenRequest.toObject(opt_includeInstance, this);
56544
+ };
56545
+
56546
+
56547
+ /**
56548
+ * Static version of the {@see toObject} method.
56549
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56550
+ * the JSPB instance for transitional soy proto support:
56551
+ * http://goto/soy-param-migration
56552
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenRequest} msg The msg instance to transform.
56553
+ * @return {!Object}
56554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56555
+ */
56556
+ proto.sniipuserservice.ValidateBillReadTokenRequest.toObject = function(includeInstance, msg) {
56557
+ var f, obj = {
56558
+ readtoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
56559
+ billid: jspb.Message.getFieldWithDefault(msg, 2, 0)
56560
+ };
56561
+
56562
+ if (includeInstance) {
56563
+ obj.$jspbMessageInstance = msg;
56564
+ }
56565
+ return obj;
56566
+ };
56567
+ }
56568
+
56569
+
56570
+ /**
56571
+ * Deserializes binary data (in protobuf wire format).
56572
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56573
+ * @return {!proto.sniipuserservice.ValidateBillReadTokenRequest}
56574
+ */
56575
+ proto.sniipuserservice.ValidateBillReadTokenRequest.deserializeBinary = function(bytes) {
56576
+ var reader = new jspb.BinaryReader(bytes);
56577
+ var msg = new proto.sniipuserservice.ValidateBillReadTokenRequest;
56578
+ return proto.sniipuserservice.ValidateBillReadTokenRequest.deserializeBinaryFromReader(msg, reader);
56579
+ };
56580
+
56581
+
56582
+ /**
56583
+ * Deserializes binary data (in protobuf wire format) from the
56584
+ * given reader into the given message object.
56585
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenRequest} msg The message object to deserialize into.
56586
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56587
+ * @return {!proto.sniipuserservice.ValidateBillReadTokenRequest}
56588
+ */
56589
+ proto.sniipuserservice.ValidateBillReadTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
56590
+ while (reader.nextField()) {
56591
+ if (reader.isEndGroup()) {
56592
+ break;
56593
+ }
56594
+ var field = reader.getFieldNumber();
56595
+ switch (field) {
56596
+ case 1:
56597
+ var value = /** @type {string} */ (reader.readString());
56598
+ msg.setReadtoken(value);
56599
+ break;
56600
+ case 2:
56601
+ var value = /** @type {number} */ (reader.readInt64());
56602
+ msg.setBillid(value);
56603
+ break;
56604
+ default:
56605
+ reader.skipField();
56606
+ break;
56607
+ }
56608
+ }
56609
+ return msg;
56610
+ };
56611
+
56612
+
56613
+ /**
56614
+ * Serializes the message to binary data (in protobuf wire format).
56615
+ * @return {!Uint8Array}
56616
+ */
56617
+ proto.sniipuserservice.ValidateBillReadTokenRequest.prototype.serializeBinary = function() {
56618
+ var writer = new jspb.BinaryWriter();
56619
+ proto.sniipuserservice.ValidateBillReadTokenRequest.serializeBinaryToWriter(this, writer);
56620
+ return writer.getResultBuffer();
56621
+ };
56622
+
56623
+
56624
+ /**
56625
+ * Serializes the given message to binary data (in protobuf wire
56626
+ * format), writing to the given BinaryWriter.
56627
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenRequest} message
56628
+ * @param {!jspb.BinaryWriter} writer
56629
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56630
+ */
56631
+ proto.sniipuserservice.ValidateBillReadTokenRequest.serializeBinaryToWriter = function(message, writer) {
56632
+ var f = undefined;
56633
+ f = message.getReadtoken();
56634
+ if (f.length > 0) {
56635
+ writer.writeString(
56636
+ 1,
56637
+ f
56638
+ );
56639
+ }
56640
+ f = message.getBillid();
56641
+ if (f !== 0) {
56642
+ writer.writeInt64(
56643
+ 2,
56644
+ f
56645
+ );
56646
+ }
56647
+ };
56648
+
56649
+
56650
+ /**
56651
+ * optional string readToken = 1;
56652
+ * @return {string}
56653
+ */
56654
+ proto.sniipuserservice.ValidateBillReadTokenRequest.prototype.getReadtoken = function() {
56655
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
56656
+ };
56657
+
56658
+
56659
+ /**
56660
+ * @param {string} value
56661
+ * @return {!proto.sniipuserservice.ValidateBillReadTokenRequest} returns this
56662
+ */
56663
+ proto.sniipuserservice.ValidateBillReadTokenRequest.prototype.setReadtoken = function(value) {
56664
+ return jspb.Message.setProto3StringField(this, 1, value);
56665
+ };
56666
+
56667
+
56668
+ /**
56669
+ * optional int64 billId = 2;
56670
+ * @return {number}
56671
+ */
56672
+ proto.sniipuserservice.ValidateBillReadTokenRequest.prototype.getBillid = function() {
56673
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
56674
+ };
56675
+
56676
+
56677
+ /**
56678
+ * @param {number} value
56679
+ * @return {!proto.sniipuserservice.ValidateBillReadTokenRequest} returns this
56680
+ */
56681
+ proto.sniipuserservice.ValidateBillReadTokenRequest.prototype.setBillid = function(value) {
56682
+ return jspb.Message.setProto3IntField(this, 2, value);
56683
+ };
56684
+
56685
+
56686
+
56687
+
56688
+
56689
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56690
+ /**
56691
+ * Creates an object representation of this proto.
56692
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56693
+ * Optional fields that are not set will be set to undefined.
56694
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56695
+ * For the list of reserved names please see:
56696
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56697
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56698
+ * JSPB instance for transitional soy proto support:
56699
+ * http://goto/soy-param-migration
56700
+ * @return {!Object}
56701
+ */
56702
+ proto.sniipuserservice.ValidateBillReadTokenResponse.prototype.toObject = function(opt_includeInstance) {
56703
+ return proto.sniipuserservice.ValidateBillReadTokenResponse.toObject(opt_includeInstance, this);
56704
+ };
56705
+
56706
+
56707
+ /**
56708
+ * Static version of the {@see toObject} method.
56709
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56710
+ * the JSPB instance for transitional soy proto support:
56711
+ * http://goto/soy-param-migration
56712
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenResponse} msg The msg instance to transform.
56713
+ * @return {!Object}
56714
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56715
+ */
56716
+ proto.sniipuserservice.ValidateBillReadTokenResponse.toObject = function(includeInstance, msg) {
56717
+ var f, obj = {
56718
+ valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
56719
+ };
56720
+
56721
+ if (includeInstance) {
56722
+ obj.$jspbMessageInstance = msg;
56723
+ }
56724
+ return obj;
56725
+ };
56726
+ }
56727
+
56728
+
56729
+ /**
56730
+ * Deserializes binary data (in protobuf wire format).
56731
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56732
+ * @return {!proto.sniipuserservice.ValidateBillReadTokenResponse}
56733
+ */
56734
+ proto.sniipuserservice.ValidateBillReadTokenResponse.deserializeBinary = function(bytes) {
56735
+ var reader = new jspb.BinaryReader(bytes);
56736
+ var msg = new proto.sniipuserservice.ValidateBillReadTokenResponse;
56737
+ return proto.sniipuserservice.ValidateBillReadTokenResponse.deserializeBinaryFromReader(msg, reader);
56738
+ };
56739
+
56740
+
56741
+ /**
56742
+ * Deserializes binary data (in protobuf wire format) from the
56743
+ * given reader into the given message object.
56744
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenResponse} msg The message object to deserialize into.
56745
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56746
+ * @return {!proto.sniipuserservice.ValidateBillReadTokenResponse}
56747
+ */
56748
+ proto.sniipuserservice.ValidateBillReadTokenResponse.deserializeBinaryFromReader = function(msg, reader) {
56749
+ while (reader.nextField()) {
56750
+ if (reader.isEndGroup()) {
56751
+ break;
56752
+ }
56753
+ var field = reader.getFieldNumber();
56754
+ switch (field) {
56755
+ case 1:
56756
+ var value = /** @type {boolean} */ (reader.readBool());
56757
+ msg.setValid(value);
56758
+ break;
56759
+ default:
56760
+ reader.skipField();
56761
+ break;
56762
+ }
56763
+ }
56764
+ return msg;
56765
+ };
56766
+
56767
+
56768
+ /**
56769
+ * Serializes the message to binary data (in protobuf wire format).
56770
+ * @return {!Uint8Array}
56771
+ */
56772
+ proto.sniipuserservice.ValidateBillReadTokenResponse.prototype.serializeBinary = function() {
56773
+ var writer = new jspb.BinaryWriter();
56774
+ proto.sniipuserservice.ValidateBillReadTokenResponse.serializeBinaryToWriter(this, writer);
56775
+ return writer.getResultBuffer();
56776
+ };
56777
+
56778
+
56779
+ /**
56780
+ * Serializes the given message to binary data (in protobuf wire
56781
+ * format), writing to the given BinaryWriter.
56782
+ * @param {!proto.sniipuserservice.ValidateBillReadTokenResponse} message
56783
+ * @param {!jspb.BinaryWriter} writer
56784
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56785
+ */
56786
+ proto.sniipuserservice.ValidateBillReadTokenResponse.serializeBinaryToWriter = function(message, writer) {
56787
+ var f = undefined;
56788
+ f = message.getValid();
56789
+ if (f) {
56790
+ writer.writeBool(
56791
+ 1,
56792
+ f
56793
+ );
56794
+ }
56795
+ };
56796
+
56797
+
56798
+ /**
56799
+ * optional bool valid = 1;
56800
+ * @return {boolean}
56801
+ */
56802
+ proto.sniipuserservice.ValidateBillReadTokenResponse.prototype.getValid = function() {
56803
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
56804
+ };
56805
+
56806
+
56807
+ /**
56808
+ * @param {boolean} value
56809
+ * @return {!proto.sniipuserservice.ValidateBillReadTokenResponse} returns this
56810
+ */
56811
+ proto.sniipuserservice.ValidateBillReadTokenResponse.prototype.setValid = function(value) {
56812
+ return jspb.Message.setProto3BooleanField(this, 1, value);
56813
+ };
56814
+
56815
+
56178
56816
  /**
56179
56817
  * @enum {number}
56180
56818
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb",
3
- "version": "26.8.14779",
3
+ "version": "26.8.14803",
4
4
  "description": "user-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",