@aldiokta/protocgen 1.1.19 → 1.1.21

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 (162) 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 +2674 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2937 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +229 -0
  7. package/prisca/v1/bidding/bidding_pb.js +6335 -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 +2907 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -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 +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3048 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -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 +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +1052 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +144 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2497 -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 +3910 -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 +2605 -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 +3762 -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 +2958 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1188 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3191 -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 +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4180 -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 +2776 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +144 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2105 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  79. package/prisca/v1/core/users/users_pb.js +1246 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7525 -0
  84. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  85. package/prisca/v1/document_type/document_type_pb.js +2746 -0
  86. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  87. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3276 -0
  88. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  89. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  90. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  91. package/prisca/v1/purchase_order/purchase_order_pb.js +4959 -0
  92. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +523 -0
  93. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  94. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  95. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2875 -0
  96. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +145 -0
  97. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2139 -0
  98. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +146 -0
  99. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2183 -0
  100. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  101. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  102. package/prisca/v1/quotation/quotation_grpc_pb.js +152 -0
  103. package/prisca/v1/quotation/quotation_pb.js +2319 -0
  104. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
  105. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
  106. package/prisca/v1/valuation/valuation_grpc_pb.js +365 -0
  107. package/prisca/v1/valuation/valuation_pb.js +7729 -0
  108. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  109. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6333 -0
  110. package/prisca/v1/account_assignment/account_assignment.proto +0 -79
  111. package/prisca/v1/account_group/account_group.proto +0 -86
  112. package/prisca/v1/bidding/bidding.proto +0 -159
  113. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -87
  114. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  115. package/prisca/v1/core/auth/auth.proto +0 -150
  116. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  117. package/prisca/v1/core/company/company.proto +0 -92
  118. package/prisca/v1/core/currency/currency.proto +0 -76
  119. package/prisca/v1/core/department_material/department_material.proto +0 -69
  120. package/prisca/v1/core/employee/employee.proto +0 -129
  121. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  122. package/prisca/v1/core/incoterm/incoterm.proto +0 -76
  123. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -120
  124. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  125. package/prisca/v1/core/job_position/job_position.proto +0 -113
  126. package/prisca/v1/core/job_title/job_title.proto +0 -89
  127. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  128. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -94
  129. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  130. package/prisca/v1/core/location/location.proto +0 -289
  131. package/prisca/v1/core/material/material.proto +0 -131
  132. package/prisca/v1/core/material_group/material_group.proto +0 -85
  133. package/prisca/v1/core/material_type/material_type.proto +0 -86
  134. package/prisca/v1/core/messaging/email_template.proto +0 -75
  135. package/prisca/v1/core/messaging/messaging.proto +0 -29
  136. package/prisca/v1/core/number_range/number_range.proto +0 -89
  137. package/prisca/v1/core/organization/organization.proto +0 -94
  138. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  139. package/prisca/v1/core/price_condition/price_condition.proto +0 -83
  140. package/prisca/v1/core/procurement/procurement.proto +0 -54
  141. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  142. package/prisca/v1/core/report/report.proto +0 -90
  143. package/prisca/v1/core/report/user_report.proto +0 -74
  144. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  145. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -64
  146. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  147. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  148. package/prisca/v1/core/users/users.proto +0 -45
  149. package/prisca/v1/core/work_location/work_location.proto +0 -122
  150. package/prisca/v1/core/workflow/workflow.proto +0 -216
  151. package/prisca/v1/document_type/document_type.proto +0 -80
  152. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -98
  153. package/prisca/v1/global/meta/meta.proto +0 -57
  154. package/prisca/v1/purchase_order/purchase_order.proto +0 -155
  155. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -304
  156. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -87
  157. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -68
  158. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -70
  159. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  160. package/prisca/v1/quotation/quotation.proto +0 -82
  161. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -166
  162. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -225
