@aldiokta/protocgen 1.1.44 → 1.1.45

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