@aldiokta/protocgen 1.1.64 → 1.1.65

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.
@@ -50,7 +50,10 @@ goog.exportSymbol('proto.GetVendorDetailResponse', null, global);
50
50
  goog.exportSymbol('proto.GetVendorItemDetailPreload', null, global);
51
51
  goog.exportSymbol('proto.GetVendorItemPreload', null, global);
52
52
  goog.exportSymbol('proto.GetVendorProfileRequest', null, global);
53
+ goog.exportSymbol('proto.ListVendorsPendingAccurateSyncRequest', null, global);
54
+ goog.exportSymbol('proto.ListVendorsPendingAccurateSyncResponse', null, global);
53
55
  goog.exportSymbol('proto.OtherDocument', null, global);
56
+ goog.exportSymbol('proto.PendingVendorItem', null, global);
54
57
  goog.exportSymbol('proto.RecentSalesActivity', null, global);
55
58
  goog.exportSymbol('proto.RegisterVendorRequest', null, global);
56
59
  goog.exportSymbol('proto.RegisterVendorResponse', null, global);
@@ -58,6 +61,8 @@ goog.exportSymbol('proto.Relationship', null, global);
58
61
  goog.exportSymbol('proto.SalesDashboardResponse', null, global);
59
62
  goog.exportSymbol('proto.Shareholder', null, global);
60
63
  goog.exportSymbol('proto.StatsSummary', null, global);
64
+ goog.exportSymbol('proto.SyncVendorToAccurateRequest', null, global);
65
+ goog.exportSymbol('proto.SyncVendorToAccurateResponse', null, global);
61
66
  goog.exportSymbol('proto.TaxDocument', null, global);
62
67
  goog.exportSymbol('proto.TaxInformation', null, global);
63
68
  goog.exportSymbol('proto.TermOfPayments', null, global);
@@ -991,6 +996,111 @@ if (goog.DEBUG && !COMPILED) {
991
996
  */
992
997
  proto.RegisterVendorResponse.displayName = 'proto.RegisterVendorResponse';
993
998
  }
999
+ /**
1000
+ * Generated by JsPbCodeGenerator.
1001
+ * @param {Array=} opt_data Optional initial data array, typically from a
1002
+ * server response, or constructed directly in Javascript. The array is used
1003
+ * in place and becomes part of the constructed object. It is not cloned.
1004
+ * If no data is provided, the constructed object will be empty, but still
1005
+ * valid.
1006
+ * @extends {jspb.Message}
1007
+ * @constructor
1008
+ */
1009
+ proto.SyncVendorToAccurateRequest = function(opt_data) {
1010
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1011
+ };
1012
+ goog.inherits(proto.SyncVendorToAccurateRequest, jspb.Message);
1013
+ if (goog.DEBUG && !COMPILED) {
1014
+ /**
1015
+ * @public
1016
+ * @override
1017
+ */
1018
+ proto.SyncVendorToAccurateRequest.displayName = 'proto.SyncVendorToAccurateRequest';
1019
+ }
1020
+ /**
1021
+ * Generated by JsPbCodeGenerator.
1022
+ * @param {Array=} opt_data Optional initial data array, typically from a
1023
+ * server response, or constructed directly in Javascript. The array is used
1024
+ * in place and becomes part of the constructed object. It is not cloned.
1025
+ * If no data is provided, the constructed object will be empty, but still
1026
+ * valid.
1027
+ * @extends {jspb.Message}
1028
+ * @constructor
1029
+ */
1030
+ proto.SyncVendorToAccurateResponse = function(opt_data) {
1031
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1032
+ };
1033
+ goog.inherits(proto.SyncVendorToAccurateResponse, jspb.Message);
1034
+ if (goog.DEBUG && !COMPILED) {
1035
+ /**
1036
+ * @public
1037
+ * @override
1038
+ */
1039
+ proto.SyncVendorToAccurateResponse.displayName = 'proto.SyncVendorToAccurateResponse';
1040
+ }
1041
+ /**
1042
+ * Generated by JsPbCodeGenerator.
1043
+ * @param {Array=} opt_data Optional initial data array, typically from a
1044
+ * server response, or constructed directly in Javascript. The array is used
1045
+ * in place and becomes part of the constructed object. It is not cloned.
1046
+ * If no data is provided, the constructed object will be empty, but still
1047
+ * valid.
1048
+ * @extends {jspb.Message}
1049
+ * @constructor
1050
+ */
1051
+ proto.ListVendorsPendingAccurateSyncRequest = function(opt_data) {
1052
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1053
+ };
1054
+ goog.inherits(proto.ListVendorsPendingAccurateSyncRequest, jspb.Message);
1055
+ if (goog.DEBUG && !COMPILED) {
1056
+ /**
1057
+ * @public
1058
+ * @override
1059
+ */
1060
+ proto.ListVendorsPendingAccurateSyncRequest.displayName = 'proto.ListVendorsPendingAccurateSyncRequest';
1061
+ }
1062
+ /**
1063
+ * Generated by JsPbCodeGenerator.
1064
+ * @param {Array=} opt_data Optional initial data array, typically from a
1065
+ * server response, or constructed directly in Javascript. The array is used
1066
+ * in place and becomes part of the constructed object. It is not cloned.
1067
+ * If no data is provided, the constructed object will be empty, but still
1068
+ * valid.
1069
+ * @extends {jspb.Message}
1070
+ * @constructor
1071
+ */
1072
+ proto.PendingVendorItem = function(opt_data) {
1073
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1074
+ };
1075
+ goog.inherits(proto.PendingVendorItem, jspb.Message);
1076
+ if (goog.DEBUG && !COMPILED) {
1077
+ /**
1078
+ * @public
1079
+ * @override
1080
+ */
1081
+ proto.PendingVendorItem.displayName = 'proto.PendingVendorItem';
1082
+ }
1083
+ /**
1084
+ * Generated by JsPbCodeGenerator.
1085
+ * @param {Array=} opt_data Optional initial data array, typically from a
1086
+ * server response, or constructed directly in Javascript. The array is used
1087
+ * in place and becomes part of the constructed object. It is not cloned.
1088
+ * If no data is provided, the constructed object will be empty, but still
1089
+ * valid.
1090
+ * @extends {jspb.Message}
1091
+ * @constructor
1092
+ */
1093
+ proto.ListVendorsPendingAccurateSyncResponse = function(opt_data) {
1094
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ListVendorsPendingAccurateSyncResponse.repeatedFields_, null);
1095
+ };
1096
+ goog.inherits(proto.ListVendorsPendingAccurateSyncResponse, jspb.Message);
1097
+ if (goog.DEBUG && !COMPILED) {
1098
+ /**
1099
+ * @public
1100
+ * @override
1101
+ */
1102
+ proto.ListVendorsPendingAccurateSyncResponse.displayName = 'proto.ListVendorsPendingAccurateSyncResponse';
1103
+ }
994
1104
 