@@ -0,0 +1,4497 @@
1
+ // source: prisca/v1/core/auth/auth.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_access_manager_access_manager_pb = require('../../../../prisca/v1/core/access_manager/access_manager_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_access_manager_access_manager_pb);
28
+ goog.exportSymbol('proto.AccessApiCredential', null, global);
29
+ goog.exportSymbol('proto.AccessApiManagersResponse', null, global);
30
+ goog.exportSymbol('proto.AccessCreateRequest', null, global);
31
+ goog.exportSymbol('proto.AccessResponse', null, global);
32
+ goog.exportSymbol('proto.AuthVerifyToken', null, global);
33
+ goog.exportSymbol('proto.ChangePasswordRequest', null, global);
34
+ goog.exportSymbol('proto.ChangePasswordResponse', null, global);
35
+ goog.exportSymbol('proto.CheckCompaniesRequest', null, global);
36
+ goog.exportSymbol('proto.CreateUserPayload', null, global);
37
+ goog.exportSymbol('proto.ForgotPassworReq', null, global);
38
+ goog.exportSymbol('proto.GetAccessByIdPayload', null, global);
39
+ goog.exportSymbol('proto.GetListAccessRequest', null, global);
40
+ goog.exportSymbol('proto.GetListUserRequest', null, global);
41
+ goog.exportSymbol('proto.GetListUserResponse', null, global);
42
+ goog.exportSymbol('proto.ListAccessResponse', null, global);
43
+ goog.exportSymbol('proto.LoginRequest', null, global);
44
+ goog.exportSymbol('proto.LoginRequestVendor', null, global);
45
+ goog.exportSymbol('proto.RequestForgotPasswordReq', null, global);
46
+ goog.exportSymbol('proto.RequestForgotResponse', null, global);
47
+ goog.exportSymbol('proto.UpdateAccessPayload', null, global);
48
+ goog.exportSymbol('proto.UpdateUserPayload', null, global);
49
+ goog.exportSymbol('proto.UserResponse', null, global);
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.ForgotPassworReq = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.ForgotPassworReq, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.ForgotPassworReq.displayName = 'proto.ForgotPassworReq';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.RequestForgotPasswordReq = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
+ };
84
+ goog.inherits(proto.RequestForgotPasswordReq, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.RequestForgotPasswordReq.displayName = 'proto.RequestForgotPasswordReq';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.RequestForgotResponse = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.RequestForgotResponse, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.RequestForgotResponse.displayName = 'proto.RequestForgotResponse';
112
+ }
113
+ /**
114
+ * Generated by JsPbCodeGenerator.
115
+ * @param {Array=} opt_data Optional initial data array, typically from a
116
+ * server response, or constructed directly in Javascript. The array is used
117
+ * in place and becomes part of the constructed object. It is not cloned.
118
+ * If no data is provided, the constructed object will be empty, but still
119
+ * valid.
120
+ * @extends {jspb.Message}
121
+ * @constructor
122
+ */
123
+ proto.LoginRequest = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
+ };
126
+ goog.inherits(proto.LoginRequest, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.LoginRequest.displayName = 'proto.LoginRequest';
133
+ }
134
+ /**
135
+ * Generated by JsPbCodeGenerator.
136
+ * @param {Array=} opt_data Optional initial data array, typically from a
137
+ * server response, or constructed directly in Javascript. The array is used
138
+ * in place and becomes part of the constructed object. It is not cloned.
139
+ * If no data is provided, the constructed object will be empty, but still
140
+ * valid.
141
+ * @extends {jspb.Message}
142
+ * @constructor
143
+ */
144
+ proto.LoginRequestVendor = function(opt_data) {
145
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
146
+ };
147
+ goog.inherits(proto.LoginRequestVendor, jspb.Message);
148
+ if (goog.DEBUG && !COMPILED) {
149
+ /**
150
+ * @public
151
+ * @override
152
+ */
153
+ proto.LoginRequestVendor.displayName = 'proto.LoginRequestVendor';
154
+ }
155
+ /**
156
+ * Generated by JsPbCodeGenerator.
157
+ * @param {Array=} opt_data Optional initial data array, typically from a
158
+ * server response, or constructed directly in Javascript. The array is used
159
+ * in place and becomes part of the constructed object. It is not cloned.
160
+ * If no data is provided, the constructed object will be empty, but still
161
+ * valid.
162
+ * @extends {jspb.Message}
163
+ * @constructor
164
+ */
165
+ proto.GetListAccessRequest = function(opt_data) {
166
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
167
+ };
168
+ goog.inherits(proto.GetListAccessRequest, jspb.Message);
169
+ if (goog.DEBUG && !COMPILED) {
170
+ /**
171
+ * @public
172
+ * @override
173
+ */
174
+ proto.GetListAccessRequest.displayName = 'proto.GetListAccessRequest';
175
+ }
176
+ /**
177
+ * Generated by JsPbCodeGenerator.
178
+ * @param {Array=} opt_data Optional initial data array, typically from a
179
+ * server response, or constructed directly in Javascript. The array is used
180
+ * in place and becomes part of the constructed object. It is not cloned.
181
+ * If no data is provided, the constructed object will be empty, but still
182
+ * valid.
183
+ * @extends {jspb.Message}
184
+ * @constructor
185
+ */
186
+ proto.CheckCompaniesRequest = function(opt_data) {
187
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
188
+ };
189
+ goog.inherits(proto.CheckCompaniesRequest, jspb.Message);
190
+ if (goog.DEBUG && !COMPILED) {
191
+ /**
192
+ * @public
193
+ * @override
194
+ */
195
+ proto.CheckCompaniesRequest.displayName = 'proto.CheckCompaniesRequest';
196
+ }
197
+ /**
198
+ * Generated by JsPbCodeGenerator.
199
+ * @param {Array=} opt_data Optional initial data array, typically from a
200
+ * server response, or constructed directly in Javascript. The array is used
201
+ * in place and becomes part of the constructed object. It is not cloned.
202
+ * If no data is provided, the constructed object will be empty, but still
203
+ * valid.
204
+ * @extends {jspb.Message}
205
+ * @constructor
206
+ */
207
+ proto.AccessApiCredential = function(opt_data) {
208
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
209
+ };
210
+ goog.inherits(proto.AccessApiCredential, jspb.Message);
211
+ if (goog.DEBUG && !COMPILED) {
212
+ /**
213
+ * @public
214
+ * @override
215
+ */
216
+ proto.AccessApiCredential.displayName = 'proto.AccessApiCredential';
217
+ }
218
+ /**
219
+ * Generated by JsPbCodeGenerator.
220
+ * @param {Array=} opt_data Optional initial data array, typically from a
221
+ * server response, or constructed directly in Javascript. The array is used
222
+ * in place and becomes part of the constructed object. It is not cloned.
223
+ * If no data is provided, the constructed object will be empty, but still
224
+ * valid.
225
+ * @extends {jspb.Message}
226
+ * @constructor
227
+ */
228
+ proto.AccessCreateRequest = function(opt_data) {
229
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
230
+ };
231
+ goog.inherits(proto.AccessCreateRequest, jspb.Message);
232
+ if (goog.DEBUG && !COMPILED) {
233
+ /**
234
+ * @public
235
+ * @override
236
+ */
237
+ proto.AccessCreateRequest.displayName = 'proto.AccessCreateRequest';
238
+ }
239
+ /**
240
+ * Generated by JsPbCodeGenerator.
241
+ * @param {Array=} opt_data Optional initial data array, typically from a
242
+ * server response, or constructed directly in Javascript. The array is used
243
+ * in place and becomes part of the constructed object. It is not cloned.
244
+ * If no data is provided, the constructed object will be empty, but still
245
+ * valid.
246
+ * @extends {jspb.Message}
247
+ * @constructor
248
+ */
249
+ proto.AuthVerifyToken = function(opt_data) {
250
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
251
+ };
252
+ goog.inherits(proto.AuthVerifyToken, jspb.Message);
253
+ if (goog.DEBUG && !COMPILED) {
254
+ /**
255
+ * @public
256
+ * @override
257
+ */
258
+ proto.AuthVerifyToken.displayName = 'proto.AuthVerifyToken';
259
+ }
260
+ /**
261
+ * Generated by JsPbCodeGenerator.
262
+ * @param {Array=} opt_data Optional initial data array, typically from a
263
+ * server response, or constructed directly in Javascript. The array is used
264
+ * in place and becomes part of the constructed object. It is not cloned.
265
+ * If no data is provided, the constructed object will be empty, but still
266
+ * valid.
267
+ * @extends {jspb.Message}
268
+ * @constructor
269
+ */
270
+ proto.UpdateAccessPayload = function(opt_data) {
271
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
272
+ };
273
+ goog.inherits(proto.UpdateAccessPayload, jspb.Message);
274
+ if (goog.DEBUG && !COMPILED) {
275
+ /**
276
+ * @public
277
+ * @override
278
+ */
279
+ proto.UpdateAccessPayload.displayName = 'proto.UpdateAccessPayload';
280
+ }
281
+ /**
282
+ * Generated by JsPbCodeGenerator.
283
+ * @param {Array=} opt_data Optional initial data array, typically from a
284
+ * server response, or constructed directly in Javascript. The array is used
285
+ * in place and becomes part of the constructed object. It is not cloned.
286
+ * If no data is provided, the constructed object will be empty, but still
287
+ * valid.
288
+ * @extends {jspb.Message}
289
+ * @constructor
290
+ */
291
+ proto.GetAccessByIdPayload = function(opt_data) {
292
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
293
+ };
294
+ goog.inherits(proto.GetAccessByIdPayload, jspb.Message);
295
+ if (goog.DEBUG && !COMPILED) {
296
+ /**
297
+ * @public
298
+ * @override
299
+ */
300
+ proto.GetAccessByIdPayload.displayName = 'proto.GetAccessByIdPayload';
301
+ }
302
+ /**
303
+ * Generated by JsPbCodeGenerator.
304
+ * @param {Array=} opt_data Optional initial data array, typically from a
305
+ * server response, or constructed directly in Javascript. The array is used
306
+ * in place and becomes part of the constructed object. It is not cloned.
307
+ * If no data is provided, the constructed object will be empty, but still
308
+ * valid.
309
+ * @extends {jspb.Message}
310
+ * @constructor
311
+ */
312
+ proto.CreateUserPayload = function(opt_data) {
313
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
314
+ };
315
+ goog.inherits(proto.CreateUserPayload, jspb.Message);
316
+ if (goog.DEBUG && !COMPILED) {
317
+ /**
318
+ * @public
319
+ * @override
320
+ */
321
+ proto.CreateUserPayload.displayName = 'proto.CreateUserPayload';
322
+ }
323
+ /**
324
+ * Generated by JsPbCodeGenerator.
325
+ * @param {Array=} opt_data Optional initial data array, typically from a
326
+ * server response, or constructed directly in Javascript. The array is used
327
+ * in place and becomes part of the constructed object. It is not cloned.
328
+ * If no data is provided, the constructed object will be empty, but still
329
+ * valid.
330
+ * @extends {jspb.Message}
331
+ * @constructor
332
+ */
333
+ proto.UpdateUserPayload = function(opt_data) {
334
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
335
+ };
336
+ goog.inherits(proto.UpdateUserPayload, jspb.Message);
337
+ if (goog.DEBUG && !COMPILED) {
338
+ /**
339
+ * @public
340
+ * @override
341
+ */
342
+ proto.UpdateUserPayload.displayName = 'proto.UpdateUserPayload';
343
+ }
344
+ /**
345
+ * Generated by JsPbCodeGenerator.
346
+ * @param {Array=} opt_data Optional initial data array, typically from a
347
+ * server response, or constructed directly in Javascript. The array is used
348
+ * in place and becomes part of the constructed object. It is not cloned.
349
+ * If no data is provided, the constructed object will be empty, but still
350
+ * valid.
351
+ * @extends {jspb.Message}
352
+ * @constructor
353
+ */
354
+ proto.ChangePasswordRequest = function(opt_data) {
355
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
356
+ };
357
+ goog.inherits(proto.ChangePasswordRequest, jspb.Message);
358
+ if (goog.DEBUG && !COMPILED) {
359
+ /**
360
+ * @public
361
+ * @override
362
+ */
363
+ proto.ChangePasswordRequest.displayName = 'proto.ChangePasswordRequest';
364
+ }
365
+ /**
366
+ * Generated by JsPbCodeGenerator.
367
+ * @param {Array=} opt_data Optional initial data array, typically from a
368
+ * server response, or constructed directly in Javascript. The array is used
369
+ * in place and becomes part of the constructed object. It is not cloned.
370
+ * If no data is provided, the constructed object will be empty, but still
371
+ * valid.
372
+ * @extends {jspb.Message}
373
+ * @constructor
374
+ */
375
+ proto.UserResponse = function(opt_data) {
376
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.UserResponse.repeatedFields_, null);
377
+ };
378
+ goog.inherits(proto.UserResponse, jspb.Message);
379
+ if (goog.DEBUG && !COMPILED) {
380
+ /**
381
+ * @public
382
+ * @override
383
+ */
384
+ proto.UserResponse.displayName = 'proto.UserResponse';
385
+ }
386
+ /**
387
+ * Generated by JsPbCodeGenerator.
388
+ * @param {Array=} opt_data Optional initial data array, typically from a
389
+ * server response, or constructed directly in Javascript. The array is used
390
+ * in place and becomes part of the constructed object. It is not cloned.
391
+ * If no data is provided, the constructed object will be empty, but still
392
+ * valid.
393
+ * @extends {jspb.Message}
394
+ * @constructor
395
+ */
396
+ proto.AccessResponse = function(opt_data) {
397
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
398
+ };
399
+ goog.inherits(proto.AccessResponse, jspb.Message);
400
+ if (goog.DEBUG && !COMPILED) {
401
+ /**
402
+ * @public
403
+ * @override
404
+ */
405
+ proto.AccessResponse.displayName = 'proto.AccessResponse';
406
+ }
407
+ /**
408
+ * Generated by JsPbCodeGenerator.
409
+ * @param {Array=} opt_data Optional initial data array, typically from a
410
+ * server response, or constructed directly in Javascript. The array is used
411
+ * in place and becomes part of the constructed object. It is not cloned.
412
+ * If no data is provided, the constructed object will be empty, but still
413
+ * valid.
414
+ * @extends {jspb.Message}
415
+ * @constructor
416
+ */
417
+ proto.AccessApiManagersResponse = function(opt_data) {
418
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
419
+ };
420
+ goog.inherits(proto.AccessApiManagersResponse, jspb.Message);
421
+ if (goog.DEBUG && !COMPILED) {
422
+ /**
423
+ * @public
424
+ * @override
425
+ */
426
+ proto.AccessApiManagersResponse.displayName = 'proto.AccessApiManagersResponse';
427
+ }
428
+ /**
429
+ * Generated by JsPbCodeGenerator.
430
+ * @param {Array=} opt_data Optional initial data array, typically from a
431
+ * server response, or constructed directly in Javascript. The array is used
432
+ * in place and becomes part of the constructed object. It is not cloned.
433
+ * If no data is provided, the constructed object will be empty, but still
434
+ * valid.
435
+ * @extends {jspb.Message}
436
+ * @constructor
437
+ */
438
+ proto.ListAccessResponse = function(opt_data) {
439
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ListAccessResponse.repeatedFields_, null);
440
+ };
441
+ goog.inherits(proto.ListAccessResponse, jspb.Message);
442
+ if (goog.DEBUG && !COMPILED) {
443
+ /**
444
+ * @public
445
+ * @override
446
+ */
447
+ proto.ListAccessResponse.displayName = 'proto.ListAccessResponse';
448
+ }
449
+ /**
450
+ * Generated by JsPbCodeGenerator.
451
+ * @param {Array=} opt_data Optional initial data array, typically from a
452
+ * server response, or constructed directly in Javascript. The array is used
453
+ * in place and becomes part of the constructed object. It is not cloned.
454
+ * If no data is provided, the constructed object will be empty, but still
455
+ * valid.
456
+ * @extends {jspb.Message}
457
+ * @constructor
458
+ */
459
+ proto.ChangePasswordResponse = function(opt_data) {
460
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
461
+ };
462
+ goog.inherits(proto.ChangePasswordResponse, jspb.Message);
463
+ if (goog.DEBUG && !COMPILED) {
464
+ /**
465
+ * @public
466
+ * @override
467
+ */
468
+ proto.ChangePasswordResponse.displayName = 'proto.ChangePasswordResponse';
469
+ }
470
+ /**
471
+ * Generated by JsPbCodeGenerator.
472
+ * @param {Array=} opt_data Optional initial data array, typically from a
473
+ * server response, or constructed directly in Javascript. The array is used
474
+ * in place and becomes part of the constructed object. It is not cloned.
475
+ * If no data is provided, the constructed object will be empty, but still
476
+ * valid.
477
+ * @extends {jspb.Message}
478
+ * @constructor
479
+ */
480
+ proto.GetListUserRequest = function(opt_data) {
481
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
482
+ };
483
+ goog.inherits(proto.GetListUserRequest, jspb.Message);
484
+ if (goog.DEBUG && !COMPILED) {
485
+ /**
486
+ * @public
487
+ * @override
488
+ */
489
+ proto.GetListUserRequest.displayName = 'proto.GetListUserRequest';
490
+ }
491
+ /**
492
+ * Generated by JsPbCodeGenerator.
493
+ * @param {Array=} opt_data Optional initial data array, typically from a
494
+ * server response, or constructed directly in Javascript. The array is used
495
+ * in place and becomes part of the constructed object. It is not cloned.
496
+ * If no data is provided, the constructed object will be empty, but still
497
+ * valid.
498
+ * @extends {jspb.Message}
499
+ * @constructor
500
+ */
501
+ proto.GetListUserResponse = function(opt_data) {
502
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListUserResponse.repeatedFields_, null);
503
+ };
504
+ goog.inherits(proto.GetListUserResponse, jspb.Message);
505
+ if (goog.DEBUG && !COMPILED) {
506
+ /**
507
+ * @public
508
+ * @override
509
+ */
510
+ proto.GetListUserResponse.displayName = 'proto.GetListUserResponse';
511
+ }
512
+
513
+
514
+
515
+ if (jspb.Message.GENERATE_TO_OBJECT) {
516
+ /**
517
+ * Creates an object representation of this proto.
518
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
519
+ * Optional fields that are not set will be set to undefined.
520
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
521
+ * For the list of reserved names please see:
522
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
523
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
524
+ * JSPB instance for transitional soy proto support:
525
+ * http://goto/soy-param-migration
526
+ * @return {!Object}
527
+ */
528
+ proto.ForgotPassworReq.prototype.toObject = function(opt_includeInstance) {
529
+ return proto.ForgotPassworReq.toObject(opt_includeInstance, this);
530
+ };
531
+
532
+
533
+ /**
534
+ * Static version of the {@see toObject} method.
535
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
536
+ * the JSPB instance for transitional soy proto support:
537
+ * http://goto/soy-param-migration
538
+ * @param {!proto.ForgotPassworReq} msg The msg instance to transform.
539
+ * @return {!Object}
540
+ * @suppress {unusedLocalVariables} f is only used for nested messages
541
+ */
542
+ proto.ForgotPassworReq.toObject = function(includeInstance, msg) {
543
+ var f, obj = {
544
+ password: jspb.Message.getFieldWithDefault(msg, 1, "")
545
+ };
546
+
547
+ if (includeInstance) {
548
+ obj.$jspbMessageInstance = msg;
549
+ }
550
+ return obj;
551
+ };
552
+ }
553
+
554
+
555
+ /**
556
+ * Deserializes binary data (in protobuf wire format).
557
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
558
+ * @return {!proto.ForgotPassworReq}
559
+ */
560
+ proto.ForgotPassworReq.deserializeBinary = function(bytes) {
561
+ var reader = new jspb.BinaryReader(bytes);
562
+ var msg = new proto.ForgotPassworReq;
563
+ return proto.ForgotPassworReq.deserializeBinaryFromReader(msg, reader);
564
+ };
565
+
566
+
567
+ /**
568
+ * Deserializes binary data (in protobuf wire format) from the
569
+ * given reader into the given message object.
570
+ * @param {!proto.ForgotPassworReq} msg The message object to deserialize into.
571
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
572
+ * @return {!proto.ForgotPassworReq}
573
+ */
574
+ proto.ForgotPassworReq.deserializeBinaryFromReader = function(msg, reader) {
575
+ while (reader.nextField()) {
576
+ if (reader.isEndGroup()) {
577
+ break;
578
+ }
579
+ var field = reader.getFieldNumber();
580
+ switch (field) {
581
+ case 1:
582
+ var value = /** @type {string} */ (reader.readString());
583
+ msg.setPassword(value);
584
+ break;
585
+ default:
586
+ reader.skipField();
587
+ break;
588
+ }
589
+ }
590
+ return msg;
591
+ };
592
+
593
+
594
+ /**
595
+ * Serializes the message to binary data (in protobuf wire format).
596
+ * @return {!Uint8Array}
597
+ */
598
+ proto.ForgotPassworReq.prototype.serializeBinary = function() {
599
+ var writer = new jspb.BinaryWriter();
600
+ proto.ForgotPassworReq.serializeBinaryToWriter(this, writer);
601
+ return writer.getResultBuffer();
602
+ };
603
+
604
+
605
+ /**
606
+ * Serializes the given message to binary data (in protobuf wire
607
+ * format), writing to the given BinaryWriter.
608
+ * @param {!proto.ForgotPassworReq} message
609
+ * @param {!jspb.BinaryWriter} writer
610
+ * @suppress {unusedLocalVariables} f is only used for nested messages
611
+ */
612
+ proto.ForgotPassworReq.serializeBinaryToWriter = function(message, writer) {
613
+ var f = undefined;
614
+ f = message.getPassword();
615
+ if (f.length > 0) {
616
+ writer.writeString(
617
+ 1,
618
+ f
619
+ );
620
+ }
621
+ };
622
+
623
+
624
+ /**
625
+ * optional string password = 1;
626
+ * @return {string}
627
+ */
628
+ proto.ForgotPassworReq.prototype.getPassword = function() {
629
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
630
+ };
631
+
632
+
633
+ /**
634
+ * @param {string} value
635
+ * @return {!proto.ForgotPassworReq} returns this
636
+ */
637
+ proto.ForgotPassworReq.prototype.setPassword = function(value) {
638
+ return jspb.Message.setProto3StringField(this, 1, value);
639
+ };
640
+
641
+
642
+
643
+
644
+
645
+ if (jspb.Message.GENERATE_TO_OBJECT) {
646
+ /**
647
+ * Creates an object representation of this proto.
648
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
649
+ * Optional fields that are not set will be set to undefined.
650
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
651
+ * For the list of reserved names please see:
652
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
653
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
654
+ * JSPB instance for transitional soy proto support:
655
+ * http://goto/soy-param-migration
656
+ * @return {!Object}
657
+ */
658
+ proto.RequestForgotPasswordReq.prototype.toObject = function(opt_includeInstance) {
659
+ return proto.RequestForgotPasswordReq.toObject(opt_includeInstance, this);
660
+ };
661
+
662
+
663
+ /**
664
+ * Static version of the {@see toObject} method.
665
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
666
+ * the JSPB instance for transitional soy proto support:
667
+ * http://goto/soy-param-migration
668
+ * @param {!proto.RequestForgotPasswordReq} msg The msg instance to transform.
669
+ * @return {!Object}
670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
671
+ */
672
+ proto.RequestForgotPasswordReq.toObject = function(includeInstance, msg) {
673
+ var f, obj = {
674
+ email: jspb.Message.getFieldWithDefault(msg, 1, "")
675
+ };
676
+
677
+ if (includeInstance) {
678
+ obj.$jspbMessageInstance = msg;
679
+ }
680
+ return obj;
681
+ };
682
+ }
683
+
684
+
685
+ /**
686
+ * Deserializes binary data (in protobuf wire format).
687
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
688
+ * @return {!proto.RequestForgotPasswordReq}
689
+ */
690
+ proto.RequestForgotPasswordReq.deserializeBinary = function(bytes) {
691
+ var reader = new jspb.BinaryReader(bytes);
692
+ var msg = new proto.RequestForgotPasswordReq;
693
+ return proto.RequestForgotPasswordReq.deserializeBinaryFromReader(msg, reader);
694
+ };
695
+
696
+
697
+ /**
698
+ * Deserializes binary data (in protobuf wire format) from the
699
+ * given reader into the given message object.
700
+ * @param {!proto.RequestForgotPasswordReq} msg The message object to deserialize into.
701
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
702
+ * @return {!proto.RequestForgotPasswordReq}
703
+ */
704
+ proto.RequestForgotPasswordReq.deserializeBinaryFromReader = function(msg, reader) {
705
+ while (reader.nextField()) {
706
+ if (reader.isEndGroup()) {
707
+ break;
708
+ }
709
+ var field = reader.getFieldNumber();
710
+ switch (field) {
711
+ case 1:
712
+ var value = /** @type {string} */ (reader.readString());
713
+ msg.setEmail(value);
714
+ break;
715
+ default:
716
+ reader.skipField();
717
+ break;
718
+ }
719
+ }
720
+ return msg;
721
+ };
722
+
723
+
724
+ /**
725
+ * Serializes the message to binary data (in protobuf wire format).
726
+ * @return {!Uint8Array}
727
+ */
728
+ proto.RequestForgotPasswordReq.prototype.serializeBinary = function() {
729
+ var writer = new jspb.BinaryWriter();
730
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter(this, writer);
731
+ return writer.getResultBuffer();
732
+ };
733
+
734
+
735
+ /**
736
+ * Serializes the given message to binary data (in protobuf wire
737
+ * format), writing to the given BinaryWriter.
738
+ * @param {!proto.RequestForgotPasswordReq} message
739
+ * @param {!jspb.BinaryWriter} writer
740
+ * @suppress {unusedLocalVariables} f is only used for nested messages
741
+ */
742
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter = function(message, writer) {
743
+ var f = undefined;
744
+ f = message.getEmail();
745
+ if (f.length > 0) {
746
+ writer.writeString(
747
+ 1,
748
+ f
749
+ );
750
+ }
751
+ };
752
+
753
+
754
+ /**
755
+ * optional string email = 1;
756
+ * @return {string}
757
+ */
758
+ proto.RequestForgotPasswordReq.prototype.getEmail = function() {
759
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
760
+ };
761
+
762
+
763
+ /**
764
+ * @param {string} value
765
+ * @return {!proto.RequestForgotPasswordReq} returns this
766
+ */
767
+ proto.RequestForgotPasswordReq.prototype.setEmail = function(value) {
768
+ return jspb.Message.setProto3StringField(this, 1, value);
769
+ };
770
+
771
+
772
+
773
+
774
+
775
+ if (jspb.Message.GENERATE_TO_OBJECT) {
776
+ /**
777
+ * Creates an object representation of this proto.
778
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
779
+ * Optional fields that are not set will be set to undefined.
780
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
781
+ * For the list of reserved names please see:
782
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
783
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
784
+ * JSPB instance for transitional soy proto support:
785
+ * http://goto/soy-param-migration
786
+ * @return {!Object}
787
+ */
788
+ proto.RequestForgotResponse.prototype.toObject = function(opt_includeInstance) {
789
+ return proto.RequestForgotResponse.toObject(opt_includeInstance, this);
790
+ };
791
+
792
+
793
+ /**
794
+ * Static version of the {@see toObject} method.
795
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
796
+ * the JSPB instance for transitional soy proto support:
797
+ * http://goto/soy-param-migration
798
+ * @param {!proto.RequestForgotResponse} msg The msg instance to transform.
799
+ * @return {!Object}
800
+ * @suppress {unusedLocalVariables} f is only used for nested messages
801
+ */
802
+ proto.RequestForgotResponse.toObject = function(includeInstance, msg) {
803
+ var f, obj = {
804
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
805
+ };
806
+
807
+ if (includeInstance) {
808
+ obj.$jspbMessageInstance = msg;
809
+ }
810
+ return obj;
811
+ };
812
+ }
813
+
814
+
815
+ /**
816
+ * Deserializes binary data (in protobuf wire format).
817
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
818
+ * @return {!proto.RequestForgotResponse}
819
+ */
820
+ proto.RequestForgotResponse.deserializeBinary = function(bytes) {
821
+ var reader = new jspb.BinaryReader(bytes);
822
+ var msg = new proto.RequestForgotResponse;
823
+ return proto.RequestForgotResponse.deserializeBinaryFromReader(msg, reader);
824
+ };
825
+
826
+
827
+ /**
828
+ * Deserializes binary data (in protobuf wire format) from the
829
+ * given reader into the given message object.
830
+ * @param {!proto.RequestForgotResponse} msg The message object to deserialize into.
831
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
832
+ * @return {!proto.RequestForgotResponse}
833
+ */
834
+ proto.RequestForgotResponse.deserializeBinaryFromReader = function(msg, reader) {
835
+ while (reader.nextField()) {
836
+ if (reader.isEndGroup()) {
837
+ break;
838
+ }
839
+ var field = reader.getFieldNumber();
840
+ switch (field) {
841
+ case 1:
842
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
843
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
844
+ msg.setMeta(value);
845
+ break;
846
+ default:
847
+ reader.skipField();
848
+ break;
849
+ }
850
+ }
851
+ return msg;
852
+ };
853
+
854
+
855
+ /**
856
+ * Serializes the message to binary data (in protobuf wire format).
857
+ * @return {!Uint8Array}
858
+ */
859
+ proto.RequestForgotResponse.prototype.serializeBinary = function() {
860
+ var writer = new jspb.BinaryWriter();
861
+ proto.RequestForgotResponse.serializeBinaryToWriter(this, writer);
862
+ return writer.getResultBuffer();
863
+ };
864
+
865
+
866
+ /**
867
+ * Serializes the given message to binary data (in protobuf wire
868
+ * format), writing to the given BinaryWriter.
869
+ * @param {!proto.RequestForgotResponse} message
870
+ * @param {!jspb.BinaryWriter} writer
871
+ * @suppress {unusedLocalVariables} f is only used for nested messages
872
+ */
873
+ proto.RequestForgotResponse.serializeBinaryToWriter = function(message, writer) {
874
+ var f = undefined;
875
+ f = message.getMeta();
876
+ if (f != null) {
877
+ writer.writeMessage(
878
+ 1,
879
+ f,
880
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
881
+ );
882
+ }
883
+ };
884
+
885
+
886
+ /**
887
+ * optional prisca.v1.global.meta.Meta meta = 1;
888
+ * @return {?proto.prisca.v1.global.meta.Meta}
889
+ */
890
+ proto.RequestForgotResponse.prototype.getMeta = function() {
891
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
892
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
893
+ };
894
+
895
+
896
+ /**
897
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
898
+ * @return {!proto.RequestForgotResponse} returns this
899
+ */
900
+ proto.RequestForgotResponse.prototype.setMeta = function(value) {
901
+ return jspb.Message.setWrapperField(this, 1, value);
902
+ };
903
+
904
+
905
+ /**
906
+ * Clears the message field making it undefined.
907
+ * @return {!proto.RequestForgotResponse} returns this
908
+ */
909
+ proto.RequestForgotResponse.prototype.clearMeta = function() {
910
+ return this.setMeta(undefined);
911
+ };
912
+
913
+
914
+ /**
915
+ * Returns whether this field is set.
916
+ * @return {boolean}
917
+ */
918
+ proto.RequestForgotResponse.prototype.hasMeta = function() {
919
+ return jspb.Message.getField(this, 1) != null;
920
+ };
921
+
922
+
923
+
924
+
925
+
926
+ if (jspb.Message.GENERATE_TO_OBJECT) {
927
+ /**
928
+ * Creates an object representation of this proto.
929
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
930
+ * Optional fields that are not set will be set to undefined.
931
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
932
+ * For the list of reserved names please see:
933
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
934
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
935
+ * JSPB instance for transitional soy proto support:
936
+ * http://goto/soy-param-migration
937
+ * @return {!Object}
938
+ */
939
+ proto.LoginRequest.prototype.toObject = function(opt_includeInstance) {
940
+ return proto.LoginRequest.toObject(opt_includeInstance, this);
941
+ };
942
+
943
+
944
+ /**
945
+ * Static version of the {@see toObject} method.
946
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
947
+ * the JSPB instance for transitional soy proto support:
948
+ * http://goto/soy-param-migration
949
+ * @param {!proto.LoginRequest} msg The msg instance to transform.
950
+ * @return {!Object}
951
+ * @suppress {unusedLocalVariables} f is only used for nested messages
952
+ */
953
+ proto.LoginRequest.toObject = function(includeInstance, msg) {
954
+ var f, obj = {
955
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
956
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
957
+ };
958
+
959
+ if (includeInstance) {
960
+ obj.$jspbMessageInstance = msg;
961
+ }
962
+ return obj;
963
+ };
964
+ }
965
+
966
+
967
+ /**
968
+ * Deserializes binary data (in protobuf wire format).
969
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
970
+ * @return {!proto.LoginRequest}
971
+ */
972
+ proto.LoginRequest.deserializeBinary = function(bytes) {
973
+ var reader = new jspb.BinaryReader(bytes);
974
+ var msg = new proto.LoginRequest;
975
+ return proto.LoginRequest.deserializeBinaryFromReader(msg, reader);
976
+ };
977
+
978
+
979
+ /**
980
+ * Deserializes binary data (in protobuf wire format) from the
981
+ * given reader into the given message object.
982
+ * @param {!proto.LoginRequest} msg The message object to deserialize into.
983
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
984
+ * @return {!proto.LoginRequest}
985
+ */
986
+ proto.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
987
+ while (reader.nextField()) {
988
+ if (reader.isEndGroup()) {
989
+ break;
990
+ }
991
+ var field = reader.getFieldNumber();
992
+ switch (field) {
993
+ case 1:
994
+ var value = /** @type {string} */ (reader.readString());
995
+ msg.setEmail(value);
996
+ break;
997
+ case 2:
998
+ var value = /** @type {string} */ (reader.readString());
999
+ msg.setPassword(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.LoginRequest.prototype.serializeBinary = function() {
1015
+ var writer = new jspb.BinaryWriter();
1016
+ proto.LoginRequest.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.LoginRequest} message
1025
+ * @param {!jspb.BinaryWriter} writer
1026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1027
+ */
1028
+ proto.LoginRequest.serializeBinaryToWriter = function(message, writer) {
1029
+ var f = undefined;
1030
+ f = message.getEmail();
1031
+ if (f.length > 0) {
1032
+ writer.writeString(
1033
+ 1,
1034
+ f
1035
+ );
1036
+ }
1037
+ f = message.getPassword();
1038
+ if (f.length > 0) {
1039
+ writer.writeString(
1040
+ 2,
1041
+ f
1042
+ );
1043
+ }
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * optional string email = 1;
1049
+ * @return {string}
1050
+ */
1051
+ proto.LoginRequest.prototype.getEmail = function() {
1052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * @param {string} value
1058
+ * @return {!proto.LoginRequest} returns this
1059
+ */
1060
+ proto.LoginRequest.prototype.setEmail = function(value) {
1061
+ return jspb.Message.setProto3StringField(this, 1, value);
1062
+ };
1063
+
1064
+
1065
+ /**
1066
+ * optional string password = 2;
1067
+ * @return {string}
1068
+ */
1069
+ proto.LoginRequest.prototype.getPassword = function() {
1070
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * @param {string} value
1076
+ * @return {!proto.LoginRequest} returns this
1077
+ */
1078
+ proto.LoginRequest.prototype.setPassword = function(value) {
1079
+ return jspb.Message.setProto3StringField(this, 2, value);
1080
+ };
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1087
+ /**
1088
+ * Creates an object representation of this proto.
1089
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1090
+ * Optional fields that are not set will be set to undefined.
1091
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1092
+ * For the list of reserved names please see:
1093
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1094
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1095
+ * JSPB instance for transitional soy proto support:
1096
+ * http://goto/soy-param-migration
1097
+ * @return {!Object}
1098
+ */
1099
+ proto.LoginRequestVendor.prototype.toObject = function(opt_includeInstance) {
1100
+ return proto.LoginRequestVendor.toObject(opt_includeInstance, this);
1101
+ };
1102
+
1103
+
1104
+ /**
1105
+ * Static version of the {@see toObject} method.
1106
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1107
+ * the JSPB instance for transitional soy proto support:
1108
+ * http://goto/soy-param-migration
1109
+ * @param {!proto.LoginRequestVendor} msg The msg instance to transform.
1110
+ * @return {!Object}
1111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1112
+ */
1113
+ proto.LoginRequestVendor.toObject = function(includeInstance, msg) {
1114
+ var f, obj = {
1115
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
1116
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
1117
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
1118
+ };
1119
+
1120
+ if (includeInstance) {
1121
+ obj.$jspbMessageInstance = msg;
1122
+ }
1123
+ return obj;
1124
+ };
1125
+ }
1126
+
1127
+
1128
+ /**
1129
+ * Deserializes binary data (in protobuf wire format).
1130
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1131
+ * @return {!proto.LoginRequestVendor}
1132
+ */
1133
+ proto.LoginRequestVendor.deserializeBinary = function(bytes) {
1134
+ var reader = new jspb.BinaryReader(bytes);
1135
+ var msg = new proto.LoginRequestVendor;
1136
+ return proto.LoginRequestVendor.deserializeBinaryFromReader(msg, reader);
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * Deserializes binary data (in protobuf wire format) from the
1142
+ * given reader into the given message object.
1143
+ * @param {!proto.LoginRequestVendor} msg The message object to deserialize into.
1144
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1145
+ * @return {!proto.LoginRequestVendor}
1146
+ */
1147
+ proto.LoginRequestVendor.deserializeBinaryFromReader = function(msg, reader) {
1148
+ while (reader.nextField()) {
1149
+ if (reader.isEndGroup()) {
1150
+ break;
1151
+ }
1152
+ var field = reader.getFieldNumber();
1153
+ switch (field) {
1154
+ case 1:
1155
+ var value = /** @type {string} */ (reader.readString());
1156
+ msg.setEmail(value);
1157
+ break;
1158
+ case 2:
1159
+ var value = /** @type {string} */ (reader.readString());
1160
+ msg.setPassword(value);
1161
+ break;
1162
+ case 3:
1163
+ var value = /** @type {string} */ (reader.readString());
1164
+ msg.setVendorReferencesId(value);
1165
+ break;
1166
+ default:
1167
+ reader.skipField();
1168
+ break;
1169
+ }
1170
+ }
1171
+ return msg;
1172
+ };
1173
+
1174
+
1175
+ /**
1176
+ * Serializes the message to binary data (in protobuf wire format).
1177
+ * @return {!Uint8Array}
1178
+ */
1179
+ proto.LoginRequestVendor.prototype.serializeBinary = function() {
1180
+ var writer = new jspb.BinaryWriter();
1181
+ proto.LoginRequestVendor.serializeBinaryToWriter(this, writer);
1182
+ return writer.getResultBuffer();
1183
+ };
1184
+
1185
+
1186
+ /**
1187
+ * Serializes the given message to binary data (in protobuf wire
1188
+ * format), writing to the given BinaryWriter.
1189
+ * @param {!proto.LoginRequestVendor} message
1190
+ * @param {!jspb.BinaryWriter} writer
1191
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1192
+ */
1193
+ proto.LoginRequestVendor.serializeBinaryToWriter = function(message, writer) {
1194
+ var f = undefined;
1195
+ f = message.getEmail();
1196
+ if (f.length > 0) {
1197
+ writer.writeString(
1198
+ 1,
1199
+ f
1200
+ );
1201
+ }
1202
+ f = message.getPassword();
1203
+ if (f.length > 0) {
1204
+ writer.writeString(
1205
+ 2,
1206
+ f
1207
+ );
1208
+ }
1209
+ f = message.getVendorReferencesId();
1210
+ if (f.length > 0) {
1211
+ writer.writeString(
1212
+ 3,
1213
+ f
1214
+ );
1215
+ }
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * optional string email = 1;
1221
+ * @return {string}
1222
+ */
1223
+ proto.LoginRequestVendor.prototype.getEmail = function() {
1224
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1225
+ };
1226
+
1227
+
1228
+ /**
1229
+ * @param {string} value
1230
+ * @return {!proto.LoginRequestVendor} returns this
1231
+ */
1232
+ proto.LoginRequestVendor.prototype.setEmail = function(value) {
1233
+ return jspb.Message.setProto3StringField(this, 1, value);
1234
+ };
1235
+
1236
+
1237
+ /**
1238
+ * optional string password = 2;
1239
+ * @return {string}
1240
+ */
1241
+ proto.LoginRequestVendor.prototype.getPassword = function() {
1242
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * @param {string} value
1248
+ * @return {!proto.LoginRequestVendor} returns this
1249
+ */
1250
+ proto.LoginRequestVendor.prototype.setPassword = function(value) {
1251
+ return jspb.Message.setProto3StringField(this, 2, value);
1252
+ };
1253
+
1254
+
1255
+ /**
1256
+ * optional string vendor_references_id = 3;
1257
+ * @return {string}
1258
+ */
1259
+ proto.LoginRequestVendor.prototype.getVendorReferencesId = function() {
1260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * @param {string} value
1266
+ * @return {!proto.LoginRequestVendor} returns this
1267
+ */
1268
+ proto.LoginRequestVendor.prototype.setVendorReferencesId = function(value) {
1269
+ return jspb.Message.setProto3StringField(this, 3, value);
1270
+ };
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1277
+ /**
1278
+ * Creates an object representation of this proto.
1279
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1280
+ * Optional fields that are not set will be set to undefined.
1281
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1282
+ * For the list of reserved names please see:
1283
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1284
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1285
+ * JSPB instance for transitional soy proto support:
1286
+ * http://goto/soy-param-migration
1287
+ * @return {!Object}
1288
+ */
1289
+ proto.GetListAccessRequest.prototype.toObject = function(opt_includeInstance) {
1290
+ return proto.GetListAccessRequest.toObject(opt_includeInstance, this);
1291
+ };
1292
+
1293
+
1294
+ /**
1295
+ * Static version of the {@see toObject} method.
1296
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1297
+ * the JSPB instance for transitional soy proto support:
1298
+ * http://goto/soy-param-migration
1299
+ * @param {!proto.GetListAccessRequest} msg The msg instance to transform.
1300
+ * @return {!Object}
1301
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1302
+ */
1303
+ proto.GetListAccessRequest.toObject = function(includeInstance, msg) {
1304
+ var f, obj = {
1305
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1306
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
1307
+ };
1308
+
1309
+ if (includeInstance) {
1310
+ obj.$jspbMessageInstance = msg;
1311
+ }
1312
+ return obj;
1313
+ };
1314
+ }
1315
+
1316
+
1317
+ /**
1318
+ * Deserializes binary data (in protobuf wire format).
1319
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1320
+ * @return {!proto.GetListAccessRequest}
1321
+ */
1322
+ proto.GetListAccessRequest.deserializeBinary = function(bytes) {
1323
+ var reader = new jspb.BinaryReader(bytes);
1324
+ var msg = new proto.GetListAccessRequest;
1325
+ return proto.GetListAccessRequest.deserializeBinaryFromReader(msg, reader);
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * Deserializes binary data (in protobuf wire format) from the
1331
+ * given reader into the given message object.
1332
+ * @param {!proto.GetListAccessRequest} msg The message object to deserialize into.
1333
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1334
+ * @return {!proto.GetListAccessRequest}
1335
+ */
1336
+ proto.GetListAccessRequest.deserializeBinaryFromReader = function(msg, reader) {
1337
+ while (reader.nextField()) {
1338
+ if (reader.isEndGroup()) {
1339
+ break;
1340
+ }
1341
+ var field = reader.getFieldNumber();
1342
+ switch (field) {
1343
+ case 1:
1344
+ var value = /** @type {number} */ (reader.readInt64());
1345
+ msg.setLimit(value);
1346
+ break;
1347
+ case 2:
1348
+ var value = /** @type {number} */ (reader.readInt64());
1349
+ msg.setOffset(value);
1350
+ break;
1351
+ default:
1352
+ reader.skipField();
1353
+ break;
1354
+ }
1355
+ }
1356
+ return msg;
1357
+ };
1358
+
1359
+
1360
+ /**
1361
+ * Serializes the message to binary data (in protobuf wire format).
1362
+ * @return {!Uint8Array}
1363
+ */
1364
+ proto.GetListAccessRequest.prototype.serializeBinary = function() {
1365
+ var writer = new jspb.BinaryWriter();
1366
+ proto.GetListAccessRequest.serializeBinaryToWriter(this, writer);
1367
+ return writer.getResultBuffer();
1368
+ };
1369
+
1370
+
1371
+ /**
1372
+ * Serializes the given message to binary data (in protobuf wire
1373
+ * format), writing to the given BinaryWriter.
1374
+ * @param {!proto.GetListAccessRequest} message
1375
+ * @param {!jspb.BinaryWriter} writer
1376
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1377
+ */
1378
+ proto.GetListAccessRequest.serializeBinaryToWriter = function(message, writer) {
1379
+ var f = undefined;
1380
+ f = message.getLimit();
1381
+ if (f !== 0) {
1382
+ writer.writeInt64(
1383
+ 1,
1384
+ f
1385
+ );
1386
+ }
1387
+ f = message.getOffset();
1388
+ if (f !== 0) {
1389
+ writer.writeInt64(
1390
+ 2,
1391
+ f
1392
+ );
1393
+ }
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * optional int64 limit = 1;
1399
+ * @return {number}
1400
+ */
1401
+ proto.GetListAccessRequest.prototype.getLimit = function() {
1402
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1403
+ };
1404
+
1405
+
1406
+ /**
1407
+ * @param {number} value
1408
+ * @return {!proto.GetListAccessRequest} returns this
1409
+ */
1410
+ proto.GetListAccessRequest.prototype.setLimit = function(value) {
1411
+ return jspb.Message.setProto3IntField(this, 1, value);
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * optional int64 offset = 2;
1417
+ * @return {number}
1418
+ */
1419
+ proto.GetListAccessRequest.prototype.getOffset = function() {
1420
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1421
+ };
1422
+
1423
+
1424
+ /**
1425
+ * @param {number} value
1426
+ * @return {!proto.GetListAccessRequest} returns this
1427
+ */
1428
+ proto.GetListAccessRequest.prototype.setOffset = function(value) {
1429
+ return jspb.Message.setProto3IntField(this, 2, value);
1430
+ };
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1437
+ /**
1438
+ * Creates an object representation of this proto.
1439
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1440
+ * Optional fields that are not set will be set to undefined.
1441
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1442
+ * For the list of reserved names please see:
1443
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1444
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1445
+ * JSPB instance for transitional soy proto support:
1446
+ * http://goto/soy-param-migration
1447
+ * @return {!Object}
1448
+ */
1449
+ proto.CheckCompaniesRequest.prototype.toObject = function(opt_includeInstance) {
1450
+ return proto.CheckCompaniesRequest.toObject(opt_includeInstance, this);
1451
+ };
1452
+
1453
+
1454
+ /**
1455
+ * Static version of the {@see toObject} method.
1456
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1457
+ * the JSPB instance for transitional soy proto support:
1458
+ * http://goto/soy-param-migration
1459
+ * @param {!proto.CheckCompaniesRequest} msg The msg instance to transform.
1460
+ * @return {!Object}
1461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1462
+ */
1463
+ proto.CheckCompaniesRequest.toObject = function(includeInstance, msg) {
1464
+ var f, obj = {
1465
+ companiesRef: jspb.Message.getFieldWithDefault(msg, 1, "")
1466
+ };
1467
+
1468
+ if (includeInstance) {
1469
+ obj.$jspbMessageInstance = msg;
1470
+ }
1471
+ return obj;
1472
+ };
1473
+ }
1474
+
1475
+
1476
+ /**
1477
+ * Deserializes binary data (in protobuf wire format).
1478
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1479
+ * @return {!proto.CheckCompaniesRequest}
1480
+ */
1481
+ proto.CheckCompaniesRequest.deserializeBinary = function(bytes) {
1482
+ var reader = new jspb.BinaryReader(bytes);
1483
+ var msg = new proto.CheckCompaniesRequest;
1484
+ return proto.CheckCompaniesRequest.deserializeBinaryFromReader(msg, reader);
1485
+ };
1486
+
1487
+
1488
+ /**
1489
+ * Deserializes binary data (in protobuf wire format) from the
1490
+ * given reader into the given message object.
1491
+ * @param {!proto.CheckCompaniesRequest} msg The message object to deserialize into.
1492
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1493
+ * @return {!proto.CheckCompaniesRequest}
1494
+ */
1495
+ proto.CheckCompaniesRequest.deserializeBinaryFromReader = function(msg, reader) {
1496
+ while (reader.nextField()) {
1497
+ if (reader.isEndGroup()) {
1498
+ break;
1499
+ }
1500
+ var field = reader.getFieldNumber();
1501
+ switch (field) {
1502
+ case 1:
1503
+ var value = /** @type {string} */ (reader.readString());
1504
+ msg.setCompaniesRef(value);
1505
+ break;
1506
+ default:
1507
+ reader.skipField();
1508
+ break;
1509
+ }
1510
+ }
1511
+ return msg;
1512
+ };
1513
+
1514
+
1515
+ /**
1516
+ * Serializes the message to binary data (in protobuf wire format).
1517
+ * @return {!Uint8Array}
1518
+ */
1519
+ proto.CheckCompaniesRequest.prototype.serializeBinary = function() {
1520
+ var writer = new jspb.BinaryWriter();
1521
+ proto.CheckCompaniesRequest.serializeBinaryToWriter(this, writer);
1522
+ return writer.getResultBuffer();
1523
+ };
1524
+
1525
+
1526
+ /**
1527
+ * Serializes the given message to binary data (in protobuf wire
1528
+ * format), writing to the given BinaryWriter.
1529
+ * @param {!proto.CheckCompaniesRequest} message
1530
+ * @param {!jspb.BinaryWriter} writer
1531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1532
+ */
1533
+ proto.CheckCompaniesRequest.serializeBinaryToWriter = function(message, writer) {
1534
+ var f = undefined;
1535
+ f = message.getCompaniesRef();
1536
+ if (f.length > 0) {
1537
+ writer.writeString(
1538
+ 1,
1539
+ f
1540
+ );
1541
+ }
1542
+ };
1543
+
1544
+
1545
+ /**
1546
+ * optional string companies_ref = 1;
1547
+ * @return {string}
1548
+ */
1549
+ proto.CheckCompaniesRequest.prototype.getCompaniesRef = function() {
1550
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1551
+ };
1552
+
1553
+
1554
+ /**
1555
+ * @param {string} value
1556
+ * @return {!proto.CheckCompaniesRequest} returns this
1557
+ */
1558
+ proto.CheckCompaniesRequest.prototype.setCompaniesRef = function(value) {
1559
+ return jspb.Message.setProto3StringField(this, 1, value);
1560
+ };
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1567
+ /**
1568
+ * Creates an object representation of this proto.
1569
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1570
+ * Optional fields that are not set will be set to undefined.
1571
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1572
+ * For the list of reserved names please see:
1573
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1574
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1575
+ * JSPB instance for transitional soy proto support:
1576
+ * http://goto/soy-param-migration
1577
+ * @return {!Object}
1578
+ */
1579
+ proto.AccessApiCredential.prototype.toObject = function(opt_includeInstance) {
1580
+ return proto.AccessApiCredential.toObject(opt_includeInstance, this);
1581
+ };
1582
+
1583
+
1584
+ /**
1585
+ * Static version of the {@see toObject} method.
1586
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1587
+ * the JSPB instance for transitional soy proto support:
1588
+ * http://goto/soy-param-migration
1589
+ * @param {!proto.AccessApiCredential} msg The msg instance to transform.
1590
+ * @return {!Object}
1591
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1592
+ */
1593
+ proto.AccessApiCredential.toObject = function(includeInstance, msg) {
1594
+ var f, obj = {
1595
+ apisecretid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1596
+ apisecretkey: jspb.Message.getFieldWithDefault(msg, 2, "")
1597
+ };
1598
+
1599
+ if (includeInstance) {
1600
+ obj.$jspbMessageInstance = msg;
1601
+ }
1602
+ return obj;
1603
+ };
1604
+ }
1605
+
1606
+
1607
+ /**
1608
+ * Deserializes binary data (in protobuf wire format).
1609
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1610
+ * @return {!proto.AccessApiCredential}
1611
+ */
1612
+ proto.AccessApiCredential.deserializeBinary = function(bytes) {
1613
+ var reader = new jspb.BinaryReader(bytes);
1614
+ var msg = new proto.AccessApiCredential;
1615
+ return proto.AccessApiCredential.deserializeBinaryFromReader(msg, reader);
1616
+ };
1617
+
1618
+
1619
+ /**
1620
+ * Deserializes binary data (in protobuf wire format) from the
1621
+ * given reader into the given message object.
1622
+ * @param {!proto.AccessApiCredential} msg The message object to deserialize into.
1623
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1624
+ * @return {!proto.AccessApiCredential}
1625
+ */
1626
+ proto.AccessApiCredential.deserializeBinaryFromReader = function(msg, reader) {
1627
+ while (reader.nextField()) {
1628
+ if (reader.isEndGroup()) {
1629
+ break;
1630
+ }
1631
+ var field = reader.getFieldNumber();
1632
+ switch (field) {
1633
+ case 1:
1634
+ var value = /** @type {string} */ (reader.readString());
1635
+ msg.setApisecretid(value);
1636
+ break;
1637
+ case 2:
1638
+ var value = /** @type {string} */ (reader.readString());
1639
+ msg.setApisecretkey(value);
1640
+ break;
1641
+ default:
1642
+ reader.skipField();
1643
+ break;
1644
+ }
1645
+ }
1646
+ return msg;
1647
+ };
1648
+
1649
+
1650
+ /**
1651
+ * Serializes the message to binary data (in protobuf wire format).
1652
+ * @return {!Uint8Array}
1653
+ */
1654
+ proto.AccessApiCredential.prototype.serializeBinary = function() {
1655
+ var writer = new jspb.BinaryWriter();
1656
+ proto.AccessApiCredential.serializeBinaryToWriter(this, writer);
1657
+ return writer.getResultBuffer();
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * Serializes the given message to binary data (in protobuf wire
1663
+ * format), writing to the given BinaryWriter.
1664
+ * @param {!proto.AccessApiCredential} message
1665
+ * @param {!jspb.BinaryWriter} writer
1666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1667
+ */
1668
+ proto.AccessApiCredential.serializeBinaryToWriter = function(message, writer) {
1669
+ var f = undefined;
1670
+ f = message.getApisecretid();
1671
+ if (f.length > 0) {
1672
+ writer.writeString(
1673
+ 1,
1674
+ f
1675
+ );
1676
+ }
1677
+ f = message.getApisecretkey();
1678
+ if (f.length > 0) {
1679
+ writer.writeString(
1680
+ 2,
1681
+ f
1682
+ );
1683
+ }
1684
+ };
1685
+
1686
+
1687
+ /**
1688
+ * optional string apiSecretId = 1;
1689
+ * @return {string}
1690
+ */
1691
+ proto.AccessApiCredential.prototype.getApisecretid = function() {
1692
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1693
+ };
1694
+
1695
+
1696
+ /**
1697
+ * @param {string} value
1698
+ * @return {!proto.AccessApiCredential} returns this
1699
+ */
1700
+ proto.AccessApiCredential.prototype.setApisecretid = function(value) {
1701
+ return jspb.Message.setProto3StringField(this, 1, value);
1702
+ };
1703
+
1704
+
1705
+ /**
1706
+ * optional string apiSecretKey = 2;
1707
+ * @return {string}
1708
+ */
1709
+ proto.AccessApiCredential.prototype.getApisecretkey = function() {
1710
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1711
+ };
1712
+
1713
+
1714
+ /**
1715
+ * @param {string} value
1716
+ * @return {!proto.AccessApiCredential} returns this
1717
+ */
1718
+ proto.AccessApiCredential.prototype.setApisecretkey = function(value) {
1719
+ return jspb.Message.setProto3StringField(this, 2, value);
1720
+ };
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1727
+ /**
1728
+ * Creates an object representation of this proto.
1729
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1730
+ * Optional fields that are not set will be set to undefined.
1731
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1732
+ * For the list of reserved names please see:
1733
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1734
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1735
+ * JSPB instance for transitional soy proto support:
1736
+ * http://goto/soy-param-migration
1737
+ * @return {!Object}
1738
+ */
1739
+ proto.AccessCreateRequest.prototype.toObject = function(opt_includeInstance) {
1740
+ return proto.AccessCreateRequest.toObject(opt_includeInstance, this);
1741
+ };
1742
+
1743
+
1744
+ /**
1745
+ * Static version of the {@see toObject} method.
1746
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1747
+ * the JSPB instance for transitional soy proto support:
1748
+ * http://goto/soy-param-migration
1749
+ * @param {!proto.AccessCreateRequest} msg The msg instance to transform.
1750
+ * @return {!Object}
1751
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1752
+ */
1753
+ proto.AccessCreateRequest.toObject = function(includeInstance, msg) {
1754
+ var f, obj = {
1755
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1756
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1757
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, "")
1758
+ };
1759
+
1760
+ if (includeInstance) {
1761
+ obj.$jspbMessageInstance = msg;
1762
+ }
1763
+ return obj;
1764
+ };
1765
+ }
1766
+
1767
+
1768
+ /**
1769
+ * Deserializes binary data (in protobuf wire format).
1770
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1771
+ * @return {!proto.AccessCreateRequest}
1772
+ */
1773
+ proto.AccessCreateRequest.deserializeBinary = function(bytes) {
1774
+ var reader = new jspb.BinaryReader(bytes);
1775
+ var msg = new proto.AccessCreateRequest;
1776
+ return proto.AccessCreateRequest.deserializeBinaryFromReader(msg, reader);
1777
+ };
1778
+
1779
+
1780
+ /**
1781
+ * Deserializes binary data (in protobuf wire format) from the
1782
+ * given reader into the given message object.
1783
+ * @param {!proto.AccessCreateRequest} msg The message object to deserialize into.
1784
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1785
+ * @return {!proto.AccessCreateRequest}
1786
+ */
1787
+ proto.AccessCreateRequest.deserializeBinaryFromReader = function(msg, reader) {
1788
+ while (reader.nextField()) {
1789
+ if (reader.isEndGroup()) {
1790
+ break;
1791
+ }
1792
+ var field = reader.getFieldNumber();
1793
+ switch (field) {
1794
+ case 1:
1795
+ var value = /** @type {string} */ (reader.readString());
1796
+ msg.setName(value);
1797
+ break;
1798
+ case 2:
1799
+ var value = /** @type {number} */ (reader.readInt64());
1800
+ msg.setUserid(value);
1801
+ break;
1802
+ case 3:
1803
+ var value = /** @type {string} */ (reader.readString());
1804
+ msg.setScopes(value);
1805
+ break;
1806
+ default:
1807
+ reader.skipField();
1808
+ break;
1809
+ }
1810
+ }
1811
+ return msg;
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * Serializes the message to binary data (in protobuf wire format).
1817
+ * @return {!Uint8Array}
1818
+ */
1819
+ proto.AccessCreateRequest.prototype.serializeBinary = function() {
1820
+ var writer = new jspb.BinaryWriter();
1821
+ proto.AccessCreateRequest.serializeBinaryToWriter(this, writer);
1822
+ return writer.getResultBuffer();
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * Serializes the given message to binary data (in protobuf wire
1828
+ * format), writing to the given BinaryWriter.
1829
+ * @param {!proto.AccessCreateRequest} message
1830
+ * @param {!jspb.BinaryWriter} writer
1831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1832
+ */
1833
+ proto.AccessCreateRequest.serializeBinaryToWriter = function(message, writer) {
1834
+ var f = undefined;
1835
+ f = message.getName();
1836
+ if (f.length > 0) {
1837
+ writer.writeString(
1838
+ 1,
1839
+ f
1840
+ );
1841
+ }
1842
+ f = message.getUserid();
1843
+ if (f !== 0) {
1844
+ writer.writeInt64(
1845
+ 2,
1846
+ f
1847
+ );
1848
+ }
1849
+ f = message.getScopes();
1850
+ if (f.length > 0) {
1851
+ writer.writeString(
1852
+ 3,
1853
+ f
1854
+ );
1855
+ }
1856
+ };
1857
+
1858
+
1859
+ /**
1860
+ * optional string name = 1;
1861
+ * @return {string}
1862
+ */
1863
+ proto.AccessCreateRequest.prototype.getName = function() {
1864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1865
+ };
1866
+
1867
+
1868
+ /**
1869
+ * @param {string} value
1870
+ * @return {!proto.AccessCreateRequest} returns this
1871
+ */
1872
+ proto.AccessCreateRequest.prototype.setName = function(value) {
1873
+ return jspb.Message.setProto3StringField(this, 1, value);
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * optional int64 userId = 2;
1879
+ * @return {number}
1880
+ */
1881
+ proto.AccessCreateRequest.prototype.getUserid = function() {
1882
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1883
+ };
1884
+
1885
+
1886
+ /**
1887
+ * @param {number} value
1888
+ * @return {!proto.AccessCreateRequest} returns this
1889
+ */
1890
+ proto.AccessCreateRequest.prototype.setUserid = function(value) {
1891
+ return jspb.Message.setProto3IntField(this, 2, value);
1892
+ };
1893
+
1894
+
1895
+ /**
1896
+ * optional string scopes = 3;
1897
+ * @return {string}
1898
+ */
1899
+ proto.AccessCreateRequest.prototype.getScopes = function() {
1900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * @param {string} value
1906
+ * @return {!proto.AccessCreateRequest} returns this
1907
+ */
1908
+ proto.AccessCreateRequest.prototype.setScopes = function(value) {
1909
+ return jspb.Message.setProto3StringField(this, 3, value);
1910
+ };
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1917
+ /**
1918
+ * Creates an object representation of this proto.
1919
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1920
+ * Optional fields that are not set will be set to undefined.
1921
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1922
+ * For the list of reserved names please see:
1923
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1924
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1925
+ * JSPB instance for transitional soy proto support:
1926
+ * http://goto/soy-param-migration
1927
+ * @return {!Object}
1928
+ */
1929
+ proto.AuthVerifyToken.prototype.toObject = function(opt_includeInstance) {
1930
+ return proto.AuthVerifyToken.toObject(opt_includeInstance, this);
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * Static version of the {@see toObject} method.
1936
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1937
+ * the JSPB instance for transitional soy proto support:
1938
+ * http://goto/soy-param-migration
1939
+ * @param {!proto.AuthVerifyToken} msg The msg instance to transform.
1940
+ * @return {!Object}
1941
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1942
+ */
1943
+ proto.AuthVerifyToken.toObject = function(includeInstance, msg) {
1944
+ var f, obj = {
1945
+ token: jspb.Message.getFieldWithDefault(msg, 1, "")
1946
+ };
1947
+
1948
+ if (includeInstance) {
1949
+ obj.$jspbMessageInstance = msg;
1950
+ }
1951
+ return obj;
1952
+ };
1953
+ }
1954
+
1955
+
1956
+ /**
1957
+ * Deserializes binary data (in protobuf wire format).
1958
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1959
+ * @return {!proto.AuthVerifyToken}
1960
+ */
1961
+ proto.AuthVerifyToken.deserializeBinary = function(bytes) {
1962
+ var reader = new jspb.BinaryReader(bytes);
1963
+ var msg = new proto.AuthVerifyToken;
1964
+ return proto.AuthVerifyToken.deserializeBinaryFromReader(msg, reader);
1965
+ };
1966
+
1967
+
1968
+ /**
1969
+ * Deserializes binary data (in protobuf wire format) from the
1970
+ * given reader into the given message object.
1971
+ * @param {!proto.AuthVerifyToken} msg The message object to deserialize into.
1972
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1973
+ * @return {!proto.AuthVerifyToken}
1974
+ */
1975
+ proto.AuthVerifyToken.deserializeBinaryFromReader = function(msg, reader) {
1976
+ while (reader.nextField()) {
1977
+ if (reader.isEndGroup()) {
1978
+ break;
1979
+ }
1980
+ var field = reader.getFieldNumber();
1981
+ switch (field) {
1982
+ case 1:
1983
+ var value = /** @type {string} */ (reader.readString());
1984
+ msg.setToken(value);
1985
+ break;
1986
+ default:
1987
+ reader.skipField();
1988
+ break;
1989
+ }
1990
+ }
1991
+ return msg;
1992
+ };
1993
+
1994
+
1995
+ /**
1996
+ * Serializes the message to binary data (in protobuf wire format).
1997
+ * @return {!Uint8Array}
1998
+ */
1999
+ proto.AuthVerifyToken.prototype.serializeBinary = function() {
2000
+ var writer = new jspb.BinaryWriter();
2001
+ proto.AuthVerifyToken.serializeBinaryToWriter(this, writer);
2002
+ return writer.getResultBuffer();
2003
+ };
2004
+
2005
+
2006
+ /**
2007
+ * Serializes the given message to binary data (in protobuf wire
2008
+ * format), writing to the given BinaryWriter.
2009
+ * @param {!proto.AuthVerifyToken} message
2010
+ * @param {!jspb.BinaryWriter} writer
2011
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2012
+ */
2013
+ proto.AuthVerifyToken.serializeBinaryToWriter = function(message, writer) {
2014
+ var f = undefined;
2015
+ f = message.getToken();
2016
+ if (f.length > 0) {
2017
+ writer.writeString(
2018
+ 1,
2019
+ f
2020
+ );
2021
+ }
2022
+ };
2023
+
2024
+
2025
+ /**
2026
+ * optional string token = 1;
2027
+ * @return {string}
2028
+ */
2029
+ proto.AuthVerifyToken.prototype.getToken = function() {
2030
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2031
+ };
2032
+
2033
+
2034
+ /**
2035
+ * @param {string} value
2036
+ * @return {!proto.AuthVerifyToken} returns this
2037
+ */
2038
+ proto.AuthVerifyToken.prototype.setToken = function(value) {
2039
+ return jspb.Message.setProto3StringField(this, 1, value);
2040
+ };
2041
+
2042
+
2043
+
2044
+
2045
+
2046
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2047
+ /**
2048
+ * Creates an object representation of this proto.
2049
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2050
+ * Optional fields that are not set will be set to undefined.
2051
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2052
+ * For the list of reserved names please see:
2053
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2054
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2055
+ * JSPB instance for transitional soy proto support:
2056
+ * http://goto/soy-param-migration
2057
+ * @return {!Object}
2058
+ */
2059
+ proto.UpdateAccessPayload.prototype.toObject = function(opt_includeInstance) {
2060
+ return proto.UpdateAccessPayload.toObject(opt_includeInstance, this);
2061
+ };
2062
+
2063
+
2064
+ /**
2065
+ * Static version of the {@see toObject} method.
2066
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2067
+ * the JSPB instance for transitional soy proto support:
2068
+ * http://goto/soy-param-migration
2069
+ * @param {!proto.UpdateAccessPayload} msg The msg instance to transform.
2070
+ * @return {!Object}
2071
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2072
+ */
2073
+ proto.UpdateAccessPayload.toObject = function(includeInstance, msg) {
2074
+ var f, obj = {
2075
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2076
+ id: jspb.Message.getFieldWithDefault(msg, 2, 0),
2077
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, "")
2078
+ };
2079
+
2080
+ if (includeInstance) {
2081
+ obj.$jspbMessageInstance = msg;
2082
+ }
2083
+ return obj;
2084
+ };
2085
+ }
2086
+
2087
+
2088
+ /**
2089
+ * Deserializes binary data (in protobuf wire format).
2090
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2091
+ * @return {!proto.UpdateAccessPayload}
2092
+ */
2093
+ proto.UpdateAccessPayload.deserializeBinary = function(bytes) {
2094
+ var reader = new jspb.BinaryReader(bytes);
2095
+ var msg = new proto.UpdateAccessPayload;
2096
+ return proto.UpdateAccessPayload.deserializeBinaryFromReader(msg, reader);
2097
+ };
2098
+
2099
+
2100
+ /**
2101
+ * Deserializes binary data (in protobuf wire format) from the
2102
+ * given reader into the given message object.
2103
+ * @param {!proto.UpdateAccessPayload} msg The message object to deserialize into.
2104
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2105
+ * @return {!proto.UpdateAccessPayload}
2106
+ */
2107
+ proto.UpdateAccessPayload.deserializeBinaryFromReader = function(msg, reader) {
2108
+ while (reader.nextField()) {
2109
+ if (reader.isEndGroup()) {
2110
+ break;
2111
+ }
2112
+ var field = reader.getFieldNumber();
2113
+ switch (field) {
2114
+ case 1:
2115
+ var value = /** @type {string} */ (reader.readString());
2116
+ msg.setName(value);
2117
+ break;
2118
+ case 2:
2119
+ var value = /** @type {number} */ (reader.readInt64());
2120
+ msg.setId(value);
2121
+ break;
2122
+ case 3:
2123
+ var value = /** @type {string} */ (reader.readString());
2124
+ msg.setScopes(value);
2125
+ break;
2126
+ default:
2127
+ reader.skipField();
2128
+ break;
2129
+ }
2130
+ }
2131
+ return msg;
2132
+ };
2133
+
2134
+
2135
+ /**
2136
+ * Serializes the message to binary data (in protobuf wire format).
2137
+ * @return {!Uint8Array}
2138
+ */
2139
+ proto.UpdateAccessPayload.prototype.serializeBinary = function() {
2140
+ var writer = new jspb.BinaryWriter();
2141
+ proto.UpdateAccessPayload.serializeBinaryToWriter(this, writer);
2142
+ return writer.getResultBuffer();
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * Serializes the given message to binary data (in protobuf wire
2148
+ * format), writing to the given BinaryWriter.
2149
+ * @param {!proto.UpdateAccessPayload} message
2150
+ * @param {!jspb.BinaryWriter} writer
2151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2152
+ */
2153
+ proto.UpdateAccessPayload.serializeBinaryToWriter = function(message, writer) {
2154
+ var f = undefined;
2155
+ f = message.getName();
2156
+ if (f.length > 0) {
2157
+ writer.writeString(
2158
+ 1,
2159
+ f
2160
+ );
2161
+ }
2162
+ f = message.getId();
2163
+ if (f !== 0) {
2164
+ writer.writeInt64(
2165
+ 2,
2166
+ f
2167
+ );
2168
+ }
2169
+ f = message.getScopes();
2170
+ if (f.length > 0) {
2171
+ writer.writeString(
2172
+ 3,
2173
+ f
2174
+ );
2175
+ }
2176
+ };
2177
+
2178
+
2179
+ /**
2180
+ * optional string name = 1;
2181
+ * @return {string}
2182
+ */
2183
+ proto.UpdateAccessPayload.prototype.getName = function() {
2184
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2185
+ };
2186
+
2187
+
2188
+ /**
2189
+ * @param {string} value
2190
+ * @return {!proto.UpdateAccessPayload} returns this
2191
+ */
2192
+ proto.UpdateAccessPayload.prototype.setName = function(value) {
2193
+ return jspb.Message.setProto3StringField(this, 1, value);
2194
+ };
2195
+
2196
+
2197
+ /**
2198
+ * optional int64 id = 2;
2199
+ * @return {number}
2200
+ */
2201
+ proto.UpdateAccessPayload.prototype.getId = function() {
2202
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * @param {number} value
2208
+ * @return {!proto.UpdateAccessPayload} returns this
2209
+ */
2210
+ proto.UpdateAccessPayload.prototype.setId = function(value) {
2211
+ return jspb.Message.setProto3IntField(this, 2, value);
2212
+ };
2213
+
2214
+
2215
+ /**
2216
+ * optional string scopes = 3;
2217
+ * @return {string}
2218
+ */
2219
+ proto.UpdateAccessPayload.prototype.getScopes = function() {
2220
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2221
+ };
2222
+
2223
+
2224
+ /**
2225
+ * @param {string} value
2226
+ * @return {!proto.UpdateAccessPayload} returns this
2227
+ */
2228
+ proto.UpdateAccessPayload.prototype.setScopes = function(value) {
2229
+ return jspb.Message.setProto3StringField(this, 3, value);
2230
+ };
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2237
+ /**
2238
+ * Creates an object representation of this proto.
2239
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2240
+ * Optional fields that are not set will be set to undefined.
2241
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2242
+ * For the list of reserved names please see:
2243
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2244
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2245
+ * JSPB instance for transitional soy proto support:
2246
+ * http://goto/soy-param-migration
2247
+ * @return {!Object}
2248
+ */
2249
+ proto.GetAccessByIdPayload.prototype.toObject = function(opt_includeInstance) {
2250
+ return proto.GetAccessByIdPayload.toObject(opt_includeInstance, this);
2251
+ };
2252
+
2253
+
2254
+ /**
2255
+ * Static version of the {@see toObject} method.
2256
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2257
+ * the JSPB instance for transitional soy proto support:
2258
+ * http://goto/soy-param-migration
2259
+ * @param {!proto.GetAccessByIdPayload} msg The msg instance to transform.
2260
+ * @return {!Object}
2261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2262
+ */
2263
+ proto.GetAccessByIdPayload.toObject = function(includeInstance, msg) {
2264
+ var f, obj = {
2265
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2266
+ };
2267
+
2268
+ if (includeInstance) {
2269
+ obj.$jspbMessageInstance = msg;
2270
+ }
2271
+ return obj;
2272
+ };
2273
+ }
2274
+
2275
+
2276
+ /**
2277
+ * Deserializes binary data (in protobuf wire format).
2278
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2279
+ * @return {!proto.GetAccessByIdPayload}
2280
+ */
2281
+ proto.GetAccessByIdPayload.deserializeBinary = function(bytes) {
2282
+ var reader = new jspb.BinaryReader(bytes);
2283
+ var msg = new proto.GetAccessByIdPayload;
2284
+ return proto.GetAccessByIdPayload.deserializeBinaryFromReader(msg, reader);
2285
+ };
2286
+
2287
+
2288
+ /**
2289
+ * Deserializes binary data (in protobuf wire format) from the
2290
+ * given reader into the given message object.
2291
+ * @param {!proto.GetAccessByIdPayload} msg The message object to deserialize into.
2292
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2293
+ * @return {!proto.GetAccessByIdPayload}
2294
+ */
2295
+ proto.GetAccessByIdPayload.deserializeBinaryFromReader = function(msg, reader) {
2296
+ while (reader.nextField()) {
2297
+ if (reader.isEndGroup()) {
2298
+ break;
2299
+ }
2300
+ var field = reader.getFieldNumber();
2301
+ switch (field) {
2302
+ case 1:
2303
+ var value = /** @type {number} */ (reader.readInt64());
2304
+ msg.setId(value);
2305
+ break;
2306
+ default:
2307
+ reader.skipField();
2308
+ break;
2309
+ }
2310
+ }
2311
+ return msg;
2312
+ };
2313
+
2314
+
2315
+ /**
2316
+ * Serializes the message to binary data (in protobuf wire format).
2317
+ * @return {!Uint8Array}
2318
+ */
2319
+ proto.GetAccessByIdPayload.prototype.serializeBinary = function() {
2320
+ var writer = new jspb.BinaryWriter();
2321
+ proto.GetAccessByIdPayload.serializeBinaryToWriter(this, writer);
2322
+ return writer.getResultBuffer();
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * Serializes the given message to binary data (in protobuf wire
2328
+ * format), writing to the given BinaryWriter.
2329
+ * @param {!proto.GetAccessByIdPayload} message
2330
+ * @param {!jspb.BinaryWriter} writer
2331
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2332
+ */
2333
+ proto.GetAccessByIdPayload.serializeBinaryToWriter = function(message, writer) {
2334
+ var f = undefined;
2335
+ f = message.getId();
2336
+ if (f !== 0) {
2337
+ writer.writeInt64(
2338
+ 1,
2339
+ f
2340
+ );
2341
+ }
2342
+ };
2343
+
2344
+
2345
+ /**
2346
+ * optional int64 id = 1;
2347
+ * @return {number}
2348
+ */
2349
+ proto.GetAccessByIdPayload.prototype.getId = function() {
2350
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2351
+ };
2352
+
2353
+
2354
+ /**
2355
+ * @param {number} value
2356
+ * @return {!proto.GetAccessByIdPayload} returns this
2357
+ */
2358
+ proto.GetAccessByIdPayload.prototype.setId = function(value) {
2359
+ return jspb.Message.setProto3IntField(this, 1, value);
2360
+ };
2361
+
2362
+
2363
+
2364
+
2365
+
2366
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2367
+ /**
2368
+ * Creates an object representation of this proto.
2369
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2370
+ * Optional fields that are not set will be set to undefined.
2371
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2372
+ * For the list of reserved names please see:
2373
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2374
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2375
+ * JSPB instance for transitional soy proto support:
2376
+ * http://goto/soy-param-migration
2377
+ * @return {!Object}
2378
+ */
2379
+ proto.CreateUserPayload.prototype.toObject = function(opt_includeInstance) {
2380
+ return proto.CreateUserPayload.toObject(opt_includeInstance, this);
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * Static version of the {@see toObject} method.
2386
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2387
+ * the JSPB instance for transitional soy proto support:
2388
+ * http://goto/soy-param-migration
2389
+ * @param {!proto.CreateUserPayload} msg The msg instance to transform.
2390
+ * @return {!Object}
2391
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2392
+ */
2393
+ proto.CreateUserPayload.toObject = function(includeInstance, msg) {
2394
+ var f, obj = {
2395
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2396
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
2397
+ password: jspb.Message.getFieldWithDefault(msg, 3, "")
2398
+ };
2399
+
2400
+ if (includeInstance) {
2401
+ obj.$jspbMessageInstance = msg;
2402
+ }
2403
+ return obj;
2404
+ };
2405
+ }
2406
+
2407
+
2408
+ /**
2409
+ * Deserializes binary data (in protobuf wire format).
2410
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2411
+ * @return {!proto.CreateUserPayload}
2412
+ */
2413
+ proto.CreateUserPayload.deserializeBinary = function(bytes) {
2414
+ var reader = new jspb.BinaryReader(bytes);
2415
+ var msg = new proto.CreateUserPayload;
2416
+ return proto.CreateUserPayload.deserializeBinaryFromReader(msg, reader);
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * Deserializes binary data (in protobuf wire format) from the
2422
+ * given reader into the given message object.
2423
+ * @param {!proto.CreateUserPayload} msg The message object to deserialize into.
2424
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2425
+ * @return {!proto.CreateUserPayload}
2426
+ */
2427
+ proto.CreateUserPayload.deserializeBinaryFromReader = function(msg, reader) {
2428
+ while (reader.nextField()) {
2429
+ if (reader.isEndGroup()) {
2430
+ break;
2431
+ }
2432
+ var field = reader.getFieldNumber();
2433
+ switch (field) {
2434
+ case 1:
2435
+ var value = /** @type {string} */ (reader.readString());
2436
+ msg.setName(value);
2437
+ break;
2438
+ case 2:
2439
+ var value = /** @type {string} */ (reader.readString());
2440
+ msg.setEmail(value);
2441
+ break;
2442
+ case 3:
2443
+ var value = /** @type {string} */ (reader.readString());
2444
+ msg.setPassword(value);
2445
+ break;
2446
+ default:
2447
+ reader.skipField();
2448
+ break;
2449
+ }
2450
+ }
2451
+ return msg;
2452
+ };
2453
+
2454
+
2455
+ /**
2456
+ * Serializes the message to binary data (in protobuf wire format).
2457
+ * @return {!Uint8Array}
2458
+ */
2459
+ proto.CreateUserPayload.prototype.serializeBinary = function() {
2460
+ var writer = new jspb.BinaryWriter();
2461
+ proto.CreateUserPayload.serializeBinaryToWriter(this, writer);
2462
+ return writer.getResultBuffer();
2463
+ };
2464
+
2465
+
2466
+ /**
2467
+ * Serializes the given message to binary data (in protobuf wire
2468
+ * format), writing to the given BinaryWriter.
2469
+ * @param {!proto.CreateUserPayload} message
2470
+ * @param {!jspb.BinaryWriter} writer
2471
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2472
+ */
2473
+ proto.CreateUserPayload.serializeBinaryToWriter = function(message, writer) {
2474
+ var f = undefined;
2475
+ f = message.getName();
2476
+ if (f.length > 0) {
2477
+ writer.writeString(
2478
+ 1,
2479
+ f
2480
+ );
2481
+ }
2482
+ f = message.getEmail();
2483
+ if (f.length > 0) {
2484
+ writer.writeString(
2485
+ 2,
2486
+ f
2487
+ );
2488
+ }
2489
+ f = message.getPassword();
2490
+ if (f.length > 0) {
2491
+ writer.writeString(
2492
+ 3,
2493
+ f
2494
+ );
2495
+ }
2496
+ };
2497
+
2498
+
2499
+ /**
2500
+ * optional string name = 1;
2501
+ * @return {string}
2502
+ */
2503
+ proto.CreateUserPayload.prototype.getName = function() {
2504
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2505
+ };
2506
+
2507
+
2508
+ /**
2509
+ * @param {string} value
2510
+ * @return {!proto.CreateUserPayload} returns this
2511
+ */
2512
+ proto.CreateUserPayload.prototype.setName = function(value) {
2513
+ return jspb.Message.setProto3StringField(this, 1, value);
2514
+ };
2515
+
2516
+
2517
+ /**
2518
+ * optional string email = 2;
2519
+ * @return {string}
2520
+ */
2521
+ proto.CreateUserPayload.prototype.getEmail = function() {
2522
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2523
+ };
2524
+
2525
+
2526
+ /**
2527
+ * @param {string} value
2528
+ * @return {!proto.CreateUserPayload} returns this
2529
+ */
2530
+ proto.CreateUserPayload.prototype.setEmail = function(value) {
2531
+ return jspb.Message.setProto3StringField(this, 2, value);
2532
+ };
2533
+
2534
+
2535
+ /**
2536
+ * optional string password = 3;
2537
+ * @return {string}
2538
+ */
2539
+ proto.CreateUserPayload.prototype.getPassword = function() {
2540
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2541
+ };
2542
+
2543
+
2544
+ /**
2545
+ * @param {string} value
2546
+ * @return {!proto.CreateUserPayload} returns this
2547
+ */
2548
+ proto.CreateUserPayload.prototype.setPassword = function(value) {
2549
+ return jspb.Message.setProto3StringField(this, 3, value);
2550
+ };
2551
+
2552
+
2553
+
2554
+
2555
+
2556
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2557
+ /**
2558
+ * Creates an object representation of this proto.
2559
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2560
+ * Optional fields that are not set will be set to undefined.
2561
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2562
+ * For the list of reserved names please see:
2563
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2564
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2565
+ * JSPB instance for transitional soy proto support:
2566
+ * http://goto/soy-param-migration
2567
+ * @return {!Object}
2568
+ */
2569
+ proto.UpdateUserPayload.prototype.toObject = function(opt_includeInstance) {
2570
+ return proto.UpdateUserPayload.toObject(opt_includeInstance, this);
2571
+ };
2572
+
2573
+
2574
+ /**
2575
+ * Static version of the {@see toObject} method.
2576
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2577
+ * the JSPB instance for transitional soy proto support:
2578
+ * http://goto/soy-param-migration
2579
+ * @param {!proto.UpdateUserPayload} msg The msg instance to transform.
2580
+ * @return {!Object}
2581
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2582
+ */
2583
+ proto.UpdateUserPayload.toObject = function(includeInstance, msg) {
2584
+ var f, obj = {
2585
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
2586
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
2587
+ };
2588
+
2589
+ if (includeInstance) {
2590
+ obj.$jspbMessageInstance = msg;
2591
+ }
2592
+ return obj;
2593
+ };
2594
+ }
2595
+
2596
+
2597
+ /**
2598
+ * Deserializes binary data (in protobuf wire format).
2599
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2600
+ * @return {!proto.UpdateUserPayload}
2601
+ */
2602
+ proto.UpdateUserPayload.deserializeBinary = function(bytes) {
2603
+ var reader = new jspb.BinaryReader(bytes);
2604
+ var msg = new proto.UpdateUserPayload;
2605
+ return proto.UpdateUserPayload.deserializeBinaryFromReader(msg, reader);
2606
+ };
2607
+
2608
+
2609
+ /**
2610
+ * Deserializes binary data (in protobuf wire format) from the
2611
+ * given reader into the given message object.
2612
+ * @param {!proto.UpdateUserPayload} msg The message object to deserialize into.
2613
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2614
+ * @return {!proto.UpdateUserPayload}
2615
+ */
2616
+ proto.UpdateUserPayload.deserializeBinaryFromReader = function(msg, reader) {
2617
+ while (reader.nextField()) {
2618
+ if (reader.isEndGroup()) {
2619
+ break;
2620
+ }
2621
+ var field = reader.getFieldNumber();
2622
+ switch (field) {
2623
+ case 1:
2624
+ var value = /** @type {string} */ (reader.readString());
2625
+ msg.setEmail(value);
2626
+ break;
2627
+ case 2:
2628
+ var value = /** @type {string} */ (reader.readString());
2629
+ msg.setPassword(value);
2630
+ break;
2631
+ default:
2632
+ reader.skipField();
2633
+ break;
2634
+ }
2635
+ }
2636
+ return msg;
2637
+ };
2638
+
2639
+
2640
+ /**
2641
+ * Serializes the message to binary data (in protobuf wire format).
2642
+ * @return {!Uint8Array}
2643
+ */
2644
+ proto.UpdateUserPayload.prototype.serializeBinary = function() {
2645
+ var writer = new jspb.BinaryWriter();
2646
+ proto.UpdateUserPayload.serializeBinaryToWriter(this, writer);
2647
+ return writer.getResultBuffer();
2648
+ };
2649
+
2650
+
2651
+ /**
2652
+ * Serializes the given message to binary data (in protobuf wire
2653
+ * format), writing to the given BinaryWriter.
2654
+ * @param {!proto.UpdateUserPayload} message
2655
+ * @param {!jspb.BinaryWriter} writer
2656
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2657
+ */
2658
+ proto.UpdateUserPayload.serializeBinaryToWriter = function(message, writer) {
2659
+ var f = undefined;
2660
+ f = message.getEmail();
2661
+ if (f.length > 0) {
2662
+ writer.writeString(
2663
+ 1,
2664
+ f
2665
+ );
2666
+ }
2667
+ f = message.getPassword();
2668
+ if (f.length > 0) {
2669
+ writer.writeString(
2670
+ 2,
2671
+ f
2672
+ );
2673
+ }
2674
+ };
2675
+
2676
+
2677
+ /**
2678
+ * optional string email = 1;
2679
+ * @return {string}
2680
+ */
2681
+ proto.UpdateUserPayload.prototype.getEmail = function() {
2682
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2683
+ };
2684
+
2685
+
2686
+ /**
2687
+ * @param {string} value
2688
+ * @return {!proto.UpdateUserPayload} returns this
2689
+ */
2690
+ proto.UpdateUserPayload.prototype.setEmail = function(value) {
2691
+ return jspb.Message.setProto3StringField(this, 1, value);
2692
+ };
2693
+
2694
+
2695
+ /**
2696
+ * optional string password = 2;
2697
+ * @return {string}
2698
+ */
2699
+ proto.UpdateUserPayload.prototype.getPassword = function() {
2700
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * @param {string} value
2706
+ * @return {!proto.UpdateUserPayload} returns this
2707
+ */
2708
+ proto.UpdateUserPayload.prototype.setPassword = function(value) {
2709
+ return jspb.Message.setProto3StringField(this, 2, value);
2710
+ };
2711
+
2712
+
2713
+
2714
+
2715
+
2716
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2717
+ /**
2718
+ * Creates an object representation of this proto.
2719
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2720
+ * Optional fields that are not set will be set to undefined.
2721
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2722
+ * For the list of reserved names please see:
2723
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2724
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2725
+ * JSPB instance for transitional soy proto support:
2726
+ * http://goto/soy-param-migration
2727
+ * @return {!Object}
2728
+ */
2729
+ proto.ChangePasswordRequest.prototype.toObject = function(opt_includeInstance) {
2730
+ return proto.ChangePasswordRequest.toObject(opt_includeInstance, this);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * Static version of the {@see toObject} method.
2736
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2737
+ * the JSPB instance for transitional soy proto support:
2738
+ * http://goto/soy-param-migration
2739
+ * @param {!proto.ChangePasswordRequest} msg The msg instance to transform.
2740
+ * @return {!Object}
2741
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2742
+ */
2743
+ proto.ChangePasswordRequest.toObject = function(includeInstance, msg) {
2744
+ var f, obj = {
2745
+ oldPassword: jspb.Message.getFieldWithDefault(msg, 1, ""),
2746
+ newPassword: jspb.Message.getFieldWithDefault(msg, 2, "")
2747
+ };
2748
+
2749
+ if (includeInstance) {
2750
+ obj.$jspbMessageInstance = msg;
2751
+ }
2752
+ return obj;
2753
+ };
2754
+ }
2755
+
2756
+
2757
+ /**
2758
+ * Deserializes binary data (in protobuf wire format).
2759
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2760
+ * @return {!proto.ChangePasswordRequest}
2761
+ */
2762
+ proto.ChangePasswordRequest.deserializeBinary = function(bytes) {
2763
+ var reader = new jspb.BinaryReader(bytes);
2764
+ var msg = new proto.ChangePasswordRequest;
2765
+ return proto.ChangePasswordRequest.deserializeBinaryFromReader(msg, reader);
2766
+ };
2767
+
2768
+
2769
+ /**
2770
+ * Deserializes binary data (in protobuf wire format) from the
2771
+ * given reader into the given message object.
2772
+ * @param {!proto.ChangePasswordRequest} msg The message object to deserialize into.
2773
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2774
+ * @return {!proto.ChangePasswordRequest}
2775
+ */
2776
+ proto.ChangePasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
2777
+ while (reader.nextField()) {
2778
+ if (reader.isEndGroup()) {
2779
+ break;
2780
+ }
2781
+ var field = reader.getFieldNumber();
2782
+ switch (field) {
2783
+ case 1:
2784
+ var value = /** @type {string} */ (reader.readString());
2785
+ msg.setOldPassword(value);
2786
+ break;
2787
+ case 2:
2788
+ var value = /** @type {string} */ (reader.readString());
2789
+ msg.setNewPassword(value);
2790
+ break;
2791
+ default:
2792
+ reader.skipField();
2793
+ break;
2794
+ }
2795
+ }
2796
+ return msg;
2797
+ };
2798
+
2799
+
2800
+ /**
2801
+ * Serializes the message to binary data (in protobuf wire format).
2802
+ * @return {!Uint8Array}
2803
+ */
2804
+ proto.ChangePasswordRequest.prototype.serializeBinary = function() {
2805
+ var writer = new jspb.BinaryWriter();
2806
+ proto.ChangePasswordRequest.serializeBinaryToWriter(this, writer);
2807
+ return writer.getResultBuffer();
2808
+ };
2809
+
2810
+
2811
+ /**
2812
+ * Serializes the given message to binary data (in protobuf wire
2813
+ * format), writing to the given BinaryWriter.
2814
+ * @param {!proto.ChangePasswordRequest} message
2815
+ * @param {!jspb.BinaryWriter} writer
2816
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2817
+ */
2818
+ proto.ChangePasswordRequest.serializeBinaryToWriter = function(message, writer) {
2819
+ var f = undefined;
2820
+ f = message.getOldPassword();
2821
+ if (f.length > 0) {
2822
+ writer.writeString(
2823
+ 1,
2824
+ f
2825
+ );
2826
+ }
2827
+ f = message.getNewPassword();
2828
+ if (f.length > 0) {
2829
+ writer.writeString(
2830
+ 2,
2831
+ f
2832
+ );
2833
+ }
2834
+ };
2835
+
2836
+
2837
+ /**
2838
+ * optional string old_password = 1;
2839
+ * @return {string}
2840
+ */
2841
+ proto.ChangePasswordRequest.prototype.getOldPassword = function() {
2842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2843
+ };
2844
+
2845
+
2846
+ /**
2847
+ * @param {string} value
2848
+ * @return {!proto.ChangePasswordRequest} returns this
2849
+ */
2850
+ proto.ChangePasswordRequest.prototype.setOldPassword = function(value) {
2851
+ return jspb.Message.setProto3StringField(this, 1, value);
2852
+ };
2853
+
2854
+
2855
+ /**
2856
+ * optional string new_password = 2;
2857
+ * @return {string}
2858
+ */
2859
+ proto.ChangePasswordRequest.prototype.getNewPassword = function() {
2860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2861
+ };
2862
+
2863
+
2864
+ /**
2865
+ * @param {string} value
2866
+ * @return {!proto.ChangePasswordRequest} returns this
2867
+ */
2868
+ proto.ChangePasswordRequest.prototype.setNewPassword = function(value) {
2869
+ return jspb.Message.setProto3StringField(this, 2, value);
2870
+ };
2871
+
2872
+
2873
+
2874
+ /**
2875
+ * List of repeated fields within this message type.
2876
+ * @private {!Array<number>}
2877
+ * @const
2878
+ */
2879
+ proto.UserResponse.repeatedFields_ = [6];
2880
+
2881
+
2882
+
2883
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2884
+ /**
2885
+ * Creates an object representation of this proto.
2886
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2887
+ * Optional fields that are not set will be set to undefined.
2888
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2889
+ * For the list of reserved names please see:
2890
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2891
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2892
+ * JSPB instance for transitional soy proto support:
2893
+ * http://goto/soy-param-migration
2894
+ * @return {!Object}
2895
+ */
2896
+ proto.UserResponse.prototype.toObject = function(opt_includeInstance) {
2897
+ return proto.UserResponse.toObject(opt_includeInstance, this);
2898
+ };
2899
+
2900
+
2901
+ /**
2902
+ * Static version of the {@see toObject} method.
2903
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2904
+ * the JSPB instance for transitional soy proto support:
2905
+ * http://goto/soy-param-migration
2906
+ * @param {!proto.UserResponse} msg The msg instance to transform.
2907
+ * @return {!Object}
2908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2909
+ */
2910
+ proto.UserResponse.toObject = function(includeInstance, msg) {
2911
+ var f, obj = {
2912
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2913
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2914
+ email: jspb.Message.getFieldWithDefault(msg, 3, ""),
2915
+ token: jspb.Message.getFieldWithDefault(msg, 4, ""),
2916
+ referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
2917
+ usersRoleList: jspb.Message.toObjectList(msg.getUsersRoleList(),
2918
+ prisca_v1_core_access_manager_access_manager_pb.UsersRole.toObject, includeInstance)
2919
+ };
2920
+
2921
+ if (includeInstance) {
2922
+ obj.$jspbMessageInstance = msg;
2923
+ }
2924
+ return obj;
2925
+ };
2926
+ }
2927
+
2928
+
2929
+ /**
2930
+ * Deserializes binary data (in protobuf wire format).
2931
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2932
+ * @return {!proto.UserResponse}
2933
+ */
2934
+ proto.UserResponse.deserializeBinary = function(bytes) {
2935
+ var reader = new jspb.BinaryReader(bytes);
2936
+ var msg = new proto.UserResponse;
2937
+ return proto.UserResponse.deserializeBinaryFromReader(msg, reader);
2938
+ };
2939
+
2940
+
2941
+ /**
2942
+ * Deserializes binary data (in protobuf wire format) from the
2943
+ * given reader into the given message object.
2944
+ * @param {!proto.UserResponse} msg The message object to deserialize into.
2945
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2946
+ * @return {!proto.UserResponse}
2947
+ */
2948
+ proto.UserResponse.deserializeBinaryFromReader = function(msg, reader) {
2949
+ while (reader.nextField()) {
2950
+ if (reader.isEndGroup()) {
2951
+ break;
2952
+ }
2953
+ var field = reader.getFieldNumber();
2954
+ switch (field) {
2955
+ case 1:
2956
+ var value = /** @type {number} */ (reader.readInt64());
2957
+ msg.setId(value);
2958
+ break;
2959
+ case 2:
2960
+ var value = /** @type {string} */ (reader.readString());
2961
+ msg.setName(value);
2962
+ break;
2963
+ case 3:
2964
+ var value = /** @type {string} */ (reader.readString());
2965
+ msg.setEmail(value);
2966
+ break;
2967
+ case 4:
2968
+ var value = /** @type {string} */ (reader.readString());
2969
+ msg.setToken(value);
2970
+ break;
2971
+ case 5:
2972
+ var value = /** @type {string} */ (reader.readString());
2973
+ msg.setReferencesId(value);
2974
+ break;
2975
+ case 6:
2976
+ var value = new prisca_v1_core_access_manager_access_manager_pb.UsersRole;
2977
+ reader.readMessage(value,prisca_v1_core_access_manager_access_manager_pb.UsersRole.deserializeBinaryFromReader);
2978
+ msg.addUsersRole(value);
2979
+ break;
2980
+ default:
2981
+ reader.skipField();
2982
+ break;
2983
+ }
2984
+ }
2985
+ return msg;
2986
+ };
2987
+
2988
+
2989
+ /**
2990
+ * Serializes the message to binary data (in protobuf wire format).
2991
+ * @return {!Uint8Array}
2992
+ */
2993
+ proto.UserResponse.prototype.serializeBinary = function() {
2994
+ var writer = new jspb.BinaryWriter();
2995
+ proto.UserResponse.serializeBinaryToWriter(this, writer);
2996
+ return writer.getResultBuffer();
2997
+ };
2998
+
2999
+
3000
+ /**
3001
+ * Serializes the given message to binary data (in protobuf wire
3002
+ * format), writing to the given BinaryWriter.
3003
+ * @param {!proto.UserResponse} message
3004
+ * @param {!jspb.BinaryWriter} writer
3005
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3006
+ */
3007
+ proto.UserResponse.serializeBinaryToWriter = function(message, writer) {
3008
+ var f = undefined;
3009
+ f = message.getId();
3010
+ if (f !== 0) {
3011
+ writer.writeInt64(
3012
+ 1,
3013
+ f
3014
+ );
3015
+ }
3016
+ f = message.getName();
3017
+ if (f.length > 0) {
3018
+ writer.writeString(
3019
+ 2,
3020
+ f
3021
+ );
3022
+ }
3023
+ f = message.getEmail();
3024
+ if (f.length > 0) {
3025
+ writer.writeString(
3026
+ 3,
3027
+ f
3028
+ );
3029
+ }
3030
+ f = message.getToken();
3031
+ if (f.length > 0) {
3032
+ writer.writeString(
3033
+ 4,
3034
+ f
3035
+ );
3036
+ }
3037
+ f = message.getReferencesId();
3038
+ if (f.length > 0) {
3039
+ writer.writeString(
3040
+ 5,
3041
+ f
3042
+ );
3043
+ }
3044
+ f = message.getUsersRoleList();
3045
+ if (f.length > 0) {
3046
+ writer.writeRepeatedMessage(
3047
+ 6,
3048
+ f,
3049
+ prisca_v1_core_access_manager_access_manager_pb.UsersRole.serializeBinaryToWriter
3050
+ );
3051
+ }
3052
+ };
3053
+
3054
+
3055
+ /**
3056
+ * optional int64 id = 1;
3057
+ * @return {number}
3058
+ */
3059
+ proto.UserResponse.prototype.getId = function() {
3060
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3061
+ };
3062
+
3063
+
3064
+ /**
3065
+ * @param {number} value
3066
+ * @return {!proto.UserResponse} returns this
3067
+ */
3068
+ proto.UserResponse.prototype.setId = function(value) {
3069
+ return jspb.Message.setProto3IntField(this, 1, value);
3070
+ };
3071
+
3072
+
3073
+ /**
3074
+ * optional string name = 2;
3075
+ * @return {string}
3076
+ */
3077
+ proto.UserResponse.prototype.getName = function() {
3078
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3079
+ };
3080
+
3081
+
3082
+ /**
3083
+ * @param {string} value
3084
+ * @return {!proto.UserResponse} returns this
3085
+ */
3086
+ proto.UserResponse.prototype.setName = function(value) {
3087
+ return jspb.Message.setProto3StringField(this, 2, value);
3088
+ };
3089
+
3090
+
3091
+ /**
3092
+ * optional string email = 3;
3093
+ * @return {string}
3094
+ */
3095
+ proto.UserResponse.prototype.getEmail = function() {
3096
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3097
+ };
3098
+
3099
+
3100
+ /**
3101
+ * @param {string} value
3102
+ * @return {!proto.UserResponse} returns this
3103
+ */
3104
+ proto.UserResponse.prototype.setEmail = function(value) {
3105
+ return jspb.Message.setProto3StringField(this, 3, value);
3106
+ };
3107
+
3108
+
3109
+ /**
3110
+ * optional string token = 4;
3111
+ * @return {string}
3112
+ */
3113
+ proto.UserResponse.prototype.getToken = function() {
3114
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3115
+ };
3116
+
3117
+
3118
+ /**
3119
+ * @param {string} value
3120
+ * @return {!proto.UserResponse} returns this
3121
+ */
3122
+ proto.UserResponse.prototype.setToken = function(value) {
3123
+ return jspb.Message.setProto3StringField(this, 4, value);
3124
+ };
3125
+
3126
+
3127
+ /**
3128
+ * optional string references_id = 5;
3129
+ * @return {string}
3130
+ */
3131
+ proto.UserResponse.prototype.getReferencesId = function() {
3132
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3133
+ };
3134
+
3135
+
3136
+ /**
3137
+ * @param {string} value
3138
+ * @return {!proto.UserResponse} returns this
3139
+ */
3140
+ proto.UserResponse.prototype.setReferencesId = function(value) {
3141
+ return jspb.Message.setProto3StringField(this, 5, value);
3142
+ };
3143
+
3144
+
3145
+ /**
3146
+ * repeated UsersRole users_role = 6;
3147
+ * @return {!Array<!proto.UsersRole>}
3148
+ */
3149
+ proto.UserResponse.prototype.getUsersRoleList = function() {
3150
+ return /** @type{!Array<!proto.UsersRole>} */ (
3151
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_access_manager_access_manager_pb.UsersRole, 6));
3152
+ };
3153
+
3154
+
3155
+ /**
3156
+ * @param {!Array<!proto.UsersRole>} value
3157
+ * @return {!proto.UserResponse} returns this
3158
+ */
3159
+ proto.UserResponse.prototype.setUsersRoleList = function(value) {
3160
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
3161
+ };
3162
+
3163
+
3164
+ /**
3165
+ * @param {!proto.UsersRole=} opt_value
3166
+ * @param {number=} opt_index
3167
+ * @return {!proto.UsersRole}
3168
+ */
3169
+ proto.UserResponse.prototype.addUsersRole = function(opt_value, opt_index) {
3170
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.UsersRole, opt_index);
3171
+ };
3172
+
3173
+
3174
+ /**
3175
+ * Clears the list making it empty but non-null.
3176
+ * @return {!proto.UserResponse} returns this
3177
+ */
3178
+ proto.UserResponse.prototype.clearUsersRoleList = function() {
3179
+ return this.setUsersRoleList([]);
3180
+ };
3181
+
3182
+
3183
+
3184
+
3185
+
3186
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3187
+ /**
3188
+ * Creates an object representation of this proto.
3189
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3190
+ * Optional fields that are not set will be set to undefined.
3191
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3192
+ * For the list of reserved names please see:
3193
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3194
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3195
+ * JSPB instance for transitional soy proto support:
3196
+ * http://goto/soy-param-migration
3197
+ * @return {!Object}
3198
+ */
3199
+ proto.AccessResponse.prototype.toObject = function(opt_includeInstance) {
3200
+ return proto.AccessResponse.toObject(opt_includeInstance, this);
3201
+ };
3202
+
3203
+
3204
+ /**
3205
+ * Static version of the {@see toObject} method.
3206
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3207
+ * the JSPB instance for transitional soy proto support:
3208
+ * http://goto/soy-param-migration
3209
+ * @param {!proto.AccessResponse} msg The msg instance to transform.
3210
+ * @return {!Object}
3211
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3212
+ */
3213
+ proto.AccessResponse.toObject = function(includeInstance, msg) {
3214
+ var f, obj = {
3215
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3216
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
3217
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, ""),
3218
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
3219
+ keyprefix: jspb.Message.getFieldWithDefault(msg, 5, "")
3220
+ };
3221
+
3222
+ if (includeInstance) {
3223
+ obj.$jspbMessageInstance = msg;
3224
+ }
3225
+ return obj;
3226
+ };
3227
+ }
3228
+
3229
+
3230
+ /**
3231
+ * Deserializes binary data (in protobuf wire format).
3232
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3233
+ * @return {!proto.AccessResponse}
3234
+ */
3235
+ proto.AccessResponse.deserializeBinary = function(bytes) {
3236
+ var reader = new jspb.BinaryReader(bytes);
3237
+ var msg = new proto.AccessResponse;
3238
+ return proto.AccessResponse.deserializeBinaryFromReader(msg, reader);
3239
+ };
3240
+
3241
+
3242
+ /**
3243
+ * Deserializes binary data (in protobuf wire format) from the
3244
+ * given reader into the given message object.
3245
+ * @param {!proto.AccessResponse} msg The message object to deserialize into.
3246
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3247
+ * @return {!proto.AccessResponse}
3248
+ */
3249
+ proto.AccessResponse.deserializeBinaryFromReader = function(msg, reader) {
3250
+ while (reader.nextField()) {
3251
+ if (reader.isEndGroup()) {
3252
+ break;
3253
+ }
3254
+ var field = reader.getFieldNumber();
3255
+ switch (field) {
3256
+ case 1:
3257
+ var value = /** @type {string} */ (reader.readString());
3258
+ msg.setName(value);
3259
+ break;
3260
+ case 2:
3261
+ var value = /** @type {number} */ (reader.readInt64());
3262
+ msg.setUserid(value);
3263
+ break;
3264
+ case 3:
3265
+ var value = /** @type {string} */ (reader.readString());
3266
+ msg.setScopes(value);
3267
+ break;
3268
+ case 4:
3269
+ var value = /** @type {string} */ (reader.readString());
3270
+ msg.setStatus(value);
3271
+ break;
3272
+ case 5:
3273
+ var value = /** @type {string} */ (reader.readString());
3274
+ msg.setKeyprefix(value);
3275
+ break;
3276
+ default:
3277
+ reader.skipField();
3278
+ break;
3279
+ }
3280
+ }
3281
+ return msg;
3282
+ };
3283
+
3284
+
3285
+ /**
3286
+ * Serializes the message to binary data (in protobuf wire format).
3287
+ * @return {!Uint8Array}
3288
+ */
3289
+ proto.AccessResponse.prototype.serializeBinary = function() {
3290
+ var writer = new jspb.BinaryWriter();
3291
+ proto.AccessResponse.serializeBinaryToWriter(this, writer);
3292
+ return writer.getResultBuffer();
3293
+ };
3294
+
3295
+
3296
+ /**
3297
+ * Serializes the given message to binary data (in protobuf wire
3298
+ * format), writing to the given BinaryWriter.
3299
+ * @param {!proto.AccessResponse} message
3300
+ * @param {!jspb.BinaryWriter} writer
3301
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3302
+ */
3303
+ proto.AccessResponse.serializeBinaryToWriter = function(message, writer) {
3304
+ var f = undefined;
3305
+ f = message.getName();
3306
+ if (f.length > 0) {
3307
+ writer.writeString(
3308
+ 1,
3309
+ f
3310
+ );
3311
+ }
3312
+ f = message.getUserid();
3313
+ if (f !== 0) {
3314
+ writer.writeInt64(
3315
+ 2,
3316
+ f
3317
+ );
3318
+ }
3319
+ f = message.getScopes();
3320
+ if (f.length > 0) {
3321
+ writer.writeString(
3322
+ 3,
3323
+ f
3324
+ );
3325
+ }
3326
+ f = message.getStatus();
3327
+ if (f.length > 0) {
3328
+ writer.writeString(
3329
+ 4,
3330
+ f
3331
+ );
3332
+ }
3333
+ f = message.getKeyprefix();
3334
+ if (f.length > 0) {
3335
+ writer.writeString(
3336
+ 5,
3337
+ f
3338
+ );
3339
+ }
3340
+ };
3341
+
3342
+
3343
+ /**
3344
+ * optional string name = 1;
3345
+ * @return {string}
3346
+ */
3347
+ proto.AccessResponse.prototype.getName = function() {
3348
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3349
+ };
3350
+
3351
+
3352
+ /**
3353
+ * @param {string} value
3354
+ * @return {!proto.AccessResponse} returns this
3355
+ */
3356
+ proto.AccessResponse.prototype.setName = function(value) {
3357
+ return jspb.Message.setProto3StringField(this, 1, value);
3358
+ };
3359
+
3360
+
3361
+ /**
3362
+ * optional int64 userId = 2;
3363
+ * @return {number}
3364
+ */
3365
+ proto.AccessResponse.prototype.getUserid = function() {
3366
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3367
+ };
3368
+
3369
+
3370
+ /**
3371
+ * @param {number} value
3372
+ * @return {!proto.AccessResponse} returns this
3373
+ */
3374
+ proto.AccessResponse.prototype.setUserid = function(value) {
3375
+ return jspb.Message.setProto3IntField(this, 2, value);
3376
+ };
3377
+
3378
+
3379
+ /**
3380
+ * optional string scopes = 3;
3381
+ * @return {string}
3382
+ */
3383
+ proto.AccessResponse.prototype.getScopes = function() {
3384
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3385
+ };
3386
+
3387
+
3388
+ /**
3389
+ * @param {string} value
3390
+ * @return {!proto.AccessResponse} returns this
3391
+ */
3392
+ proto.AccessResponse.prototype.setScopes = function(value) {
3393
+ return jspb.Message.setProto3StringField(this, 3, value);
3394
+ };
3395
+
3396
+
3397
+ /**
3398
+ * optional string status = 4;
3399
+ * @return {string}
3400
+ */
3401
+ proto.AccessResponse.prototype.getStatus = function() {
3402
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3403
+ };
3404
+
3405
+
3406
+ /**
3407
+ * @param {string} value
3408
+ * @return {!proto.AccessResponse} returns this
3409
+ */
3410
+ proto.AccessResponse.prototype.setStatus = function(value) {
3411
+ return jspb.Message.setProto3StringField(this, 4, value);
3412
+ };
3413
+
3414
+
3415
+ /**
3416
+ * optional string keyPrefix = 5;
3417
+ * @return {string}
3418
+ */
3419
+ proto.AccessResponse.prototype.getKeyprefix = function() {
3420
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3421
+ };
3422
+
3423
+
3424
+ /**
3425
+ * @param {string} value
3426
+ * @return {!proto.AccessResponse} returns this
3427
+ */
3428
+ proto.AccessResponse.prototype.setKeyprefix = function(value) {
3429
+ return jspb.Message.setProto3StringField(this, 5, value);
3430
+ };
3431
+
3432
+
3433
+
3434
+
3435
+
3436
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3437
+ /**
3438
+ * Creates an object representation of this proto.
3439
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3440
+ * Optional fields that are not set will be set to undefined.
3441
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3442
+ * For the list of reserved names please see:
3443
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3444
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3445
+ * JSPB instance for transitional soy proto support:
3446
+ * http://goto/soy-param-migration
3447
+ * @return {!Object}
3448
+ */
3449
+ proto.AccessApiManagersResponse.prototype.toObject = function(opt_includeInstance) {
3450
+ return proto.AccessApiManagersResponse.toObject(opt_includeInstance, this);
3451
+ };
3452
+
3453
+
3454
+ /**
3455
+ * Static version of the {@see toObject} method.
3456
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3457
+ * the JSPB instance for transitional soy proto support:
3458
+ * http://goto/soy-param-migration
3459
+ * @param {!proto.AccessApiManagersResponse} msg The msg instance to transform.
3460
+ * @return {!Object}
3461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3462
+ */
3463
+ proto.AccessApiManagersResponse.toObject = function(includeInstance, msg) {
3464
+ var f, obj = {
3465
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3466
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
3467
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, ""),
3468
+ status: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3469
+ keyprefix: jspb.Message.getFieldWithDefault(msg, 5, ""),
3470
+ val: jspb.Message.getFieldWithDefault(msg, 6, ""),
3471
+ createdat: jspb.Message.getFieldWithDefault(msg, 7, ""),
3472
+ updatedat: jspb.Message.getFieldWithDefault(msg, 8, "")
3473
+ };
3474
+
3475
+ if (includeInstance) {
3476
+ obj.$jspbMessageInstance = msg;
3477
+ }
3478
+ return obj;
3479
+ };
3480
+ }
3481
+
3482
+
3483
+ /**
3484
+ * Deserializes binary data (in protobuf wire format).
3485
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3486
+ * @return {!proto.AccessApiManagersResponse}
3487
+ */
3488
+ proto.AccessApiManagersResponse.deserializeBinary = function(bytes) {
3489
+ var reader = new jspb.BinaryReader(bytes);
3490
+ var msg = new proto.AccessApiManagersResponse;
3491
+ return proto.AccessApiManagersResponse.deserializeBinaryFromReader(msg, reader);
3492
+ };
3493
+
3494
+
3495
+ /**
3496
+ * Deserializes binary data (in protobuf wire format) from the
3497
+ * given reader into the given message object.
3498
+ * @param {!proto.AccessApiManagersResponse} msg The message object to deserialize into.
3499
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3500
+ * @return {!proto.AccessApiManagersResponse}
3501
+ */
3502
+ proto.AccessApiManagersResponse.deserializeBinaryFromReader = function(msg, reader) {
3503
+ while (reader.nextField()) {
3504
+ if (reader.isEndGroup()) {
3505
+ break;
3506
+ }
3507
+ var field = reader.getFieldNumber();
3508
+ switch (field) {
3509
+ case 1:
3510
+ var value = /** @type {string} */ (reader.readString());
3511
+ msg.setName(value);
3512
+ break;
3513
+ case 2:
3514
+ var value = /** @type {number} */ (reader.readInt64());
3515
+ msg.setUserid(value);
3516
+ break;
3517
+ case 3:
3518
+ var value = /** @type {string} */ (reader.readString());
3519
+ msg.setScopes(value);
3520
+ break;
3521
+ case 4:
3522
+ var value = /** @type {boolean} */ (reader.readBool());
3523
+ msg.setStatus(value);
3524
+ break;
3525
+ case 5:
3526
+ var value = /** @type {string} */ (reader.readString());
3527
+ msg.setKeyprefix(value);
3528
+ break;
3529
+ case 6:
3530
+ var value = /** @type {string} */ (reader.readString());
3531
+ msg.setVal(value);
3532
+ break;
3533
+ case 7:
3534
+ var value = /** @type {string} */ (reader.readString());
3535
+ msg.setCreatedat(value);
3536
+ break;
3537
+ case 8:
3538
+ var value = /** @type {string} */ (reader.readString());
3539
+ msg.setUpdatedat(value);
3540
+ break;
3541
+ default:
3542
+ reader.skipField();
3543
+ break;
3544
+ }
3545
+ }
3546
+ return msg;
3547
+ };
3548
+
3549
+
3550
+ /**
3551
+ * Serializes the message to binary data (in protobuf wire format).
3552
+ * @return {!Uint8Array}
3553
+ */
3554
+ proto.AccessApiManagersResponse.prototype.serializeBinary = function() {
3555
+ var writer = new jspb.BinaryWriter();
3556
+ proto.AccessApiManagersResponse.serializeBinaryToWriter(this, writer);
3557
+ return writer.getResultBuffer();
3558
+ };
3559
+
3560
+
3561
+ /**
3562
+ * Serializes the given message to binary data (in protobuf wire
3563
+ * format), writing to the given BinaryWriter.
3564
+ * @param {!proto.AccessApiManagersResponse} message
3565
+ * @param {!jspb.BinaryWriter} writer
3566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3567
+ */
3568
+ proto.AccessApiManagersResponse.serializeBinaryToWriter = function(message, writer) {
3569
+ var f = undefined;
3570
+ f = message.getName();
3571
+ if (f.length > 0) {
3572
+ writer.writeString(
3573
+ 1,
3574
+ f
3575
+ );
3576
+ }
3577
+ f = message.getUserid();
3578
+ if (f !== 0) {
3579
+ writer.writeInt64(
3580
+ 2,
3581
+ f
3582
+ );
3583
+ }
3584
+ f = message.getScopes();
3585
+ if (f.length > 0) {
3586
+ writer.writeString(
3587
+ 3,
3588
+ f
3589
+ );
3590
+ }
3591
+ f = message.getStatus();
3592
+ if (f) {
3593
+ writer.writeBool(
3594
+ 4,
3595
+ f
3596
+ );
3597
+ }
3598
+ f = message.getKeyprefix();
3599
+ if (f.length > 0) {
3600
+ writer.writeString(
3601
+ 5,
3602
+ f
3603
+ );
3604
+ }
3605
+ f = message.getVal();
3606
+ if (f.length > 0) {
3607
+ writer.writeString(
3608
+ 6,
3609
+ f
3610
+ );
3611
+ }
3612
+ f = message.getCreatedat();
3613
+ if (f.length > 0) {
3614
+ writer.writeString(
3615
+ 7,
3616
+ f
3617
+ );
3618
+ }
3619
+ f = message.getUpdatedat();
3620
+ if (f.length > 0) {
3621
+ writer.writeString(
3622
+ 8,
3623
+ f
3624
+ );
3625
+ }
3626
+ };
3627
+
3628
+
3629
+ /**
3630
+ * optional string name = 1;
3631
+ * @return {string}
3632
+ */
3633
+ proto.AccessApiManagersResponse.prototype.getName = function() {
3634
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3635
+ };
3636
+
3637
+
3638
+ /**
3639
+ * @param {string} value
3640
+ * @return {!proto.AccessApiManagersResponse} returns this
3641
+ */
3642
+ proto.AccessApiManagersResponse.prototype.setName = function(value) {
3643
+ return jspb.Message.setProto3StringField(this, 1, value);
3644
+ };
3645
+
3646
+
3647
+ /**
3648
+ * optional int64 userId = 2;
3649
+ * @return {number}
3650
+ */
3651
+ proto.AccessApiManagersResponse.prototype.getUserid = function() {
3652
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3653
+ };
3654
+
3655
+
3656
+ /**
3657
+ * @param {number} value
3658
+ * @return {!proto.AccessApiManagersResponse} returns this
3659
+ */
3660
+ proto.AccessApiManagersResponse.prototype.setUserid = function(value) {
3661
+ return jspb.Message.setProto3IntField(this, 2, value);
3662
+ };
3663
+
3664
+
3665
+ /**
3666
+ * optional string scopes = 3;
3667
+ * @return {string}
3668
+ */
3669
+ proto.AccessApiManagersResponse.prototype.getScopes = function() {
3670
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3671
+ };
3672
+
3673
+
3674
+ /**
3675
+ * @param {string} value
3676
+ * @return {!proto.AccessApiManagersResponse} returns this
3677
+ */
3678
+ proto.AccessApiManagersResponse.prototype.setScopes = function(value) {
3679
+ return jspb.Message.setProto3StringField(this, 3, value);
3680
+ };
3681
+
3682
+
3683
+ /**
3684
+ * optional bool status = 4;
3685
+ * @return {boolean}
3686
+ */
3687
+ proto.AccessApiManagersResponse.prototype.getStatus = function() {
3688
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
3689
+ };
3690
+
3691
+
3692
+ /**
3693
+ * @param {boolean} value
3694
+ * @return {!proto.AccessApiManagersResponse} returns this
3695
+ */
3696
+ proto.AccessApiManagersResponse.prototype.setStatus = function(value) {
3697
+ return jspb.Message.setProto3BooleanField(this, 4, value);
3698
+ };
3699
+
3700
+
3701
+ /**
3702
+ * optional string keyPrefix = 5;
3703
+ * @return {string}
3704
+ */
3705
+ proto.AccessApiManagersResponse.prototype.getKeyprefix = function() {
3706
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3707
+ };
3708
+
3709
+
3710
+ /**
3711
+ * @param {string} value
3712
+ * @return {!proto.AccessApiManagersResponse} returns this
3713
+ */
3714
+ proto.AccessApiManagersResponse.prototype.setKeyprefix = function(value) {
3715
+ return jspb.Message.setProto3StringField(this, 5, value);
3716
+ };
3717
+
3718
+
3719
+ /**
3720
+ * optional string val = 6;
3721
+ * @return {string}
3722
+ */
3723
+ proto.AccessApiManagersResponse.prototype.getVal = function() {
3724
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3725
+ };
3726
+
3727
+
3728
+ /**
3729
+ * @param {string} value
3730
+ * @return {!proto.AccessApiManagersResponse} returns this
3731
+ */
3732
+ proto.AccessApiManagersResponse.prototype.setVal = function(value) {
3733
+ return jspb.Message.setProto3StringField(this, 6, value);
3734
+ };
3735
+
3736
+
3737
+ /**
3738
+ * optional string createdAt = 7;
3739
+ * @return {string}
3740
+ */
3741
+ proto.AccessApiManagersResponse.prototype.getCreatedat = function() {
3742
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3743
+ };
3744
+
3745
+
3746
+ /**
3747
+ * @param {string} value
3748
+ * @return {!proto.AccessApiManagersResponse} returns this
3749
+ */
3750
+ proto.AccessApiManagersResponse.prototype.setCreatedat = function(value) {
3751
+ return jspb.Message.setProto3StringField(this, 7, value);
3752
+ };
3753
+
3754
+
3755
+ /**
3756
+ * optional string updatedAt = 8;
3757
+ * @return {string}
3758
+ */
3759
+ proto.AccessApiManagersResponse.prototype.getUpdatedat = function() {
3760
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3761
+ };
3762
+
3763
+
3764
+ /**
3765
+ * @param {string} value
3766
+ * @return {!proto.AccessApiManagersResponse} returns this
3767
+ */
3768
+ proto.AccessApiManagersResponse.prototype.setUpdatedat = function(value) {
3769
+ return jspb.Message.setProto3StringField(this, 8, value);
3770
+ };
3771
+
3772
+
3773
+
3774
+ /**
3775
+ * List of repeated fields within this message type.
3776
+ * @private {!Array<number>}
3777
+ * @const
3778
+ */
3779
+ proto.ListAccessResponse.repeatedFields_ = [1];
3780
+
3781
+
3782
+
3783
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3784
+ /**
3785
+ * Creates an object representation of this proto.
3786
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3787
+ * Optional fields that are not set will be set to undefined.
3788
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3789
+ * For the list of reserved names please see:
3790
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3791
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3792
+ * JSPB instance for transitional soy proto support:
3793
+ * http://goto/soy-param-migration
3794
+ * @return {!Object}
3795
+ */
3796
+ proto.ListAccessResponse.prototype.toObject = function(opt_includeInstance) {
3797
+ return proto.ListAccessResponse.toObject(opt_includeInstance, this);
3798
+ };
3799
+
3800
+
3801
+ /**
3802
+ * Static version of the {@see toObject} method.
3803
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3804
+ * the JSPB instance for transitional soy proto support:
3805
+ * http://goto/soy-param-migration
3806
+ * @param {!proto.ListAccessResponse} msg The msg instance to transform.
3807
+ * @return {!Object}
3808
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3809
+ */
3810
+ proto.ListAccessResponse.toObject = function(includeInstance, msg) {
3811
+ var f, obj = {
3812
+ dataList: jspb.Message.toObjectList(msg.getDataList(),
3813
+ proto.AccessResponse.toObject, includeInstance)
3814
+ };
3815
+
3816
+ if (includeInstance) {
3817
+ obj.$jspbMessageInstance = msg;
3818
+ }
3819
+ return obj;
3820
+ };
3821
+ }
3822
+
3823
+
3824
+ /**
3825
+ * Deserializes binary data (in protobuf wire format).
3826
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3827
+ * @return {!proto.ListAccessResponse}
3828
+ */
3829
+ proto.ListAccessResponse.deserializeBinary = function(bytes) {
3830
+ var reader = new jspb.BinaryReader(bytes);
3831
+ var msg = new proto.ListAccessResponse;
3832
+ return proto.ListAccessResponse.deserializeBinaryFromReader(msg, reader);
3833
+ };
3834
+
3835
+
3836
+ /**
3837
+ * Deserializes binary data (in protobuf wire format) from the
3838
+ * given reader into the given message object.
3839
+ * @param {!proto.ListAccessResponse} msg The message object to deserialize into.
3840
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3841
+ * @return {!proto.ListAccessResponse}
3842
+ */
3843
+ proto.ListAccessResponse.deserializeBinaryFromReader = function(msg, reader) {
3844
+ while (reader.nextField()) {
3845
+ if (reader.isEndGroup()) {
3846
+ break;
3847
+ }
3848
+ var field = reader.getFieldNumber();
3849
+ switch (field) {
3850
+ case 1:
3851
+ var value = new proto.AccessResponse;
3852
+ reader.readMessage(value,proto.AccessResponse.deserializeBinaryFromReader);
3853
+ msg.addData(value);
3854
+ break;
3855
+ default:
3856
+ reader.skipField();
3857
+ break;
3858
+ }
3859
+ }
3860
+ return msg;
3861
+ };
3862
+
3863
+
3864
+ /**
3865
+ * Serializes the message to binary data (in protobuf wire format).
3866
+ * @return {!Uint8Array}
3867
+ */
3868
+ proto.ListAccessResponse.prototype.serializeBinary = function() {
3869
+ var writer = new jspb.BinaryWriter();
3870
+ proto.ListAccessResponse.serializeBinaryToWriter(this, writer);
3871
+ return writer.getResultBuffer();
3872
+ };
3873
+
3874
+
3875
+ /**
3876
+ * Serializes the given message to binary data (in protobuf wire
3877
+ * format), writing to the given BinaryWriter.
3878
+ * @param {!proto.ListAccessResponse} message
3879
+ * @param {!jspb.BinaryWriter} writer
3880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3881
+ */
3882
+ proto.ListAccessResponse.serializeBinaryToWriter = function(message, writer) {
3883
+ var f = undefined;
3884
+ f = message.getDataList();
3885
+ if (f.length > 0) {
3886
+ writer.writeRepeatedMessage(
3887
+ 1,
3888
+ f,
3889
+ proto.AccessResponse.serializeBinaryToWriter
3890
+ );
3891
+ }
3892
+ };
3893
+
3894
+
3895
+ /**
3896
+ * repeated AccessResponse data = 1;
3897
+ * @return {!Array<!proto.AccessResponse>}
3898
+ */
3899
+ proto.ListAccessResponse.prototype.getDataList = function() {
3900
+ return /** @type{!Array<!proto.AccessResponse>} */ (
3901
+ jspb.Message.getRepeatedWrapperField(this, proto.AccessResponse, 1));
3902
+ };
3903
+
3904
+
3905
+ /**
3906
+ * @param {!Array<!proto.AccessResponse>} value
3907
+ * @return {!proto.ListAccessResponse} returns this
3908
+ */
3909
+ proto.ListAccessResponse.prototype.setDataList = function(value) {
3910
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3911
+ };
3912
+
3913
+
3914
+ /**
3915
+ * @param {!proto.AccessResponse=} opt_value
3916
+ * @param {number=} opt_index
3917
+ * @return {!proto.AccessResponse}
3918
+ */
3919
+ proto.ListAccessResponse.prototype.addData = function(opt_value, opt_index) {
3920
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.AccessResponse, opt_index);
3921
+ };
3922
+
3923
+
3924
+ /**
3925
+ * Clears the list making it empty but non-null.
3926
+ * @return {!proto.ListAccessResponse} returns this
3927
+ */
3928
+ proto.ListAccessResponse.prototype.clearDataList = function() {
3929
+ return this.setDataList([]);
3930
+ };
3931
+
3932
+
3933
+
3934
+
3935
+
3936
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3937
+ /**
3938
+ * Creates an object representation of this proto.
3939
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3940
+ * Optional fields that are not set will be set to undefined.
3941
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3942
+ * For the list of reserved names please see:
3943
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3944
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3945
+ * JSPB instance for transitional soy proto support:
3946
+ * http://goto/soy-param-migration
3947
+ * @return {!Object}
3948
+ */
3949
+ proto.ChangePasswordResponse.prototype.toObject = function(opt_includeInstance) {
3950
+ return proto.ChangePasswordResponse.toObject(opt_includeInstance, this);
3951
+ };
3952
+
3953
+
3954
+ /**
3955
+ * Static version of the {@see toObject} method.
3956
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3957
+ * the JSPB instance for transitional soy proto support:
3958
+ * http://goto/soy-param-migration
3959
+ * @param {!proto.ChangePasswordResponse} msg The msg instance to transform.
3960
+ * @return {!Object}
3961
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3962
+ */
3963
+ proto.ChangePasswordResponse.toObject = function(includeInstance, msg) {
3964
+ var f, obj = {
3965
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3966
+ };
3967
+
3968
+ if (includeInstance) {
3969
+ obj.$jspbMessageInstance = msg;
3970
+ }
3971
+ return obj;
3972
+ };
3973
+ }
3974
+
3975
+
3976
+ /**
3977
+ * Deserializes binary data (in protobuf wire format).
3978
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3979
+ * @return {!proto.ChangePasswordResponse}
3980
+ */
3981
+ proto.ChangePasswordResponse.deserializeBinary = function(bytes) {
3982
+ var reader = new jspb.BinaryReader(bytes);
3983
+ var msg = new proto.ChangePasswordResponse;
3984
+ return proto.ChangePasswordResponse.deserializeBinaryFromReader(msg, reader);
3985
+ };
3986
+
3987
+
3988
+ /**
3989
+ * Deserializes binary data (in protobuf wire format) from the
3990
+ * given reader into the given message object.
3991
+ * @param {!proto.ChangePasswordResponse} msg The message object to deserialize into.
3992
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3993
+ * @return {!proto.ChangePasswordResponse}
3994
+ */
3995
+ proto.ChangePasswordResponse.deserializeBinaryFromReader = function(msg, reader) {
3996
+ while (reader.nextField()) {
3997
+ if (reader.isEndGroup()) {
3998
+ break;
3999
+ }
4000
+ var field = reader.getFieldNumber();
4001
+ switch (field) {
4002
+ case 1:
4003
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
4004
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4005
+ msg.setMeta(value);
4006
+ break;
4007
+ default:
4008
+ reader.skipField();
4009
+ break;
4010
+ }
4011
+ }
4012
+ return msg;
4013
+ };
4014
+
4015
+
4016
+ /**
4017
+ * Serializes the message to binary data (in protobuf wire format).
4018
+ * @return {!Uint8Array}
4019
+ */
4020
+ proto.ChangePasswordResponse.prototype.serializeBinary = function() {
4021
+ var writer = new jspb.BinaryWriter();
4022
+ proto.ChangePasswordResponse.serializeBinaryToWriter(this, writer);
4023
+ return writer.getResultBuffer();
4024
+ };
4025
+
4026
+
4027
+ /**
4028
+ * Serializes the given message to binary data (in protobuf wire
4029
+ * format), writing to the given BinaryWriter.
4030
+ * @param {!proto.ChangePasswordResponse} message
4031
+ * @param {!jspb.BinaryWriter} writer
4032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4033
+ */
4034
+ proto.ChangePasswordResponse.serializeBinaryToWriter = function(message, writer) {
4035
+ var f = undefined;
4036
+ f = message.getMeta();
4037
+ if (f != null) {
4038
+ writer.writeMessage(
4039
+ 1,
4040
+ f,
4041
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4042
+ );
4043
+ }
4044
+ };
4045
+
4046
+
4047
+ /**
4048
+ * optional prisca.v1.global.meta.Meta meta = 1;
4049
+ * @return {?proto.prisca.v1.global.meta.Meta}
4050
+ */
4051
+ proto.ChangePasswordResponse.prototype.getMeta = function() {
4052
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4053
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
4054
+ };
4055
+
4056
+
4057
+ /**
4058
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4059
+ * @return {!proto.ChangePasswordResponse} returns this
4060
+ */
4061
+ proto.ChangePasswordResponse.prototype.setMeta = function(value) {
4062
+ return jspb.Message.setWrapperField(this, 1, value);
4063
+ };
4064
+
4065
+
4066
+ /**
4067
+ * Clears the message field making it undefined.
4068
+ * @return {!proto.ChangePasswordResponse} returns this
4069
+ */
4070
+ proto.ChangePasswordResponse.prototype.clearMeta = function() {
4071
+ return this.setMeta(undefined);
4072
+ };
4073
+
4074
+
4075
+ /**
4076
+ * Returns whether this field is set.
4077
+ * @return {boolean}
4078
+ */
4079
+ proto.ChangePasswordResponse.prototype.hasMeta = function() {
4080
+ return jspb.Message.getField(this, 1) != null;
4081
+ };
4082
+
4083
+
4084
+
4085
+
4086
+
4087
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4088
+ /**
4089
+ * Creates an object representation of this proto.
4090
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4091
+ * Optional fields that are not set will be set to undefined.
4092
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4093
+ * For the list of reserved names please see:
4094
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4095
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4096
+ * JSPB instance for transitional soy proto support:
4097
+ * http://goto/soy-param-migration
4098
+ * @return {!Object}
4099
+ */
4100
+ proto.GetListUserRequest.prototype.toObject = function(opt_includeInstance) {
4101
+ return proto.GetListUserRequest.toObject(opt_includeInstance, this);
4102
+ };
4103
+
4104
+
4105
+ /**
4106
+ * Static version of the {@see toObject} method.
4107
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4108
+ * the JSPB instance for transitional soy proto support:
4109
+ * http://goto/soy-param-migration
4110
+ * @param {!proto.GetListUserRequest} msg The msg instance to transform.
4111
+ * @return {!Object}
4112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4113
+ */
4114
+ proto.GetListUserRequest.toObject = function(includeInstance, msg) {
4115
+ var f, obj = {
4116
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
4117
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
4118
+ };
4119
+
4120
+ if (includeInstance) {
4121
+ obj.$jspbMessageInstance = msg;
4122
+ }
4123
+ return obj;
4124
+ };
4125
+ }
4126
+
4127
+
4128
+ /**
4129
+ * Deserializes binary data (in protobuf wire format).
4130
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4131
+ * @return {!proto.GetListUserRequest}
4132
+ */
4133
+ proto.GetListUserRequest.deserializeBinary = function(bytes) {
4134
+ var reader = new jspb.BinaryReader(bytes);
4135
+ var msg = new proto.GetListUserRequest;
4136
+ return proto.GetListUserRequest.deserializeBinaryFromReader(msg, reader);
4137
+ };
4138
+
4139
+
4140
+ /**
4141
+ * Deserializes binary data (in protobuf wire format) from the
4142
+ * given reader into the given message object.
4143
+ * @param {!proto.GetListUserRequest} msg The message object to deserialize into.
4144
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4145
+ * @return {!proto.GetListUserRequest}
4146
+ */
4147
+ proto.GetListUserRequest.deserializeBinaryFromReader = function(msg, reader) {
4148
+ while (reader.nextField()) {
4149
+ if (reader.isEndGroup()) {
4150
+ break;
4151
+ }
4152
+ var field = reader.getFieldNumber();
4153
+ switch (field) {
4154
+ case 1:
4155
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
4156
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
4157
+ msg.setPagination(value);
4158
+ break;
4159
+ case 2:
4160
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
4161
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
4162
+ msg.setQuery(value);
4163
+ break;
4164
+ default:
4165
+ reader.skipField();
4166
+ break;
4167
+ }
4168
+ }
4169
+ return msg;
4170
+ };
4171
+
4172
+
4173
+ /**
4174
+ * Serializes the message to binary data (in protobuf wire format).
4175
+ * @return {!Uint8Array}
4176
+ */
4177
+ proto.GetListUserRequest.prototype.serializeBinary = function() {
4178
+ var writer = new jspb.BinaryWriter();
4179
+ proto.GetListUserRequest.serializeBinaryToWriter(this, writer);
4180
+ return writer.getResultBuffer();
4181
+ };
4182
+
4183
+
4184
+ /**
4185
+ * Serializes the given message to binary data (in protobuf wire
4186
+ * format), writing to the given BinaryWriter.
4187
+ * @param {!proto.GetListUserRequest} message
4188
+ * @param {!jspb.BinaryWriter} writer
4189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4190
+ */
4191
+ proto.GetListUserRequest.serializeBinaryToWriter = function(message, writer) {
4192
+ var f = undefined;
4193
+ f = message.getPagination();
4194
+ if (f != null) {
4195
+ writer.writeMessage(
4196
+ 1,
4197
+ f,
4198
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
4199
+ );
4200
+ }
4201
+ f = message.getQuery();
4202
+ if (f != null) {
4203
+ writer.writeMessage(
4204
+ 2,
4205
+ f,
4206
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
4207
+ );
4208
+ }
4209
+ };
4210
+
4211
+
4212
+ /**
4213
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
4214
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
4215
+ */
4216
+ proto.GetListUserRequest.prototype.getPagination = function() {
4217
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
4218
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
4219
+ };
4220
+
4221
+
4222
+ /**
4223
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
4224
+ * @return {!proto.GetListUserRequest} returns this
4225
+ */
4226
+ proto.GetListUserRequest.prototype.setPagination = function(value) {
4227
+ return jspb.Message.setWrapperField(this, 1, value);
4228
+ };
4229
+
4230
+
4231
+ /**
4232
+ * Clears the message field making it undefined.
4233
+ * @return {!proto.GetListUserRequest} returns this
4234
+ */
4235
+ proto.GetListUserRequest.prototype.clearPagination = function() {
4236
+ return this.setPagination(undefined);
4237
+ };
4238
+
4239
+
4240
+ /**
4241
+ * Returns whether this field is set.
4242
+ * @return {boolean}
4243
+ */
4244
+ proto.GetListUserRequest.prototype.hasPagination = function() {
4245
+ return jspb.Message.getField(this, 1) != null;
4246
+ };
4247
+
4248
+
4249
+ /**
4250
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
4251
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
4252
+ */
4253
+ proto.GetListUserRequest.prototype.getQuery = function() {
4254
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
4255
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
4256
+ };
4257
+
4258
+
4259
+ /**
4260
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
4261
+ * @return {!proto.GetListUserRequest} returns this
4262
+ */
4263
+ proto.GetListUserRequest.prototype.setQuery = function(value) {
4264
+ return jspb.Message.setWrapperField(this, 2, value);
4265
+ };
4266
+
4267
+
4268
+ /**
4269
+ * Clears the message field making it undefined.
4270
+ * @return {!proto.GetListUserRequest} returns this
4271
+ */
4272
+ proto.GetListUserRequest.prototype.clearQuery = function() {
4273
+ return this.setQuery(undefined);
4274
+ };
4275
+
4276
+
4277
+ /**
4278
+ * Returns whether this field is set.
4279
+ * @return {boolean}
4280
+ */
4281
+ proto.GetListUserRequest.prototype.hasQuery = function() {
4282
+ return jspb.Message.getField(this, 2) != null;
4283
+ };
4284
+
4285
+
4286
+
4287
+ /**
4288
+ * List of repeated fields within this message type.
4289
+ * @private {!Array<number>}
4290
+ * @const
4291
+ */
4292
+ proto.GetListUserResponse.repeatedFields_ = [1];
4293
+
4294
+
4295
+
4296
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4297
+ /**
4298
+ * Creates an object representation of this proto.
4299
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4300
+ * Optional fields that are not set will be set to undefined.
4301
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4302
+ * For the list of reserved names please see:
4303
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4304
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4305
+ * JSPB instance for transitional soy proto support:
4306
+ * http://goto/soy-param-migration
4307
+ * @return {!Object}
4308
+ */
4309
+ proto.GetListUserResponse.prototype.toObject = function(opt_includeInstance) {
4310
+ return proto.GetListUserResponse.toObject(opt_includeInstance, this);
4311
+ };
4312
+
4313
+
4314
+ /**
4315
+ * Static version of the {@see toObject} method.
4316
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4317
+ * the JSPB instance for transitional soy proto support:
4318
+ * http://goto/soy-param-migration
4319
+ * @param {!proto.GetListUserResponse} msg The msg instance to transform.
4320
+ * @return {!Object}
4321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4322
+ */
4323
+ proto.GetListUserResponse.toObject = function(includeInstance, msg) {
4324
+ var f, obj = {
4325
+ usersList: jspb.Message.toObjectList(msg.getUsersList(),
4326
+ proto.UserResponse.toObject, includeInstance),
4327
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4328
+ };
4329
+
4330
+ if (includeInstance) {
4331
+ obj.$jspbMessageInstance = msg;
4332
+ }
4333
+ return obj;
4334
+ };
4335
+ }
4336
+
4337
+
4338
+ /**
4339
+ * Deserializes binary data (in protobuf wire format).
4340
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4341
+ * @return {!proto.GetListUserResponse}
4342
+ */
4343
+ proto.GetListUserResponse.deserializeBinary = function(bytes) {
4344
+ var reader = new jspb.BinaryReader(bytes);
4345
+ var msg = new proto.GetListUserResponse;
4346
+ return proto.GetListUserResponse.deserializeBinaryFromReader(msg, reader);
4347
+ };
4348
+
4349
+
4350
+ /**
4351
+ * Deserializes binary data (in protobuf wire format) from the
4352
+ * given reader into the given message object.
4353
+ * @param {!proto.GetListUserResponse} msg The message object to deserialize into.
4354
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4355
+ * @return {!proto.GetListUserResponse}
4356
+ */
4357
+ proto.GetListUserResponse.deserializeBinaryFromReader = function(msg, reader) {
4358
+ while (reader.nextField()) {
4359
+ if (reader.isEndGroup()) {
4360
+ break;
4361
+ }
4362
+ var field = reader.getFieldNumber();
4363
+ switch (field) {
4364
+ case 1:
4365
+ var value = new proto.UserResponse;
4366
+ reader.readMessage(value,proto.UserResponse.deserializeBinaryFromReader);
4367
+ msg.addUsers(value);
4368
+ break;
4369
+ case 2:
4370
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
4371
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4372
+ msg.setMeta(value);
4373
+ break;
4374
+ default:
4375
+ reader.skipField();
4376
+ break;
4377
+ }
4378
+ }
4379
+ return msg;
4380
+ };
4381
+
4382
+
4383
+ /**
4384
+ * Serializes the message to binary data (in protobuf wire format).
4385
+ * @return {!Uint8Array}
4386
+ */
4387
+ proto.GetListUserResponse.prototype.serializeBinary = function() {
4388
+ var writer = new jspb.BinaryWriter();
4389
+ proto.GetListUserResponse.serializeBinaryToWriter(this, writer);
4390
+ return writer.getResultBuffer();
4391
+ };
4392
+
4393
+
4394
+ /**
4395
+ * Serializes the given message to binary data (in protobuf wire
4396
+ * format), writing to the given BinaryWriter.
4397
+ * @param {!proto.GetListUserResponse} message
4398
+ * @param {!jspb.BinaryWriter} writer
4399
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4400
+ */
4401
+ proto.GetListUserResponse.serializeBinaryToWriter = function(message, writer) {
4402
+ var f = undefined;
4403
+ f = message.getUsersList();
4404
+ if (f.length > 0) {
4405
+ writer.writeRepeatedMessage(
4406
+ 1,
4407
+ f,
4408
+ proto.UserResponse.serializeBinaryToWriter
4409
+ );
4410
+ }
4411
+ f = message.getMeta();
4412
+ if (f != null) {
4413
+ writer.writeMessage(
4414
+ 2,
4415
+ f,
4416
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4417
+ );
4418
+ }
4419
+ };
4420
+
4421
+
4422
+ /**
4423
+ * repeated UserResponse users = 1;
4424
+ * @return {!Array<!proto.UserResponse>}
4425
+ */
4426
+ proto.GetListUserResponse.prototype.getUsersList = function() {
4427
+ return /** @type{!Array<!proto.UserResponse>} */ (
4428
+ jspb.Message.getRepeatedWrapperField(this, proto.UserResponse, 1));
4429
+ };
4430
+
4431
+
4432
+ /**
4433
+ * @param {!Array<!proto.UserResponse>} value
4434
+ * @return {!proto.GetListUserResponse} returns this
4435
+ */
4436
+ proto.GetListUserResponse.prototype.setUsersList = function(value) {
4437
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4438
+ };
4439
+
4440
+
4441
+ /**
4442
+ * @param {!proto.UserResponse=} opt_value
4443
+ * @param {number=} opt_index
4444
+ * @return {!proto.UserResponse}
4445
+ */
4446
+ proto.GetListUserResponse.prototype.addUsers = function(opt_value, opt_index) {
4447
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.UserResponse, opt_index);
4448
+ };
4449
+
4450
+
4451
+ /**
4452
+ * Clears the list making it empty but non-null.
4453
+ * @return {!proto.GetListUserResponse} returns this
4454
+ */
4455
+ proto.GetListUserResponse.prototype.clearUsersList = function() {
4456
+ return this.setUsersList([]);
4457
+ };
4458
+
4459
+
4460
+ /**
4461
+ * optional prisca.v1.global.meta.Meta meta = 2;
4462
+ * @return {?proto.prisca.v1.global.meta.Meta}
4463
+ */
4464
+ proto.GetListUserResponse.prototype.getMeta = function() {
4465
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4466
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4467
+ };
4468
+
4469
+
4470
+ /**
4471
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4472
+ * @return {!proto.GetListUserResponse} returns this
4473
+ */
4474
+ proto.GetListUserResponse.prototype.setMeta = function(value) {
4475
+ return jspb.Message.setWrapperField(this, 2, value);
4476
+ };
4477
+
4478
+
4479
+ /**
4480
+ * Clears the message field making it undefined.
4481
+ * @return {!proto.GetListUserResponse} returns this
4482
+ */
4483
+ proto.GetListUserResponse.prototype.clearMeta = function() {
4484
+ return this.setMeta(undefined);
4485
+ };
4486
+
4487
+
4488
+ /**
4489
+ * Returns whether this field is set.
4490
+ * @return {boolean}
4491
+ */
4492
+ proto.GetListUserResponse.prototype.hasMeta = function() {
4493
+ return jspb.Message.getField(this, 2) != null;
4494
+ };
4495
+
4496
+
4497
+ goog.object.extend(exports, proto);