@aldiokta/protocgen 1.0.81 → 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.
- package/package.json +1 -1
- package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +22 -0
- package/prisca/v1/account_assignment/account_assignment_pb.js +152 -0
- package/prisca/v1/account_group/account_group_grpc_pb.js +22 -0
- package/prisca/v1/account_group/account_group_pb.js +182 -0
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +22 -0
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +385 -0
package/package.json
CHANGED
|
@@ -5,6 +5,17 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var prisca_v1_account_assignment_account_assignment_pb = require('../../../prisca/v1/account_assignment/account_assignment_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
|
|
8
|
+
function serialize_CreateAccountAssignmentDefaultReq(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_v1_account_assignment_account_assignment_pb.CreateAccountAssignmentDefaultReq)) {
|
|
10
|
+
throw new Error('Expected argument of type CreateAccountAssignmentDefaultReq');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_CreateAccountAssignmentDefaultReq(buffer_arg) {
|
|
16
|
+
return prisca_v1_account_assignment_account_assignment_pb.CreateAccountAssignmentDefaultReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
function serialize_CreateAccountAssignmentRequest(arg) {
|
|
9
20
|
if (!(arg instanceof prisca_v1_account_assignment_account_assignment_pb.CreateAccountAssignmentRequest)) {
|
|
10
21
|
throw new Error('Expected argument of type CreateAccountAssignmentRequest');
|
|
@@ -128,6 +139,17 @@ var AccountAssignmentServiceService = exports.AccountAssignmentServiceService =
|
|
|
128
139
|
responseSerialize: serialize_CreateAccountAssignmentResponse,
|
|
129
140
|
responseDeserialize: deserialize_CreateAccountAssignmentResponse,
|
|
130
141
|
},
|
|
142
|
+
createAccountAssignmentDefault: {
|
|
143
|
+
path: '/AccountAssignmentService/CreateAccountAssignmentDefault',
|
|
144
|
+
requestStream: false,
|
|
145
|
+
responseStream: false,
|
|
146
|
+
requestType: prisca_v1_account_assignment_account_assignment_pb.CreateAccountAssignmentDefaultReq,
|
|
147
|
+
responseType: prisca_v1_account_assignment_account_assignment_pb.CreateAccountAssignmentDefaultReq,
|
|
148
|
+
requestSerialize: serialize_CreateAccountAssignmentDefaultReq,
|
|
149
|
+
requestDeserialize: deserialize_CreateAccountAssignmentDefaultReq,
|
|
150
|
+
responseSerialize: serialize_CreateAccountAssignmentDefaultReq,
|
|
151
|
+
responseDeserialize: deserialize_CreateAccountAssignmentDefaultReq,
|
|
152
|
+
},
|
|
131
153
|
updateAccountAssignment: {
|
|
132
154
|
path: '/AccountAssignmentService/UpdateAccountAssignment',
|
|
133
155
|
requestStream: false,
|
|
@@ -25,6 +25,7 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
|
|
|
25
25
|
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
26
26
|
goog.exportSymbol('proto.AccountAssignment', null, global);
|
|
27
27
|
goog.exportSymbol('proto.BaseAccountAssignment', null, global);
|
|
28
|
+
goog.exportSymbol('proto.CreateAccountAssignmentDefaultReq', null, global);
|
|
28
29
|
goog.exportSymbol('proto.CreateAccountAssignmentRequest', null, global);
|
|
29
30
|
goog.exportSymbol('proto.CreateAccountAssignmentResponse', null, global);
|
|
30
31
|
goog.exportSymbol('proto.DeleteAccountAssignmentRequest', null, global);
|
|
@@ -98,6 +99,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
98
99
|
*/
|
|
99
100
|
proto.CreateAccountAssignmentRequest.displayName = 'proto.CreateAccountAssignmentRequest';
|
|
100
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Generated by JsPbCodeGenerator.
|
|
104
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
105
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
106
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
107
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
108
|
+
* valid.
|
|
109
|
+
* @extends {jspb.Message}
|
|
110
|
+
* @constructor
|
|
111
|
+
*/
|
|
112
|
+
proto.CreateAccountAssignmentDefaultReq = function(opt_data) {
|
|
113
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
114
|
+
};
|
|
115
|
+
goog.inherits(proto.CreateAccountAssignmentDefaultReq, jspb.Message);
|
|
116
|
+
if (goog.DEBUG && !COMPILED) {
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
* @override
|
|
120
|
+
*/
|
|
121
|
+
proto.CreateAccountAssignmentDefaultReq.displayName = 'proto.CreateAccountAssignmentDefaultReq';
|
|
122
|
+
}
|
|
101
123
|
/**
|
|
102
124
|
* Generated by JsPbCodeGenerator.
|
|
103
125
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -881,6 +903,136 @@ proto.CreateAccountAssignmentRequest.prototype.hasBaseAccountAssignment = functi
|
|
|
881
903
|
|
|
882
904
|
|
|
883
905
|
|
|
906
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
907
|
+
/**
|
|
908
|
+
* Creates an object representation of this proto.
|
|
909
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
910
|
+
* Optional fields that are not set will be set to undefined.
|
|
911
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
912
|
+
* For the list of reserved names please see:
|
|
913
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
914
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
915
|
+
* JSPB instance for transitional soy proto support:
|
|
916
|
+
* http://goto/soy-param-migration
|
|
917
|
+
* @return {!Object}
|
|
918
|
+
*/
|
|
919
|
+
proto.CreateAccountAssignmentDefaultReq.prototype.toObject = function(opt_includeInstance) {
|
|
920
|
+
return proto.CreateAccountAssignmentDefaultReq.toObject(opt_includeInstance, this);
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Static version of the {@see toObject} method.
|
|
926
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
927
|
+
* the JSPB instance for transitional soy proto support:
|
|
928
|
+
* http://goto/soy-param-migration
|
|
929
|
+
* @param {!proto.CreateAccountAssignmentDefaultReq} msg The msg instance to transform.
|
|
930
|
+
* @return {!Object}
|
|
931
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
932
|
+
*/
|
|
933
|
+
proto.CreateAccountAssignmentDefaultReq.toObject = function(includeInstance, msg) {
|
|
934
|
+
var f, obj = {
|
|
935
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
if (includeInstance) {
|
|
939
|
+
obj.$jspbMessageInstance = msg;
|
|
940
|
+
}
|
|
941
|
+
return obj;
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Deserializes binary data (in protobuf wire format).
|
|
948
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
949
|
+
* @return {!proto.CreateAccountAssignmentDefaultReq}
|
|
950
|
+
*/
|
|
951
|
+
proto.CreateAccountAssignmentDefaultReq.deserializeBinary = function(bytes) {
|
|
952
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
953
|
+
var msg = new proto.CreateAccountAssignmentDefaultReq;
|
|
954
|
+
return proto.CreateAccountAssignmentDefaultReq.deserializeBinaryFromReader(msg, reader);
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
960
|
+
* given reader into the given message object.
|
|
961
|
+
* @param {!proto.CreateAccountAssignmentDefaultReq} msg The message object to deserialize into.
|
|
962
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
963
|
+
* @return {!proto.CreateAccountAssignmentDefaultReq}
|
|
964
|
+
*/
|
|
965
|
+
proto.CreateAccountAssignmentDefaultReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
966
|
+
while (reader.nextField()) {
|
|
967
|
+
if (reader.isEndGroup()) {
|
|
968
|
+
break;
|
|
969
|
+
}
|
|
970
|
+
var field = reader.getFieldNumber();
|
|
971
|
+
switch (field) {
|
|
972
|
+
case 1:
|
|
973
|
+
var value = /** @type {string} */ (reader.readString());
|
|
974
|
+
msg.setCompaniesReferencesId(value);
|
|
975
|
+
break;
|
|
976
|
+
default:
|
|
977
|
+
reader.skipField();
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
return msg;
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
987
|
+
* @return {!Uint8Array}
|
|
988
|
+
*/
|
|
989
|
+
proto.CreateAccountAssignmentDefaultReq.prototype.serializeBinary = function() {
|
|
990
|
+
var writer = new jspb.BinaryWriter();
|
|
991
|
+
proto.CreateAccountAssignmentDefaultReq.serializeBinaryToWriter(this, writer);
|
|
992
|
+
return writer.getResultBuffer();
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
998
|
+
* format), writing to the given BinaryWriter.
|
|
999
|
+
* @param {!proto.CreateAccountAssignmentDefaultReq} message
|
|
1000
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1001
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1002
|
+
*/
|
|
1003
|
+
proto.CreateAccountAssignmentDefaultReq.serializeBinaryToWriter = function(message, writer) {
|
|
1004
|
+
var f = undefined;
|
|
1005
|
+
f = message.getCompaniesReferencesId();
|
|
1006
|
+
if (f.length > 0) {
|
|
1007
|
+
writer.writeString(
|
|
1008
|
+
1,
|
|
1009
|
+
f
|
|
1010
|
+
);
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* optional string companies_references_id = 1;
|
|
1017
|
+
* @return {string}
|
|
1018
|
+
*/
|
|
1019
|
+
proto.CreateAccountAssignmentDefaultReq.prototype.getCompaniesReferencesId = function() {
|
|
1020
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* @param {string} value
|
|
1026
|
+
* @return {!proto.CreateAccountAssignmentDefaultReq} returns this
|
|
1027
|
+
*/
|
|
1028
|
+
proto.CreateAccountAssignmentDefaultReq.prototype.setCompaniesReferencesId = function(value) {
|
|
1029
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
884
1036
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
885
1037
|
/**
|
|
886
1038
|
* Creates an object representation of this proto.
|
|
@@ -6,6 +6,17 @@ var prisca_v1_account_group_account_group_pb = require('../../../prisca/v1/accou
|
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
var prisca_v1_chart_of_account_chart_of_account_pb = require('../../../prisca/v1/chart_of_account/chart_of_account_pb.js');
|
|
8
8
|
|
|
9
|
+
function serialize_CreateAccountGroupDefaultReq(arg) {
|
|
10
|
+
if (!(arg instanceof prisca_v1_account_group_account_group_pb.CreateAccountGroupDefaultReq)) {
|
|
11
|
+
throw new Error('Expected argument of type CreateAccountGroupDefaultReq');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_CreateAccountGroupDefaultReq(buffer_arg) {
|
|
17
|
+
return prisca_v1_account_group_account_group_pb.CreateAccountGroupDefaultReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
function serialize_CreateAccountGroupRequest(arg) {
|
|
10
21
|
if (!(arg instanceof prisca_v1_account_group_account_group_pb.CreateAccountGroupRequest)) {
|
|
11
22
|
throw new Error('Expected argument of type CreateAccountGroupRequest');
|
|
@@ -129,6 +140,17 @@ var AccountGroupServiceService = exports.AccountGroupServiceService = {
|
|
|
129
140
|
responseSerialize: serialize_CreateAccountGroupResponse,
|
|
130
141
|
responseDeserialize: deserialize_CreateAccountGroupResponse,
|
|
131
142
|
},
|
|
143
|
+
createAccountGroupDefault: {
|
|
144
|
+
path: '/AccountGroupService/CreateAccountGroupDefault',
|
|
145
|
+
requestStream: false,
|
|
146
|
+
responseStream: false,
|
|
147
|
+
requestType: prisca_v1_account_group_account_group_pb.CreateAccountGroupDefaultReq,
|
|
148
|
+
responseType: prisca_v1_account_group_account_group_pb.CreateAccountGroupDefaultReq,
|
|
149
|
+
requestSerialize: serialize_CreateAccountGroupDefaultReq,
|
|
150
|
+
requestDeserialize: deserialize_CreateAccountGroupDefaultReq,
|
|
151
|
+
responseSerialize: serialize_CreateAccountGroupDefaultReq,
|
|
152
|
+
responseDeserialize: deserialize_CreateAccountGroupDefaultReq,
|
|
153
|
+
},
|
|
132
154
|
updateAccountGroup: {
|
|
133
155
|
path: '/AccountGroupService/UpdateAccountGroup',
|
|
134
156
|
requestStream: false,
|
|
@@ -27,6 +27,7 @@ var prisca_v1_chart_of_account_chart_of_account_pb = require('../../../prisca/v1
|
|
|
27
27
|
goog.object.extend(proto, prisca_v1_chart_of_account_chart_of_account_pb);
|
|
28
28
|
goog.exportSymbol('proto.AccountGroup', null, global);
|
|
29
29
|
goog.exportSymbol('proto.BaseAccountGroup', null, global);
|
|
30
|
+
goog.exportSymbol('proto.CreateAccountGroupDefaultReq', null, global);
|
|
30
31
|
goog.exportSymbol('proto.CreateAccountGroupRequest', null, global);
|
|
31
32
|
goog.exportSymbol('proto.CreateAccountGroupResponse', null, global);
|
|
32
33
|
goog.exportSymbol('proto.DeleteAccountGroupRequest', null, global);
|
|
@@ -100,6 +101,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
100
101
|
*/
|
|
101
102
|
proto.CreateAccountGroupRequest.displayName = 'proto.CreateAccountGroupRequest';
|
|
102
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Generated by JsPbCodeGenerator.
|
|
106
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
107
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
108
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
109
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
110
|
+
* valid.
|
|
111
|
+
* @extends {jspb.Message}
|
|
112
|
+
* @constructor
|
|
113
|
+
*/
|
|
114
|
+
proto.CreateAccountGroupDefaultReq = function(opt_data) {
|
|
115
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
116
|
+
};
|
|
117
|
+
goog.inherits(proto.CreateAccountGroupDefaultReq, jspb.Message);
|
|
118
|
+
if (goog.DEBUG && !COMPILED) {
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* @override
|
|
122
|
+
*/
|
|
123
|
+
proto.CreateAccountGroupDefaultReq.displayName = 'proto.CreateAccountGroupDefaultReq';
|
|
124
|
+
}
|
|
103
125
|
/**
|
|
104
126
|
* Generated by JsPbCodeGenerator.
|
|
105
127
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1114,6 +1136,166 @@ proto.CreateAccountGroupRequest.prototype.hasBaseAccountGroup = function() {
|
|
|
1114
1136
|
|
|
1115
1137
|
|
|
1116
1138
|
|
|
1139
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1140
|
+
/**
|
|
1141
|
+
* Creates an object representation of this proto.
|
|
1142
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1143
|
+
* Optional fields that are not set will be set to undefined.
|
|
1144
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1145
|
+
* For the list of reserved names please see:
|
|
1146
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1147
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1148
|
+
* JSPB instance for transitional soy proto support:
|
|
1149
|
+
* http://goto/soy-param-migration
|
|
1150
|
+
* @return {!Object}
|
|
1151
|
+
*/
|
|
1152
|
+
proto.CreateAccountGroupDefaultReq.prototype.toObject = function(opt_includeInstance) {
|
|
1153
|
+
return proto.CreateAccountGroupDefaultReq.toObject(opt_includeInstance, this);
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Static version of the {@see toObject} method.
|
|
1159
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1160
|
+
* the JSPB instance for transitional soy proto support:
|
|
1161
|
+
* http://goto/soy-param-migration
|
|
1162
|
+
* @param {!proto.CreateAccountGroupDefaultReq} msg The msg instance to transform.
|
|
1163
|
+
* @return {!Object}
|
|
1164
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1165
|
+
*/
|
|
1166
|
+
proto.CreateAccountGroupDefaultReq.toObject = function(includeInstance, msg) {
|
|
1167
|
+
var f, obj = {
|
|
1168
|
+
chartOfAccountRef: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1169
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
if (includeInstance) {
|
|
1173
|
+
obj.$jspbMessageInstance = msg;
|
|
1174
|
+
}
|
|
1175
|
+
return obj;
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1182
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1183
|
+
* @return {!proto.CreateAccountGroupDefaultReq}
|
|
1184
|
+
*/
|
|
1185
|
+
proto.CreateAccountGroupDefaultReq.deserializeBinary = function(bytes) {
|
|
1186
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1187
|
+
var msg = new proto.CreateAccountGroupDefaultReq;
|
|
1188
|
+
return proto.CreateAccountGroupDefaultReq.deserializeBinaryFromReader(msg, reader);
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1194
|
+
* given reader into the given message object.
|
|
1195
|
+
* @param {!proto.CreateAccountGroupDefaultReq} msg The message object to deserialize into.
|
|
1196
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1197
|
+
* @return {!proto.CreateAccountGroupDefaultReq}
|
|
1198
|
+
*/
|
|
1199
|
+
proto.CreateAccountGroupDefaultReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1200
|
+
while (reader.nextField()) {
|
|
1201
|
+
if (reader.isEndGroup()) {
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
var field = reader.getFieldNumber();
|
|
1205
|
+
switch (field) {
|
|
1206
|
+
case 1:
|
|
1207
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1208
|
+
msg.setChartOfAccountRef(value);
|
|
1209
|
+
break;
|
|
1210
|
+
case 2:
|
|
1211
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1212
|
+
msg.setCompaniesReferencesId(value);
|
|
1213
|
+
break;
|
|
1214
|
+
default:
|
|
1215
|
+
reader.skipField();
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
return msg;
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1225
|
+
* @return {!Uint8Array}
|
|
1226
|
+
*/
|
|
1227
|
+
proto.CreateAccountGroupDefaultReq.prototype.serializeBinary = function() {
|
|
1228
|
+
var writer = new jspb.BinaryWriter();
|
|
1229
|
+
proto.CreateAccountGroupDefaultReq.serializeBinaryToWriter(this, writer);
|
|
1230
|
+
return writer.getResultBuffer();
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1236
|
+
* format), writing to the given BinaryWriter.
|
|
1237
|
+
* @param {!proto.CreateAccountGroupDefaultReq} message
|
|
1238
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1239
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1240
|
+
*/
|
|
1241
|
+
proto.CreateAccountGroupDefaultReq.serializeBinaryToWriter = function(message, writer) {
|
|
1242
|
+
var f = undefined;
|
|
1243
|
+
f = message.getChartOfAccountRef();
|
|
1244
|
+
if (f.length > 0) {
|
|
1245
|
+
writer.writeString(
|
|
1246
|
+
1,
|
|
1247
|
+
f
|
|
1248
|
+
);
|
|
1249
|
+
}
|
|
1250
|
+
f = message.getCompaniesReferencesId();
|
|
1251
|
+
if (f.length > 0) {
|
|
1252
|
+
writer.writeString(
|
|
1253
|
+
2,
|
|
1254
|
+
f
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* optional string chart_of_account_ref = 1;
|
|
1262
|
+
* @return {string}
|
|
1263
|
+
*/
|
|
1264
|
+
proto.CreateAccountGroupDefaultReq.prototype.getChartOfAccountRef = function() {
|
|
1265
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* @param {string} value
|
|
1271
|
+
* @return {!proto.CreateAccountGroupDefaultReq} returns this
|
|
1272
|
+
*/
|
|
1273
|
+
proto.CreateAccountGroupDefaultReq.prototype.setChartOfAccountRef = function(value) {
|
|
1274
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* optional string companies_references_id = 2;
|
|
1280
|
+
* @return {string}
|
|
1281
|
+
*/
|
|
1282
|
+
proto.CreateAccountGroupDefaultReq.prototype.getCompaniesReferencesId = function() {
|
|
1283
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* @param {string} value
|
|
1289
|
+
* @return {!proto.CreateAccountGroupDefaultReq} returns this
|
|
1290
|
+
*/
|
|
1291
|
+
proto.CreateAccountGroupDefaultReq.prototype.setCompaniesReferencesId = function(value) {
|
|
1292
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1117
1299
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1118
1300
|
/**
|
|
1119
1301
|
* Creates an object representation of this proto.
|
|
@@ -16,6 +16,17 @@ function deserialize_CreateChartOfAccountRequest(buffer_arg) {
|
|
|
16
16
|
return prisca_v1_chart_of_account_chart_of_account_pb.CreateChartOfAccountRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
function serialize_CreateChartOfAccountRequestDefault(arg) {
|
|
20
|
+
if (!(arg instanceof prisca_v1_chart_of_account_chart_of_account_pb.CreateChartOfAccountRequestDefault)) {
|
|
21
|
+
throw new Error('Expected argument of type CreateChartOfAccountRequestDefault');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_CreateChartOfAccountRequestDefault(buffer_arg) {
|
|
27
|
+
return prisca_v1_chart_of_account_chart_of_account_pb.CreateChartOfAccountRequestDefault.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
19
30
|
function serialize_CreateChartOfAccountResponse(arg) {
|
|
20
31
|
if (!(arg instanceof prisca_v1_chart_of_account_chart_of_account_pb.CreateChartOfAccountResponse)) {
|
|
21
32
|
throw new Error('Expected argument of type CreateChartOfAccountResponse');
|
|
@@ -128,6 +139,17 @@ var ChartOfAccountServiceService = exports.ChartOfAccountServiceService = {
|
|
|
128
139
|
responseSerialize: serialize_CreateChartOfAccountResponse,
|
|
129
140
|
responseDeserialize: deserialize_CreateChartOfAccountResponse,
|
|
130
141
|
},
|
|
142
|
+
createChartOfAccountDefault: {
|
|
143
|
+
path: '/ChartOfAccountService/CreateChartOfAccountDefault',
|
|
144
|
+
requestStream: false,
|
|
145
|
+
responseStream: false,
|
|
146
|
+
requestType: prisca_v1_chart_of_account_chart_of_account_pb.CreateChartOfAccountRequestDefault,
|
|
147
|
+
responseType: prisca_v1_chart_of_account_chart_of_account_pb.CreateChartOfAccountResponse,
|
|
148
|
+
requestSerialize: serialize_CreateChartOfAccountRequestDefault,
|
|
149
|
+
requestDeserialize: deserialize_CreateChartOfAccountRequestDefault,
|
|
150
|
+
responseSerialize: serialize_CreateChartOfAccountResponse,
|
|
151
|
+
responseDeserialize: deserialize_CreateChartOfAccountResponse,
|
|
152
|
+
},
|
|
131
153
|
updateChartOfAccount: {
|
|
132
154
|
path: '/ChartOfAccountService/UpdateChartOfAccount',
|
|
133
155
|
requestStream: false,
|
|
@@ -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.
|