995
1105
 
996
1106
 
@@ -16478,4 +16588,834 @@ proto.RegisterVendorResponse.prototype.hasMeta = function() {
16478
16588
  };
16479
16589
 
16480
16590
 
16591
+
16592
+
16593
+
16594
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16595
+ /**
16596
+ * Creates an object representation of this proto.
16597
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16598
+ * Optional fields that are not set will be set to undefined.
16599
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16600
+ * For the list of reserved names please see:
16601
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16602
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16603
+ * JSPB instance for transitional soy proto support:
16604
+ * http://goto/soy-param-migration
16605
+ * @return {!Object}
16606
+ */
16607
+ proto.SyncVendorToAccurateRequest.prototype.toObject = function(opt_includeInstance) {
16608
+ return proto.SyncVendorToAccurateRequest.toObject(opt_includeInstance, this);
16609
+ };
16610
+
16611
+
16612
+ /**
16613
+ * Static version of the {@see toObject} method.
16614
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16615
+ * the JSPB instance for transitional soy proto support:
16616
+ * http://goto/soy-param-migration
16617
+ * @param {!proto.SyncVendorToAccurateRequest} msg The msg instance to transform.
16618
+ * @return {!Object}
16619
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16620
+ */
16621
+ proto.SyncVendorToAccurateRequest.toObject = function(includeInstance, msg) {
16622
+ var f, obj = {
16623
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
16624
+ };
16625
+
16626
+ if (includeInstance) {
16627
+ obj.$jspbMessageInstance = msg;
16628
+ }
16629
+ return obj;
16630
+ };
16631
+ }
16632
+
16633
+
16634
+ /**
16635
+ * Deserializes binary data (in protobuf wire format).
16636
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16637
+ * @return {!proto.SyncVendorToAccurateRequest}
16638
+ */
16639
+ proto.SyncVendorToAccurateRequest.deserializeBinary = function(bytes) {
16640
+ var reader = new jspb.BinaryReader(bytes);
16641
+ var msg = new proto.SyncVendorToAccurateRequest;
16642
+ return proto.SyncVendorToAccurateRequest.deserializeBinaryFromReader(msg, reader);
16643
+ };
16644
+
16645
+
16646
+ /**
16647
+ * Deserializes binary data (in protobuf wire format) from the
16648
+ * given reader into the given message object.
16649
+ * @param {!proto.SyncVendorToAccurateRequest} msg The message object to deserialize into.
16650
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16651
+ * @return {!proto.SyncVendorToAccurateRequest}
16652
+ */
16653
+ proto.SyncVendorToAccurateRequest.deserializeBinaryFromReader = function(msg, reader) {
16654
+ while (reader.nextField()) {
16655
+ if (reader.isEndGroup()) {
16656
+ break;
16657
+ }
16658
+ var field = reader.getFieldNumber();
16659
+ switch (field) {
16660
+ case 1:
16661
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
16662
+ msg.setReferencesId(value);
16663
+ break;
16664
+ default:
16665
+ reader.skipField();
16666
+ break;
16667
+ }
16668
+ }
16669
+ return msg;
16670
+ };
16671
+
16672
+
16673
+ /**
16674
+ * Serializes the message to binary data (in protobuf wire format).
16675
+ * @return {!Uint8Array}
16676
+ */
16677
+ proto.SyncVendorToAccurateRequest.prototype.serializeBinary = function() {
16678
+ var writer = new jspb.BinaryWriter();
16679
+ proto.SyncVendorToAccurateRequest.serializeBinaryToWriter(this, writer);
16680
+ return writer.getResultBuffer();
16681
+ };
16682
+
16683
+
16684
+ /**
16685
+ * Serializes the given message to binary data (in protobuf wire
16686
+ * format), writing to the given BinaryWriter.
16687
+ * @param {!proto.SyncVendorToAccurateRequest} message
16688
+ * @param {!jspb.BinaryWriter} writer
16689
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16690
+ */
16691
+ proto.SyncVendorToAccurateRequest.serializeBinaryToWriter = function(message, writer) {
16692
+ var f = undefined;
16693
+ f = message.getReferencesId();
16694
+ if (f.length > 0) {
16695
+ writer.writeString(
16696
+ 1,
16697
+ f
16698
+ );
16699
+ }
16700
+ };
16701
+
16702
+
16703
+ /**
16704
+ * optional string references_id = 1;
16705
+ * @return {string}
16706
+ */
16707
+ proto.SyncVendorToAccurateRequest.prototype.getReferencesId = function() {
16708
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16709
+ };
16710
+
16711
+
16712
+ /**
16713
+ * @param {string} value
16714
+ * @return {!proto.SyncVendorToAccurateRequest} returns this
16715
+ */
16716
+ proto.SyncVendorToAccurateRequest.prototype.setReferencesId = function(value) {
16717
+ return jspb.Message.setProto3StringField(this, 1, value);
16718
+ };
16719
+
16720
+
16721
+
16722
+
16723
+
16724
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16725
+ /**
16726
+ * Creates an object representation of this proto.
16727
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16728
+ * Optional fields that are not set will be set to undefined.
16729
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16730
+ * For the list of reserved names please see:
16731
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16732
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16733
+ * JSPB instance for transitional soy proto support:
16734
+ * http://goto/soy-param-migration
16735
+ * @return {!Object}
16736
+ */
16737
+ proto.SyncVendorToAccurateResponse.prototype.toObject = function(opt_includeInstance) {
16738
+ return proto.SyncVendorToAccurateResponse.toObject(opt_includeInstance, this);
16739
+ };
16740
+
16741
+
16742
+ /**
16743
+ * Static version of the {@see toObject} method.
16744
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16745
+ * the JSPB instance for transitional soy proto support:
16746
+ * http://goto/soy-param-migration
16747
+ * @param {!proto.SyncVendorToAccurateResponse} msg The msg instance to transform.
16748
+ * @return {!Object}
16749
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16750
+ */
16751
+ proto.SyncVendorToAccurateResponse.toObject = function(includeInstance, msg) {
16752
+ var f, obj = {
16753
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
16754
+ vendorName: jspb.Message.getFieldWithDefault(msg, 2, ""),
16755
+ accurateVendorNo: jspb.Message.getFieldWithDefault(msg, 3, ""),
16756
+ accurateVendorId: jspb.Message.getFieldWithDefault(msg, 4, "")
16757
+ };
16758
+
16759
+ if (includeInstance) {
16760
+ obj.$jspbMessageInstance = msg;
16761
+ }
16762
+ return obj;
16763
+ };
16764
+ }
16765
+
16766
+
16767
+ /**
16768
+ * Deserializes binary data (in protobuf wire format).
16769
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16770
+ * @return {!proto.SyncVendorToAccurateResponse}
16771
+ */
16772
+ proto.SyncVendorToAccurateResponse.deserializeBinary = function(bytes) {
16773
+ var reader = new jspb.BinaryReader(bytes);
16774
+ var msg = new proto.SyncVendorToAccurateResponse;
16775
+ return proto.SyncVendorToAccurateResponse.deserializeBinaryFromReader(msg, reader);
16776
+ };
16777
+
16778
+
16779
+ /**
16780
+ * Deserializes binary data (in protobuf wire format) from the
16781
+ * given reader into the given message object.
16782
+ * @param {!proto.SyncVendorToAccurateResponse} msg The message object to deserialize into.
16783
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16784
+ * @return {!proto.SyncVendorToAccurateResponse}
16785
+ */
16786
+ proto.SyncVendorToAccurateResponse.deserializeBinaryFromReader = function(msg, reader) {
16787
+ while (reader.nextField()) {
16788
+ if (reader.isEndGroup()) {
16789
+ break;
16790
+ }
16791
+ var field = reader.getFieldNumber();
16792
+ switch (field) {
16793
+ case 1:
16794
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
16795
+ msg.setVendorReferencesId(value);
16796
+ break;
16797
+ case 2:
16798
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
16799
+ msg.setVendorName(value);
16800
+ break;
16801
+ case 3:
16802
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
16803
+ msg.setAccurateVendorNo(value);
16804
+ break;
16805
+ case 4:
16806
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
16807
+ msg.setAccurateVendorId(value);
16808
+ break;
16809
+ default:
16810
+ reader.skipField();
16811
+ break;
16812
+ }
16813
+ }
16814
+ return msg;
16815
+ };
16816
+
16817
+
16818
+ /**
16819
+ * Serializes the message to binary data (in protobuf wire format).
16820
+ * @return {!Uint8Array}
16821
+ */
16822
+ proto.SyncVendorToAccurateResponse.prototype.serializeBinary = function() {
16823
+ var writer = new jspb.BinaryWriter();
16824
+ proto.SyncVendorToAccurateResponse.serializeBinaryToWriter(this, writer);
16825
+ return writer.getResultBuffer();
16826
+ };
16827
+
16828
+
16829
+ /**
16830
+ * Serializes the given message to binary data (in protobuf wire
16831
+ * format), writing to the given BinaryWriter.
16832
+ * @param {!proto.SyncVendorToAccurateResponse} message
16833
+ * @param {!jspb.BinaryWriter} writer
16834
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16835
+ */
16836
+ proto.SyncVendorToAccurateResponse.serializeBinaryToWriter = function(message, writer) {
16837
+ var f = undefined;
16838
+ f = message.getVendorReferencesId();
16839
+ if (f.length > 0) {
16840
+ writer.writeString(
16841
+ 1,
16842
+ f
16843
+ );
16844
+ }
16845
+ f = message.getVendorName();
16846
+ if (f.length > 0) {
16847
+ writer.writeString(
16848
+ 2,
16849
+ f
16850
+ );
16851
+ }
16852
+ f = message.getAccurateVendorNo();
16853
+ if (f.length > 0) {
16854
+ writer.writeString(
16855
+ 3,
16856
+ f
16857
+ );
16858
+ }
16859
+ f = message.getAccurateVendorId();
16860
+ if (f.length > 0) {
16861
+ writer.writeString(
16862
+ 4,
16863
+ f
16864
+ );
16865
+ }
16866
+ };
16867
+
16868
+
16869
+ /**
16870
+ * optional string vendor_references_id = 1;
16871
+ * @return {string}
16872
+ */
16873
+ proto.SyncVendorToAccurateResponse.prototype.getVendorReferencesId = function() {
16874
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16875
+ };
16876
+
16877
+
16878
+ /**
16879
+ * @param {string} value
16880
+ * @return {!proto.SyncVendorToAccurateResponse} returns this
16881
+ */
16882
+ proto.SyncVendorToAccurateResponse.prototype.setVendorReferencesId = function(value) {
16883
+ return jspb.Message.setProto3StringField(this, 1, value);
16884
+ };
16885
+
16886
+
16887
+ /**
16888
+ * optional string vendor_name = 2;
16889
+ * @return {string}
16890
+ */
16891
+ proto.SyncVendorToAccurateResponse.prototype.getVendorName = function() {
16892
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16893
+ };
16894
+
16895
+
16896
+ /**
16897
+ * @param {string} value
16898
+ * @return {!proto.SyncVendorToAccurateResponse} returns this
16899
+ */
16900
+ proto.SyncVendorToAccurateResponse.prototype.setVendorName = function(value) {
16901
+ return jspb.Message.setProto3StringField(this, 2, value);
16902
+ };
16903
+
16904
+
16905
+ /**
16906
+ * optional string accurate_vendor_no = 3;
16907
+ * @return {string}
16908
+ */
16909
+ proto.SyncVendorToAccurateResponse.prototype.getAccurateVendorNo = function() {
16910
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
16911
+ };
16912
+
16913
+
16914
+ /**
16915
+ * @param {string} value
16916
+ * @return {!proto.SyncVendorToAccurateResponse} returns this
16917
+ */
16918
+ proto.SyncVendorToAccurateResponse.prototype.setAccurateVendorNo = function(value) {
16919
+ return jspb.Message.setProto3StringField(this, 3, value);
16920
+ };
16921
+
16922
+
16923
+ /**
16924
+ * optional string accurate_vendor_id = 4;
16925
+ * @return {string}
16926
+ */
16927
+ proto.SyncVendorToAccurateResponse.prototype.getAccurateVendorId = function() {
16928
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
16929
+ };
16930
+
16931
+
16932
+ /**
16933
+ * @param {string} value
16934
+ * @return {!proto.SyncVendorToAccurateResponse} returns this
16935
+ */
16936
+ proto.SyncVendorToAccurateResponse.prototype.setAccurateVendorId = function(value) {
16937
+ return jspb.Message.setProto3StringField(this, 4, value);
16938
+ };
16939
+
16940
+
16941
+
16942
+
16943
+
16944
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16945
+ /**
16946
+ * Creates an object representation of this proto.
16947
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16948
+ * Optional fields that are not set will be set to undefined.
16949
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16950
+ * For the list of reserved names please see:
16951
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16952
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16953
+ * JSPB instance for transitional soy proto support:
16954
+ * http://goto/soy-param-migration
16955
+ * @return {!Object}
16956
+ */
16957
+ proto.ListVendorsPendingAccurateSyncRequest.prototype.toObject = function(opt_includeInstance) {
16958
+ return proto.ListVendorsPendingAccurateSyncRequest.toObject(opt_includeInstance, this);
16959
+ };
16960
+
16961
+
16962
+ /**
16963
+ * Static version of the {@see toObject} method.
16964
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16965
+ * the JSPB instance for transitional soy proto support:
16966
+ * http://goto/soy-param-migration
16967
+ * @param {!proto.ListVendorsPendingAccurateSyncRequest} msg The msg instance to transform.
16968
+ * @return {!Object}
16969
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16970
+ */
16971
+ proto.ListVendorsPendingAccurateSyncRequest.toObject = function(includeInstance, msg) {
16972
+ var f, obj = {
16973
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0)
16974
+ };
16975
+
16976
+ if (includeInstance) {
16977
+ obj.$jspbMessageInstance = msg;
16978
+ }
16979
+ return obj;
16980
+ };
16981
+ }
16982
+
16983
+
16984
+ /**
16985
+ * Deserializes binary data (in protobuf wire format).
16986
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16987
+ * @return {!proto.ListVendorsPendingAccurateSyncRequest}
16988
+ */
16989
+ proto.ListVendorsPendingAccurateSyncRequest.deserializeBinary = function(bytes) {
16990
+ var reader = new jspb.BinaryReader(bytes);
16991
+ var msg = new proto.ListVendorsPendingAccurateSyncRequest;
16992
+ return proto.ListVendorsPendingAccurateSyncRequest.deserializeBinaryFromReader(msg, reader);
16993
+ };
16994
+
16995
+
16996
+ /**
16997
+ * Deserializes binary data (in protobuf wire format) from the
16998
+ * given reader into the given message object.
16999
+ * @param {!proto.ListVendorsPendingAccurateSyncRequest} msg The message object to deserialize into.
17000
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17001
+ * @return {!proto.ListVendorsPendingAccurateSyncRequest}
17002
+ */
17003
+ proto.ListVendorsPendingAccurateSyncRequest.deserializeBinaryFromReader = function(msg, reader) {
17004
+ while (reader.nextField()) {
17005
+ if (reader.isEndGroup()) {
17006
+ break;
17007
+ }
17008
+ var field = reader.getFieldNumber();
17009
+ switch (field) {
17010
+ case 1:
17011
+ var value = /** @type {number} */ (reader.readInt32());
17012
+ msg.setLimit(value);
17013
+ break;
17014
+ default:
17015
+ reader.skipField();
17016
+ break;
17017
+ }
17018
+ }
17019
+ return msg;
17020
+ };
17021
+
17022
+
17023
+ /**
17024
+ * Serializes the message to binary data (in protobuf wire format).
17025
+ * @return {!Uint8Array}
17026
+ */
17027
+ proto.ListVendorsPendingAccurateSyncRequest.prototype.serializeBinary = function() {
17028
+ var writer = new jspb.BinaryWriter();
17029
+ proto.ListVendorsPendingAccurateSyncRequest.serializeBinaryToWriter(this, writer);
17030
+ return writer.getResultBuffer();
17031
+ };
17032
+
17033
+
17034
+ /**
17035
+ * Serializes the given message to binary data (in protobuf wire
17036
+ * format), writing to the given BinaryWriter.
17037
+ * @param {!proto.ListVendorsPendingAccurateSyncRequest} message
17038
+ * @param {!jspb.BinaryWriter} writer
17039
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17040
+ */
17041
+ proto.ListVendorsPendingAccurateSyncRequest.serializeBinaryToWriter = function(message, writer) {
17042
+ var f = undefined;
17043
+ f = message.getLimit();
17044
+ if (f !== 0) {
17045
+ writer.writeInt32(
17046
+ 1,
17047
+ f
17048
+ );
17049
+ }
17050
+ };
17051
+
17052
+
17053
+ /**
17054
+ * optional int32 limit = 1;
17055
+ * @return {number}
17056
+ */
17057
+ proto.ListVendorsPendingAccurateSyncRequest.prototype.getLimit = function() {
17058
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
17059
+ };
17060
+
17061
+
17062
+ /**
17063
+ * @param {number} value
17064
+ * @return {!proto.ListVendorsPendingAccurateSyncRequest} returns this
17065
+ */
17066
+ proto.ListVendorsPendingAccurateSyncRequest.prototype.setLimit = function(value) {
17067
+ return jspb.Message.setProto3IntField(this, 1, value);
17068
+ };
17069
+
17070
+
17071
+
17072
+
17073
+
17074
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17075
+ /**
17076
+ * Creates an object representation of this proto.
17077
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17078
+ * Optional fields that are not set will be set to undefined.
17079
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17080
+ * For the list of reserved names please see:
17081
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17082
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17083
+ * JSPB instance for transitional soy proto support:
17084
+ * http://goto/soy-param-migration
17085
+ * @return {!Object}
17086
+ */
17087
+ proto.PendingVendorItem.prototype.toObject = function(opt_includeInstance) {
17088
+ return proto.PendingVendorItem.toObject(opt_includeInstance, this);
17089
+ };
17090
+
17091
+
17092
+ /**
17093
+ * Static version of the {@see toObject} method.
17094
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17095
+ * the JSPB instance for transitional soy proto support:
17096
+ * http://goto/soy-param-migration
17097
+ * @param {!proto.PendingVendorItem} msg The msg instance to transform.
17098
+ * @return {!Object}
17099
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17100
+ */
17101
+ proto.PendingVendorItem.toObject = function(includeInstance, msg) {
17102
+ var f, obj = {
17103
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
17104
+ name: jspb.Message.getFieldWithDefault(msg, 2, "")
17105
+ };
17106
+
17107
+ if (includeInstance) {
17108
+ obj.$jspbMessageInstance = msg;
17109
+ }
17110
+ return obj;
17111
+ };
17112
+ }
17113
+
17114
+
17115
+ /**
17116
+ * Deserializes binary data (in protobuf wire format).
17117
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17118
+ * @return {!proto.PendingVendorItem}
17119
+ */
17120
+ proto.PendingVendorItem.deserializeBinary = function(bytes) {
17121
+ var reader = new jspb.BinaryReader(bytes);
17122
+ var msg = new proto.PendingVendorItem;
17123
+ return proto.PendingVendorItem.deserializeBinaryFromReader(msg, reader);
17124
+ };
17125
+
17126
+
17127
+ /**
17128
+ * Deserializes binary data (in protobuf wire format) from the
17129
+ * given reader into the given message object.
17130
+ * @param {!proto.PendingVendorItem} msg The message object to deserialize into.
17131
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17132
+ * @return {!proto.PendingVendorItem}
17133
+ */
17134
+ proto.PendingVendorItem.deserializeBinaryFromReader = function(msg, reader) {
17135
+ while (reader.nextField()) {
17136
+ if (reader.isEndGroup()) {
17137
+ break;
17138
+ }
17139
+ var field = reader.getFieldNumber();
17140
+ switch (field) {
17141
+ case 1:
17142
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
17143
+ msg.setReferencesId(value);
17144
+ break;
17145
+ case 2:
17146
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
17147
+ msg.setName(value);
17148
+ break;
17149
+ default:
17150
+ reader.skipField();
17151
+ break;
17152
+ }
17153
+ }
17154
+ return msg;
17155
+ };
17156
+
17157
+
17158
+ /**
17159
+ * Serializes the message to binary data (in protobuf wire format).
17160
+ * @return {!Uint8Array}
17161
+ */
17162
+ proto.PendingVendorItem.prototype.serializeBinary = function() {
17163
+ var writer = new jspb.BinaryWriter();
17164
+ proto.PendingVendorItem.serializeBinaryToWriter(this, writer);
17165
+ return writer.getResultBuffer();
17166
+ };
17167
+
17168
+
17169
+ /**
17170
+ * Serializes the given message to binary data (in protobuf wire
17171
+ * format), writing to the given BinaryWriter.
17172
+ * @param {!proto.PendingVendorItem} message
17173
+ * @param {!jspb.BinaryWriter} writer
17174
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17175
+ */
17176
+ proto.PendingVendorItem.serializeBinaryToWriter = function(message, writer) {
17177
+ var f = undefined;
17178
+ f = message.getReferencesId();
17179
+ if (f.length > 0) {
17180
+ writer.writeString(
17181
+ 1,
17182
+ f
17183
+ );
17184
+ }
17185
+ f = message.getName();
17186
+ if (f.length > 0) {
17187
+ writer.writeString(
17188
+ 2,
17189
+ f
17190
+ );
17191
+ }
17192
+ };
17193
+
17194
+
17195
+ /**
17196
+ * optional string references_id = 1;
17197
+ * @return {string}
17198
+ */
17199
+ proto.PendingVendorItem.prototype.getReferencesId = function() {
17200
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17201
+ };
17202
+
17203
+
17204
+ /**
17205
+ * @param {string} value
17206
+ * @return {!proto.PendingVendorItem} returns this
17207
+ */
17208
+ proto.PendingVendorItem.prototype.setReferencesId = function(value) {
17209
+ return jspb.Message.setProto3StringField(this, 1, value);
17210
+ };
17211
+
17212
+
17213
+ /**
17214
+ * optional string name = 2;
17215
+ * @return {string}
17216
+ */
17217
+ proto.PendingVendorItem.prototype.getName = function() {
17218
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17219
+ };
17220
+
17221
+
17222
+ /**
17223
+ * @param {string} value
17224
+ * @return {!proto.PendingVendorItem} returns this
17225
+ */
17226
+ proto.PendingVendorItem.prototype.setName = function(value) {
17227
+ return jspb.Message.setProto3StringField(this, 2, value);
17228
+ };
17229
+
17230
+
17231
+
17232
+ /**
17233
+ * List of repeated fields within this message type.
17234
+ * @private {!Array<number>}
17235
+ * @const
17236
+ */
17237
+ proto.ListVendorsPendingAccurateSyncResponse.repeatedFields_ = [1];
17238
+
17239
+
17240
+
17241
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17242
+ /**
17243
+ * Creates an object representation of this proto.
17244
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17245
+ * Optional fields that are not set will be set to undefined.
17246
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17247
+ * For the list of reserved names please see:
17248
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17249
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17250
+ * JSPB instance for transitional soy proto support:
17251
+ * http://goto/soy-param-migration
17252
+ * @return {!Object}
17253
+ */
17254
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.toObject = function(opt_includeInstance) {
17255
+ return proto.ListVendorsPendingAccurateSyncResponse.toObject(opt_includeInstance, this);
17256
+ };
17257
+
17258
+
17259
+ /**
17260
+ * Static version of the {@see toObject} method.
17261
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17262
+ * the JSPB instance for transitional soy proto support:
17263
+ * http://goto/soy-param-migration
17264
+ * @param {!proto.ListVendorsPendingAccurateSyncResponse} msg The msg instance to transform.
17265
+ * @return {!Object}
17266
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17267
+ */
17268
+ proto.ListVendorsPendingAccurateSyncResponse.toObject = function(includeInstance, msg) {
17269
+ var f, obj = {
17270
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
17271
+ proto.PendingVendorItem.toObject, includeInstance),
17272
+ total: jspb.Message.getFieldWithDefault(msg, 2, 0)
17273
+ };
17274
+
17275
+ if (includeInstance) {
17276
+ obj.$jspbMessageInstance = msg;
17277
+ }
17278
+ return obj;
17279
+ };
17280
+ }
17281
+
17282
+
17283
+ /**
17284
+ * Deserializes binary data (in protobuf wire format).
17285
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17286
+ * @return {!proto.ListVendorsPendingAccurateSyncResponse}
17287
+ */
17288
+ proto.ListVendorsPendingAccurateSyncResponse.deserializeBinary = function(bytes) {
17289
+ var reader = new jspb.BinaryReader(bytes);
17290
+ var msg = new proto.ListVendorsPendingAccurateSyncResponse;
17291
+ return proto.ListVendorsPendingAccurateSyncResponse.deserializeBinaryFromReader(msg, reader);
17292
+ };
17293
+
17294
+
17295
+ /**
17296
+ * Deserializes binary data (in protobuf wire format) from the
17297
+ * given reader into the given message object.
17298
+ * @param {!proto.ListVendorsPendingAccurateSyncResponse} msg The message object to deserialize into.
17299
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17300
+ * @return {!proto.ListVendorsPendingAccurateSyncResponse}
17301
+ */
17302
+ proto.ListVendorsPendingAccurateSyncResponse.deserializeBinaryFromReader = function(msg, reader) {
17303
+ while (reader.nextField()) {
17304
+ if (reader.isEndGroup()) {
17305
+ break;
17306
+ }
17307
+ var field = reader.getFieldNumber();
17308
+ switch (field) {
17309
+ case 1:
17310
+ var value = new proto.PendingVendorItem;
17311
+ reader.readMessage(value,proto.PendingVendorItem.deserializeBinaryFromReader);
17312
+ msg.addItems(value);
17313
+ break;
17314
+ case 2:
17315
+ var value = /** @type {number} */ (reader.readInt32());
17316
+ msg.setTotal(value);
17317
+ break;
17318
+ default:
17319
+ reader.skipField();
17320
+ break;
17321
+ }
17322
+ }
17323
+ return msg;
17324
+ };
17325
+
17326
+
17327
+ /**
17328
+ * Serializes the message to binary data (in protobuf wire format).
17329
+ * @return {!Uint8Array}
17330
+ */
17331
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.serializeBinary = function() {
17332
+ var writer = new jspb.BinaryWriter();
17333
+ proto.ListVendorsPendingAccurateSyncResponse.serializeBinaryToWriter(this, writer);
17334
+ return writer.getResultBuffer();
17335
+ };
17336
+
17337
+
17338
+ /**
17339
+ * Serializes the given message to binary data (in protobuf wire
17340
+ * format), writing to the given BinaryWriter.
17341
+ * @param {!proto.ListVendorsPendingAccurateSyncResponse} message
17342
+ * @param {!jspb.BinaryWriter} writer
17343
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17344
+ */
17345
+ proto.ListVendorsPendingAccurateSyncResponse.serializeBinaryToWriter = function(message, writer) {
17346
+ var f = undefined;
17347
+ f = message.getItemsList();
17348
+ if (f.length > 0) {
17349
+ writer.writeRepeatedMessage(
17350
+ 1,
17351
+ f,
17352
+ proto.PendingVendorItem.serializeBinaryToWriter
17353
+ );
17354
+ }
17355
+ f = message.getTotal();
17356
+ if (f !== 0) {
17357
+ writer.writeInt32(
17358
+ 2,
17359
+ f
17360
+ );
17361
+ }
17362
+ };
17363
+
17364
+
17365
+ /**
17366
+ * repeated PendingVendorItem items = 1;
17367
+ * @return {!Array<!proto.PendingVendorItem>}
17368
+ */
17369
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.getItemsList = function() {
17370
+ return /** @type{!Array<!proto.PendingVendorItem>} */ (
17371
+ jspb.Message.getRepeatedWrapperField(this, proto.PendingVendorItem, 1));
17372
+ };
17373
+
17374
+
17375
+ /**
17376
+ * @param {!Array<!proto.PendingVendorItem>} value
17377
+ * @return {!proto.ListVendorsPendingAccurateSyncResponse} returns this
17378
+ */
17379
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.setItemsList = function(value) {
17380
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
17381
+ };
17382
+
17383
+
17384
+ /**
17385
+ * @param {!proto.PendingVendorItem=} opt_value
17386
+ * @param {number=} opt_index
17387
+ * @return {!proto.PendingVendorItem}
17388
+ */
17389
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.addItems = function(opt_value, opt_index) {
17390
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PendingVendorItem, opt_index);
17391
+ };
17392
+
17393
+
17394
+ /**
17395
+ * Clears the list making it empty but non-null.
17396
+ * @return {!proto.ListVendorsPendingAccurateSyncResponse} returns this
17397
+ */
17398
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.clearItemsList = function() {
17399
+ return this.setItemsList([]);
17400
+ };
17401
+
17402
+
17403
+ /**
17404
+ * optional int32 total = 2;
17405
+ * @return {number}
17406
+ */
17407
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.getTotal = function() {
17408
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
17409
+ };
17410
+
17411
+
17412
+ /**
17413
+ * @param {number} value
17414
+ * @return {!proto.ListVendorsPendingAccurateSyncResponse} returns this
17415
+ */
17416
+ proto.ListVendorsPendingAccurateSyncResponse.prototype.setTotal = function(value) {
17417
+ return jspb.Message.setProto3IntField(this, 2, value);
17418
+ };
17419
+
17420
+
16481
17421
  goog.object.extend(exports, proto);