@sniipwebmaster/user-service-client-grpcweb 26.7.14739 → 26.8.14767

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.
@@ -33,6 +33,7 @@ goog.exportSymbol('proto.sniipuserservice.BrowserDetails', null, global);
33
33
  goog.exportSymbol('proto.sniipuserservice.BulkNotificationRequest', null, global);
34
34
  goog.exportSymbol('proto.sniipuserservice.BulkNotificationRequest.NotificationType', null, global);
35
35
  goog.exportSymbol('proto.sniipuserservice.BulkNotificationRequestItem', null, global);
36
+ goog.exportSymbol('proto.sniipuserservice.CapabilityTokenMode', null, global);
36
37
  goog.exportSymbol('proto.sniipuserservice.ChangePasswordRequest', null, global);
37
38
  goog.exportSymbol('proto.sniipuserservice.ChangePinRequest', null, global);
38
39
  goog.exportSymbol('proto.sniipuserservice.CheckEmailVerifiedRequest', null, global);
@@ -43,6 +44,8 @@ goog.exportSymbol('proto.sniipuserservice.CreateAccountEmailRequest', null, glob
43
44
  goog.exportSymbol('proto.sniipuserservice.CreateAccountMobileRequest', null, global);
44
45
  goog.exportSymbol('proto.sniipuserservice.CreateAccountWebEmailRequest', null, global);
45
46
  goog.exportSymbol('proto.sniipuserservice.CreateAccountWebMobileRequest', null, global);
47
+ goog.exportSymbol('proto.sniipuserservice.CreateGuestPayerRequest', null, global);
48
+ goog.exportSymbol('proto.sniipuserservice.CreateGuestPayerResponse', null, global);
46
49
  goog.exportSymbol('proto.sniipuserservice.CreatePassportEmailRequest', null, global);
47
50
  goog.exportSymbol('proto.sniipuserservice.CreatePassportMobileRequest', null, global);
48
51
  goog.exportSymbol('proto.sniipuserservice.CreatePermissionRoleRequest', null, global);
@@ -84,6 +87,8 @@ goog.exportSymbol('proto.sniipuserservice.GetAssignedPermissionRolesRequest', nu
84
87
  goog.exportSymbol('proto.sniipuserservice.GetAvailablePermissionRolesRequest', null, global);
85
88
  goog.exportSymbol('proto.sniipuserservice.GetCallerIpResponse', null, global);
86
89
  goog.exportSymbol('proto.sniipuserservice.GetDuplicatesUsersRequest', null, global);
90
+ goog.exportSymbol('proto.sniipuserservice.GetGuestContactRequest', null, global);
91
+ goog.exportSymbol('proto.sniipuserservice.GetGuestContactResponse', null, global);
87
92
  goog.exportSymbol('proto.sniipuserservice.GetInternalProfileByApiKeyRequest', null, global);
88
93
  goog.exportSymbol('proto.sniipuserservice.GetInternalProfileFromEmailRequest', null, global);
89
94
  goog.exportSymbol('proto.sniipuserservice.GetInternalProfileRequest', null, global);
@@ -165,6 +170,8 @@ goog.exportSymbol('proto.sniipuserservice.PrepareTestMobileAccountRequest', null
165
170
  goog.exportSymbol('proto.sniipuserservice.PushNotificationToken', null, global);
166
171
  goog.exportSymbol('proto.sniipuserservice.RecordKycDownloadRequest', null, global);
167
172
  goog.exportSymbol('proto.sniipuserservice.RecordKycDownloadResponse', null, global);
173
+ goog.exportSymbol('proto.sniipuserservice.RedeemCapabilityTokenRequest', null, global);
174
+ goog.exportSymbol('proto.sniipuserservice.RedeemCapabilityTokenResponse', null, global);
168
175
  goog.exportSymbol('proto.sniipuserservice.RefreshAccessTokenRequest', null, global);
169
176
  goog.exportSymbol('proto.sniipuserservice.RefreshWebAccessTokenRequest', null, global);
170
177
  goog.exportSymbol('proto.sniipuserservice.RemoveAccountRequest', null, global);
@@ -4979,6 +4986,132 @@ if (goog.DEBUG && !COMPILED) {
4979
4986
  */
4980
4987
  proto.sniipuserservice.GetCallerIpResponse.displayName = 'proto.sniipuserservice.GetCallerIpResponse';
4981
4988
  }
4989
+ /**
4990
+ * Generated by JsPbCodeGenerator.
4991
+ * @param {Array=} opt_data Optional initial data array, typically from a
4992
+ * server response, or constructed directly in Javascript. The array is used
4993
+ * in place and becomes part of the constructed object. It is not cloned.
4994
+ * If no data is provided, the constructed object will be empty, but still
4995
+ * valid.
4996
+ * @extends {jspb.Message}
4997
+ * @constructor
4998
+ */
4999
+ proto.sniipuserservice.CreateGuestPayerRequest = function(opt_data) {
5000
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5001
+ };
5002
+ goog.inherits(proto.sniipuserservice.CreateGuestPayerRequest, jspb.Message);
5003
+ if (goog.DEBUG && !COMPILED) {
5004
+ /**
5005
+ * @public
5006
+ * @override
5007
+ */
5008
+ proto.sniipuserservice.CreateGuestPayerRequest.displayName = 'proto.sniipuserservice.CreateGuestPayerRequest';
5009
+ }
5010
+ /**
5011
+ * Generated by JsPbCodeGenerator.
5012
+ * @param {Array=} opt_data Optional initial data array, typically from a
5013
+ * server response, or constructed directly in Javascript. The array is used
5014
+ * in place and becomes part of the constructed object. It is not cloned.
5015
+ * If no data is provided, the constructed object will be empty, but still
5016
+ * valid.
5017
+ * @extends {jspb.Message}
5018
+ * @constructor
5019
+ */
5020
+ proto.sniipuserservice.CreateGuestPayerResponse = function(opt_data) {
5021
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5022
+ };
5023
+ goog.inherits(proto.sniipuserservice.CreateGuestPayerResponse, jspb.Message);
5024
+ if (goog.DEBUG && !COMPILED) {
5025
+ /**
5026
+ * @public
5027
+ * @override
5028
+ */
5029
+ proto.sniipuserservice.CreateGuestPayerResponse.displayName = 'proto.sniipuserservice.CreateGuestPayerResponse';
5030
+ }
5031
+ /**
5032
+ * Generated by JsPbCodeGenerator.
5033
+ * @param {Array=} opt_data Optional initial data array, typically from a
5034
+ * server response, or constructed directly in Javascript. The array is used
5035
+ * in place and becomes part of the constructed object. It is not cloned.
5036
+ * If no data is provided, the constructed object will be empty, but still
5037
+ * valid.
5038
+ * @extends {jspb.Message}
5039
+ * @constructor
5040
+ */
5041
+ proto.sniipuserservice.GetGuestContactRequest = function(opt_data) {
5042
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5043
+ };
5044
+ goog.inherits(proto.sniipuserservice.GetGuestContactRequest, jspb.Message);
5045
+ if (goog.DEBUG && !COMPILED) {
5046
+ /**
5047
+ * @public
5048
+ * @override
5049
+ */
5050
+ proto.sniipuserservice.GetGuestContactRequest.displayName = 'proto.sniipuserservice.GetGuestContactRequest';
5051
+ }
5052
+ /**
5053
+ * Generated by JsPbCodeGenerator.
5054
+ * @param {Array=} opt_data Optional initial data array, typically from a
5055
+ * server response, or constructed directly in Javascript. The array is used
5056
+ * in place and becomes part of the constructed object. It is not cloned.
5057
+ * If no data is provided, the constructed object will be empty, but still
5058
+ * valid.
5059
+ * @extends {jspb.Message}
5060
+ * @constructor
5061
+ */
5062
+ proto.sniipuserservice.GetGuestContactResponse = function(opt_data) {
5063
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5064
+ };
5065
+ goog.inherits(proto.sniipuserservice.GetGuestContactResponse, jspb.Message);
5066
+ if (goog.DEBUG && !COMPILED) {
5067
+ /**
5068
+ * @public
5069
+ * @override
5070
+ */
5071
+ proto.sniipuserservice.GetGuestContactResponse.displayName = 'proto.sniipuserservice.GetGuestContactResponse';
5072
+ }
5073
+ /**
5074
+ * Generated by JsPbCodeGenerator.
5075
+ * @param {Array=} opt_data Optional initial data array, typically from a
5076
+ * server response, or constructed directly in Javascript. The array is used
5077
+ * in place and becomes part of the constructed object. It is not cloned.
5078
+ * If no data is provided, the constructed object will be empty, but still
5079
+ * valid.
5080
+ * @extends {jspb.Message}
5081
+ * @constructor
5082
+ */
5083
+ proto.sniipuserservice.RedeemCapabilityTokenRequest = function(opt_data) {
5084
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5085
+ };
5086
+ goog.inherits(proto.sniipuserservice.RedeemCapabilityTokenRequest, jspb.Message);
5087
+ if (goog.DEBUG && !COMPILED) {
5088
+ /**
5089
+ * @public
5090
+ * @override
5091
+ */
5092
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.displayName = 'proto.sniipuserservice.RedeemCapabilityTokenRequest';
5093
+ }
5094
+ /**
5095
+ * Generated by JsPbCodeGenerator.
5096
+ * @param {Array=} opt_data Optional initial data array, typically from a
5097
+ * server response, or constructed directly in Javascript. The array is used
5098
+ * in place and becomes part of the constructed object. It is not cloned.
5099
+ * If no data is provided, the constructed object will be empty, but still
5100
+ * valid.
5101
+ * @extends {jspb.Message}
5102
+ * @constructor
5103
+ */
5104
+ proto.sniipuserservice.RedeemCapabilityTokenResponse = function(opt_data) {
5105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5106
+ };
5107
+ goog.inherits(proto.sniipuserservice.RedeemCapabilityTokenResponse, jspb.Message);
5108
+ if (goog.DEBUG && !COMPILED) {
5109
+ /**
5110
+ * @public
5111
+ * @override
5112
+ */
5113
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.displayName = 'proto.sniipuserservice.RedeemCapabilityTokenResponse';
5114
+ }
4982
5115
 
4983
5116
 
4984
5117
 
@@ -54932,68 +55065,1187 @@ proto.sniipuserservice.GetCallerIpResponse.prototype.setResolvedIp = function(va
54932
55065
  };
54933
55066
 
54934
55067
 
55068
+
55069
+
55070
+
55071
+ if (jspb.Message.GENERATE_TO_OBJECT) {
54935
55072
  /**
54936
- * @enum {number}
55073
+ * Creates an object representation of this proto.
55074
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55075
+ * Optional fields that are not set will be set to undefined.
55076
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55077
+ * For the list of reserved names please see:
55078
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55079
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
55080
+ * JSPB instance for transitional soy proto support:
55081
+ * http://goto/soy-param-migration
55082
+ * @return {!Object}
54937
55083
  */
54938
- proto.sniipuserservice.KycUserStatus = {
54939
- KYC_USER_PENDING_REVIEW: 0,
54940
- KYC_USER_VERIFIED: 1,
54941
- KYC_USER_UNVERIFIED: 2
55084
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.toObject = function(opt_includeInstance) {
55085
+ return proto.sniipuserservice.CreateGuestPayerRequest.toObject(opt_includeInstance, this);
54942
55086
  };
54943
55087
 
55088
+
54944
55089
  /**
54945
- * @enum {number}
55090
+ * Static version of the {@see toObject} method.
55091
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
55092
+ * the JSPB instance for transitional soy proto support:
55093
+ * http://goto/soy-param-migration
55094
+ * @param {!proto.sniipuserservice.CreateGuestPayerRequest} msg The msg instance to transform.
55095
+ * @return {!Object}
55096
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54946
55097
  */
54947
- proto.sniipuserservice.VerificationScope = {
54948
- UNKNOWN: 0,
54949
- CREATE_ACCOUNT: 1,
54950
- RESET_PASSWORD: 2,
54951
- UPDATE_PHONE: 3,
54952
- VERIFY_EMAIL: 4,
54953
- VERIFY_USER: 5,
54954
- VERIFY_PAYMENT: 6,
54955
- VERIFY_EMAIL_WITH_CODE: 7,
54956
- UPDATE_EMAIL_ADDRESS_PINLESS: 8,
54957
- UPDATE_PHONE_PINLESS: 9,
54958
- DELETE_ACCOUNT_PINLESS: 10
55098
+ proto.sniipuserservice.CreateGuestPayerRequest.toObject = function(includeInstance, msg) {
55099
+ var f, obj = {
55100
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
55101
+ unverifiedemail: jspb.Message.getFieldWithDefault(msg, 2, ""),
55102
+ phone: jspb.Message.getFieldWithDefault(msg, 3, ""),
55103
+ billid: jspb.Message.getFieldWithDefault(msg, 4, 0),
55104
+ ipaddress: jspb.Message.getFieldWithDefault(msg, 5, "")
55105
+ };
55106
+
55107
+ if (includeInstance) {
55108
+ obj.$jspbMessageInstance = msg;
55109
+ }
55110
+ return obj;
54959
55111
  };
55112
+ }
55113
+
54960
55114
 
54961
55115
  /**
54962
- * @enum {number}
55116
+ * Deserializes binary data (in protobuf wire format).
55117
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
55118
+ * @return {!proto.sniipuserservice.CreateGuestPayerRequest}
54963
55119
  */
54964
- proto.sniipuserservice.MfaSecretStatus = {
54965
- NONE: 0,
54966
- UNVERIFIED: 1,
54967
- VERIFIED: 2
55120
+ proto.sniipuserservice.CreateGuestPayerRequest.deserializeBinary = function(bytes) {
55121
+ var reader = new jspb.BinaryReader(bytes);
55122
+ var msg = new proto.sniipuserservice.CreateGuestPayerRequest;
55123
+ return proto.sniipuserservice.CreateGuestPayerRequest.deserializeBinaryFromReader(msg, reader);
54968
55124
  };
54969
55125
 
55126
+
54970
55127
  /**
54971
- * @enum {number}
55128
+ * Deserializes binary data (in protobuf wire format) from the
55129
+ * given reader into the given message object.
55130
+ * @param {!proto.sniipuserservice.CreateGuestPayerRequest} msg The message object to deserialize into.
55131
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
55132
+ * @return {!proto.sniipuserservice.CreateGuestPayerRequest}
54972
55133
  */
54973
- proto.sniipuserservice.OtpSource = {
54974
- UNSPECIFIED_SOURCE: 0,
54975
- AUTHENTICATOR: 1,
54976
- RECOVERY_CODE: 2,
54977
- EMAIL: 3,
54978
- SMS: 4
55134
+ proto.sniipuserservice.CreateGuestPayerRequest.deserializeBinaryFromReader = function(msg, reader) {
55135
+ while (reader.nextField()) {
55136
+ if (reader.isEndGroup()) {
55137
+ break;
55138
+ }
55139
+ var field = reader.getFieldNumber();
55140
+ switch (field) {
55141
+ case 1:
55142
+ var value = /** @type {string} */ (reader.readString());
55143
+ msg.setName(value);
55144
+ break;
55145
+ case 2:
55146
+ var value = /** @type {string} */ (reader.readString());
55147
+ msg.setUnverifiedemail(value);
55148
+ break;
55149
+ case 3:
55150
+ var value = /** @type {string} */ (reader.readString());
55151
+ msg.setPhone(value);
55152
+ break;
55153
+ case 4:
55154
+ var value = /** @type {number} */ (reader.readInt64());
55155
+ msg.setBillid(value);
55156
+ break;
55157
+ case 5:
55158
+ var value = /** @type {string} */ (reader.readString());
55159
+ msg.setIpaddress(value);
55160
+ break;
55161
+ default:
55162
+ reader.skipField();
55163
+ break;
55164
+ }
55165
+ }
55166
+ return msg;
54979
55167
  };
54980
55168
 
55169
+
54981
55170
  /**
54982
- * @enum {number}
55171
+ * Serializes the message to binary data (in protobuf wire format).
55172
+ * @return {!Uint8Array}
54983
55173
  */
54984
- proto.sniipuserservice.AppAccountType = {
54985
- ACCOUNT_TYPE_UNSPECIFIED: 0,
54986
- SNIIP: 1,
54987
- WEX: 2
55174
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.serializeBinary = function() {
55175
+ var writer = new jspb.BinaryWriter();
55176
+ proto.sniipuserservice.CreateGuestPayerRequest.serializeBinaryToWriter(this, writer);
55177
+ return writer.getResultBuffer();
54988
55178
  };
54989
55179
 
55180
+
54990
55181
  /**
54991
- * @enum {number}
55182
+ * Serializes the given message to binary data (in protobuf wire
55183
+ * format), writing to the given BinaryWriter.
55184
+ * @param {!proto.sniipuserservice.CreateGuestPayerRequest} message
55185
+ * @param {!jspb.BinaryWriter} writer
55186
+ * @suppress {unusedLocalVariables} f is only used for nested messages
54992
55187
  */
54993
- proto.sniipuserservice.LocationBackfillJob = {
54994
- LOCATION_BACKFILL_JOB_UNSPECIFIED: 0,
54995
- LOCATION_BACKFILL_JOB_PHONE_COUNTRY: 1,
54996
- LOCATION_BACKFILL_JOB_KYC_LOCATION: 2
55188
+ proto.sniipuserservice.CreateGuestPayerRequest.serializeBinaryToWriter = function(message, writer) {
55189
+ var f = undefined;
55190
+ f = message.getName();
55191
+ if (f.length > 0) {
55192
+ writer.writeString(
55193
+ 1,
55194
+ f
55195
+ );
55196
+ }
55197
+ f = message.getUnverifiedemail();
55198
+ if (f.length > 0) {
55199
+ writer.writeString(
55200
+ 2,
55201
+ f
55202
+ );
55203
+ }
55204
+ f = message.getPhone();
55205
+ if (f.length > 0) {
55206
+ writer.writeString(
55207
+ 3,
55208
+ f
55209
+ );
55210
+ }
55211
+ f = message.getBillid();
55212
+ if (f !== 0) {
55213
+ writer.writeInt64(
55214
+ 4,
55215
+ f
55216
+ );
55217
+ }
55218
+ f = message.getIpaddress();
55219
+ if (f.length > 0) {
55220
+ writer.writeString(
55221
+ 5,
55222
+ f
55223
+ );
55224
+ }
55225
+ };
55226
+
55227
+
55228
+ /**
55229
+ * optional string name = 1;
55230
+ * @return {string}
55231
+ */
55232
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.getName = function() {
55233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
55234
+ };
55235
+
55236
+
55237
+ /**
55238
+ * @param {string} value
55239
+ * @return {!proto.sniipuserservice.CreateGuestPayerRequest} returns this
55240
+ */
55241
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.setName = function(value) {
55242
+ return jspb.Message.setProto3StringField(this, 1, value);
55243
+ };
55244
+
55245
+
55246
+ /**
55247
+ * optional string unverifiedEmail = 2;
55248
+ * @return {string}
55249
+ */
55250
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.getUnverifiedemail = function() {
55251
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
55252
+ };
55253
+
55254
+
55255
+ /**
55256
+ * @param {string} value
55257
+ * @return {!proto.sniipuserservice.CreateGuestPayerRequest} returns this
55258
+ */
55259
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.setUnverifiedemail = function(value) {
55260
+ return jspb.Message.setProto3StringField(this, 2, value);
55261
+ };
55262
+
55263
+
55264
+ /**
55265
+ * optional string phone = 3;
55266
+ * @return {string}
55267
+ */
55268
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.getPhone = function() {
55269
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
55270
+ };
55271
+
55272
+
55273
+ /**
55274
+ * @param {string} value
55275
+ * @return {!proto.sniipuserservice.CreateGuestPayerRequest} returns this
55276
+ */
55277
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.setPhone = function(value) {
55278
+ return jspb.Message.setProto3StringField(this, 3, value);
55279
+ };
55280
+
55281
+
55282
+ /**
55283
+ * optional int64 billId = 4;
55284
+ * @return {number}
55285
+ */
55286
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.getBillid = function() {
55287
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
55288
+ };
55289
+
55290
+
55291
+ /**
55292
+ * @param {number} value
55293
+ * @return {!proto.sniipuserservice.CreateGuestPayerRequest} returns this
55294
+ */
55295
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.setBillid = function(value) {
55296
+ return jspb.Message.setProto3IntField(this, 4, value);
55297
+ };
55298
+
55299
+
55300
+ /**
55301
+ * optional string ipAddress = 5;
55302
+ * @return {string}
55303
+ */
55304
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.getIpaddress = function() {
55305
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
55306
+ };
55307
+
55308
+
55309
+ /**
55310
+ * @param {string} value
55311
+ * @return {!proto.sniipuserservice.CreateGuestPayerRequest} returns this
55312
+ */
55313
+ proto.sniipuserservice.CreateGuestPayerRequest.prototype.setIpaddress = function(value) {
55314
+ return jspb.Message.setProto3StringField(this, 5, value);
55315
+ };
55316
+
55317
+
55318
+
55319
+
55320
+
55321
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55322
+ /**
55323
+ * Creates an object representation of this proto.
55324
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55325
+ * Optional fields that are not set will be set to undefined.
55326
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55327
+ * For the list of reserved names please see:
55328
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55329
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
55330
+ * JSPB instance for transitional soy proto support:
55331
+ * http://goto/soy-param-migration
55332
+ * @return {!Object}
55333
+ */
55334
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.toObject = function(opt_includeInstance) {
55335
+ return proto.sniipuserservice.CreateGuestPayerResponse.toObject(opt_includeInstance, this);
55336
+ };
55337
+
55338
+
55339
+ /**
55340
+ * Static version of the {@see toObject} method.
55341
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
55342
+ * the JSPB instance for transitional soy proto support:
55343
+ * http://goto/soy-param-migration
55344
+ * @param {!proto.sniipuserservice.CreateGuestPayerResponse} msg The msg instance to transform.
55345
+ * @return {!Object}
55346
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55347
+ */
55348
+ proto.sniipuserservice.CreateGuestPayerResponse.toObject = function(includeInstance, msg) {
55349
+ var f, obj = {
55350
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
55351
+ capabilitytoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
55352
+ reusedexisting: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
55353
+ };
55354
+
55355
+ if (includeInstance) {
55356
+ obj.$jspbMessageInstance = msg;
55357
+ }
55358
+ return obj;
55359
+ };
55360
+ }
55361
+
55362
+
55363
+ /**
55364
+ * Deserializes binary data (in protobuf wire format).
55365
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
55366
+ * @return {!proto.sniipuserservice.CreateGuestPayerResponse}
55367
+ */
55368
+ proto.sniipuserservice.CreateGuestPayerResponse.deserializeBinary = function(bytes) {
55369
+ var reader = new jspb.BinaryReader(bytes);
55370
+ var msg = new proto.sniipuserservice.CreateGuestPayerResponse;
55371
+ return proto.sniipuserservice.CreateGuestPayerResponse.deserializeBinaryFromReader(msg, reader);
55372
+ };
55373
+
55374
+
55375
+ /**
55376
+ * Deserializes binary data (in protobuf wire format) from the
55377
+ * given reader into the given message object.
55378
+ * @param {!proto.sniipuserservice.CreateGuestPayerResponse} msg The message object to deserialize into.
55379
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
55380
+ * @return {!proto.sniipuserservice.CreateGuestPayerResponse}
55381
+ */
55382
+ proto.sniipuserservice.CreateGuestPayerResponse.deserializeBinaryFromReader = function(msg, reader) {
55383
+ while (reader.nextField()) {
55384
+ if (reader.isEndGroup()) {
55385
+ break;
55386
+ }
55387
+ var field = reader.getFieldNumber();
55388
+ switch (field) {
55389
+ case 1:
55390
+ var value = /** @type {number} */ (reader.readInt64());
55391
+ msg.setUserid(value);
55392
+ break;
55393
+ case 2:
55394
+ var value = /** @type {string} */ (reader.readString());
55395
+ msg.setCapabilitytoken(value);
55396
+ break;
55397
+ case 3:
55398
+ var value = /** @type {boolean} */ (reader.readBool());
55399
+ msg.setReusedexisting(value);
55400
+ break;
55401
+ default:
55402
+ reader.skipField();
55403
+ break;
55404
+ }
55405
+ }
55406
+ return msg;
55407
+ };
55408
+
55409
+
55410
+ /**
55411
+ * Serializes the message to binary data (in protobuf wire format).
55412
+ * @return {!Uint8Array}
55413
+ */
55414
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.serializeBinary = function() {
55415
+ var writer = new jspb.BinaryWriter();
55416
+ proto.sniipuserservice.CreateGuestPayerResponse.serializeBinaryToWriter(this, writer);
55417
+ return writer.getResultBuffer();
55418
+ };
55419
+
55420
+
55421
+ /**
55422
+ * Serializes the given message to binary data (in protobuf wire
55423
+ * format), writing to the given BinaryWriter.
55424
+ * @param {!proto.sniipuserservice.CreateGuestPayerResponse} message
55425
+ * @param {!jspb.BinaryWriter} writer
55426
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55427
+ */
55428
+ proto.sniipuserservice.CreateGuestPayerResponse.serializeBinaryToWriter = function(message, writer) {
55429
+ var f = undefined;
55430
+ f = message.getUserid();
55431
+ if (f !== 0) {
55432
+ writer.writeInt64(
55433
+ 1,
55434
+ f
55435
+ );
55436
+ }
55437
+ f = message.getCapabilitytoken();
55438
+ if (f.length > 0) {
55439
+ writer.writeString(
55440
+ 2,
55441
+ f
55442
+ );
55443
+ }
55444
+ f = message.getReusedexisting();
55445
+ if (f) {
55446
+ writer.writeBool(
55447
+ 3,
55448
+ f
55449
+ );
55450
+ }
55451
+ };
55452
+
55453
+
55454
+ /**
55455
+ * optional int64 userId = 1;
55456
+ * @return {number}
55457
+ */
55458
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.getUserid = function() {
55459
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
55460
+ };
55461
+
55462
+
55463
+ /**
55464
+ * @param {number} value
55465
+ * @return {!proto.sniipuserservice.CreateGuestPayerResponse} returns this
55466
+ */
55467
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.setUserid = function(value) {
55468
+ return jspb.Message.setProto3IntField(this, 1, value);
55469
+ };
55470
+
55471
+
55472
+ /**
55473
+ * optional string capabilityToken = 2;
55474
+ * @return {string}
55475
+ */
55476
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.getCapabilitytoken = function() {
55477
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
55478
+ };
55479
+
55480
+
55481
+ /**
55482
+ * @param {string} value
55483
+ * @return {!proto.sniipuserservice.CreateGuestPayerResponse} returns this
55484
+ */
55485
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.setCapabilitytoken = function(value) {
55486
+ return jspb.Message.setProto3StringField(this, 2, value);
55487
+ };
55488
+
55489
+
55490
+ /**
55491
+ * optional bool reusedExisting = 3;
55492
+ * @return {boolean}
55493
+ */
55494
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.getReusedexisting = function() {
55495
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
55496
+ };
55497
+
55498
+
55499
+ /**
55500
+ * @param {boolean} value
55501
+ * @return {!proto.sniipuserservice.CreateGuestPayerResponse} returns this
55502
+ */
55503
+ proto.sniipuserservice.CreateGuestPayerResponse.prototype.setReusedexisting = function(value) {
55504
+ return jspb.Message.setProto3BooleanField(this, 3, value);
55505
+ };
55506
+
55507
+
55508
+
55509
+
55510
+
55511
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55512
+ /**
55513
+ * Creates an object representation of this proto.
55514
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55515
+ * Optional fields that are not set will be set to undefined.
55516
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55517
+ * For the list of reserved names please see:
55518
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55519
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
55520
+ * JSPB instance for transitional soy proto support:
55521
+ * http://goto/soy-param-migration
55522
+ * @return {!Object}
55523
+ */
55524
+ proto.sniipuserservice.GetGuestContactRequest.prototype.toObject = function(opt_includeInstance) {
55525
+ return proto.sniipuserservice.GetGuestContactRequest.toObject(opt_includeInstance, this);
55526
+ };
55527
+
55528
+
55529
+ /**
55530
+ * Static version of the {@see toObject} method.
55531
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
55532
+ * the JSPB instance for transitional soy proto support:
55533
+ * http://goto/soy-param-migration
55534
+ * @param {!proto.sniipuserservice.GetGuestContactRequest} msg The msg instance to transform.
55535
+ * @return {!Object}
55536
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55537
+ */
55538
+ proto.sniipuserservice.GetGuestContactRequest.toObject = function(includeInstance, msg) {
55539
+ var f, obj = {
55540
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0)
55541
+ };
55542
+
55543
+ if (includeInstance) {
55544
+ obj.$jspbMessageInstance = msg;
55545
+ }
55546
+ return obj;
55547
+ };
55548
+ }
55549
+
55550
+
55551
+ /**
55552
+ * Deserializes binary data (in protobuf wire format).
55553
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
55554
+ * @return {!proto.sniipuserservice.GetGuestContactRequest}
55555
+ */
55556
+ proto.sniipuserservice.GetGuestContactRequest.deserializeBinary = function(bytes) {
55557
+ var reader = new jspb.BinaryReader(bytes);
55558
+ var msg = new proto.sniipuserservice.GetGuestContactRequest;
55559
+ return proto.sniipuserservice.GetGuestContactRequest.deserializeBinaryFromReader(msg, reader);
55560
+ };
55561
+
55562
+
55563
+ /**
55564
+ * Deserializes binary data (in protobuf wire format) from the
55565
+ * given reader into the given message object.
55566
+ * @param {!proto.sniipuserservice.GetGuestContactRequest} msg The message object to deserialize into.
55567
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
55568
+ * @return {!proto.sniipuserservice.GetGuestContactRequest}
55569
+ */
55570
+ proto.sniipuserservice.GetGuestContactRequest.deserializeBinaryFromReader = function(msg, reader) {
55571
+ while (reader.nextField()) {
55572
+ if (reader.isEndGroup()) {
55573
+ break;
55574
+ }
55575
+ var field = reader.getFieldNumber();
55576
+ switch (field) {
55577
+ case 1:
55578
+ var value = /** @type {number} */ (reader.readInt64());
55579
+ msg.setUserid(value);
55580
+ break;
55581
+ default:
55582
+ reader.skipField();
55583
+ break;
55584
+ }
55585
+ }
55586
+ return msg;
55587
+ };
55588
+
55589
+
55590
+ /**
55591
+ * Serializes the message to binary data (in protobuf wire format).
55592
+ * @return {!Uint8Array}
55593
+ */
55594
+ proto.sniipuserservice.GetGuestContactRequest.prototype.serializeBinary = function() {
55595
+ var writer = new jspb.BinaryWriter();
55596
+ proto.sniipuserservice.GetGuestContactRequest.serializeBinaryToWriter(this, writer);
55597
+ return writer.getResultBuffer();
55598
+ };
55599
+
55600
+
55601
+ /**
55602
+ * Serializes the given message to binary data (in protobuf wire
55603
+ * format), writing to the given BinaryWriter.
55604
+ * @param {!proto.sniipuserservice.GetGuestContactRequest} message
55605
+ * @param {!jspb.BinaryWriter} writer
55606
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55607
+ */
55608
+ proto.sniipuserservice.GetGuestContactRequest.serializeBinaryToWriter = function(message, writer) {
55609
+ var f = undefined;
55610
+ f = message.getUserid();
55611
+ if (f !== 0) {
55612
+ writer.writeInt64(
55613
+ 1,
55614
+ f
55615
+ );
55616
+ }
55617
+ };
55618
+
55619
+
55620
+ /**
55621
+ * optional int64 userId = 1;
55622
+ * @return {number}
55623
+ */
55624
+ proto.sniipuserservice.GetGuestContactRequest.prototype.getUserid = function() {
55625
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
55626
+ };
55627
+
55628
+
55629
+ /**
55630
+ * @param {number} value
55631
+ * @return {!proto.sniipuserservice.GetGuestContactRequest} returns this
55632
+ */
55633
+ proto.sniipuserservice.GetGuestContactRequest.prototype.setUserid = function(value) {
55634
+ return jspb.Message.setProto3IntField(this, 1, value);
55635
+ };
55636
+
55637
+
55638
+
55639
+
55640
+
55641
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55642
+ /**
55643
+ * Creates an object representation of this proto.
55644
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55645
+ * Optional fields that are not set will be set to undefined.
55646
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55647
+ * For the list of reserved names please see:
55648
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55649
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
55650
+ * JSPB instance for transitional soy proto support:
55651
+ * http://goto/soy-param-migration
55652
+ * @return {!Object}
55653
+ */
55654
+ proto.sniipuserservice.GetGuestContactResponse.prototype.toObject = function(opt_includeInstance) {
55655
+ return proto.sniipuserservice.GetGuestContactResponse.toObject(opt_includeInstance, this);
55656
+ };
55657
+
55658
+
55659
+ /**
55660
+ * Static version of the {@see toObject} method.
55661
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
55662
+ * the JSPB instance for transitional soy proto support:
55663
+ * http://goto/soy-param-migration
55664
+ * @param {!proto.sniipuserservice.GetGuestContactResponse} msg The msg instance to transform.
55665
+ * @return {!Object}
55666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55667
+ */
55668
+ proto.sniipuserservice.GetGuestContactResponse.toObject = function(includeInstance, msg) {
55669
+ var f, obj = {
55670
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
55671
+ unverifiedemail: jspb.Message.getFieldWithDefault(msg, 2, ""),
55672
+ isguest: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
55673
+ };
55674
+
55675
+ if (includeInstance) {
55676
+ obj.$jspbMessageInstance = msg;
55677
+ }
55678
+ return obj;
55679
+ };
55680
+ }
55681
+
55682
+
55683
+ /**
55684
+ * Deserializes binary data (in protobuf wire format).
55685
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
55686
+ * @return {!proto.sniipuserservice.GetGuestContactResponse}
55687
+ */
55688
+ proto.sniipuserservice.GetGuestContactResponse.deserializeBinary = function(bytes) {
55689
+ var reader = new jspb.BinaryReader(bytes);
55690
+ var msg = new proto.sniipuserservice.GetGuestContactResponse;
55691
+ return proto.sniipuserservice.GetGuestContactResponse.deserializeBinaryFromReader(msg, reader);
55692
+ };
55693
+
55694
+
55695
+ /**
55696
+ * Deserializes binary data (in protobuf wire format) from the
55697
+ * given reader into the given message object.
55698
+ * @param {!proto.sniipuserservice.GetGuestContactResponse} msg The message object to deserialize into.
55699
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
55700
+ * @return {!proto.sniipuserservice.GetGuestContactResponse}
55701
+ */
55702
+ proto.sniipuserservice.GetGuestContactResponse.deserializeBinaryFromReader = function(msg, reader) {
55703
+ while (reader.nextField()) {
55704
+ if (reader.isEndGroup()) {
55705
+ break;
55706
+ }
55707
+ var field = reader.getFieldNumber();
55708
+ switch (field) {
55709
+ case 1:
55710
+ var value = /** @type {string} */ (reader.readString());
55711
+ msg.setName(value);
55712
+ break;
55713
+ case 2:
55714
+ var value = /** @type {string} */ (reader.readString());
55715
+ msg.setUnverifiedemail(value);
55716
+ break;
55717
+ case 3:
55718
+ var value = /** @type {boolean} */ (reader.readBool());
55719
+ msg.setIsguest(value);
55720
+ break;
55721
+ default:
55722
+ reader.skipField();
55723
+ break;
55724
+ }
55725
+ }
55726
+ return msg;
55727
+ };
55728
+
55729
+
55730
+ /**
55731
+ * Serializes the message to binary data (in protobuf wire format).
55732
+ * @return {!Uint8Array}
55733
+ */
55734
+ proto.sniipuserservice.GetGuestContactResponse.prototype.serializeBinary = function() {
55735
+ var writer = new jspb.BinaryWriter();
55736
+ proto.sniipuserservice.GetGuestContactResponse.serializeBinaryToWriter(this, writer);
55737
+ return writer.getResultBuffer();
55738
+ };
55739
+
55740
+
55741
+ /**
55742
+ * Serializes the given message to binary data (in protobuf wire
55743
+ * format), writing to the given BinaryWriter.
55744
+ * @param {!proto.sniipuserservice.GetGuestContactResponse} message
55745
+ * @param {!jspb.BinaryWriter} writer
55746
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55747
+ */
55748
+ proto.sniipuserservice.GetGuestContactResponse.serializeBinaryToWriter = function(message, writer) {
55749
+ var f = undefined;
55750
+ f = message.getName();
55751
+ if (f.length > 0) {
55752
+ writer.writeString(
55753
+ 1,
55754
+ f
55755
+ );
55756
+ }
55757
+ f = message.getUnverifiedemail();
55758
+ if (f.length > 0) {
55759
+ writer.writeString(
55760
+ 2,
55761
+ f
55762
+ );
55763
+ }
55764
+ f = message.getIsguest();
55765
+ if (f) {
55766
+ writer.writeBool(
55767
+ 3,
55768
+ f
55769
+ );
55770
+ }
55771
+ };
55772
+
55773
+
55774
+ /**
55775
+ * optional string name = 1;
55776
+ * @return {string}
55777
+ */
55778
+ proto.sniipuserservice.GetGuestContactResponse.prototype.getName = function() {
55779
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
55780
+ };
55781
+
55782
+
55783
+ /**
55784
+ * @param {string} value
55785
+ * @return {!proto.sniipuserservice.GetGuestContactResponse} returns this
55786
+ */
55787
+ proto.sniipuserservice.GetGuestContactResponse.prototype.setName = function(value) {
55788
+ return jspb.Message.setProto3StringField(this, 1, value);
55789
+ };
55790
+
55791
+
55792
+ /**
55793
+ * optional string unverifiedEmail = 2;
55794
+ * @return {string}
55795
+ */
55796
+ proto.sniipuserservice.GetGuestContactResponse.prototype.getUnverifiedemail = function() {
55797
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
55798
+ };
55799
+
55800
+
55801
+ /**
55802
+ * @param {string} value
55803
+ * @return {!proto.sniipuserservice.GetGuestContactResponse} returns this
55804
+ */
55805
+ proto.sniipuserservice.GetGuestContactResponse.prototype.setUnverifiedemail = function(value) {
55806
+ return jspb.Message.setProto3StringField(this, 2, value);
55807
+ };
55808
+
55809
+
55810
+ /**
55811
+ * optional bool isGuest = 3;
55812
+ * @return {boolean}
55813
+ */
55814
+ proto.sniipuserservice.GetGuestContactResponse.prototype.getIsguest = function() {
55815
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
55816
+ };
55817
+
55818
+
55819
+ /**
55820
+ * @param {boolean} value
55821
+ * @return {!proto.sniipuserservice.GetGuestContactResponse} returns this
55822
+ */
55823
+ proto.sniipuserservice.GetGuestContactResponse.prototype.setIsguest = function(value) {
55824
+ return jspb.Message.setProto3BooleanField(this, 3, value);
55825
+ };
55826
+
55827
+
55828
+
55829
+
55830
+
55831
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55832
+ /**
55833
+ * Creates an object representation of this proto.
55834
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55835
+ * Optional fields that are not set will be set to undefined.
55836
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55837
+ * For the list of reserved names please see:
55838
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55839
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
55840
+ * JSPB instance for transitional soy proto support:
55841
+ * http://goto/soy-param-migration
55842
+ * @return {!Object}
55843
+ */
55844
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.toObject = function(opt_includeInstance) {
55845
+ return proto.sniipuserservice.RedeemCapabilityTokenRequest.toObject(opt_includeInstance, this);
55846
+ };
55847
+
55848
+
55849
+ /**
55850
+ * Static version of the {@see toObject} method.
55851
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
55852
+ * the JSPB instance for transitional soy proto support:
55853
+ * http://goto/soy-param-migration
55854
+ * @param {!proto.sniipuserservice.RedeemCapabilityTokenRequest} msg The msg instance to transform.
55855
+ * @return {!Object}
55856
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55857
+ */
55858
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.toObject = function(includeInstance, msg) {
55859
+ var f, obj = {
55860
+ capabilitytoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
55861
+ billid: jspb.Message.getFieldWithDefault(msg, 2, 0),
55862
+ mode: jspb.Message.getFieldWithDefault(msg, 4, 0)
55863
+ };
55864
+
55865
+ if (includeInstance) {
55866
+ obj.$jspbMessageInstance = msg;
55867
+ }
55868
+ return obj;
55869
+ };
55870
+ }
55871
+
55872
+
55873
+ /**
55874
+ * Deserializes binary data (in protobuf wire format).
55875
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
55876
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenRequest}
55877
+ */
55878
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.deserializeBinary = function(bytes) {
55879
+ var reader = new jspb.BinaryReader(bytes);
55880
+ var msg = new proto.sniipuserservice.RedeemCapabilityTokenRequest;
55881
+ return proto.sniipuserservice.RedeemCapabilityTokenRequest.deserializeBinaryFromReader(msg, reader);
55882
+ };
55883
+
55884
+
55885
+ /**
55886
+ * Deserializes binary data (in protobuf wire format) from the
55887
+ * given reader into the given message object.
55888
+ * @param {!proto.sniipuserservice.RedeemCapabilityTokenRequest} msg The message object to deserialize into.
55889
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
55890
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenRequest}
55891
+ */
55892
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
55893
+ while (reader.nextField()) {
55894
+ if (reader.isEndGroup()) {
55895
+ break;
55896
+ }
55897
+ var field = reader.getFieldNumber();
55898
+ switch (field) {
55899
+ case 1:
55900
+ var value = /** @type {string} */ (reader.readString());
55901
+ msg.setCapabilitytoken(value);
55902
+ break;
55903
+ case 2:
55904
+ var value = /** @type {number} */ (reader.readInt64());
55905
+ msg.setBillid(value);
55906
+ break;
55907
+ case 4:
55908
+ var value = /** @type {!proto.sniipuserservice.CapabilityTokenMode} */ (reader.readEnum());
55909
+ msg.setMode(value);
55910
+ break;
55911
+ default:
55912
+ reader.skipField();
55913
+ break;
55914
+ }
55915
+ }
55916
+ return msg;
55917
+ };
55918
+
55919
+
55920
+ /**
55921
+ * Serializes the message to binary data (in protobuf wire format).
55922
+ * @return {!Uint8Array}
55923
+ */
55924
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.serializeBinary = function() {
55925
+ var writer = new jspb.BinaryWriter();
55926
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.serializeBinaryToWriter(this, writer);
55927
+ return writer.getResultBuffer();
55928
+ };
55929
+
55930
+
55931
+ /**
55932
+ * Serializes the given message to binary data (in protobuf wire
55933
+ * format), writing to the given BinaryWriter.
55934
+ * @param {!proto.sniipuserservice.RedeemCapabilityTokenRequest} message
55935
+ * @param {!jspb.BinaryWriter} writer
55936
+ * @suppress {unusedLocalVariables} f is only used for nested messages
55937
+ */
55938
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.serializeBinaryToWriter = function(message, writer) {
55939
+ var f = undefined;
55940
+ f = message.getCapabilitytoken();
55941
+ if (f.length > 0) {
55942
+ writer.writeString(
55943
+ 1,
55944
+ f
55945
+ );
55946
+ }
55947
+ f = message.getBillid();
55948
+ if (f !== 0) {
55949
+ writer.writeInt64(
55950
+ 2,
55951
+ f
55952
+ );
55953
+ }
55954
+ f = message.getMode();
55955
+ if (f !== 0.0) {
55956
+ writer.writeEnum(
55957
+ 4,
55958
+ f
55959
+ );
55960
+ }
55961
+ };
55962
+
55963
+
55964
+ /**
55965
+ * optional string capabilityToken = 1;
55966
+ * @return {string}
55967
+ */
55968
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.getCapabilitytoken = function() {
55969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
55970
+ };
55971
+
55972
+
55973
+ /**
55974
+ * @param {string} value
55975
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenRequest} returns this
55976
+ */
55977
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.setCapabilitytoken = function(value) {
55978
+ return jspb.Message.setProto3StringField(this, 1, value);
55979
+ };
55980
+
55981
+
55982
+ /**
55983
+ * optional int64 billId = 2;
55984
+ * @return {number}
55985
+ */
55986
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.getBillid = function() {
55987
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
55988
+ };
55989
+
55990
+
55991
+ /**
55992
+ * @param {number} value
55993
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenRequest} returns this
55994
+ */
55995
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.setBillid = function(value) {
55996
+ return jspb.Message.setProto3IntField(this, 2, value);
55997
+ };
55998
+
55999
+
56000
+ /**
56001
+ * optional CapabilityTokenMode mode = 4;
56002
+ * @return {!proto.sniipuserservice.CapabilityTokenMode}
56003
+ */
56004
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.getMode = function() {
56005
+ return /** @type {!proto.sniipuserservice.CapabilityTokenMode} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
56006
+ };
56007
+
56008
+
56009
+ /**
56010
+ * @param {!proto.sniipuserservice.CapabilityTokenMode} value
56011
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenRequest} returns this
56012
+ */
56013
+ proto.sniipuserservice.RedeemCapabilityTokenRequest.prototype.setMode = function(value) {
56014
+ return jspb.Message.setProto3EnumField(this, 4, value);
56015
+ };
56016
+
56017
+
56018
+
56019
+
56020
+
56021
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56022
+ /**
56023
+ * Creates an object representation of this proto.
56024
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56025
+ * Optional fields that are not set will be set to undefined.
56026
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56027
+ * For the list of reserved names please see:
56028
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56029
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56030
+ * JSPB instance for transitional soy proto support:
56031
+ * http://goto/soy-param-migration
56032
+ * @return {!Object}
56033
+ */
56034
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.prototype.toObject = function(opt_includeInstance) {
56035
+ return proto.sniipuserservice.RedeemCapabilityTokenResponse.toObject(opt_includeInstance, this);
56036
+ };
56037
+
56038
+
56039
+ /**
56040
+ * Static version of the {@see toObject} method.
56041
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56042
+ * the JSPB instance for transitional soy proto support:
56043
+ * http://goto/soy-param-migration
56044
+ * @param {!proto.sniipuserservice.RedeemCapabilityTokenResponse} msg The msg instance to transform.
56045
+ * @return {!Object}
56046
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56047
+ */
56048
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.toObject = function(includeInstance, msg) {
56049
+ var f, obj = {
56050
+ guestuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
56051
+ valid: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
56052
+ };
56053
+
56054
+ if (includeInstance) {
56055
+ obj.$jspbMessageInstance = msg;
56056
+ }
56057
+ return obj;
56058
+ };
56059
+ }
56060
+
56061
+
56062
+ /**
56063
+ * Deserializes binary data (in protobuf wire format).
56064
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56065
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenResponse}
56066
+ */
56067
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.deserializeBinary = function(bytes) {
56068
+ var reader = new jspb.BinaryReader(bytes);
56069
+ var msg = new proto.sniipuserservice.RedeemCapabilityTokenResponse;
56070
+ return proto.sniipuserservice.RedeemCapabilityTokenResponse.deserializeBinaryFromReader(msg, reader);
56071
+ };
56072
+
56073
+
56074
+ /**
56075
+ * Deserializes binary data (in protobuf wire format) from the
56076
+ * given reader into the given message object.
56077
+ * @param {!proto.sniipuserservice.RedeemCapabilityTokenResponse} msg The message object to deserialize into.
56078
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56079
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenResponse}
56080
+ */
56081
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.deserializeBinaryFromReader = function(msg, reader) {
56082
+ while (reader.nextField()) {
56083
+ if (reader.isEndGroup()) {
56084
+ break;
56085
+ }
56086
+ var field = reader.getFieldNumber();
56087
+ switch (field) {
56088
+ case 1:
56089
+ var value = /** @type {number} */ (reader.readInt64());
56090
+ msg.setGuestuserid(value);
56091
+ break;
56092
+ case 2:
56093
+ var value = /** @type {boolean} */ (reader.readBool());
56094
+ msg.setValid(value);
56095
+ break;
56096
+ default:
56097
+ reader.skipField();
56098
+ break;
56099
+ }
56100
+ }
56101
+ return msg;
56102
+ };
56103
+
56104
+
56105
+ /**
56106
+ * Serializes the message to binary data (in protobuf wire format).
56107
+ * @return {!Uint8Array}
56108
+ */
56109
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.prototype.serializeBinary = function() {
56110
+ var writer = new jspb.BinaryWriter();
56111
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.serializeBinaryToWriter(this, writer);
56112
+ return writer.getResultBuffer();
56113
+ };
56114
+
56115
+
56116
+ /**
56117
+ * Serializes the given message to binary data (in protobuf wire
56118
+ * format), writing to the given BinaryWriter.
56119
+ * @param {!proto.sniipuserservice.RedeemCapabilityTokenResponse} message
56120
+ * @param {!jspb.BinaryWriter} writer
56121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56122
+ */
56123
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.serializeBinaryToWriter = function(message, writer) {
56124
+ var f = undefined;
56125
+ f = message.getGuestuserid();
56126
+ if (f !== 0) {
56127
+ writer.writeInt64(
56128
+ 1,
56129
+ f
56130
+ );
56131
+ }
56132
+ f = message.getValid();
56133
+ if (f) {
56134
+ writer.writeBool(
56135
+ 2,
56136
+ f
56137
+ );
56138
+ }
56139
+ };
56140
+
56141
+
56142
+ /**
56143
+ * optional int64 guestUserId = 1;
56144
+ * @return {number}
56145
+ */
56146
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.prototype.getGuestuserid = function() {
56147
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
56148
+ };
56149
+
56150
+
56151
+ /**
56152
+ * @param {number} value
56153
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenResponse} returns this
56154
+ */
56155
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.prototype.setGuestuserid = function(value) {
56156
+ return jspb.Message.setProto3IntField(this, 1, value);
56157
+ };
56158
+
56159
+
56160
+ /**
56161
+ * optional bool valid = 2;
56162
+ * @return {boolean}
56163
+ */
56164
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.prototype.getValid = function() {
56165
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
56166
+ };
56167
+
56168
+
56169
+ /**
56170
+ * @param {boolean} value
56171
+ * @return {!proto.sniipuserservice.RedeemCapabilityTokenResponse} returns this
56172
+ */
56173
+ proto.sniipuserservice.RedeemCapabilityTokenResponse.prototype.setValid = function(value) {
56174
+ return jspb.Message.setProto3BooleanField(this, 2, value);
56175
+ };
56176
+
56177
+
56178
+ /**
56179
+ * @enum {number}
56180
+ */
56181
+ proto.sniipuserservice.KycUserStatus = {
56182
+ KYC_USER_PENDING_REVIEW: 0,
56183
+ KYC_USER_VERIFIED: 1,
56184
+ KYC_USER_UNVERIFIED: 2
56185
+ };
56186
+
56187
+ /**
56188
+ * @enum {number}
56189
+ */
56190
+ proto.sniipuserservice.VerificationScope = {
56191
+ UNKNOWN: 0,
56192
+ CREATE_ACCOUNT: 1,
56193
+ RESET_PASSWORD: 2,
56194
+ UPDATE_PHONE: 3,
56195
+ VERIFY_EMAIL: 4,
56196
+ VERIFY_USER: 5,
56197
+ VERIFY_PAYMENT: 6,
56198
+ VERIFY_EMAIL_WITH_CODE: 7,
56199
+ UPDATE_EMAIL_ADDRESS_PINLESS: 8,
56200
+ UPDATE_PHONE_PINLESS: 9,
56201
+ DELETE_ACCOUNT_PINLESS: 10
56202
+ };
56203
+
56204
+ /**
56205
+ * @enum {number}
56206
+ */
56207
+ proto.sniipuserservice.MfaSecretStatus = {
56208
+ NONE: 0,
56209
+ UNVERIFIED: 1,
56210
+ VERIFIED: 2
56211
+ };
56212
+
56213
+ /**
56214
+ * @enum {number}
56215
+ */
56216
+ proto.sniipuserservice.OtpSource = {
56217
+ UNSPECIFIED_SOURCE: 0,
56218
+ AUTHENTICATOR: 1,
56219
+ RECOVERY_CODE: 2,
56220
+ EMAIL: 3,
56221
+ SMS: 4
56222
+ };
56223
+
56224
+ /**
56225
+ * @enum {number}
56226
+ */
56227
+ proto.sniipuserservice.AppAccountType = {
56228
+ ACCOUNT_TYPE_UNSPECIFIED: 0,
56229
+ SNIIP: 1,
56230
+ WEX: 2
56231
+ };
56232
+
56233
+ /**
56234
+ * @enum {number}
56235
+ */
56236
+ proto.sniipuserservice.LocationBackfillJob = {
56237
+ LOCATION_BACKFILL_JOB_UNSPECIFIED: 0,
56238
+ LOCATION_BACKFILL_JOB_PHONE_COUNTRY: 1,
56239
+ LOCATION_BACKFILL_JOB_KYC_LOCATION: 2
56240
+ };
56241
+
56242
+ /**
56243
+ * @enum {number}
56244
+ */
56245
+ proto.sniipuserservice.CapabilityTokenMode = {
56246
+ CAPABILITY_TOKEN_MODE_UNSPECIFIED: 0,
56247
+ CAPABILITY_TOKEN_MODE_VALIDATE: 1,
56248
+ CAPABILITY_TOKEN_MODE_CONSUME: 2
54997
56249
  };
54998
56250
 
54999
56251
  goog.object.extend(exports, proto.sniipuserservice);