@sniipwebmaster/payment-methods-client-grpcweb 0.2.2200 → 0.2.2222
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.
|
@@ -530,6 +530,61 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
|
|
|
530
530
|
};
|
|
531
531
|
|
|
532
532
|
|
|
533
|
+
/**
|
|
534
|
+
* @const
|
|
535
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
536
|
+
* !proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest,
|
|
537
|
+
* !proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse>}
|
|
538
|
+
*/
|
|
539
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_GetCardHashesForUser = new grpc.web.AbstractClientBase.MethodInfo(
|
|
540
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse,
|
|
541
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} request */
|
|
542
|
+
function(request) {
|
|
543
|
+
return request.serializeBinary();
|
|
544
|
+
},
|
|
545
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.deserializeBinary
|
|
546
|
+
);
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} request The
|
|
551
|
+
* request proto
|
|
552
|
+
* @param {?Object<string, string>} metadata User defined
|
|
553
|
+
* call metadata
|
|
554
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse)}
|
|
555
|
+
* callback The callback function(error, response)
|
|
556
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse>|undefined}
|
|
557
|
+
* The XHR Node Readable Stream
|
|
558
|
+
*/
|
|
559
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getCardHashesForUser =
|
|
560
|
+
function(request, metadata, callback) {
|
|
561
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
562
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetCardHashesForUser',
|
|
563
|
+
request,
|
|
564
|
+
metadata || {},
|
|
565
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetCardHashesForUser,
|
|
566
|
+
callback);
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} request The
|
|
572
|
+
* request proto
|
|
573
|
+
* @param {?Object<string, string>} metadata User defined
|
|
574
|
+
* call metadata
|
|
575
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse>}
|
|
576
|
+
* A native promise that resolves to the response
|
|
577
|
+
*/
|
|
578
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getCardHashesForUser =
|
|
579
|
+
function(request, metadata) {
|
|
580
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
581
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetCardHashesForUser',
|
|
582
|
+
request,
|
|
583
|
+
metadata || {},
|
|
584
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetCardHashesForUser);
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
|
|
533
588
|
/**
|
|
534
589
|
* @const
|
|
535
590
|
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
@@ -21,11 +21,14 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest', n
|
|
|
21
21
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.BankAccount', null, global);
|
|
22
22
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CardHashRequest', null, global);
|
|
23
23
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CardHashResponse', null, global);
|
|
24
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ColourScheme', null, global);
|
|
25
27
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCard', null, global);
|
|
26
28
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest', null, global);
|
|
29
32
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest', null, global);
|
|
30
33
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest', null, global);
|
|
31
34
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest', null, global);
|
|
@@ -2150,6 +2153,383 @@ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.setCardhash = fun
|
|
|
2150
2153
|
|
|
2151
2154
|
|
|
2152
2155
|
|
|
2156
|
+
/**
|
|
2157
|
+
* Generated by JsPbCodeGenerator.
|
|
2158
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2159
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2160
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2161
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2162
|
+
* valid.
|
|
2163
|
+
* @extends {jspb.Message}
|
|
2164
|
+
* @constructor
|
|
2165
|
+
*/
|
|
2166
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest = function(opt_data) {
|
|
2167
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2168
|
+
};
|
|
2169
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest, jspb.Message);
|
|
2170
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2171
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest';
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2176
|
+
/**
|
|
2177
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2178
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2179
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2180
|
+
* For the list of reserved names please see:
|
|
2181
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2182
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2183
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2184
|
+
* @return {!Object}
|
|
2185
|
+
*/
|
|
2186
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2187
|
+
return proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.toObject(opt_includeInstance, this);
|
|
2188
|
+
};
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* Static version of the {@see toObject} method.
|
|
2193
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2194
|
+
* instance for transitional soy proto support:
|
|
2195
|
+
* http://goto/soy-param-migration
|
|
2196
|
+
* @param {!proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest} msg The msg instance to transform.
|
|
2197
|
+
* @return {!Object}
|
|
2198
|
+
*/
|
|
2199
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.toObject = function(includeInstance, msg) {
|
|
2200
|
+
var f, obj = {
|
|
2201
|
+
userid: msg.getUserid()
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
if (includeInstance) {
|
|
2205
|
+
obj.$jspbMessageInstance = msg;
|
|
2206
|
+
}
|
|
2207
|
+
return obj;
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
|
|
2212
|
+
/**
|
|
2213
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2214
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2215
|
+
* @return {!proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest}
|
|
2216
|
+
*/
|
|
2217
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.deserializeBinary = function(bytes) {
|
|
2218
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2219
|
+
var msg = new proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest;
|
|
2220
|
+
return proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.deserializeBinaryFromReader(msg, reader);
|
|
2221
|
+
};
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2226
|
+
* given reader into the given message object.
|
|
2227
|
+
* @param {!proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest} msg The message object to deserialize into.
|
|
2228
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2229
|
+
* @return {!proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest}
|
|
2230
|
+
*/
|
|
2231
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2232
|
+
while (reader.nextField()) {
|
|
2233
|
+
if (reader.isEndGroup()) {
|
|
2234
|
+
break;
|
|
2235
|
+
}
|
|
2236
|
+
var field = reader.getFieldNumber();
|
|
2237
|
+
switch (field) {
|
|
2238
|
+
case 1:
|
|
2239
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2240
|
+
msg.setUserid(value);
|
|
2241
|
+
break;
|
|
2242
|
+
default:
|
|
2243
|
+
reader.skipField();
|
|
2244
|
+
break;
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
return msg;
|
|
2248
|
+
};
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* Class method variant: serializes the given message to binary data
|
|
2253
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2254
|
+
* @param {!proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest} message
|
|
2255
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2256
|
+
*/
|
|
2257
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2258
|
+
message.serializeBinaryToWriter(writer);
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2264
|
+
* @return {!Uint8Array}
|
|
2265
|
+
*/
|
|
2266
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.prototype.serializeBinary = function() {
|
|
2267
|
+
var writer = new jspb.BinaryWriter();
|
|
2268
|
+
this.serializeBinaryToWriter(writer);
|
|
2269
|
+
return writer.getResultBuffer();
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2275
|
+
* writing to the given BinaryWriter.
|
|
2276
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2277
|
+
*/
|
|
2278
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
2279
|
+
var f = undefined;
|
|
2280
|
+
f = this.getUserid();
|
|
2281
|
+
if (f !== 0) {
|
|
2282
|
+
writer.writeInt64(
|
|
2283
|
+
1,
|
|
2284
|
+
f
|
|
2285
|
+
);
|
|
2286
|
+
}
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2292
|
+
* @return {!proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest} The clone.
|
|
2293
|
+
*/
|
|
2294
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.prototype.cloneMessage = function() {
|
|
2295
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest} */ (jspb.Message.cloneMessage(this));
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* optional int64 userId = 1;
|
|
2301
|
+
* @return {number}
|
|
2302
|
+
*/
|
|
2303
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.prototype.getUserid = function() {
|
|
2304
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
2305
|
+
};
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
/** @param {number} value */
|
|
2309
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.prototype.setUserid = function(value) {
|
|
2310
|
+
jspb.Message.setField(this, 1, value);
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Generated by JsPbCodeGenerator.
|
|
2317
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2318
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2319
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2320
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2321
|
+
* valid.
|
|
2322
|
+
* @extends {jspb.Message}
|
|
2323
|
+
* @constructor
|
|
2324
|
+
*/
|
|
2325
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse = function(opt_data) {
|
|
2326
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.repeatedFields_, null);
|
|
2327
|
+
};
|
|
2328
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse, jspb.Message);
|
|
2329
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2330
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.displayName = 'proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse';
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* List of repeated fields within this message type.
|
|
2334
|
+
* @private {!Array<number>}
|
|
2335
|
+
* @const
|
|
2336
|
+
*/
|
|
2337
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.repeatedFields_ = [2];
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2342
|
+
/**
|
|
2343
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2344
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2345
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2346
|
+
* For the list of reserved names please see:
|
|
2347
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2348
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2349
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2350
|
+
* @return {!Object}
|
|
2351
|
+
*/
|
|
2352
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2353
|
+
return proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.toObject(opt_includeInstance, this);
|
|
2354
|
+
};
|
|
2355
|
+
|
|
2356
|
+
|
|
2357
|
+
/**
|
|
2358
|
+
* Static version of the {@see toObject} method.
|
|
2359
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2360
|
+
* instance for transitional soy proto support:
|
|
2361
|
+
* http://goto/soy-param-migration
|
|
2362
|
+
* @param {!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse} msg The msg instance to transform.
|
|
2363
|
+
* @return {!Object}
|
|
2364
|
+
*/
|
|
2365
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.toObject = function(includeInstance, msg) {
|
|
2366
|
+
var f, obj = {
|
|
2367
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
2368
|
+
cardhashesList: jspb.Message.getField(msg, 2)
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
if (includeInstance) {
|
|
2372
|
+
obj.$jspbMessageInstance = msg;
|
|
2373
|
+
}
|
|
2374
|
+
return obj;
|
|
2375
|
+
};
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2381
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2382
|
+
* @return {!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse}
|
|
2383
|
+
*/
|
|
2384
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.deserializeBinary = function(bytes) {
|
|
2385
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2386
|
+
var msg = new proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse;
|
|
2387
|
+
return proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.deserializeBinaryFromReader(msg, reader);
|
|
2388
|
+
};
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2393
|
+
* given reader into the given message object.
|
|
2394
|
+
* @param {!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse} msg The message object to deserialize into.
|
|
2395
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2396
|
+
* @return {!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse}
|
|
2397
|
+
*/
|
|
2398
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2399
|
+
while (reader.nextField()) {
|
|
2400
|
+
if (reader.isEndGroup()) {
|
|
2401
|
+
break;
|
|
2402
|
+
}
|
|
2403
|
+
var field = reader.getFieldNumber();
|
|
2404
|
+
switch (field) {
|
|
2405
|
+
case 1:
|
|
2406
|
+
var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
|
|
2407
|
+
reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
2408
|
+
msg.setResponsecode(value);
|
|
2409
|
+
break;
|
|
2410
|
+
case 2:
|
|
2411
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2412
|
+
msg.getCardhashesList().push(value);
|
|
2413
|
+
msg.setCardhashesList(msg.getCardhashesList());
|
|
2414
|
+
break;
|
|
2415
|
+
default:
|
|
2416
|
+
reader.skipField();
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
return msg;
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* Class method variant: serializes the given message to binary data
|
|
2426
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2427
|
+
* @param {!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse} message
|
|
2428
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2429
|
+
*/
|
|
2430
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2431
|
+
message.serializeBinaryToWriter(writer);
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2437
|
+
* @return {!Uint8Array}
|
|
2438
|
+
*/
|
|
2439
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.serializeBinary = function() {
|
|
2440
|
+
var writer = new jspb.BinaryWriter();
|
|
2441
|
+
this.serializeBinaryToWriter(writer);
|
|
2442
|
+
return writer.getResultBuffer();
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2448
|
+
* writing to the given BinaryWriter.
|
|
2449
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2450
|
+
*/
|
|
2451
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
2452
|
+
var f = undefined;
|
|
2453
|
+
f = this.getResponsecode();
|
|
2454
|
+
if (f != null) {
|
|
2455
|
+
writer.writeMessage(
|
|
2456
|
+
1,
|
|
2457
|
+
f,
|
|
2458
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
|
|
2459
|
+
);
|
|
2460
|
+
}
|
|
2461
|
+
f = this.getCardhashesList();
|
|
2462
|
+
if (f.length > 0) {
|
|
2463
|
+
writer.writeRepeatedString(
|
|
2464
|
+
2,
|
|
2465
|
+
f
|
|
2466
|
+
);
|
|
2467
|
+
}
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2473
|
+
* @return {!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse} The clone.
|
|
2474
|
+
*/
|
|
2475
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.cloneMessage = function() {
|
|
2476
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse} */ (jspb.Message.cloneMessage(this));
|
|
2477
|
+
};
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* optional ResponseCode responseCode = 1;
|
|
2482
|
+
* @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
|
|
2483
|
+
*/
|
|
2484
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.getResponsecode = function() {
|
|
2485
|
+
return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
|
|
2486
|
+
jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
|
|
2487
|
+
};
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
/** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
|
|
2491
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.setResponsecode = function(value) {
|
|
2492
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
2493
|
+
};
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.clearResponsecode = function() {
|
|
2497
|
+
this.setResponsecode(undefined);
|
|
2498
|
+
};
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
/**
|
|
2502
|
+
* Returns whether this field is set.
|
|
2503
|
+
* @return{!boolean}
|
|
2504
|
+
*/
|
|
2505
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.hasResponsecode = function() {
|
|
2506
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2507
|
+
};
|
|
2508
|
+
|
|
2509
|
+
|
|
2510
|
+
/**
|
|
2511
|
+
* repeated string cardHashes = 2;
|
|
2512
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
2513
|
+
* replace the array itself, then you must call the setter to update it.
|
|
2514
|
+
* @return {!Array.<string>}
|
|
2515
|
+
*/
|
|
2516
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.getCardhashesList = function() {
|
|
2517
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 2));
|
|
2518
|
+
};
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
/** @param {Array.<string>} value */
|
|
2522
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.setCardhashesList = function(value) {
|
|
2523
|
+
jspb.Message.setField(this, 2, value || []);
|
|
2524
|
+
};
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserResponse.prototype.clearCardhashesList = function() {
|
|
2528
|
+
jspb.Message.setField(this, 2, []);
|
|
2529
|
+
};
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
|
|
2153
2533
|
/**
|
|
2154
2534
|
* Generated by JsPbCodeGenerator.
|
|
2155
2535
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3604,6 +3984,182 @@ proto.sniippaymentmethodsserviceapi.GetCardHashRequest.prototype.hasData = funct
|
|
|
3604
3984
|
|
|
3605
3985
|
|
|
3606
3986
|
|
|
3987
|
+
/**
|
|
3988
|
+
* Generated by JsPbCodeGenerator.
|
|
3989
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3990
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3991
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3992
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3993
|
+
* valid.
|
|
3994
|
+
* @extends {jspb.Message}
|
|
3995
|
+
* @constructor
|
|
3996
|
+
*/
|
|
3997
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest = function(opt_data) {
|
|
3998
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3999
|
+
};
|
|
4000
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest, jspb.Message);
|
|
4001
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4002
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest';
|
|
4003
|
+
}
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4007
|
+
/**
|
|
4008
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
4009
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4010
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4011
|
+
* For the list of reserved names please see:
|
|
4012
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
4013
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
4014
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
4015
|
+
* @return {!Object}
|
|
4016
|
+
*/
|
|
4017
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4018
|
+
return proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.toObject(opt_includeInstance, this);
|
|
4019
|
+
};
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* Static version of the {@see toObject} method.
|
|
4024
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
4025
|
+
* instance for transitional soy proto support:
|
|
4026
|
+
* http://goto/soy-param-migration
|
|
4027
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} msg The msg instance to transform.
|
|
4028
|
+
* @return {!Object}
|
|
4029
|
+
*/
|
|
4030
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.toObject = function(includeInstance, msg) {
|
|
4031
|
+
var f, obj = {
|
|
4032
|
+
data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.toObject(includeInstance, f)
|
|
4033
|
+
};
|
|
4034
|
+
|
|
4035
|
+
if (includeInstance) {
|
|
4036
|
+
obj.$jspbMessageInstance = msg;
|
|
4037
|
+
}
|
|
4038
|
+
return obj;
|
|
4039
|
+
};
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
/**
|
|
4044
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4045
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4046
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest}
|
|
4047
|
+
*/
|
|
4048
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.deserializeBinary = function(bytes) {
|
|
4049
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4050
|
+
var msg = new proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest;
|
|
4051
|
+
return proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.deserializeBinaryFromReader(msg, reader);
|
|
4052
|
+
};
|
|
4053
|
+
|
|
4054
|
+
|
|
4055
|
+
/**
|
|
4056
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4057
|
+
* given reader into the given message object.
|
|
4058
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} msg The message object to deserialize into.
|
|
4059
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4060
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest}
|
|
4061
|
+
*/
|
|
4062
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4063
|
+
while (reader.nextField()) {
|
|
4064
|
+
if (reader.isEndGroup()) {
|
|
4065
|
+
break;
|
|
4066
|
+
}
|
|
4067
|
+
var field = reader.getFieldNumber();
|
|
4068
|
+
switch (field) {
|
|
4069
|
+
case 1:
|
|
4070
|
+
var value = new proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest;
|
|
4071
|
+
reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.deserializeBinaryFromReader);
|
|
4072
|
+
msg.setData(value);
|
|
4073
|
+
break;
|
|
4074
|
+
default:
|
|
4075
|
+
reader.skipField();
|
|
4076
|
+
break;
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
return msg;
|
|
4080
|
+
};
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
/**
|
|
4084
|
+
* Class method variant: serializes the given message to binary data
|
|
4085
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
4086
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} message
|
|
4087
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4088
|
+
*/
|
|
4089
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4090
|
+
message.serializeBinaryToWriter(writer);
|
|
4091
|
+
};
|
|
4092
|
+
|
|
4093
|
+
|
|
4094
|
+
/**
|
|
4095
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4096
|
+
* @return {!Uint8Array}
|
|
4097
|
+
*/
|
|
4098
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.serializeBinary = function() {
|
|
4099
|
+
var writer = new jspb.BinaryWriter();
|
|
4100
|
+
this.serializeBinaryToWriter(writer);
|
|
4101
|
+
return writer.getResultBuffer();
|
|
4102
|
+
};
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
/**
|
|
4106
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
4107
|
+
* writing to the given BinaryWriter.
|
|
4108
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4109
|
+
*/
|
|
4110
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
4111
|
+
var f = undefined;
|
|
4112
|
+
f = this.getData();
|
|
4113
|
+
if (f != null) {
|
|
4114
|
+
writer.writeMessage(
|
|
4115
|
+
1,
|
|
4116
|
+
f,
|
|
4117
|
+
proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest.serializeBinaryToWriter
|
|
4118
|
+
);
|
|
4119
|
+
}
|
|
4120
|
+
};
|
|
4121
|
+
|
|
4122
|
+
|
|
4123
|
+
/**
|
|
4124
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
4125
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} The clone.
|
|
4126
|
+
*/
|
|
4127
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.cloneMessage = function() {
|
|
4128
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest} */ (jspb.Message.cloneMessage(this));
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* optional CardHashesForUserRequest data = 1;
|
|
4134
|
+
* @return {proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest}
|
|
4135
|
+
*/
|
|
4136
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.getData = function() {
|
|
4137
|
+
return /** @type{proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest} */ (
|
|
4138
|
+
jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest, 1));
|
|
4139
|
+
};
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
/** @param {proto.sniippaymentmethodsserviceapi.CardHashesForUserRequest|undefined} value */
|
|
4143
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.setData = function(value) {
|
|
4144
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
4145
|
+
};
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.clearData = function() {
|
|
4149
|
+
this.setData(undefined);
|
|
4150
|
+
};
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
/**
|
|
4154
|
+
* Returns whether this field is set.
|
|
4155
|
+
* @return{!boolean}
|
|
4156
|
+
*/
|
|
4157
|
+
proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest.prototype.hasData = function() {
|
|
4158
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
|
|
3607
4163
|
/**
|
|
3608
4164
|
* Generated by JsPbCodeGenerator.
|
|
3609
4165
|
* @param {Array=} opt_data Optional initial data array, typically from a
|