@aldiokta/protocgen 1.0.80 → 1.0.82

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.
@@ -24,8 +24,10 @@ var global =
24
24
  var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
26
  goog.exportSymbol('proto.BaseChartOfAccount', null, global);
27
+ goog.exportSymbol('proto.BaseChartOfAccountDefault', null, global);
27
28
  goog.exportSymbol('proto.ChartOfAccount', null, global);
28
29
  goog.exportSymbol('proto.CreateChartOfAccountRequest', null, global);
30
+ goog.exportSymbol('proto.CreateChartOfAccountRequestDefault', null, global);
29
31
  goog.exportSymbol('proto.CreateChartOfAccountResponse', null, global);
30
32
  goog.exportSymbol('proto.DeleteChartOfAccountRequest', null, global);
31
33
  goog.exportSymbol('proto.DeleteChartOfAccountResponse', null, global);
@@ -77,6 +79,27 @@ if (goog.DEBUG && !COMPILED) {
77
79
  */
78
80
  proto.BaseChartOfAccount.displayName = 'proto.BaseChartOfAccount';
79
81
  }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.BaseChartOfAccountDefault = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.BaseChartOfAccountDefault, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.BaseChartOfAccountDefault.displayName = 'proto.BaseChartOfAccountDefault';
102
+ }
80
103
  /**
81
104
  * Generated by JsPbCodeGenerator.
82
105
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -98,6 +121,27 @@ if (goog.DEBUG && !COMPILED) {
98
121
  */
99
122
  proto.CreateChartOfAccountRequest.displayName = 'proto.CreateChartOfAccountRequest';
100
123
  }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.CreateChartOfAccountRequestDefault = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
