@aldiokta/protocgen 1.1.22 → 1.1.23

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.
Files changed (169) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +93 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -262
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6944
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3100
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4335
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2904
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -4180
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2657
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3814
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -3010
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3251
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4232
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2828
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -3104
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2978
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3084
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2597
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3061
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2732
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2512
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  135. package/prisca/v1/core/users/users_pb.js +0 -1653
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -4024
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7577
  140. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  141. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -4661
  142. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  143. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  144. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  145. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  146. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  147. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  148. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -1
  149. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -35
  150. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  151. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -5049
  152. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  154. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  155. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2927
  156. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  157. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2546
  158. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  159. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2590
  160. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  161. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  162. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -163
  163. package/prisca/v1/quotation/quotation_pb.js +0 -2796
  164. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -193
  165. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5961
  166. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  167. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  168. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  169. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6363
@@ -1,1653 +0,0 @@
1
- // source: prisca/v1/core/users/users.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
- goog.exportSymbol('proto.DeleteUserRequest', null, global);
27
- goog.exportSymbol('proto.DeleteUserResponse', null, global);
28
- goog.exportSymbol('proto.UpdateUser', null, global);
29
- goog.exportSymbol('proto.UpdateUserRequest', null, global);
30
- goog.exportSymbol('proto.UpdateUserResponse', null, global);
31
- goog.exportSymbol('proto.Users', null, global);
32
- /**
33
- * Generated by JsPbCodeGenerator.
34
- * @param {Array=} opt_data Optional initial data array, typically from a
35
- * server response, or constructed directly in Javascript. The array is used
36
- * in place and becomes part of the constructed object. It is not cloned.
37
- * If no data is provided, the constructed object will be empty, but still
38
- * valid.
39
- * @extends {jspb.Message}
40
- * @constructor
41
- */
42
- proto.Users = function(opt_data) {
43
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
- };
45
- goog.inherits(proto.Users, jspb.Message);
46
- if (goog.DEBUG && !COMPILED) {
47
- /**
48
- * @public
49
- * @override
50
- */
51
- proto.Users.displayName = 'proto.Users';
52
- }
53
- /**
54
- * Generated by JsPbCodeGenerator.
55
- * @param {Array=} opt_data Optional initial data array, typically from a
56
- * server response, or constructed directly in Javascript. The array is used
57
- * in place and becomes part of the constructed object. It is not cloned.
58
- * If no data is provided, the constructed object will be empty, but still
59
- * valid.
60
- * @extends {jspb.Message}
61
- * @constructor
62
- */
63
- proto.UpdateUser = function(opt_data) {
64
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
- };
66
- goog.inherits(proto.UpdateUser, jspb.Message);
67
- if (goog.DEBUG && !COMPILED) {
68
- /**
69
- * @public
70
- * @override
71
- */
72
- proto.UpdateUser.displayName = 'proto.UpdateUser';
73
- }
74
- /**
75
- * Generated by JsPbCodeGenerator.
76
- * @param {Array=} opt_data Optional initial data array, typically from a
77
- * server response, or constructed directly in Javascript. The array is used
78
- * in place and becomes part of the constructed object. It is not cloned.
79
- * If no data is provided, the constructed object will be empty, but still
80
- * valid.
81
- * @extends {jspb.Message}
82
- * @constructor
83
- */
84
- proto.UpdateUserRequest = function(opt_data) {
85
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
- };
87
- goog.inherits(proto.UpdateUserRequest, jspb.Message);
88
- if (goog.DEBUG && !COMPILED) {
89
- /**
90
- * @public
91
- * @override
92
- */
93
- proto.UpdateUserRequest.displayName = 'proto.UpdateUserRequest';
94
- }
95
- /**
96
- * Generated by JsPbCodeGenerator.
97
- * @param {Array=} opt_data Optional initial data array, typically from a
98
- * server response, or constructed directly in Javascript. The array is used
99
- * in place and becomes part of the constructed object. It is not cloned.
100
- * If no data is provided, the constructed object will be empty, but still
101
- * valid.
102
- * @extends {jspb.Message}
103
- * @constructor
104
- */
105
- proto.UpdateUserResponse = function(opt_data) {
106
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
- };
108
- goog.inherits(proto.UpdateUserResponse, jspb.Message);
109
- if (goog.DEBUG && !COMPILED) {
110
- /**
111
- * @public
112
- * @override
113
- */
114
- proto.UpdateUserResponse.displayName = 'proto.UpdateUserResponse';
115
- }
116
- /**
117
- * Generated by JsPbCodeGenerator.
118
- * @param {Array=} opt_data Optional initial data array, typically from a
119
- * server response, or constructed directly in Javascript. The array is used
120
- * in place and becomes part of the constructed object. It is not cloned.
121
- * If no data is provided, the constructed object will be empty, but still
122
- * valid.
123
- * @extends {jspb.Message}
124
- * @constructor
125
- */
126
- proto.DeleteUserRequest = function(opt_data) {
127
- jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteUserRequest.repeatedFields_, null);
128
- };
129
- goog.inherits(proto.DeleteUserRequest, jspb.Message);
130
- if (goog.DEBUG && !COMPILED) {
131
- /**
132
- * @public
133
- * @override
134
- */
135
- proto.DeleteUserRequest.displayName = 'proto.DeleteUserRequest';
136
- }
137
- /**
138
- * Generated by JsPbCodeGenerator.
139
- * @param {Array=} opt_data Optional initial data array, typically from a
140
- * server response, or constructed directly in Javascript. The array is used
141
- * in place and becomes part of the constructed object. It is not cloned.
142
- * If no data is provided, the constructed object will be empty, but still
143
- * valid.
144
- * @extends {jspb.Message}
145
- * @constructor
146
- */
147
- proto.DeleteUserResponse = function(opt_data) {
148
- jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteUserResponse.repeatedFields_, null);
149
- };
150
- goog.inherits(proto.DeleteUserResponse, jspb.Message);
151
- if (goog.DEBUG && !COMPILED) {
152
- /**
153
- * @public
154
- * @override
155
- */
156
- proto.DeleteUserResponse.displayName = 'proto.DeleteUserResponse';
157
- }
158
-
159
-
160
-
161
- if (jspb.Message.GENERATE_TO_OBJECT) {
162
- /**
163
- * Creates an object representation of this proto.
164
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
165
- * Optional fields that are not set will be set to undefined.
166
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
167
- * For the list of reserved names please see:
168
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
169
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
170
- * JSPB instance for transitional soy proto support:
171
- * http://goto/soy-param-migration
172
- * @return {!Object}
173
- */
174
- proto.Users.prototype.toObject = function(opt_includeInstance) {
175
- return proto.Users.toObject(opt_includeInstance, this);
176
- };
177
-
178
-
179
- /**
180
- * Static version of the {@see toObject} method.
181
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
182
- * the JSPB instance for transitional soy proto support:
183
- * http://goto/soy-param-migration
184
- * @param {!proto.Users} msg The msg instance to transform.
185
- * @return {!Object}
186
- * @suppress {unusedLocalVariables} f is only used for nested messages
187
- */
188
- proto.Users.toObject = function(includeInstance, msg) {
189
- var f, obj = {
190
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
191
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
192
- name: jspb.Message.getFieldWithDefault(msg, 3, ""),
193
- genderRefId: jspb.Message.getFieldWithDefault(msg, 4, ""),
194
- phoneNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
195
- email: jspb.Message.getFieldWithDefault(msg, 6, ""),
196
- roleRefId: jspb.Message.getFieldWithDefault(msg, 7, ""),
197
- credential: jspb.Message.getFieldWithDefault(msg, 8, ""),
198
- lastLogin: jspb.Message.getFieldWithDefault(msg, 9, ""),
199
- lastCredentialRenewal: jspb.Message.getFieldWithDefault(msg, 10, ""),
200
- deviceMobileId: jspb.Message.getFieldWithDefault(msg, 11, ""),
201
- deviceDekstopId: jspb.Message.getFieldWithDefault(msg, 12, ""),
202
- createdBy: jspb.Message.getFieldWithDefault(msg, 13, ""),
203
- updatedBy: jspb.Message.getFieldWithDefault(msg, 14, ""),
204
- createdAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
205
- updatedAt: jspb.Message.getFieldWithDefault(msg, 16, "")
206
- };
207
-
208
- if (includeInstance) {
209
- obj.$jspbMessageInstance = msg;
210
- }
211
- return obj;
212
- };
213
- }
214
-
215
-
216
- /**
217
- * Deserializes binary data (in protobuf wire format).
218
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
219
- * @return {!proto.Users}
220
- */
221
- proto.Users.deserializeBinary = function(bytes) {
222
- var reader = new jspb.BinaryReader(bytes);
223
- var msg = new proto.Users;
224
- return proto.Users.deserializeBinaryFromReader(msg, reader);
225
- };
226
-
227
-
228
- /**
229
- * Deserializes binary data (in protobuf wire format) from the
230
- * given reader into the given message object.
231
- * @param {!proto.Users} msg The message object to deserialize into.
232
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
233
- * @return {!proto.Users}
234
- */
235
- proto.Users.deserializeBinaryFromReader = function(msg, reader) {
236
- while (reader.nextField()) {
237
- if (reader.isEndGroup()) {
238
- break;
239
- }
240
- var field = reader.getFieldNumber();
241
- switch (field) {
242
- case 1:
243
- var value = /** @type {number} */ (reader.readInt32());
244
- msg.setId(value);
245
- break;
246
- case 2:
247
- var value = /** @type {string} */ (reader.readString());
248
- msg.setReferencesId(value);
249
- break;
250
- case 3:
251
- var value = /** @type {string} */ (reader.readString());
252
- msg.setName(value);
253
- break;
254
- case 4:
255
- var value = /** @type {string} */ (reader.readString());
256
- msg.setGenderRefId(value);
257
- break;
258
- case 5:
259
- var value = /** @type {string} */ (reader.readString());
260
- msg.setPhoneNumber(value);
261
- break;
262
- case 6:
263
- var value = /** @type {string} */ (reader.readString());
264
- msg.setEmail(value);
265
- break;
266
- case 7:
267
- var value = /** @type {string} */ (reader.readString());
268
- msg.setRoleRefId(value);
269
- break;
270
- case 8:
271
- var value = /** @type {string} */ (reader.readString());
272
- msg.setCredential(value);
273
- break;
274
- case 9:
275
- var value = /** @type {string} */ (reader.readString());
276
- msg.setLastLogin(value);
277
- break;
278
- case 10:
279
- var value = /** @type {string} */ (reader.readString());
280
- msg.setLastCredentialRenewal(value);
281
- break;
282
- case 11:
283
- var value = /** @type {string} */ (reader.readString());
284
- msg.setDeviceMobileId(value);
285
- break;
286
- case 12:
287
- var value = /** @type {string} */ (reader.readString());
288
- msg.setDeviceDekstopId(value);
289
- break;
290
- case 13:
291
- var value = /** @type {string} */ (reader.readString());
292
- msg.setCreatedBy(value);
293
- break;
294
- case 14:
295
- var value = /** @type {string} */ (reader.readString());
296
- msg.setUpdatedBy(value);
297
- break;
298
- case 15:
299
- var value = /** @type {string} */ (reader.readString());
300
- msg.setCreatedAt(value);
301
- break;
302
- case 16:
303
- var value = /** @type {string} */ (reader.readString());
304
- msg.setUpdatedAt(value);
305
- break;
306
- default:
307
- reader.skipField();
308
- break;
309
- }
310
- }
311
- return msg;
312
- };
313
-
314
-
315
- /**
316
- * Serializes the message to binary data (in protobuf wire format).
317
- * @return {!Uint8Array}
318
- */
319
- proto.Users.prototype.serializeBinary = function() {
320
- var writer = new jspb.BinaryWriter();
321
- proto.Users.serializeBinaryToWriter(this, writer);
322
- return writer.getResultBuffer();
323
- };
324
-
325
-
326
- /**
327
- * Serializes the given message to binary data (in protobuf wire
328
- * format), writing to the given BinaryWriter.
329
- * @param {!proto.Users} message
330
- * @param {!jspb.BinaryWriter} writer
331
- * @suppress {unusedLocalVariables} f is only used for nested messages
332
- */
333
- proto.Users.serializeBinaryToWriter = function(message, writer) {
334
- var f = undefined;
335
- f = message.getId();
336
- if (f !== 0) {
337
- writer.writeInt32(
338
- 1,
339
- f
340
- );
341
- }
342
- f = message.getReferencesId();
343
- if (f.length > 0) {
344
- writer.writeString(
345
- 2,
346
- f
347
- );
348
- }
349
- f = message.getName();
350
- if (f.length > 0) {
351
- writer.writeString(
352
- 3,
353
- f
354
- );
355
- }
356
- f = message.getGenderRefId();
357
- if (f.length > 0) {
358
- writer.writeString(
359
- 4,
360
- f
361
- );
362
- }
363
- f = message.getPhoneNumber();
364
- if (f.length > 0) {
365
- writer.writeString(
366
- 5,
367
- f
368
- );
369
- }
370
- f = message.getEmail();
371
- if (f.length > 0) {
372
- writer.writeString(
373
- 6,
374
- f
375
- );
376
- }
377
- f = message.getRoleRefId();
378
- if (f.length > 0) {
379
- writer.writeString(
380
- 7,
381
- f
382
- );
383
- }
384
- f = message.getCredential();
385
- if (f.length > 0) {
386
- writer.writeString(
387
- 8,
388
- f
389
- );
390
- }
391
- f = message.getLastLogin();
392
- if (f.length > 0) {
393
- writer.writeString(
394
- 9,
395
- f
396
- );
397
- }
398
- f = message.getLastCredentialRenewal();
399
- if (f.length > 0) {
400
- writer.writeString(
401
- 10,
402
- f
403
- );
404
- }
405
- f = message.getDeviceMobileId();
406
- if (f.length > 0) {
407
- writer.writeString(
408
- 11,
409
- f
410
- );
411
- }
412
- f = message.getDeviceDekstopId();
413
- if (f.length > 0) {
414
- writer.writeString(
415
- 12,
416
- f
417
- );
418
- }
419
- f = message.getCreatedBy();
420
- if (f.length > 0) {
421
- writer.writeString(
422
- 13,
423
- f
424
- );
425
- }
426
- f = message.getUpdatedBy();
427
- if (f.length > 0) {
428
- writer.writeString(
429
- 14,
430
- f
431
- );
432
- }
433
- f = message.getCreatedAt();
434
- if (f.length > 0) {
435
- writer.writeString(
436
- 15,
437
- f
438
- );
439
- }
440
- f = message.getUpdatedAt();
441
- if (f.length > 0) {
442
- writer.writeString(
443
- 16,
444
- f
445
- );
446
- }
447
- };
448
-
449
-
450
- /**
451
- * optional int32 id = 1;
452
- * @return {number}
453
- */
454
- proto.Users.prototype.getId = function() {
455
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
456
- };
457
-
458
-
459
- /**
460
- * @param {number} value
461
- * @return {!proto.Users} returns this
462
- */
463
- proto.Users.prototype.setId = function(value) {
464
- return jspb.Message.setProto3IntField(this, 1, value);
465
- };
466
-
467
-
468
- /**
469
- * optional string references_id = 2;
470
- * @return {string}
471
- */
472
- proto.Users.prototype.getReferencesId = function() {
473
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
474
- };
475
-
476
-
477
- /**
478
- * @param {string} value
479
- * @return {!proto.Users} returns this
480
- */
481
- proto.Users.prototype.setReferencesId = function(value) {
482
- return jspb.Message.setProto3StringField(this, 2, value);
483
- };
484
-
485
-
486
- /**
487
- * optional string name = 3;
488
- * @return {string}
489
- */
490
- proto.Users.prototype.getName = function() {
491
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
492
- };
493
-
494
-
495
- /**
496
- * @param {string} value
497
- * @return {!proto.Users} returns this
498
- */
499
- proto.Users.prototype.setName = function(value) {
500
- return jspb.Message.setProto3StringField(this, 3, value);
501
- };
502
-
503
-
504
- /**
505
- * optional string gender_ref_id = 4;
506
- * @return {string}
507
- */
508
- proto.Users.prototype.getGenderRefId = function() {
509
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
510
- };
511
-
512
-
513
- /**
514
- * @param {string} value
515
- * @return {!proto.Users} returns this
516
- */
517
- proto.Users.prototype.setGenderRefId = function(value) {
518
- return jspb.Message.setProto3StringField(this, 4, value);
519
- };
520
-
521
-
522
- /**
523
- * optional string phone_number = 5;
524
- * @return {string}
525
- */
526
- proto.Users.prototype.getPhoneNumber = function() {
527
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
528
- };
529
-
530
-
531
- /**
532
- * @param {string} value
533
- * @return {!proto.Users} returns this
534
- */
535
- proto.Users.prototype.setPhoneNumber = function(value) {
536
- return jspb.Message.setProto3StringField(this, 5, value);
537
- };
538
-
539
-
540
- /**
541
- * optional string email = 6;
542
- * @return {string}
543
- */
544
- proto.Users.prototype.getEmail = function() {
545
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
546
- };
547
-
548
-
549
- /**
550
- * @param {string} value
551
- * @return {!proto.Users} returns this
552
- */
553
- proto.Users.prototype.setEmail = function(value) {
554
- return jspb.Message.setProto3StringField(this, 6, value);
555
- };
556
-
557
-
558
- /**
559
- * optional string role_ref_id = 7;
560
- * @return {string}
561
- */
562
- proto.Users.prototype.getRoleRefId = function() {
563
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
564
- };
565
-
566
-
567
- /**
568
- * @param {string} value
569
- * @return {!proto.Users} returns this
570
- */
571
- proto.Users.prototype.setRoleRefId = function(value) {
572
- return jspb.Message.setProto3StringField(this, 7, value);
573
- };
574
-
575
-
576
- /**
577
- * optional string credential = 8;
578
- * @return {string}
579
- */
580
- proto.Users.prototype.getCredential = function() {
581
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
582
- };
583
-
584
-
585
- /**
586
- * @param {string} value
587
- * @return {!proto.Users} returns this
588
- */
589
- proto.Users.prototype.setCredential = function(value) {
590
- return jspb.Message.setProto3StringField(this, 8, value);
591
- };
592
-
593
-
594
- /**
595
- * optional string last_login = 9;
596
- * @return {string}
597
- */
598
- proto.Users.prototype.getLastLogin = function() {
599
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
600
- };
601
-
602
-
603
- /**
604
- * @param {string} value
605
- * @return {!proto.Users} returns this
606
- */
607
- proto.Users.prototype.setLastLogin = function(value) {
608
- return jspb.Message.setProto3StringField(this, 9, value);
609
- };
610
-
611
-
612
- /**
613
- * optional string last_credential_renewal = 10;
614
- * @return {string}
615
- */
616
- proto.Users.prototype.getLastCredentialRenewal = function() {
617
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
618
- };
619
-
620
-
621
- /**
622
- * @param {string} value
623
- * @return {!proto.Users} returns this
624
- */
625
- proto.Users.prototype.setLastCredentialRenewal = function(value) {
626
- return jspb.Message.setProto3StringField(this, 10, value);
627
- };
628
-
629
-
630
- /**
631
- * optional string device_mobile_id = 11;
632
- * @return {string}
633
- */
634
- proto.Users.prototype.getDeviceMobileId = function() {
635
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
636
- };
637
-
638
-
639
- /**
640
- * @param {string} value
641
- * @return {!proto.Users} returns this
642
- */
643
- proto.Users.prototype.setDeviceMobileId = function(value) {
644
- return jspb.Message.setProto3StringField(this, 11, value);
645
- };
646
-
647
-
648
- /**
649
- * optional string device_dekstop_id = 12;
650
- * @return {string}
651
- */
652
- proto.Users.prototype.getDeviceDekstopId = function() {
653
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
654
- };
655
-
656
-
657
- /**
658
- * @param {string} value
659
- * @return {!proto.Users} returns this
660
- */
661
- proto.Users.prototype.setDeviceDekstopId = function(value) {
662
- return jspb.Message.setProto3StringField(this, 12, value);
663
- };
664
-
665
-
666
- /**
667
- * optional string created_by = 13;
668
- * @return {string}
669
- */
670
- proto.Users.prototype.getCreatedBy = function() {
671
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
672
- };
673
-
674
-
675
- /**
676
- * @param {string} value
677
- * @return {!proto.Users} returns this
678
- */
679
- proto.Users.prototype.setCreatedBy = function(value) {
680
- return jspb.Message.setProto3StringField(this, 13, value);
681
- };
682
-
683
-
684
- /**
685
- * optional string updated_by = 14;
686
- * @return {string}
687
- */
688
- proto.Users.prototype.getUpdatedBy = function() {
689
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
690
- };
691
-
692
-
693
- /**
694
- * @param {string} value
695
- * @return {!proto.Users} returns this
696
- */
697
- proto.Users.prototype.setUpdatedBy = function(value) {
698
- return jspb.Message.setProto3StringField(this, 14, value);
699
- };
700
-
701
-
702
- /**
703
- * optional string created_at = 15;
704
- * @return {string}
705
- */
706
- proto.Users.prototype.getCreatedAt = function() {
707
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
708
- };
709
-
710
-
711
- /**
712
- * @param {string} value
713
- * @return {!proto.Users} returns this
714
- */
715
- proto.Users.prototype.setCreatedAt = function(value) {
716
- return jspb.Message.setProto3StringField(this, 15, value);
717
- };
718
-
719
-
720
- /**
721
- * optional string updated_at = 16;
722
- * @return {string}
723
- */
724
- proto.Users.prototype.getUpdatedAt = function() {
725
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
726
- };
727
-
728
-
729
- /**
730
- * @param {string} value
731
- * @return {!proto.Users} returns this
732
- */
733
- proto.Users.prototype.setUpdatedAt = function(value) {
734
- return jspb.Message.setProto3StringField(this, 16, value);
735
- };
736
-
737
-
738
-
739
-
740
-
741
- if (jspb.Message.GENERATE_TO_OBJECT) {
742
- /**
743
- * Creates an object representation of this proto.
744
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
745
- * Optional fields that are not set will be set to undefined.
746
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
747
- * For the list of reserved names please see:
748
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
749
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
750
- * JSPB instance for transitional soy proto support:
751
- * http://goto/soy-param-migration
752
- * @return {!Object}
753
- */
754
- proto.UpdateUser.prototype.toObject = function(opt_includeInstance) {
755
- return proto.UpdateUser.toObject(opt_includeInstance, this);
756
- };
757
-
758
-
759
- /**
760
- * Static version of the {@see toObject} method.
761
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
762
- * the JSPB instance for transitional soy proto support:
763
- * http://goto/soy-param-migration
764
- * @param {!proto.UpdateUser} msg The msg instance to transform.
765
- * @return {!Object}
766
- * @suppress {unusedLocalVariables} f is only used for nested messages
767
- */
768
- proto.UpdateUser.toObject = function(includeInstance, msg) {
769
- var f, obj = {
770
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
771
- phoneNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
772
- email: jspb.Message.getFieldWithDefault(msg, 3, "")
773
- };
774
-
775
- if (includeInstance) {
776
- obj.$jspbMessageInstance = msg;
777
- }
778
- return obj;
779
- };
780
- }
781
-
782
-
783
- /**
784
- * Deserializes binary data (in protobuf wire format).
785
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
786
- * @return {!proto.UpdateUser}
787
- */
788
- proto.UpdateUser.deserializeBinary = function(bytes) {
789
- var reader = new jspb.BinaryReader(bytes);
790
- var msg = new proto.UpdateUser;
791
- return proto.UpdateUser.deserializeBinaryFromReader(msg, reader);
792
- };
793
-
794
-
795
- /**
796
- * Deserializes binary data (in protobuf wire format) from the
797
- * given reader into the given message object.
798
- * @param {!proto.UpdateUser} msg The message object to deserialize into.
799
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
800
- * @return {!proto.UpdateUser}
801
- */
802
- proto.UpdateUser.deserializeBinaryFromReader = function(msg, reader) {
803
- while (reader.nextField()) {
804
- if (reader.isEndGroup()) {
805
- break;
806
- }
807
- var field = reader.getFieldNumber();
808
- switch (field) {
809
- case 1:
810
- var value = /** @type {string} */ (reader.readString());
811
- msg.setName(value);
812
- break;
813
- case 2:
814
- var value = /** @type {string} */ (reader.readString());
815
- msg.setPhoneNumber(value);
816
- break;
817
- case 3:
818
- var value = /** @type {string} */ (reader.readString());
819
- msg.setEmail(value);
820
- break;
821
- default:
822
- reader.skipField();
823
- break;
824
- }
825
- }
826
- return msg;
827
- };
828
-
829
-
830
- /**
831
- * Serializes the message to binary data (in protobuf wire format).
832
- * @return {!Uint8Array}
833
- */
834
- proto.UpdateUser.prototype.serializeBinary = function() {
835
- var writer = new jspb.BinaryWriter();
836
- proto.UpdateUser.serializeBinaryToWriter(this, writer);
837
- return writer.getResultBuffer();
838
- };
839
-
840
-
841
- /**
842
- * Serializes the given message to binary data (in protobuf wire
843
- * format), writing to the given BinaryWriter.
844
- * @param {!proto.UpdateUser} message
845
- * @param {!jspb.BinaryWriter} writer
846
- * @suppress {unusedLocalVariables} f is only used for nested messages
847
- */
848
- proto.UpdateUser.serializeBinaryToWriter = function(message, writer) {
849
- var f = undefined;
850
- f = message.getName();
851
- if (f.length > 0) {
852
- writer.writeString(
853
- 1,
854
- f
855
- );
856
- }
857
- f = message.getPhoneNumber();
858
- if (f.length > 0) {
859
- writer.writeString(
860
- 2,
861
- f
862
- );
863
- }
864
- f = message.getEmail();
865
- if (f.length > 0) {
866
- writer.writeString(
867
- 3,
868
- f
869
- );
870
- }
871
- };
872
-
873
-
874
- /**
875
- * optional string name = 1;
876
- * @return {string}
877
- */
878
- proto.UpdateUser.prototype.getName = function() {
879
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
880
- };
881
-
882
-
883
- /**
884
- * @param {string} value
885
- * @return {!proto.UpdateUser} returns this
886
- */
887
- proto.UpdateUser.prototype.setName = function(value) {
888
- return jspb.Message.setProto3StringField(this, 1, value);
889
- };
890
-
891
-
892
- /**
893
- * optional string phone_number = 2;
894
- * @return {string}
895
- */
896
- proto.UpdateUser.prototype.getPhoneNumber = function() {
897
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
898
- };
899
-
900
-
901
- /**
902
- * @param {string} value
903
- * @return {!proto.UpdateUser} returns this
904
- */
905
- proto.UpdateUser.prototype.setPhoneNumber = function(value) {
906
- return jspb.Message.setProto3StringField(this, 2, value);
907
- };
908
-
909
-
910
- /**
911
- * optional string email = 3;
912
- * @return {string}
913
- */
914
- proto.UpdateUser.prototype.getEmail = function() {
915
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
916
- };
917
-
918
-
919
- /**
920
- * @param {string} value
921
- * @return {!proto.UpdateUser} returns this
922
- */
923
- proto.UpdateUser.prototype.setEmail = function(value) {
924
- return jspb.Message.setProto3StringField(this, 3, value);
925
- };
926
-
927
-
928
-
929
-
930
-
931
- if (jspb.Message.GENERATE_TO_OBJECT) {
932
- /**
933
- * Creates an object representation of this proto.
934
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
935
- * Optional fields that are not set will be set to undefined.
936
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
937
- * For the list of reserved names please see:
938
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
939
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
940
- * JSPB instance for transitional soy proto support:
941
- * http://goto/soy-param-migration
942
- * @return {!Object}
943
- */
944
- proto.UpdateUserRequest.prototype.toObject = function(opt_includeInstance) {
945
- return proto.UpdateUserRequest.toObject(opt_includeInstance, this);
946
- };
947
-
948
-
949
- /**
950
- * Static version of the {@see toObject} method.
951
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
952
- * the JSPB instance for transitional soy proto support:
953
- * http://goto/soy-param-migration
954
- * @param {!proto.UpdateUserRequest} msg The msg instance to transform.
955
- * @return {!Object}
956
- * @suppress {unusedLocalVariables} f is only used for nested messages
957
- */
958
- proto.UpdateUserRequest.toObject = function(includeInstance, msg) {
959
- var f, obj = {
960
- user: (f = msg.getUser()) && proto.UpdateUser.toObject(includeInstance, f),
961
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
962
- };
963
-
964
- if (includeInstance) {
965
- obj.$jspbMessageInstance = msg;
966
- }
967
- return obj;
968
- };
969
- }
970
-
971
-
972
- /**
973
- * Deserializes binary data (in protobuf wire format).
974
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
975
- * @return {!proto.UpdateUserRequest}
976
- */
977
- proto.UpdateUserRequest.deserializeBinary = function(bytes) {
978
- var reader = new jspb.BinaryReader(bytes);
979
- var msg = new proto.UpdateUserRequest;
980
- return proto.UpdateUserRequest.deserializeBinaryFromReader(msg, reader);
981
- };
982
-
983
-
984
- /**
985
- * Deserializes binary data (in protobuf wire format) from the
986
- * given reader into the given message object.
987
- * @param {!proto.UpdateUserRequest} msg The message object to deserialize into.
988
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
989
- * @return {!proto.UpdateUserRequest}
990
- */
991
- proto.UpdateUserRequest.deserializeBinaryFromReader = function(msg, reader) {
992
- while (reader.nextField()) {
993
- if (reader.isEndGroup()) {
994
- break;
995
- }
996
- var field = reader.getFieldNumber();
997
- switch (field) {
998
- case 1:
999
- var value = new proto.UpdateUser;
1000
- reader.readMessage(value,proto.UpdateUser.deserializeBinaryFromReader);
1001
- msg.setUser(value);
1002
- break;
1003
- case 2:
1004
- var value = /** @type {string} */ (reader.readString());
1005
- msg.setReferencesId(value);
1006
- break;
1007
- default:
1008
- reader.skipField();
1009
- break;
1010
- }
1011
- }
1012
- return msg;
1013
- };
1014
-
1015
-
1016
- /**
1017
- * Serializes the message to binary data (in protobuf wire format).
1018
- * @return {!Uint8Array}
1019
- */
1020
- proto.UpdateUserRequest.prototype.serializeBinary = function() {
1021
- var writer = new jspb.BinaryWriter();
1022
- proto.UpdateUserRequest.serializeBinaryToWriter(this, writer);
1023
- return writer.getResultBuffer();
1024
- };
1025
-
1026
-
1027
- /**
1028
- * Serializes the given message to binary data (in protobuf wire
1029
- * format), writing to the given BinaryWriter.
1030
- * @param {!proto.UpdateUserRequest} message
1031
- * @param {!jspb.BinaryWriter} writer
1032
- * @suppress {unusedLocalVariables} f is only used for nested messages
1033
- */
1034
- proto.UpdateUserRequest.serializeBinaryToWriter = function(message, writer) {
1035
- var f = undefined;
1036
- f = message.getUser();
1037
- if (f != null) {
1038
- writer.writeMessage(
1039
- 1,
1040
- f,
1041
- proto.UpdateUser.serializeBinaryToWriter
1042
- );
1043
- }
1044
- f = message.getReferencesId();
1045
- if (f.length > 0) {
1046
- writer.writeString(
1047
- 2,
1048
- f
1049
- );
1050
- }
1051
- };
1052
-
1053
-
1054
- /**
1055
- * optional UpdateUser user = 1;
1056
- * @return {?proto.UpdateUser}
1057
- */
1058
- proto.UpdateUserRequest.prototype.getUser = function() {
1059
- return /** @type{?proto.UpdateUser} */ (
1060
- jspb.Message.getWrapperField(this, proto.UpdateUser, 1));
1061
- };
1062
-
1063
-
1064
- /**
1065
- * @param {?proto.UpdateUser|undefined} value
1066
- * @return {!proto.UpdateUserRequest} returns this
1067
- */
1068
- proto.UpdateUserRequest.prototype.setUser = function(value) {
1069
- return jspb.Message.setWrapperField(this, 1, value);
1070
- };
1071
-
1072
-
1073
- /**
1074
- * Clears the message field making it undefined.
1075
- * @return {!proto.UpdateUserRequest} returns this
1076
- */
1077
- proto.UpdateUserRequest.prototype.clearUser = function() {
1078
- return this.setUser(undefined);
1079
- };
1080
-
1081
-
1082
- /**
1083
- * Returns whether this field is set.
1084
- * @return {boolean}
1085
- */
1086
- proto.UpdateUserRequest.prototype.hasUser = function() {
1087
- return jspb.Message.getField(this, 1) != null;
1088
- };
1089
-
1090
-
1091
- /**
1092
- * optional string references_id = 2;
1093
- * @return {string}
1094
- */
1095
- proto.UpdateUserRequest.prototype.getReferencesId = function() {
1096
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1097
- };
1098
-
1099
-
1100
- /**
1101
- * @param {string} value
1102
- * @return {!proto.UpdateUserRequest} returns this
1103
- */
1104
- proto.UpdateUserRequest.prototype.setReferencesId = function(value) {
1105
- return jspb.Message.setProto3StringField(this, 2, value);
1106
- };
1107
-
1108
-
1109
-
1110
-
1111
-
1112
- if (jspb.Message.GENERATE_TO_OBJECT) {
1113
- /**
1114
- * Creates an object representation of this proto.
1115
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1116
- * Optional fields that are not set will be set to undefined.
1117
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1118
- * For the list of reserved names please see:
1119
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1120
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1121
- * JSPB instance for transitional soy proto support:
1122
- * http://goto/soy-param-migration
1123
- * @return {!Object}
1124
- */
1125
- proto.UpdateUserResponse.prototype.toObject = function(opt_includeInstance) {
1126
- return proto.UpdateUserResponse.toObject(opt_includeInstance, this);
1127
- };
1128
-
1129
-
1130
- /**
1131
- * Static version of the {@see toObject} method.
1132
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1133
- * the JSPB instance for transitional soy proto support:
1134
- * http://goto/soy-param-migration
1135
- * @param {!proto.UpdateUserResponse} msg The msg instance to transform.
1136
- * @return {!Object}
1137
- * @suppress {unusedLocalVariables} f is only used for nested messages
1138
- */
1139
- proto.UpdateUserResponse.toObject = function(includeInstance, msg) {
1140
- var f, obj = {
1141
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1142
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1143
- };
1144
-
1145
- if (includeInstance) {
1146
- obj.$jspbMessageInstance = msg;
1147
- }
1148
- return obj;
1149
- };
1150
- }
1151
-
1152
-
1153
- /**
1154
- * Deserializes binary data (in protobuf wire format).
1155
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1156
- * @return {!proto.UpdateUserResponse}
1157
- */
1158
- proto.UpdateUserResponse.deserializeBinary = function(bytes) {
1159
- var reader = new jspb.BinaryReader(bytes);
1160
- var msg = new proto.UpdateUserResponse;
1161
- return proto.UpdateUserResponse.deserializeBinaryFromReader(msg, reader);
1162
- };
1163
-
1164
-
1165
- /**
1166
- * Deserializes binary data (in protobuf wire format) from the
1167
- * given reader into the given message object.
1168
- * @param {!proto.UpdateUserResponse} msg The message object to deserialize into.
1169
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1170
- * @return {!proto.UpdateUserResponse}
1171
- */
1172
- proto.UpdateUserResponse.deserializeBinaryFromReader = function(msg, reader) {
1173
- while (reader.nextField()) {
1174
- if (reader.isEndGroup()) {
1175
- break;
1176
- }
1177
- var field = reader.getFieldNumber();
1178
- switch (field) {
1179
- case 1:
1180
- var value = /** @type {string} */ (reader.readString());
1181
- msg.setReferencesId(value);
1182
- break;
1183
- case 2:
1184
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1185
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1186
- msg.setMeta(value);
1187
- break;
1188
- default:
1189
- reader.skipField();
1190
- break;
1191
- }
1192
- }
1193
- return msg;
1194
- };
1195
-
1196
-
1197
- /**
1198
- * Serializes the message to binary data (in protobuf wire format).
1199
- * @return {!Uint8Array}
1200
- */
1201
- proto.UpdateUserResponse.prototype.serializeBinary = function() {
1202
- var writer = new jspb.BinaryWriter();
1203
- proto.UpdateUserResponse.serializeBinaryToWriter(this, writer);
1204
- return writer.getResultBuffer();
1205
- };
1206
-
1207
-
1208
- /**
1209
- * Serializes the given message to binary data (in protobuf wire
1210
- * format), writing to the given BinaryWriter.
1211
- * @param {!proto.UpdateUserResponse} message
1212
- * @param {!jspb.BinaryWriter} writer
1213
- * @suppress {unusedLocalVariables} f is only used for nested messages
1214
- */
1215
- proto.UpdateUserResponse.serializeBinaryToWriter = function(message, writer) {
1216
- var f = undefined;
1217
- f = message.getReferencesId();
1218
- if (f.length > 0) {
1219
- writer.writeString(
1220
- 1,
1221
- f
1222
- );
1223
- }
1224
- f = message.getMeta();
1225
- if (f != null) {
1226
- writer.writeMessage(
1227
- 2,
1228
- f,
1229
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1230
- );
1231
- }
1232
- };
1233
-
1234
-
1235
- /**
1236
- * optional string references_id = 1;
1237
- * @return {string}
1238
- */
1239
- proto.UpdateUserResponse.prototype.getReferencesId = function() {
1240
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1241
- };
1242
-
1243
-
1244
- /**
1245
- * @param {string} value
1246
- * @return {!proto.UpdateUserResponse} returns this
1247
- */
1248
- proto.UpdateUserResponse.prototype.setReferencesId = function(value) {
1249
- return jspb.Message.setProto3StringField(this, 1, value);
1250
- };
1251
-
1252
-
1253
- /**
1254
- * optional prisca.v1.global.meta.Meta meta = 2;
1255
- * @return {?proto.prisca.v1.global.meta.Meta}
1256
- */
1257
- proto.UpdateUserResponse.prototype.getMeta = function() {
1258
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1259
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1260
- };
1261
-
1262
-
1263
- /**
1264
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1265
- * @return {!proto.UpdateUserResponse} returns this
1266
- */
1267
- proto.UpdateUserResponse.prototype.setMeta = function(value) {
1268
- return jspb.Message.setWrapperField(this, 2, value);
1269
- };
1270
-
1271
-
1272
- /**
1273
- * Clears the message field making it undefined.
1274
- * @return {!proto.UpdateUserResponse} returns this
1275
- */
1276
- proto.UpdateUserResponse.prototype.clearMeta = function() {
1277
- return this.setMeta(undefined);
1278
- };
1279
-
1280
-
1281
- /**
1282
- * Returns whether this field is set.
1283
- * @return {boolean}
1284
- */
1285
- proto.UpdateUserResponse.prototype.hasMeta = function() {
1286
- return jspb.Message.getField(this, 2) != null;
1287
- };
1288
-
1289
-
1290
-
1291
- /**
1292
- * List of repeated fields within this message type.
1293
- * @private {!Array<number>}
1294
- * @const
1295
- */
1296
- proto.DeleteUserRequest.repeatedFields_ = [1];
1297
-
1298
-
1299
-
1300
- if (jspb.Message.GENERATE_TO_OBJECT) {
1301
- /**
1302
- * Creates an object representation of this proto.
1303
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1304
- * Optional fields that are not set will be set to undefined.
1305
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1306
- * For the list of reserved names please see:
1307
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1308
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1309
- * JSPB instance for transitional soy proto support:
1310
- * http://goto/soy-param-migration
1311
- * @return {!Object}
1312
- */
1313
- proto.DeleteUserRequest.prototype.toObject = function(opt_includeInstance) {
1314
- return proto.DeleteUserRequest.toObject(opt_includeInstance, this);
1315
- };
1316
-
1317
-
1318
- /**
1319
- * Static version of the {@see toObject} method.
1320
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1321
- * the JSPB instance for transitional soy proto support:
1322
- * http://goto/soy-param-migration
1323
- * @param {!proto.DeleteUserRequest} msg The msg instance to transform.
1324
- * @return {!Object}
1325
- * @suppress {unusedLocalVariables} f is only used for nested messages
1326
- */
1327
- proto.DeleteUserRequest.toObject = function(includeInstance, msg) {
1328
- var f, obj = {
1329
- referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1330
- };
1331
-
1332
- if (includeInstance) {
1333
- obj.$jspbMessageInstance = msg;
1334
- }
1335
- return obj;
1336
- };
1337
- }
1338
-
1339
-
1340
- /**
1341
- * Deserializes binary data (in protobuf wire format).
1342
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1343
- * @return {!proto.DeleteUserRequest}
1344
- */
1345
- proto.DeleteUserRequest.deserializeBinary = function(bytes) {
1346
- var reader = new jspb.BinaryReader(bytes);
1347
- var msg = new proto.DeleteUserRequest;
1348
- return proto.DeleteUserRequest.deserializeBinaryFromReader(msg, reader);
1349
- };
1350
-
1351
-
1352
- /**
1353
- * Deserializes binary data (in protobuf wire format) from the
1354
- * given reader into the given message object.
1355
- * @param {!proto.DeleteUserRequest} msg The message object to deserialize into.
1356
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1357
- * @return {!proto.DeleteUserRequest}
1358
- */
1359
- proto.DeleteUserRequest.deserializeBinaryFromReader = function(msg, reader) {
1360
- while (reader.nextField()) {
1361
- if (reader.isEndGroup()) {
1362
- break;
1363
- }
1364
- var field = reader.getFieldNumber();
1365
- switch (field) {
1366
- case 1:
1367
- var value = /** @type {string} */ (reader.readString());
1368
- msg.addReferenceIds(value);
1369
- break;
1370
- default:
1371
- reader.skipField();
1372
- break;
1373
- }
1374
- }
1375
- return msg;
1376
- };
1377
-
1378
-
1379
- /**
1380
- * Serializes the message to binary data (in protobuf wire format).
1381
- * @return {!Uint8Array}
1382
- */
1383
- proto.DeleteUserRequest.prototype.serializeBinary = function() {
1384
- var writer = new jspb.BinaryWriter();
1385
- proto.DeleteUserRequest.serializeBinaryToWriter(this, writer);
1386
- return writer.getResultBuffer();
1387
- };
1388
-
1389
-
1390
- /**
1391
- * Serializes the given message to binary data (in protobuf wire
1392
- * format), writing to the given BinaryWriter.
1393
- * @param {!proto.DeleteUserRequest} message
1394
- * @param {!jspb.BinaryWriter} writer
1395
- * @suppress {unusedLocalVariables} f is only used for nested messages
1396
- */
1397
- proto.DeleteUserRequest.serializeBinaryToWriter = function(message, writer) {
1398
- var f = undefined;
1399
- f = message.getReferenceIdsList();
1400
- if (f.length > 0) {
1401
- writer.writeRepeatedString(
1402
- 1,
1403
- f
1404
- );
1405
- }
1406
- };
1407
-
1408
-
1409
- /**
1410
- * repeated string reference_ids = 1;
1411
- * @return {!Array<string>}
1412
- */
1413
- proto.DeleteUserRequest.prototype.getReferenceIdsList = function() {
1414
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1415
- };
1416
-
1417
-
1418
- /**
1419
- * @param {!Array<string>} value
1420
- * @return {!proto.DeleteUserRequest} returns this
1421
- */
1422
- proto.DeleteUserRequest.prototype.setReferenceIdsList = function(value) {
1423
- return jspb.Message.setField(this, 1, value || []);
1424
- };
1425
-
1426
-
1427
- /**
1428
- * @param {string} value
1429
- * @param {number=} opt_index
1430
- * @return {!proto.DeleteUserRequest} returns this
1431
- */
1432
- proto.DeleteUserRequest.prototype.addReferenceIds = function(value, opt_index) {
1433
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1434
- };
1435
-
1436
-
1437
- /**
1438
- * Clears the list making it empty but non-null.
1439
- * @return {!proto.DeleteUserRequest} returns this
1440
- */
1441
- proto.DeleteUserRequest.prototype.clearReferenceIdsList = function() {
1442
- return this.setReferenceIdsList([]);
1443
- };
1444
-
1445
-
1446
-
1447
- /**
1448
- * List of repeated fields within this message type.
1449
- * @private {!Array<number>}
1450
- * @const
1451
- */
1452
- proto.DeleteUserResponse.repeatedFields_ = [1];
1453
-
1454
-
1455
-
1456
- if (jspb.Message.GENERATE_TO_OBJECT) {
1457
- /**
1458
- * Creates an object representation of this proto.
1459
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1460
- * Optional fields that are not set will be set to undefined.
1461
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1462
- * For the list of reserved names please see:
1463
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1464
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1465
- * JSPB instance for transitional soy proto support:
1466
- * http://goto/soy-param-migration
1467
- * @return {!Object}
1468
- */
1469
- proto.DeleteUserResponse.prototype.toObject = function(opt_includeInstance) {
1470
- return proto.DeleteUserResponse.toObject(opt_includeInstance, this);
1471
- };
1472
-
1473
-
1474
- /**
1475
- * Static version of the {@see toObject} method.
1476
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1477
- * the JSPB instance for transitional soy proto support:
1478
- * http://goto/soy-param-migration
1479
- * @param {!proto.DeleteUserResponse} msg The msg instance to transform.
1480
- * @return {!Object}
1481
- * @suppress {unusedLocalVariables} f is only used for nested messages
1482
- */
1483
- proto.DeleteUserResponse.toObject = function(includeInstance, msg) {
1484
- var f, obj = {
1485
- referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1486
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1487
- };
1488
-
1489
- if (includeInstance) {
1490
- obj.$jspbMessageInstance = msg;
1491
- }
1492
- return obj;
1493
- };
1494
- }
1495
-
1496
-
1497
- /**
1498
- * Deserializes binary data (in protobuf wire format).
1499
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1500
- * @return {!proto.DeleteUserResponse}
1501
- */
1502
- proto.DeleteUserResponse.deserializeBinary = function(bytes) {
1503
- var reader = new jspb.BinaryReader(bytes);
1504
- var msg = new proto.DeleteUserResponse;
1505
- return proto.DeleteUserResponse.deserializeBinaryFromReader(msg, reader);
1506
- };
1507
-
1508
-
1509
- /**
1510
- * Deserializes binary data (in protobuf wire format) from the
1511
- * given reader into the given message object.
1512
- * @param {!proto.DeleteUserResponse} msg The message object to deserialize into.
1513
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1514
- * @return {!proto.DeleteUserResponse}
1515
- */
1516
- proto.DeleteUserResponse.deserializeBinaryFromReader = function(msg, reader) {
1517
- while (reader.nextField()) {
1518
- if (reader.isEndGroup()) {
1519
- break;
1520
- }
1521
- var field = reader.getFieldNumber();
1522
- switch (field) {
1523
- case 1:
1524
- var value = /** @type {string} */ (reader.readString());
1525
- msg.addReferenceIds(value);
1526
- break;
1527
- case 2:
1528
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1529
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1530
- msg.setMeta(value);
1531
- break;
1532
- default:
1533
- reader.skipField();
1534
- break;
1535
- }
1536
- }
1537
- return msg;
1538
- };
1539
-
1540
-
1541
- /**
1542
- * Serializes the message to binary data (in protobuf wire format).
1543
- * @return {!Uint8Array}
1544
- */
1545
- proto.DeleteUserResponse.prototype.serializeBinary = function() {
1546
- var writer = new jspb.BinaryWriter();
1547
- proto.DeleteUserResponse.serializeBinaryToWriter(this, writer);
1548
- return writer.getResultBuffer();
1549
- };
1550
-
1551
-
1552
- /**
1553
- * Serializes the given message to binary data (in protobuf wire
1554
- * format), writing to the given BinaryWriter.
1555
- * @param {!proto.DeleteUserResponse} message
1556
- * @param {!jspb.BinaryWriter} writer
1557
- * @suppress {unusedLocalVariables} f is only used for nested messages
1558
- */
1559
- proto.DeleteUserResponse.serializeBinaryToWriter = function(message, writer) {
1560
- var f = undefined;
1561
- f = message.getReferenceIdsList();
1562
- if (f.length > 0) {
1563
- writer.writeRepeatedString(
1564
- 1,
1565
- f
1566
- );
1567
- }
1568
- f = message.getMeta();
1569
- if (f != null) {
1570
- writer.writeMessage(
1571
- 2,
1572
- f,
1573
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1574
- );
1575
- }
1576
- };
1577
-
1578
-
1579
- /**
1580
- * repeated string reference_ids = 1;
1581
- * @return {!Array<string>}
1582
- */
1583
- proto.DeleteUserResponse.prototype.getReferenceIdsList = function() {
1584
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1585
- };
1586
-
1587
-
1588
- /**
1589
- * @param {!Array<string>} value
1590
- * @return {!proto.DeleteUserResponse} returns this
1591
- */
1592
- proto.DeleteUserResponse.prototype.setReferenceIdsList = function(value) {
1593
- return jspb.Message.setField(this, 1, value || []);
1594
- };
1595
-
1596
-
1597
- /**
1598
- * @param {string} value
1599
- * @param {number=} opt_index
1600
- * @return {!proto.DeleteUserResponse} returns this
1601
- */
1602
- proto.DeleteUserResponse.prototype.addReferenceIds = function(value, opt_index) {
1603
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1604
- };
1605
-
1606
-
1607
- /**
1608
- * Clears the list making it empty but non-null.
1609
- * @return {!proto.DeleteUserResponse} returns this
1610
- */
1611
- proto.DeleteUserResponse.prototype.clearReferenceIdsList = function() {
1612
- return this.setReferenceIdsList([]);
1613
- };
1614
-
1615
-
1616
- /**
1617
- * optional prisca.v1.global.meta.Meta meta = 2;
1618
- * @return {?proto.prisca.v1.global.meta.Meta}
1619
- */
1620
- proto.DeleteUserResponse.prototype.getMeta = function() {
1621
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1622
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1623
- };
1624
-
1625
-
1626
- /**
1627
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1628
- * @return {!proto.DeleteUserResponse} returns this
1629
- */
1630
- proto.DeleteUserResponse.prototype.setMeta = function(value) {
1631
- return jspb.Message.setWrapperField(this, 2, value);
1632
- };
1633
-
1634
-
1635
- /**
1636
- * Clears the message field making it undefined.
1637
- * @return {!proto.DeleteUserResponse} returns this
1638
- */
1639
- proto.DeleteUserResponse.prototype.clearMeta = function() {
1640
- return this.setMeta(undefined);
1641
- };
1642
-
1643
-
1644
- /**
1645
- * Returns whether this field is set.
1646
- * @return {boolean}
1647
- */
1648
- proto.DeleteUserResponse.prototype.hasMeta = function() {
1649
- return jspb.Message.getField(this, 2) != null;
1650
- };
1651
-
1652
-
1653
- goog.object.extend(exports, proto);