@sniipwebmaster/payment-methods-client-grpcweb 0.2.2268 → 0.2.2302
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.
|
@@ -695,6 +695,116 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
|
|
|
695
695
|
};
|
|
696
696
|
|
|
697
697
|
|
|
698
|
+
/**
|
|
699
|
+
* @const
|
|
700
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
701
|
+
* !proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest,
|
|
702
|
+
* !proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse>}
|
|
703
|
+
*/
|
|
704
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodGroup = new grpc.web.AbstractClientBase.MethodInfo(
|
|
705
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse,
|
|
706
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} request */
|
|
707
|
+
function(request) {
|
|
708
|
+
return request.serializeBinary();
|
|
709
|
+
},
|
|
710
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.deserializeBinary
|
|
711
|
+
);
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} request The
|
|
716
|
+
* request proto
|
|
717
|
+
* @param {?Object<string, string>} metadata User defined
|
|
718
|
+
* call metadata
|
|
719
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse)}
|
|
720
|
+
* callback The callback function(error, response)
|
|
721
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse>|undefined}
|
|
722
|
+
* The XHR Node Readable Stream
|
|
723
|
+
*/
|
|
724
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getPaymentMethodGroup =
|
|
725
|
+
function(request, metadata, callback) {
|
|
726
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
727
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodGroup',
|
|
728
|
+
request,
|
|
729
|
+
metadata || {},
|
|
730
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodGroup,
|
|
731
|
+
callback);
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} request The
|
|
737
|
+
* request proto
|
|
738
|
+
* @param {?Object<string, string>} metadata User defined
|
|
739
|
+
* call metadata
|
|
740
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse>}
|
|
741
|
+
* A native promise that resolves to the response
|
|
742
|
+
*/
|
|
743
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getPaymentMethodGroup =
|
|
744
|
+
function(request, metadata) {
|
|
745
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
746
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodGroup',
|
|
747
|
+
request,
|
|
748
|
+
metadata || {},
|
|
749
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodGroup);
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* @const
|
|
755
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
756
|
+
* !proto.google.protobuf.Empty,
|
|
757
|
+
* !proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse>}
|
|
758
|
+
*/
|
|
759
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodGroups = new grpc.web.AbstractClientBase.MethodInfo(
|
|
760
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse,
|
|
761
|
+
/** @param {!proto.google.protobuf.Empty} request */
|
|
762
|
+
function(request) {
|
|
763
|
+
return request.serializeBinary();
|
|
764
|
+
},
|
|
765
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.deserializeBinary
|
|
766
|
+
);
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
771
|
+
* request proto
|
|
772
|
+
* @param {?Object<string, string>} metadata User defined
|
|
773
|
+
* call metadata
|
|
774
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse)}
|
|
775
|
+
* callback The callback function(error, response)
|
|
776
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse>|undefined}
|
|
777
|
+
* The XHR Node Readable Stream
|
|
778
|
+
*/
|
|
779
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getPaymentMethodGroups =
|
|
780
|
+
function(request, metadata, callback) {
|
|
781
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
782
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodGroups',
|
|
783
|
+
request,
|
|
784
|
+
metadata || {},
|
|
785
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodGroups,
|
|
786
|
+
callback);
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
792
|
+
* request proto
|
|
793
|
+
* @param {?Object<string, string>} metadata User defined
|
|
794
|
+
* call metadata
|
|
795
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse>}
|
|
796
|
+
* A native promise that resolves to the response
|
|
797
|
+
*/
|
|
798
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getPaymentMethodGroups =
|
|
799
|
+
function(request, metadata) {
|
|
800
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
801
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodGroups',
|
|
802
|
+
request,
|
|
803
|
+
metadata || {},
|
|
804
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodGroups);
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
|
|
698
808
|
/**
|
|
699
809
|
* @const
|
|
700
810
|
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashRequest', null
|
|
|
31
31
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest', null, global);
|
|
32
32
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest', null, global);
|
|
33
33
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest', null, global);
|
|
34
35
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest', null, global);
|
|
35
36
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse', null, global);
|
|
36
37
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodsForAuditRequest', null, global);
|
|
@@ -42,6 +43,9 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethod', null, glo
|
|
|
42
43
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest', null, global);
|
|
43
44
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest', null, global);
|
|
44
45
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse', null, global);
|
|
46
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodGroup', null, global);
|
|
47
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse', null, global);
|
|
48
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse', null, global);
|
|
45
49
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodResponse', null, global);
|
|
46
50
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodUpdateRequest', null, global);
|
|
47
51
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodsForAuditRequest', null, global);
|
|
@@ -4512,6 +4516,165 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.
|
|
|
4512
4516
|
|
|
4513
4517
|
|
|
4514
4518
|
|
|
4519
|
+
/**
|
|
4520
|
+
* Generated by JsPbCodeGenerator.
|
|
4521
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4522
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4523
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4524
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4525
|
+
* valid.
|
|
4526
|
+
* @extends {jspb.Message}
|
|
4527
|
+
* @constructor
|
|
4528
|
+
*/
|
|
4529
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest = function(opt_data) {
|
|
4530
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4531
|
+
};
|
|
4532
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest, jspb.Message);
|
|
4533
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4534
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest';
|
|
4535
|
+
}
|
|
4536
|
+
|
|
4537
|
+
|
|
4538
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4539
|
+
/**
|
|
4540
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
4541
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4542
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4543
|
+
* For the list of reserved names please see:
|
|
4544
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
4545
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
4546
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
4547
|
+
* @return {!Object}
|
|
4548
|
+
*/
|
|
4549
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4550
|
+
return proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.toObject(opt_includeInstance, this);
|
|
4551
|
+
};
|
|
4552
|
+
|
|
4553
|
+
|
|
4554
|
+
/**
|
|
4555
|
+
* Static version of the {@see toObject} method.
|
|
4556
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
4557
|
+
* instance for transitional soy proto support:
|
|
4558
|
+
* http://goto/soy-param-migration
|
|
4559
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} msg The msg instance to transform.
|
|
4560
|
+
* @return {!Object}
|
|
4561
|
+
*/
|
|
4562
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.toObject = function(includeInstance, msg) {
|
|
4563
|
+
var f, obj = {
|
|
4564
|
+
groupid: msg.getGroupid()
|
|
4565
|
+
};
|
|
4566
|
+
|
|
4567
|
+
if (includeInstance) {
|
|
4568
|
+
obj.$jspbMessageInstance = msg;
|
|
4569
|
+
}
|
|
4570
|
+
return obj;
|
|
4571
|
+
};
|
|
4572
|
+
}
|
|
4573
|
+
|
|
4574
|
+
|
|
4575
|
+
/**
|
|
4576
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4577
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4578
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest}
|
|
4579
|
+
*/
|
|
4580
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.deserializeBinary = function(bytes) {
|
|
4581
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4582
|
+
var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest;
|
|
4583
|
+
return proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.deserializeBinaryFromReader(msg, reader);
|
|
4584
|
+
};
|
|
4585
|
+
|
|
4586
|
+
|
|
4587
|
+
/**
|
|
4588
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4589
|
+
* given reader into the given message object.
|
|
4590
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} msg The message object to deserialize into.
|
|
4591
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4592
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest}
|
|
4593
|
+
*/
|
|
4594
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4595
|
+
while (reader.nextField()) {
|
|
4596
|
+
if (reader.isEndGroup()) {
|
|
4597
|
+
break;
|
|
4598
|
+
}
|
|
4599
|
+
var field = reader.getFieldNumber();
|
|
4600
|
+
switch (field) {
|
|
4601
|
+
case 1:
|
|
4602
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
4603
|
+
msg.setGroupid(value);
|
|
4604
|
+
break;
|
|
4605
|
+
default:
|
|
4606
|
+
reader.skipField();
|
|
4607
|
+
break;
|
|
4608
|
+
}
|
|
4609
|
+
}
|
|
4610
|
+
return msg;
|
|
4611
|
+
};
|
|
4612
|
+
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* Class method variant: serializes the given message to binary data
|
|
4616
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
4617
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} message
|
|
4618
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4619
|
+
*/
|
|
4620
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4621
|
+
message.serializeBinaryToWriter(writer);
|
|
4622
|
+
};
|
|
4623
|
+
|
|
4624
|
+
|
|
4625
|
+
/**
|
|
4626
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4627
|
+
* @return {!Uint8Array}
|
|
4628
|
+
*/
|
|
4629
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.prototype.serializeBinary = function() {
|
|
4630
|
+
var writer = new jspb.BinaryWriter();
|
|
4631
|
+
this.serializeBinaryToWriter(writer);
|
|
4632
|
+
return writer.getResultBuffer();
|
|
4633
|
+
};
|
|
4634
|
+
|
|
4635
|
+
|
|
4636
|
+
/**
|
|
4637
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
4638
|
+
* writing to the given BinaryWriter.
|
|
4639
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4640
|
+
*/
|
|
4641
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
4642
|
+
var f = undefined;
|
|
4643
|
+
f = this.getGroupid();
|
|
4644
|
+
if (f !== 0) {
|
|
4645
|
+
writer.writeInt64(
|
|
4646
|
+
1,
|
|
4647
|
+
f
|
|
4648
|
+
);
|
|
4649
|
+
}
|
|
4650
|
+
};
|
|
4651
|
+
|
|
4652
|
+
|
|
4653
|
+
/**
|
|
4654
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
4655
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} The clone.
|
|
4656
|
+
*/
|
|
4657
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.prototype.cloneMessage = function() {
|
|
4658
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest} */ (jspb.Message.cloneMessage(this));
|
|
4659
|
+
};
|
|
4660
|
+
|
|
4661
|
+
|
|
4662
|
+
/**
|
|
4663
|
+
* optional int64 groupId = 1;
|
|
4664
|
+
* @return {number}
|
|
4665
|
+
*/
|
|
4666
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.prototype.getGroupid = function() {
|
|
4667
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
|
|
4671
|
+
/** @param {number} value */
|
|
4672
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodGroupRequest.prototype.setGroupid = function(value) {
|
|
4673
|
+
jspb.Message.setField(this, 1, value);
|
|
4674
|
+
};
|
|
4675
|
+
|
|
4676
|
+
|
|
4677
|
+
|
|
4515
4678
|
/**
|
|
4516
4679
|
* Generated by JsPbCodeGenerator.
|
|
4517
4680
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7360,6 +7523,676 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.ha
|
|
|
7360
7523
|
|
|
7361
7524
|
|
|
7362
7525
|
|
|
7526
|
+
/**
|
|
7527
|
+
* Generated by JsPbCodeGenerator.
|
|
7528
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7529
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7530
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7531
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7532
|
+
* valid.
|
|
7533
|
+
* @extends {jspb.Message}
|
|
7534
|
+
* @constructor
|
|
7535
|
+
*/
|
|
7536
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup = function(opt_data) {
|
|
7537
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.repeatedFields_, null);
|
|
7538
|
+
};
|
|
7539
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodGroup, jspb.Message);
|
|
7540
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7541
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodGroup';
|
|
7542
|
+
}
|
|
7543
|
+
/**
|
|
7544
|
+
* List of repeated fields within this message type.
|
|
7545
|
+
* @private {!Array<number>}
|
|
7546
|
+
* @const
|
|
7547
|
+
*/
|
|
7548
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.repeatedFields_ = [3];
|
|
7549
|
+
|
|
7550
|
+
|
|
7551
|
+
|
|
7552
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7553
|
+
/**
|
|
7554
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
7555
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7556
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7557
|
+
* For the list of reserved names please see:
|
|
7558
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
7559
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
7560
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
7561
|
+
* @return {!Object}
|
|
7562
|
+
*/
|
|
7563
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.toObject = function(opt_includeInstance) {
|
|
7564
|
+
return proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.toObject(opt_includeInstance, this);
|
|
7565
|
+
};
|
|
7566
|
+
|
|
7567
|
+
|
|
7568
|
+
/**
|
|
7569
|
+
* Static version of the {@see toObject} method.
|
|
7570
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
7571
|
+
* instance for transitional soy proto support:
|
|
7572
|
+
* http://goto/soy-param-migration
|
|
7573
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup} msg The msg instance to transform.
|
|
7574
|
+
* @return {!Object}
|
|
7575
|
+
*/
|
|
7576
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.toObject = function(includeInstance, msg) {
|
|
7577
|
+
var f, obj = {
|
|
7578
|
+
paymentmethodgroupid: msg.getPaymentmethodgroupid(),
|
|
7579
|
+
name: msg.getName(),
|
|
7580
|
+
paymentmethodsList: jspb.Message.getField(msg, 3)
|
|
7581
|
+
};
|
|
7582
|
+
|
|
7583
|
+
if (includeInstance) {
|
|
7584
|
+
obj.$jspbMessageInstance = msg;
|
|
7585
|
+
}
|
|
7586
|
+
return obj;
|
|
7587
|
+
};
|
|
7588
|
+
}
|
|
7589
|
+
|
|
7590
|
+
|
|
7591
|
+
/**
|
|
7592
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7593
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7594
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup}
|
|
7595
|
+
*/
|
|
7596
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.deserializeBinary = function(bytes) {
|
|
7597
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7598
|
+
var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodGroup;
|
|
7599
|
+
return proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.deserializeBinaryFromReader(msg, reader);
|
|
7600
|
+
};
|
|
7601
|
+
|
|
7602
|
+
|
|
7603
|
+
/**
|
|
7604
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7605
|
+
* given reader into the given message object.
|
|
7606
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup} msg The message object to deserialize into.
|
|
7607
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7608
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup}
|
|
7609
|
+
*/
|
|
7610
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
7611
|
+
while (reader.nextField()) {
|
|
7612
|
+
if (reader.isEndGroup()) {
|
|
7613
|
+
break;
|
|
7614
|
+
}
|
|
7615
|
+
var field = reader.getFieldNumber();
|
|
7616
|
+
switch (field) {
|
|
7617
|
+
case 1:
|
|
7618
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7619
|
+
msg.setPaymentmethodgroupid(value);
|
|
7620
|
+
break;
|
|
7621
|
+
case 2:
|
|
7622
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7623
|
+
msg.setName(value);
|
|
7624
|
+
break;
|
|
7625
|
+
case 3:
|
|
7626
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7627
|
+
msg.getPaymentmethodsList().push(value);
|
|
7628
|
+
msg.setPaymentmethodsList(msg.getPaymentmethodsList());
|
|
7629
|
+
break;
|
|
7630
|
+
default:
|
|
7631
|
+
reader.skipField();
|
|
7632
|
+
break;
|
|
7633
|
+
}
|
|
7634
|
+
}
|
|
7635
|
+
return msg;
|
|
7636
|
+
};
|
|
7637
|
+
|
|
7638
|
+
|
|
7639
|
+
/**
|
|
7640
|
+
* Class method variant: serializes the given message to binary data
|
|
7641
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
7642
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup} message
|
|
7643
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7644
|
+
*/
|
|
7645
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.serializeBinaryToWriter = function(message, writer) {
|
|
7646
|
+
message.serializeBinaryToWriter(writer);
|
|
7647
|
+
};
|
|
7648
|
+
|
|
7649
|
+
|
|
7650
|
+
/**
|
|
7651
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7652
|
+
* @return {!Uint8Array}
|
|
7653
|
+
*/
|
|
7654
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.serializeBinary = function() {
|
|
7655
|
+
var writer = new jspb.BinaryWriter();
|
|
7656
|
+
this.serializeBinaryToWriter(writer);
|
|
7657
|
+
return writer.getResultBuffer();
|
|
7658
|
+
};
|
|
7659
|
+
|
|
7660
|
+
|
|
7661
|
+
/**
|
|
7662
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
7663
|
+
* writing to the given BinaryWriter.
|
|
7664
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7665
|
+
*/
|
|
7666
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.serializeBinaryToWriter = function (writer) {
|
|
7667
|
+
var f = undefined;
|
|
7668
|
+
f = this.getPaymentmethodgroupid();
|
|
7669
|
+
if (f !== 0) {
|
|
7670
|
+
writer.writeInt64(
|
|
7671
|
+
1,
|
|
7672
|
+
f
|
|
7673
|
+
);
|
|
7674
|
+
}
|
|
7675
|
+
f = this.getName();
|
|
7676
|
+
if (f.length > 0) {
|
|
7677
|
+
writer.writeString(
|
|
7678
|
+
2,
|
|
7679
|
+
f
|
|
7680
|
+
);
|
|
7681
|
+
}
|
|
7682
|
+
f = this.getPaymentmethodsList();
|
|
7683
|
+
if (f.length > 0) {
|
|
7684
|
+
writer.writeRepeatedString(
|
|
7685
|
+
3,
|
|
7686
|
+
f
|
|
7687
|
+
);
|
|
7688
|
+
}
|
|
7689
|
+
};
|
|
7690
|
+
|
|
7691
|
+
|
|
7692
|
+
/**
|
|
7693
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
7694
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup} The clone.
|
|
7695
|
+
*/
|
|
7696
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.cloneMessage = function() {
|
|
7697
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup} */ (jspb.Message.cloneMessage(this));
|
|
7698
|
+
};
|
|
7699
|
+
|
|
7700
|
+
|
|
7701
|
+
/**
|
|
7702
|
+
* optional int64 paymentMethodGroupId = 1;
|
|
7703
|
+
* @return {number}
|
|
7704
|
+
*/
|
|
7705
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.getPaymentmethodgroupid = function() {
|
|
7706
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
7707
|
+
};
|
|
7708
|
+
|
|
7709
|
+
|
|
7710
|
+
/** @param {number} value */
|
|
7711
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.setPaymentmethodgroupid = function(value) {
|
|
7712
|
+
jspb.Message.setField(this, 1, value);
|
|
7713
|
+
};
|
|
7714
|
+
|
|
7715
|
+
|
|
7716
|
+
/**
|
|
7717
|
+
* optional string name = 2;
|
|
7718
|
+
* @return {string}
|
|
7719
|
+
*/
|
|
7720
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.getName = function() {
|
|
7721
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
7722
|
+
};
|
|
7723
|
+
|
|
7724
|
+
|
|
7725
|
+
/** @param {string} value */
|
|
7726
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.setName = function(value) {
|
|
7727
|
+
jspb.Message.setField(this, 2, value);
|
|
7728
|
+
};
|
|
7729
|
+
|
|
7730
|
+
|
|
7731
|
+
/**
|
|
7732
|
+
* repeated string paymentMethods = 3;
|
|
7733
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
7734
|
+
* replace the array itself, then you must call the setter to update it.
|
|
7735
|
+
* @return {!Array.<string>}
|
|
7736
|
+
*/
|
|
7737
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.getPaymentmethodsList = function() {
|
|
7738
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 3));
|
|
7739
|
+
};
|
|
7740
|
+
|
|
7741
|
+
|
|
7742
|
+
/** @param {Array.<string>} value */
|
|
7743
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.setPaymentmethodsList = function(value) {
|
|
7744
|
+
jspb.Message.setField(this, 3, value || []);
|
|
7745
|
+
};
|
|
7746
|
+
|
|
7747
|
+
|
|
7748
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.prototype.clearPaymentmethodsList = function() {
|
|
7749
|
+
jspb.Message.setField(this, 3, []);
|
|
7750
|
+
};
|
|
7751
|
+
|
|
7752
|
+
|
|
7753
|
+
|
|
7754
|
+
/**
|
|
7755
|
+
* Generated by JsPbCodeGenerator.
|
|
7756
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7757
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7758
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7759
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7760
|
+
* valid.
|
|
7761
|
+
* @extends {jspb.Message}
|
|
7762
|
+
* @constructor
|
|
7763
|
+
*/
|
|
7764
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse = function(opt_data) {
|
|
7765
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7766
|
+
};
|
|
7767
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse, jspb.Message);
|
|
7768
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7769
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse';
|
|
7770
|
+
}
|
|
7771
|
+
|
|
7772
|
+
|
|
7773
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7774
|
+
/**
|
|
7775
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
7776
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7777
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7778
|
+
* For the list of reserved names please see:
|
|
7779
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
7780
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
7781
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
7782
|
+
* @return {!Object}
|
|
7783
|
+
*/
|
|
7784
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.toObject = function(opt_includeInstance) {
|
|
7785
|
+
return proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.toObject(opt_includeInstance, this);
|
|
7786
|
+
};
|
|
7787
|
+
|
|
7788
|
+
|
|
7789
|
+
/**
|
|
7790
|
+
* Static version of the {@see toObject} method.
|
|
7791
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
7792
|
+
* instance for transitional soy proto support:
|
|
7793
|
+
* http://goto/soy-param-migration
|
|
7794
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse} msg The msg instance to transform.
|
|
7795
|
+
* @return {!Object}
|
|
7796
|
+
*/
|
|
7797
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.toObject = function(includeInstance, msg) {
|
|
7798
|
+
var f, obj = {
|
|
7799
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
7800
|
+
group: (f = msg.getGroup()) && proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.toObject(includeInstance, f)
|
|
7801
|
+
};
|
|
7802
|
+
|
|
7803
|
+
if (includeInstance) {
|
|
7804
|
+
obj.$jspbMessageInstance = msg;
|
|
7805
|
+
}
|
|
7806
|
+
return obj;
|
|
7807
|
+
};
|
|
7808
|
+
}
|
|
7809
|
+
|
|
7810
|
+
|
|
7811
|
+
/**
|
|
7812
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7813
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7814
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse}
|
|
7815
|
+
*/
|
|
7816
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.deserializeBinary = function(bytes) {
|
|
7817
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7818
|
+
var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse;
|
|
7819
|
+
return proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.deserializeBinaryFromReader(msg, reader);
|
|
7820
|
+
};
|
|
7821
|
+
|
|
7822
|
+
|
|
7823
|
+
/**
|
|
7824
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7825
|
+
* given reader into the given message object.
|
|
7826
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse} msg The message object to deserialize into.
|
|
7827
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7828
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse}
|
|
7829
|
+
*/
|
|
7830
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7831
|
+
while (reader.nextField()) {
|
|
7832
|
+
if (reader.isEndGroup()) {
|
|
7833
|
+
break;
|
|
7834
|
+
}
|
|
7835
|
+
var field = reader.getFieldNumber();
|
|
7836
|
+
switch (field) {
|
|
7837
|
+
case 1:
|
|
7838
|
+
var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
|
|
7839
|
+
reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
7840
|
+
msg.setResponsecode(value);
|
|
7841
|
+
break;
|
|
7842
|
+
case 2:
|
|
7843
|
+
var value = new proto.sniippaymentmethodsserviceapi.PaymentMethodGroup;
|
|
7844
|
+
reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.deserializeBinaryFromReader);
|
|
7845
|
+
msg.setGroup(value);
|
|
7846
|
+
break;
|
|
7847
|
+
default:
|
|
7848
|
+
reader.skipField();
|
|
7849
|
+
break;
|
|
7850
|
+
}
|
|
7851
|
+
}
|
|
7852
|
+
return msg;
|
|
7853
|
+
};
|
|
7854
|
+
|
|
7855
|
+
|
|
7856
|
+
/**
|
|
7857
|
+
* Class method variant: serializes the given message to binary data
|
|
7858
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
7859
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse} message
|
|
7860
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7861
|
+
*/
|
|
7862
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.serializeBinaryToWriter = function(message, writer) {
|
|
7863
|
+
message.serializeBinaryToWriter(writer);
|
|
7864
|
+
};
|
|
7865
|
+
|
|
7866
|
+
|
|
7867
|
+
/**
|
|
7868
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7869
|
+
* @return {!Uint8Array}
|
|
7870
|
+
*/
|
|
7871
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.serializeBinary = function() {
|
|
7872
|
+
var writer = new jspb.BinaryWriter();
|
|
7873
|
+
this.serializeBinaryToWriter(writer);
|
|
7874
|
+
return writer.getResultBuffer();
|
|
7875
|
+
};
|
|
7876
|
+
|
|
7877
|
+
|
|
7878
|
+
/**
|
|
7879
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
7880
|
+
* writing to the given BinaryWriter.
|
|
7881
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7882
|
+
*/
|
|
7883
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
7884
|
+
var f = undefined;
|
|
7885
|
+
f = this.getResponsecode();
|
|
7886
|
+
if (f != null) {
|
|
7887
|
+
writer.writeMessage(
|
|
7888
|
+
1,
|
|
7889
|
+
f,
|
|
7890
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
|
|
7891
|
+
);
|
|
7892
|
+
}
|
|
7893
|
+
f = this.getGroup();
|
|
7894
|
+
if (f != null) {
|
|
7895
|
+
writer.writeMessage(
|
|
7896
|
+
2,
|
|
7897
|
+
f,
|
|
7898
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.serializeBinaryToWriter
|
|
7899
|
+
);
|
|
7900
|
+
}
|
|
7901
|
+
};
|
|
7902
|
+
|
|
7903
|
+
|
|
7904
|
+
/**
|
|
7905
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
7906
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse} The clone.
|
|
7907
|
+
*/
|
|
7908
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.cloneMessage = function() {
|
|
7909
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse} */ (jspb.Message.cloneMessage(this));
|
|
7910
|
+
};
|
|
7911
|
+
|
|
7912
|
+
|
|
7913
|
+
/**
|
|
7914
|
+
* optional ResponseCode responseCode = 1;
|
|
7915
|
+
* @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
|
|
7916
|
+
*/
|
|
7917
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.getResponsecode = function() {
|
|
7918
|
+
return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
|
|
7919
|
+
jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
|
|
7920
|
+
};
|
|
7921
|
+
|
|
7922
|
+
|
|
7923
|
+
/** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
|
|
7924
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.setResponsecode = function(value) {
|
|
7925
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
7926
|
+
};
|
|
7927
|
+
|
|
7928
|
+
|
|
7929
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.clearResponsecode = function() {
|
|
7930
|
+
this.setResponsecode(undefined);
|
|
7931
|
+
};
|
|
7932
|
+
|
|
7933
|
+
|
|
7934
|
+
/**
|
|
7935
|
+
* Returns whether this field is set.
|
|
7936
|
+
* @return{!boolean}
|
|
7937
|
+
*/
|
|
7938
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.hasResponsecode = function() {
|
|
7939
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7940
|
+
};
|
|
7941
|
+
|
|
7942
|
+
|
|
7943
|
+
/**
|
|
7944
|
+
* optional PaymentMethodGroup group = 2;
|
|
7945
|
+
* @return {proto.sniippaymentmethodsserviceapi.PaymentMethodGroup}
|
|
7946
|
+
*/
|
|
7947
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.getGroup = function() {
|
|
7948
|
+
return /** @type{proto.sniippaymentmethodsserviceapi.PaymentMethodGroup} */ (
|
|
7949
|
+
jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethodGroup, 2));
|
|
7950
|
+
};
|
|
7951
|
+
|
|
7952
|
+
|
|
7953
|
+
/** @param {proto.sniippaymentmethodsserviceapi.PaymentMethodGroup|undefined} value */
|
|
7954
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.setGroup = function(value) {
|
|
7955
|
+
jspb.Message.setWrapperField(this, 2, value);
|
|
7956
|
+
};
|
|
7957
|
+
|
|
7958
|
+
|
|
7959
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.clearGroup = function() {
|
|
7960
|
+
this.setGroup(undefined);
|
|
7961
|
+
};
|
|
7962
|
+
|
|
7963
|
+
|
|
7964
|
+
/**
|
|
7965
|
+
* Returns whether this field is set.
|
|
7966
|
+
* @return{!boolean}
|
|
7967
|
+
*/
|
|
7968
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse.prototype.hasGroup = function() {
|
|
7969
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7970
|
+
};
|
|
7971
|
+
|
|
7972
|
+
|
|
7973
|
+
|
|
7974
|
+
/**
|
|
7975
|
+
* Generated by JsPbCodeGenerator.
|
|
7976
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7977
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7978
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7979
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7980
|
+
* valid.
|
|
7981
|
+
* @extends {jspb.Message}
|
|
7982
|
+
* @constructor
|
|
7983
|
+
*/
|
|
7984
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse = function(opt_data) {
|
|
7985
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.repeatedFields_, null);
|
|
7986
|
+
};
|
|
7987
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse, jspb.Message);
|
|
7988
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7989
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse';
|
|
7990
|
+
}
|
|
7991
|
+
/**
|
|
7992
|
+
* List of repeated fields within this message type.
|
|
7993
|
+
* @private {!Array<number>}
|
|
7994
|
+
* @const
|
|
7995
|
+
*/
|
|
7996
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.repeatedFields_ = [2];
|
|
7997
|
+
|
|
7998
|
+
|
|
7999
|
+
|
|
8000
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8001
|
+
/**
|
|
8002
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
8003
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8004
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8005
|
+
* For the list of reserved names please see:
|
|
8006
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
8007
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
8008
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
8009
|
+
* @return {!Object}
|
|
8010
|
+
*/
|
|
8011
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8012
|
+
return proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.toObject(opt_includeInstance, this);
|
|
8013
|
+
};
|
|
8014
|
+
|
|
8015
|
+
|
|
8016
|
+
/**
|
|
8017
|
+
* Static version of the {@see toObject} method.
|
|
8018
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
8019
|
+
* instance for transitional soy proto support:
|
|
8020
|
+
* http://goto/soy-param-migration
|
|
8021
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse} msg The msg instance to transform.
|
|
8022
|
+
* @return {!Object}
|
|
8023
|
+
*/
|
|
8024
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.toObject = function(includeInstance, msg) {
|
|
8025
|
+
var f, obj = {
|
|
8026
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
8027
|
+
groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
|
|
8028
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.toObject, includeInstance)
|
|
8029
|
+
};
|
|
8030
|
+
|
|
8031
|
+
if (includeInstance) {
|
|
8032
|
+
obj.$jspbMessageInstance = msg;
|
|
8033
|
+
}
|
|
8034
|
+
return obj;
|
|
8035
|
+
};
|
|
8036
|
+
}
|
|
8037
|
+
|
|
8038
|
+
|
|
8039
|
+
/**
|
|
8040
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8041
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8042
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse}
|
|
8043
|
+
*/
|
|
8044
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.deserializeBinary = function(bytes) {
|
|
8045
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8046
|
+
var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse;
|
|
8047
|
+
return proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.deserializeBinaryFromReader(msg, reader);
|
|
8048
|
+
};
|
|
8049
|
+
|
|
8050
|
+
|
|
8051
|
+
/**
|
|
8052
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8053
|
+
* given reader into the given message object.
|
|
8054
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse} msg The message object to deserialize into.
|
|
8055
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8056
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse}
|
|
8057
|
+
*/
|
|
8058
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8059
|
+
while (reader.nextField()) {
|
|
8060
|
+
if (reader.isEndGroup()) {
|
|
8061
|
+
break;
|
|
8062
|
+
}
|
|
8063
|
+
var field = reader.getFieldNumber();
|
|
8064
|
+
switch (field) {
|
|
8065
|
+
case 1:
|
|
8066
|
+
var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
|
|
8067
|
+
reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
8068
|
+
msg.setResponsecode(value);
|
|
8069
|
+
break;
|
|
8070
|
+
case 2:
|
|
8071
|
+
var value = new proto.sniippaymentmethodsserviceapi.PaymentMethodGroup;
|
|
8072
|
+
reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.deserializeBinaryFromReader);
|
|
8073
|
+
msg.getGroupsList().push(value);
|
|
8074
|
+
msg.setGroupsList(msg.getGroupsList());
|
|
8075
|
+
break;
|
|
8076
|
+
default:
|
|
8077
|
+
reader.skipField();
|
|
8078
|
+
break;
|
|
8079
|
+
}
|
|
8080
|
+
}
|
|
8081
|
+
return msg;
|
|
8082
|
+
};
|
|
8083
|
+
|
|
8084
|
+
|
|
8085
|
+
/**
|
|
8086
|
+
* Class method variant: serializes the given message to binary data
|
|
8087
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
8088
|
+
* @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse} message
|
|
8089
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8090
|
+
*/
|
|
8091
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8092
|
+
message.serializeBinaryToWriter(writer);
|
|
8093
|
+
};
|
|
8094
|
+
|
|
8095
|
+
|
|
8096
|
+
/**
|
|
8097
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8098
|
+
* @return {!Uint8Array}
|
|
8099
|
+
*/
|
|
8100
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.serializeBinary = function() {
|
|
8101
|
+
var writer = new jspb.BinaryWriter();
|
|
8102
|
+
this.serializeBinaryToWriter(writer);
|
|
8103
|
+
return writer.getResultBuffer();
|
|
8104
|
+
};
|
|
8105
|
+
|
|
8106
|
+
|
|
8107
|
+
/**
|
|
8108
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
8109
|
+
* writing to the given BinaryWriter.
|
|
8110
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8111
|
+
*/
|
|
8112
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
8113
|
+
var f = undefined;
|
|
8114
|
+
f = this.getResponsecode();
|
|
8115
|
+
if (f != null) {
|
|
8116
|
+
writer.writeMessage(
|
|
8117
|
+
1,
|
|
8118
|
+
f,
|
|
8119
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
|
|
8120
|
+
);
|
|
8121
|
+
}
|
|
8122
|
+
f = this.getGroupsList();
|
|
8123
|
+
if (f.length > 0) {
|
|
8124
|
+
writer.writeRepeatedMessage(
|
|
8125
|
+
2,
|
|
8126
|
+
f,
|
|
8127
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroup.serializeBinaryToWriter
|
|
8128
|
+
);
|
|
8129
|
+
}
|
|
8130
|
+
};
|
|
8131
|
+
|
|
8132
|
+
|
|
8133
|
+
/**
|
|
8134
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
8135
|
+
* @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse} The clone.
|
|
8136
|
+
*/
|
|
8137
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.cloneMessage = function() {
|
|
8138
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse} */ (jspb.Message.cloneMessage(this));
|
|
8139
|
+
};
|
|
8140
|
+
|
|
8141
|
+
|
|
8142
|
+
/**
|
|
8143
|
+
* optional ResponseCode responseCode = 1;
|
|
8144
|
+
* @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
|
|
8145
|
+
*/
|
|
8146
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.getResponsecode = function() {
|
|
8147
|
+
return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
|
|
8148
|
+
jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
|
|
8149
|
+
};
|
|
8150
|
+
|
|
8151
|
+
|
|
8152
|
+
/** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
|
|
8153
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.setResponsecode = function(value) {
|
|
8154
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
8155
|
+
};
|
|
8156
|
+
|
|
8157
|
+
|
|
8158
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.clearResponsecode = function() {
|
|
8159
|
+
this.setResponsecode(undefined);
|
|
8160
|
+
};
|
|
8161
|
+
|
|
8162
|
+
|
|
8163
|
+
/**
|
|
8164
|
+
* Returns whether this field is set.
|
|
8165
|
+
* @return{!boolean}
|
|
8166
|
+
*/
|
|
8167
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.hasResponsecode = function() {
|
|
8168
|
+
return jspb.Message.getField(this, 1) != null;
|
|
8169
|
+
};
|
|
8170
|
+
|
|
8171
|
+
|
|
8172
|
+
/**
|
|
8173
|
+
* repeated PaymentMethodGroup groups = 2;
|
|
8174
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
8175
|
+
* replace the array itself, then you must call the setter to update it.
|
|
8176
|
+
* @return {!Array.<!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup>}
|
|
8177
|
+
*/
|
|
8178
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.getGroupsList = function() {
|
|
8179
|
+
return /** @type{!Array.<!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup>} */ (
|
|
8180
|
+
jspb.Message.getRepeatedWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethodGroup, 2));
|
|
8181
|
+
};
|
|
8182
|
+
|
|
8183
|
+
|
|
8184
|
+
/** @param {Array.<!proto.sniippaymentmethodsserviceapi.PaymentMethodGroup>} value */
|
|
8185
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.setGroupsList = function(value) {
|
|
8186
|
+
jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
8187
|
+
};
|
|
8188
|
+
|
|
8189
|
+
|
|
8190
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse.prototype.clearGroupsList = function() {
|
|
8191
|
+
this.setGroupsList([]);
|
|
8192
|
+
};
|
|
8193
|
+
|
|
8194
|
+
|
|
8195
|
+
|
|
7363
8196
|
/**
|
|
7364
8197
|
* Generated by JsPbCodeGenerator.
|
|
7365
8198
|
* @param {Array=} opt_data Optional initial data array, typically from a
|