@aldiokta/protocgen 1.0.54 → 1.0.56

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