@aldiokta/protocgen 1.1.45 → 1.1.47

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