@ondewo/nlu-client-typescript 3.0.0

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