+ };
137
+ goog.inherits(proto.CreateChartOfAccountRequestDefault, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.CreateChartOfAccountRequestDefault.displayName = 'proto.CreateChartOfAccountRequestDefault';
144
+ }
101
145
  /**
102
146
  * Generated by JsPbCodeGenerator.
103
147
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -730,6 +774,196 @@ proto.BaseChartOfAccount.prototype.setCodeDescription = function(value) {
730
774
 
731
775
 
732
776
 
777
+ if (jspb.Message.GENERATE_TO_OBJECT) {
778
+ /**
779
+ * Creates an object representation of this proto.
780
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
781
+ * Optional fields that are not set will be set to undefined.
782
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
783
+ * For the list of reserved names please see:
784
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
785
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
786
+ * JSPB instance for transitional soy proto support:
787
+ * http://goto/soy-param-migration
788
+ * @return {!Object}
789
+ */
790
+ proto.BaseChartOfAccountDefault.prototype.toObject = function(opt_includeInstance) {
791
+ return proto.BaseChartOfAccountDefault.toObject(opt_includeInstance, this);
792
+ };
793
+
794
+
795
+ /**
796
+ * Static version of the {@see toObject} method.
797
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
798
+ * the JSPB instance for transitional soy proto support:
799
+ * http://goto/soy-param-migration
800
+ * @param {!proto.BaseChartOfAccountDefault} msg The msg instance to transform.
801
+ * @return {!Object}
802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
803
+ */
804
+ proto.BaseChartOfAccountDefault.toObject = function(includeInstance, msg) {
805
+ var f, obj = {
806
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
807
+ codeDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
808
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
809
+ };
810
+
811
+ if (includeInstance) {
812
+ obj.$jspbMessageInstance = msg;
813
+ }
814
+ return obj;
815
+ };
816
+ }
817
+
818
+
819
+ /**
820
+ * Deserializes binary data (in protobuf wire format).
821
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
822
+ * @return {!proto.BaseChartOfAccountDefault}
823
+ */
824
+ proto.BaseChartOfAccountDefault.deserializeBinary = function(bytes) {
825
+ var reader = new jspb.BinaryReader(bytes);
826
+ var msg = new proto.BaseChartOfAccountDefault;
827
+ return proto.BaseChartOfAccountDefault.deserializeBinaryFromReader(msg, reader);
828
+ };
829
+
830
+
831
+ /**
832
+ * Deserializes binary data (in protobuf wire format) from the
833
+ * given reader into the given message object.
834
+ * @param {!proto.BaseChartOfAccountDefault} msg The message object to deserialize into.
835
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
836
+ * @return {!proto.BaseChartOfAccountDefault}
837
+ */
838
+ proto.BaseChartOfAccountDefault.deserializeBinaryFromReader = function(msg, reader) {
839
+ while (reader.nextField()) {
840
+ if (reader.isEndGroup()) {
841
+ break;
842
+ }
843
+ var field = reader.getFieldNumber();
844
+ switch (field) {
845
+ case 1:
846
+ var value = /** @type {string} */ (reader.readString());
847
+ msg.setCode(value);
848
+ break;
849
+ case 2:
850
+ var value = /** @type {string} */ (reader.readString());
851
+ msg.setCodeDescription(value);
852
+ break;
853
+ case 3:
854
+ var value = /** @type {string} */ (reader.readString());
855
+ msg.setCompaniesReferencesId(value);
856
+ break;
857
+ default:
858
+ reader.skipField();
859
+ break;
860
+ }
861
+ }
862
+ return msg;
863
+ };
864
+
865
+
866
+ /**
867
+ * Serializes the message to binary data (in protobuf wire format).
868
+ * @return {!Uint8Array}
869
+ */
870
+ proto.BaseChartOfAccountDefault.prototype.serializeBinary = function() {
871
+ var writer = new jspb.BinaryWriter();
872
+ proto.BaseChartOfAccountDefault.serializeBinaryToWriter(this, writer);
873
+ return writer.getResultBuffer();
874
+ };
875
+
876
+
877
+ /**
878
+ * Serializes the given message to binary data (in protobuf wire
879
+ * format), writing to the given BinaryWriter.
880
+ * @param {!proto.BaseChartOfAccountDefault} message
881
+ * @param {!jspb.BinaryWriter} writer
882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
883
+ */
884
+ proto.BaseChartOfAccountDefault.serializeBinaryToWriter = function(message, writer) {
885
+ var f = undefined;
886
+ f = message.getCode();
887
+ if (f.length > 0) {
888
+ writer.writeString(
889
+ 1,
890
+ f
891
+ );
892
+ }
893
+ f = message.getCodeDescription();
894
+ if (f.length > 0) {
895
+ writer.writeString(
896
+ 2,
897
+ f
898
+ );
899
+ }
900
+ f = message.getCompaniesReferencesId();
901
+ if (f.length > 0) {
902
+ writer.writeString(
903
+ 3,
904
+ f
905
+ );
906
+ }
907
+ };
908
+
909
+
910
+ /**
911
+ * optional string code = 1;
912
+ * @return {string}
913
+ */
914
+ proto.BaseChartOfAccountDefault.prototype.getCode = function() {
915
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
916
+ };
917
+
918
+
919
+ /**
920
+ * @param {string} value
921
+ * @return {!proto.BaseChartOfAccountDefault} returns this
922
+ */
923
+ proto.BaseChartOfAccountDefault.prototype.setCode = function(value) {
924
+ return jspb.Message.setProto3StringField(this, 1, value);
925
+ };
926
+
927
+
928
+ /**
929
+ * optional string code_description = 2;
930
+ * @return {string}
931
+ */
932
+ proto.BaseChartOfAccountDefault.prototype.getCodeDescription = function() {
933
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
934
+ };
935
+
936
+
937
+ /**
938
+ * @param {string} value
939
+ * @return {!proto.BaseChartOfAccountDefault} returns this
940
+ */
941
+ proto.BaseChartOfAccountDefault.prototype.setCodeDescription = function(value) {
942
+ return jspb.Message.setProto3StringField(this, 2, value);
943
+ };
944
+
945
+
946
+ /**
947
+ * optional string companies_references_id = 3;
948
+ * @return {string}
949
+ */
950
+ proto.BaseChartOfAccountDefault.prototype.getCompaniesReferencesId = function() {
951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
952
+ };
953
+
954
+
955
+ /**
956
+ * @param {string} value
957
+ * @return {!proto.BaseChartOfAccountDefault} returns this
958
+ */
959
+ proto.BaseChartOfAccountDefault.prototype.setCompaniesReferencesId = function(value) {
960
+ return jspb.Message.setProto3StringField(this, 3, value);
961
+ };
962
+
963
+
964
+
965
+
966
+
733
967
  if (jspb.Message.GENERATE_TO_OBJECT) {
734
968
  /**
735
969
  * Creates an object representation of this proto.
@@ -881,6 +1115,157 @@ proto.CreateChartOfAccountRequest.prototype.hasBaseChartOfAccount = function() {
881
1115
 
882
1116
 
883
1117
 
1118
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1119
+ /**
1120
+ * Creates an object representation of this proto.
1121
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1122
+ * Optional fields that are not set will be set to undefined.
1123
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1124
+ * For the list of reserved names please see:
1125
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1126
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1127
+ * JSPB instance for transitional soy proto support:
1128
+ * http://goto/soy-param-migration
1129
+ * @return {!Object}
1130
+ */
1131
+ proto.CreateChartOfAccountRequestDefault.prototype.toObject = function(opt_includeInstance) {
1132
+ return proto.CreateChartOfAccountRequestDefault.toObject(opt_includeInstance, this);
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * Static version of the {@see toObject} method.
1138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1139
+ * the JSPB instance for transitional soy proto support:
1140
+ * http://goto/soy-param-migration
1141
+ * @param {!proto.CreateChartOfAccountRequestDefault} msg The msg instance to transform.
1142
+ * @return {!Object}
1143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1144
+ */
1145
+ proto.CreateChartOfAccountRequestDefault.toObject = function(includeInstance, msg) {
1146
+ var f, obj = {
1147
+ baseChartOfAccount: (f = msg.getBaseChartOfAccount()) && proto.BaseChartOfAccountDefault.toObject(includeInstance, f)
1148
+ };
1149
+
1150
+ if (includeInstance) {
1151
+ obj.$jspbMessageInstance = msg;
1152
+ }
1153
+ return obj;
1154
+ };
1155
+ }
1156
+
1157
+
1158
+ /**
1159
+ * Deserializes binary data (in protobuf wire format).
1160
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1161
+ * @return {!proto.CreateChartOfAccountRequestDefault}
1162
+ */
1163
+ proto.CreateChartOfAccountRequestDefault.deserializeBinary = function(bytes) {
1164
+ var reader = new jspb.BinaryReader(bytes);
1165
+ var msg = new proto.CreateChartOfAccountRequestDefault;
1166
+ return proto.CreateChartOfAccountRequestDefault.deserializeBinaryFromReader(msg, reader);
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * Deserializes binary data (in protobuf wire format) from the
1172
+ * given reader into the given message object.
1173
+ * @param {!proto.CreateChartOfAccountRequestDefault} msg The message object to deserialize into.
1174
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1175
+ * @return {!proto.CreateChartOfAccountRequestDefault}
1176
+ */
1177
+ proto.CreateChartOfAccountRequestDefault.deserializeBinaryFromReader = function(msg, reader) {
1178
+ while (reader.nextField()) {
1179
+ if (reader.isEndGroup()) {
1180
+ break;
1181
+ }
1182
+ var field = reader.getFieldNumber();
1183
+ switch (field) {
1184
+ case 1:
1185
+ var value = new proto.BaseChartOfAccountDefault;
1186
+ reader.readMessage(value,proto.BaseChartOfAccountDefault.deserializeBinaryFromReader);
1187
+ msg.setBaseChartOfAccount(value);
1188
+ break;
1189
+ default:
1190
+ reader.skipField();
1191
+ break;
1192
+ }
1193
+ }
1194
+ return msg;
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * Serializes the message to binary data (in protobuf wire format).
1200
+ * @return {!Uint8Array}
1201
+ */
1202
+ proto.CreateChartOfAccountRequestDefault.prototype.serializeBinary = function() {
1203
+ var writer = new jspb.BinaryWriter();
1204
+ proto.CreateChartOfAccountRequestDefault.serializeBinaryToWriter(this, writer);
1205
+ return writer.getResultBuffer();
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * Serializes the given message to binary data (in protobuf wire
1211
+ * format), writing to the given BinaryWriter.
1212
+ * @param {!proto.CreateChartOfAccountRequestDefault} message
1213
+ * @param {!jspb.BinaryWriter} writer
1214
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1215
+ */
1216
+ proto.CreateChartOfAccountRequestDefault.serializeBinaryToWriter = function(message, writer) {
1217
+ var f = undefined;
1218
+ f = message.getBaseChartOfAccount();
1219
+ if (f != null) {
1220
+ writer.writeMessage(
1221
+ 1,
1222
+ f,
1223
+ proto.BaseChartOfAccountDefault.serializeBinaryToWriter
1224
+ );
1225
+ }
1226
+ };
1227
+
1228
+
1229
+ /**
1230
+ * optional BaseChartOfAccountDefault base_chart_of_account = 1;
1231
+ * @return {?proto.BaseChartOfAccountDefault}
1232
+ */
1233
+ proto.CreateChartOfAccountRequestDefault.prototype.getBaseChartOfAccount = function() {
1234
+ return /** @type{?proto.BaseChartOfAccountDefault} */ (
1235
+ jspb.Message.getWrapperField(this, proto.BaseChartOfAccountDefault, 1));
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * @param {?proto.BaseChartOfAccountDefault|undefined} value
1241
+ * @return {!proto.CreateChartOfAccountRequestDefault} returns this
1242
+ */
1243
+ proto.CreateChartOfAccountRequestDefault.prototype.setBaseChartOfAccount = function(value) {
1244
+ return jspb.Message.setWrapperField(this, 1, value);
1245
+ };
1246
+
1247
+
1248
+ /**
1249
+ * Clears the message field making it undefined.
1250
+ * @return {!proto.CreateChartOfAccountRequestDefault} returns this
1251
+ */
1252
+ proto.CreateChartOfAccountRequestDefault.prototype.clearBaseChartOfAccount = function() {
1253
+ return this.setBaseChartOfAccount(undefined);
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * Returns whether this field is set.
1259
+ * @return {boolean}
1260
+ */
1261
+ proto.CreateChartOfAccountRequestDefault.prototype.hasBaseChartOfAccount = function() {
1262
+ return jspb.Message.getField(this, 1) != null;
1263
+ };
1264
+
1265
+
1266
+
1267
+
1268
+
884
1269
  if (jspb.Message.GENERATE_TO_OBJECT) {
885
1270
  /**
886
1271
  * Creates an object representation of this proto.