@aldiokta/protocgen 1.0.56 → 1.0.57

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