@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,1713 @@
1
+ // source: ondewo/nlu/project_role.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_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
21
+ goog.object.extend(proto, google_protobuf_field_mask_pb);
22
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
23
+ goog.object.extend(proto, google_protobuf_empty_pb);
24
+ goog.exportSymbol('proto.ondewo.nlu.CreateProjectRoleRequest', null, global);
25
+ goog.exportSymbol('proto.ondewo.nlu.DefaultProjectRole', null, global);
26
+ goog.exportSymbol('proto.ondewo.nlu.DeleteProjectRoleRequest', null, global);
27
+ goog.exportSymbol('proto.ondewo.nlu.GetProjectRoleRequest', null, global);
28
+ goog.exportSymbol('proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase', null, global);
29
+ goog.exportSymbol('proto.ondewo.nlu.ListProjectRolesRequest', null, global);
30
+ goog.exportSymbol('proto.ondewo.nlu.ListProjectRolesResponse', null, global);
31
+ goog.exportSymbol('proto.ondewo.nlu.ProjectRole', null, global);
32
+ goog.exportSymbol('proto.ondewo.nlu.ProjectRoleView', null, global);
33
+ goog.exportSymbol('proto.ondewo.nlu.UpdateProjectRoleRequest', null, global);
34
+ /**
35
+ * Generated by JsPbCodeGenerator.
36
+ * @param {Array=} opt_data Optional initial data array, typically from a
37
+ * server response, or constructed directly in Javascript. The array is used
38
+ * in place and becomes part of the constructed object. It is not cloned.
39
+ * If no data is provided, the constructed object will be empty, but still
40
+ * valid.
41
+ * @extends {jspb.Message}
42
+ * @constructor
43
+ */
44
+ proto.ondewo.nlu.ProjectRole = function(opt_data) {
45
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ProjectRole.repeatedFields_, null);
46
+ };
47
+ goog.inherits(proto.ondewo.nlu.ProjectRole, jspb.Message);
48
+ if (goog.DEBUG && !COMPILED) {
49
+ /**
50
+ * @public
51
+ * @override
52
+ */
53
+ proto.ondewo.nlu.ProjectRole.displayName = 'proto.ondewo.nlu.ProjectRole';
54
+ }
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.ondewo.nlu.CreateProjectRoleRequest = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
67
+ };
68
+ goog.inherits(proto.ondewo.nlu.CreateProjectRoleRequest, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.ondewo.nlu.CreateProjectRoleRequest.displayName = 'proto.ondewo.nlu.CreateProjectRoleRequest';
75
+ }
76
+ /**
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
85
+ */
86
+ proto.ondewo.nlu.UpdateProjectRoleRequest = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
88
+ };
89
+ goog.inherits(proto.ondewo.nlu.UpdateProjectRoleRequest, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.ondewo.nlu.UpdateProjectRoleRequest.displayName = 'proto.ondewo.nlu.UpdateProjectRoleRequest';
96
+ }
97
+ /**
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
106
+ */
107
+ proto.ondewo.nlu.GetProjectRoleRequest = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_);
109
+ };
110
+ goog.inherits(proto.ondewo.nlu.GetProjectRoleRequest, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.ondewo.nlu.GetProjectRoleRequest.displayName = 'proto.ondewo.nlu.GetProjectRoleRequest';
117
+ }
118
+ /**
119
+ * Generated by JsPbCodeGenerator.
120
+ * @param {Array=} opt_data Optional initial data array, typically from a
121
+ * server response, or constructed directly in Javascript. The array is used
122
+ * in place and becomes part of the constructed object. It is not cloned.
123
+ * If no data is provided, the constructed object will be empty, but still
124
+ * valid.
125
+ * @extends {jspb.Message}
126
+ * @constructor
127
+ */
128
+ proto.ondewo.nlu.DeleteProjectRoleRequest = function(opt_data) {
129
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
130
+ };
131
+ goog.inherits(proto.ondewo.nlu.DeleteProjectRoleRequest, jspb.Message);
132
+ if (goog.DEBUG && !COMPILED) {
133
+ /**
134
+ * @public
135
+ * @override
136
+ */
137
+ proto.ondewo.nlu.DeleteProjectRoleRequest.displayName = 'proto.ondewo.nlu.DeleteProjectRoleRequest';
138
+ }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.ondewo.nlu.ListProjectRolesRequest = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ };
152
+ goog.inherits(proto.ondewo.nlu.ListProjectRolesRequest, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.ondewo.nlu.ListProjectRolesRequest.displayName = 'proto.ondewo.nlu.ListProjectRolesRequest';
159
+ }
160
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.ondewo.nlu.ListProjectRolesResponse = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListProjectRolesResponse.repeatedFields_, null);
172
+ };
173
+ goog.inherits(proto.ondewo.nlu.ListProjectRolesResponse, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.ondewo.nlu.ListProjectRolesResponse.displayName = 'proto.ondewo.nlu.ListProjectRolesResponse';
180
+ }
181
+
182
+ /**
183
+ * List of repeated fields within this message type.
184
+ * @private {!Array<number>}
185
+ * @const
186
+ */
187
+ proto.ondewo.nlu.ProjectRole.repeatedFields_ = [3];
188
+
189
+
190
+
191
+ if (jspb.Message.GENERATE_TO_OBJECT) {
192
+ /**
193
+ * Creates an object representation of this proto.
194
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
195
+ * Optional fields that are not set will be set to undefined.
196
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
197
+ * For the list of reserved names please see:
198
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
199
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
200
+ * JSPB instance for transitional soy proto support:
201
+ * http://goto/soy-param-migration
202
+ * @return {!Object}
203
+ */
204
+ proto.ondewo.nlu.ProjectRole.prototype.toObject = function(opt_includeInstance) {
205
+ return proto.ondewo.nlu.ProjectRole.toObject(opt_includeInstance, this);
206
+ };
207
+
208
+
209
+ /**
210
+ * Static version of the {@see toObject} method.
211
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
212
+ * the JSPB instance for transitional soy proto support:
213
+ * http://goto/soy-param-migration
214
+ * @param {!proto.ondewo.nlu.ProjectRole} msg The msg instance to transform.
215
+ * @return {!Object}
216
+ * @suppress {unusedLocalVariables} f is only used for nested messages
217
+ */
218
+ proto.ondewo.nlu.ProjectRole.toObject = function(includeInstance, msg) {
219
+ var f, obj = {
220
+ roleId: jspb.Message.getFieldWithDefault(msg, 1, 0),
221
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
222
+ permissionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
223
+ };
224
+
225
+ if (includeInstance) {
226
+ obj.$jspbMessageInstance = msg;
227
+ }
228
+ return obj;
229
+ };
230
+ }
231
+
232
+
233
+ /**
234
+ * Deserializes binary data (in protobuf wire format).
235
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
236
+ * @return {!proto.ondewo.nlu.ProjectRole}
237
+ */
238
+ proto.ondewo.nlu.ProjectRole.deserializeBinary = function(bytes) {
239
+ var reader = new jspb.BinaryReader(bytes);
240
+ var msg = new proto.ondewo.nlu.ProjectRole;
241
+ return proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader(msg, reader);
242
+ };
243
+
244
+
245
+ /**
246
+ * Deserializes binary data (in protobuf wire format) from the
247
+ * given reader into the given message object.
248
+ * @param {!proto.ondewo.nlu.ProjectRole} msg The message object to deserialize into.
249
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
250
+ * @return {!proto.ondewo.nlu.ProjectRole}
251
+ */
252
+ proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader = function(msg, reader) {
253
+ while (reader.nextField()) {
254
+ if (reader.isEndGroup()) {
255
+ break;
256
+ }
257
+ var field = reader.getFieldNumber();
258
+ switch (field) {
259
+ case 1:
260
+ var value = /** @type {number} */ (reader.readUint32());
261
+ msg.setRoleId(value);
262
+ break;
263
+ case 2:
264
+ var value = /** @type {string} */ (reader.readString());
265
+ msg.setName(value);
266
+ break;
267
+ case 3:
268
+ var value = /** @type {string} */ (reader.readString());
269
+ msg.addPermissions(value);
270
+ break;
271
+ default:
272
+ reader.skipField();
273
+ break;
274
+ }
275
+ }
276
+ return msg;
277
+ };
278
+
279
+
280
+ /**
281
+ * Serializes the message to binary data (in protobuf wire format).
282
+ * @return {!Uint8Array}
283
+ */
284
+ proto.ondewo.nlu.ProjectRole.prototype.serializeBinary = function() {
285
+ var writer = new jspb.BinaryWriter();
286
+ proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter(this, writer);
287
+ return writer.getResultBuffer();
288
+ };
289
+
290
+
291
+ /**
292
+ * Serializes the given message to binary data (in protobuf wire
293
+ * format), writing to the given BinaryWriter.
294
+ * @param {!proto.ondewo.nlu.ProjectRole} message
295
+ * @param {!jspb.BinaryWriter} writer
296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
297
+ */
298
+ proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter = function(message, writer) {
299
+ var f = undefined;
300
+ f = message.getRoleId();
301
+ if (f !== 0) {
302
+ writer.writeUint32(
303
+ 1,
304
+ f
305
+ );
306
+ }
307
+ f = message.getName();
308
+ if (f.length > 0) {
309
+ writer.writeString(
310
+ 2,
311
+ f
312
+ );
313
+ }
314
+ f = message.getPermissionsList();
315
+ if (f.length > 0) {
316
+ writer.writeRepeatedString(
317
+ 3,
318
+ f
319
+ );
320
+ }
321
+ };
322
+
323
+
324
+ /**
325
+ * optional uint32 role_id = 1;
326
+ * @return {number}
327
+ */
328
+ proto.ondewo.nlu.ProjectRole.prototype.getRoleId = function() {
329
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
330
+ };
331
+
332
+
333
+ /**
334
+ * @param {number} value
335
+ * @return {!proto.ondewo.nlu.ProjectRole} returns this
336
+ */
337
+ proto.ondewo.nlu.ProjectRole.prototype.setRoleId = function(value) {
338
+ return jspb.Message.setProto3IntField(this, 1, value);
339
+ };
340
+
341
+
342
+ /**
343
+ * optional string name = 2;
344
+ * @return {string}
345
+ */
346
+ proto.ondewo.nlu.ProjectRole.prototype.getName = function() {
347
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
348
+ };
349
+
350
+
351
+ /**
352
+ * @param {string} value
353
+ * @return {!proto.ondewo.nlu.ProjectRole} returns this
354
+ */
355
+ proto.ondewo.nlu.ProjectRole.prototype.setName = function(value) {
356
+ return jspb.Message.setProto3StringField(this, 2, value);
357
+ };
358
+
359
+
360
+ /**
361
+ * repeated string permissions = 3;
362
+ * @return {!Array<string>}
363
+ */
364
+ proto.ondewo.nlu.ProjectRole.prototype.getPermissionsList = function() {
365
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
366
+ };
367
+
368
+
369
+ /**
370
+ * @param {!Array<string>} value
371
+ * @return {!proto.ondewo.nlu.ProjectRole} returns this
372
+ */
373
+ proto.ondewo.nlu.ProjectRole.prototype.setPermissionsList = function(value) {
374
+ return jspb.Message.setField(this, 3, value || []);
375
+ };
376
+
377
+
378
+ /**
379
+ * @param {string} value
380
+ * @param {number=} opt_index
381
+ * @return {!proto.ondewo.nlu.ProjectRole} returns this
382
+ */
383
+ proto.ondewo.nlu.ProjectRole.prototype.addPermissions = function(value, opt_index) {
384
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
385
+ };
386
+
387
+
388
+ /**
389
+ * Clears the list making it empty but non-null.
390
+ * @return {!proto.ondewo.nlu.ProjectRole} returns this
391
+ */
392
+ proto.ondewo.nlu.ProjectRole.prototype.clearPermissionsList = function() {
393
+ return this.setPermissionsList([]);
394
+ };
395
+
396
+
397
+
398
+
399
+
400
+ if (jspb.Message.GENERATE_TO_OBJECT) {
401
+ /**
402
+ * Creates an object representation of this proto.
403
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
404
+ * Optional fields that are not set will be set to undefined.
405
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
406
+ * For the list of reserved names please see:
407
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
408
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
409
+ * JSPB instance for transitional soy proto support:
410
+ * http://goto/soy-param-migration
411
+ * @return {!Object}
412
+ */
413
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.toObject = function(opt_includeInstance) {
414
+ return proto.ondewo.nlu.CreateProjectRoleRequest.toObject(opt_includeInstance, this);
415
+ };
416
+
417
+
418
+ /**
419
+ * Static version of the {@see toObject} method.
420
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
421
+ * the JSPB instance for transitional soy proto support:
422
+ * http://goto/soy-param-migration
423
+ * @param {!proto.ondewo.nlu.CreateProjectRoleRequest} msg The msg instance to transform.
424
+ * @return {!Object}
425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
426
+ */
427
+ proto.ondewo.nlu.CreateProjectRoleRequest.toObject = function(includeInstance, msg) {
428
+ var f, obj = {
429
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
430
+ role: (f = msg.getRole()) && proto.ondewo.nlu.ProjectRole.toObject(includeInstance, f),
431
+ projectRoleView: jspb.Message.getFieldWithDefault(msg, 3, 0)
432
+ };
433
+
434
+ if (includeInstance) {
435
+ obj.$jspbMessageInstance = msg;
436
+ }
437
+ return obj;
438
+ };
439
+ }
440
+
441
+
442
+ /**
443
+ * Deserializes binary data (in protobuf wire format).
444
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
445
+ * @return {!proto.ondewo.nlu.CreateProjectRoleRequest}
446
+ */
447
+ proto.ondewo.nlu.CreateProjectRoleRequest.deserializeBinary = function(bytes) {
448
+ var reader = new jspb.BinaryReader(bytes);
449
+ var msg = new proto.ondewo.nlu.CreateProjectRoleRequest;
450
+ return proto.ondewo.nlu.CreateProjectRoleRequest.deserializeBinaryFromReader(msg, reader);
451
+ };
452
+
453
+
454
+ /**
455
+ * Deserializes binary data (in protobuf wire format) from the
456
+ * given reader into the given message object.
457
+ * @param {!proto.ondewo.nlu.CreateProjectRoleRequest} msg The message object to deserialize into.
458
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
459
+ * @return {!proto.ondewo.nlu.CreateProjectRoleRequest}
460
+ */
461
+ proto.ondewo.nlu.CreateProjectRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
462
+ while (reader.nextField()) {
463
+ if (reader.isEndGroup()) {
464
+ break;
465
+ }
466
+ var field = reader.getFieldNumber();
467
+ switch (field) {
468
+ case 1:
469
+ var value = /** @type {string} */ (reader.readString());
470
+ msg.setParent(value);
471
+ break;
472
+ case 2:
473
+ var value = new proto.ondewo.nlu.ProjectRole;
474
+ reader.readMessage(value,proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader);
475
+ msg.setRole(value);
476
+ break;
477
+ case 3:
478
+ var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum());
479
+ msg.setProjectRoleView(value);
480
+ break;
481
+ default:
482
+ reader.skipField();
483
+ break;
484
+ }
485
+ }
486
+ return msg;
487
+ };
488
+
489
+
490
+ /**
491
+ * Serializes the message to binary data (in protobuf wire format).
492
+ * @return {!Uint8Array}
493
+ */
494
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.serializeBinary = function() {
495
+ var writer = new jspb.BinaryWriter();
496
+ proto.ondewo.nlu.CreateProjectRoleRequest.serializeBinaryToWriter(this, writer);
497
+ return writer.getResultBuffer();
498
+ };
499
+
500
+
501
+ /**
502
+ * Serializes the given message to binary data (in protobuf wire
503
+ * format), writing to the given BinaryWriter.
504
+ * @param {!proto.ondewo.nlu.CreateProjectRoleRequest} message
505
+ * @param {!jspb.BinaryWriter} writer
506
+ * @suppress {unusedLocalVariables} f is only used for nested messages
507
+ */
508
+ proto.ondewo.nlu.CreateProjectRoleRequest.serializeBinaryToWriter = function(message, writer) {
509
+ var f = undefined;
510
+ f = message.getParent();
511
+ if (f.length > 0) {
512
+ writer.writeString(
513
+ 1,
514
+ f
515
+ );
516
+ }
517
+ f = message.getRole();
518
+ if (f != null) {
519
+ writer.writeMessage(
520
+ 2,
521
+ f,
522
+ proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter
523
+ );
524
+ }
525
+ f = message.getProjectRoleView();
526
+ if (f !== 0.0) {
527
+ writer.writeEnum(
528
+ 3,
529
+ f
530
+ );
531
+ }
532
+ };
533
+
534
+
535
+ /**
536
+ * optional string parent = 1;
537
+ * @return {string}
538
+ */
539
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.getParent = function() {
540
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
541
+ };
542
+
543
+
544
+ /**
545
+ * @param {string} value
546
+ * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this
547
+ */
548
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.setParent = function(value) {
549
+ return jspb.Message.setProto3StringField(this, 1, value);
550
+ };
551
+
552
+
553
+ /**
554
+ * optional ProjectRole role = 2;
555
+ * @return {?proto.ondewo.nlu.ProjectRole}
556
+ */
557
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.getRole = function() {
558
+ return /** @type{?proto.ondewo.nlu.ProjectRole} */ (
559
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.ProjectRole, 2));
560
+ };
561
+
562
+
563
+ /**
564
+ * @param {?proto.ondewo.nlu.ProjectRole|undefined} value
565
+ * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this
566
+ */
567
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.setRole = function(value) {
568
+ return jspb.Message.setWrapperField(this, 2, value);
569
+ };
570
+
571
+
572
+ /**
573
+ * Clears the message field making it undefined.
574
+ * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this
575
+ */
576
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.clearRole = function() {
577
+ return this.setRole(undefined);
578
+ };
579
+
580
+
581
+ /**
582
+ * Returns whether this field is set.
583
+ * @return {boolean}
584
+ */
585
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.hasRole = function() {
586
+ return jspb.Message.getField(this, 2) != null;
587
+ };
588
+
589
+
590
+ /**
591
+ * optional ProjectRoleView project_role_view = 3;
592
+ * @return {!proto.ondewo.nlu.ProjectRoleView}
593
+ */
594
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.getProjectRoleView = function() {
595
+ return /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
596
+ };
597
+
598
+
599
+ /**
600
+ * @param {!proto.ondewo.nlu.ProjectRoleView} value
601
+ * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this
602
+ */
603
+ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.setProjectRoleView = function(value) {
604
+ return jspb.Message.setProto3EnumField(this, 3, value);
605
+ };
606
+
607
+
608
+
609
+
610
+
611
+ if (jspb.Message.GENERATE_TO_OBJECT) {
612
+ /**
613
+ * Creates an object representation of this proto.
614
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
615
+ * Optional fields that are not set will be set to undefined.
616
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
617
+ * For the list of reserved names please see:
618
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
619
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
620
+ * JSPB instance for transitional soy proto support:
621
+ * http://goto/soy-param-migration
622
+ * @return {!Object}
623
+ */
624
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.toObject = function(opt_includeInstance) {
625
+ return proto.ondewo.nlu.UpdateProjectRoleRequest.toObject(opt_includeInstance, this);
626
+ };
627
+
628
+
629
+ /**
630
+ * Static version of the {@see toObject} method.
631
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
632
+ * the JSPB instance for transitional soy proto support:
633
+ * http://goto/soy-param-migration
634
+ * @param {!proto.ondewo.nlu.UpdateProjectRoleRequest} msg The msg instance to transform.
635
+ * @return {!Object}
636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
637
+ */
638
+ proto.ondewo.nlu.UpdateProjectRoleRequest.toObject = function(includeInstance, msg) {
639
+ var f, obj = {
640
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
641
+ role: (f = msg.getRole()) && proto.ondewo.nlu.ProjectRole.toObject(includeInstance, f),
642
+ updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f),
643
+ projectRoleView: jspb.Message.getFieldWithDefault(msg, 4, 0)
644
+ };
645
+
646
+ if (includeInstance) {
647
+ obj.$jspbMessageInstance = msg;
648
+ }
649
+ return obj;
650
+ };
651
+ }
652
+
653
+
654
+ /**
655
+ * Deserializes binary data (in protobuf wire format).
656
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
657
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest}
658
+ */
659
+ proto.ondewo.nlu.UpdateProjectRoleRequest.deserializeBinary = function(bytes) {
660
+ var reader = new jspb.BinaryReader(bytes);
661
+ var msg = new proto.ondewo.nlu.UpdateProjectRoleRequest;
662
+ return proto.ondewo.nlu.UpdateProjectRoleRequest.deserializeBinaryFromReader(msg, reader);
663
+ };
664
+
665
+
666
+ /**
667
+ * Deserializes binary data (in protobuf wire format) from the
668
+ * given reader into the given message object.
669
+ * @param {!proto.ondewo.nlu.UpdateProjectRoleRequest} msg The message object to deserialize into.
670
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
671
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest}
672
+ */
673
+ proto.ondewo.nlu.UpdateProjectRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
674
+ while (reader.nextField()) {
675
+ if (reader.isEndGroup()) {
676
+ break;
677
+ }
678
+ var field = reader.getFieldNumber();
679
+ switch (field) {
680
+ case 1:
681
+ var value = /** @type {string} */ (reader.readString());
682
+ msg.setParent(value);
683
+ break;
684
+ case 2:
685
+ var value = new proto.ondewo.nlu.ProjectRole;
686
+ reader.readMessage(value,proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader);
687
+ msg.setRole(value);
688
+ break;
689
+ case 3:
690
+ var value = new google_protobuf_field_mask_pb.FieldMask;
691
+ reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
692
+ msg.setUpdateMask(value);
693
+ break;
694
+ case 4:
695
+ var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum());
696
+ msg.setProjectRoleView(value);
697
+ break;
698
+ default:
699
+ reader.skipField();
700
+ break;
701
+ }
702
+ }
703
+ return msg;
704
+ };
705
+
706
+
707
+ /**
708
+ * Serializes the message to binary data (in protobuf wire format).
709
+ * @return {!Uint8Array}
710
+ */
711
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.serializeBinary = function() {
712
+ var writer = new jspb.BinaryWriter();
713
+ proto.ondewo.nlu.UpdateProjectRoleRequest.serializeBinaryToWriter(this, writer);
714
+ return writer.getResultBuffer();
715
+ };
716
+
717
+
718
+ /**
719
+ * Serializes the given message to binary data (in protobuf wire
720
+ * format), writing to the given BinaryWriter.
721
+ * @param {!proto.ondewo.nlu.UpdateProjectRoleRequest} message
722
+ * @param {!jspb.BinaryWriter} writer
723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
724
+ */
725
+ proto.ondewo.nlu.UpdateProjectRoleRequest.serializeBinaryToWriter = function(message, writer) {
726
+ var f = undefined;
727
+ f = message.getParent();
728
+ if (f.length > 0) {
729
+ writer.writeString(
730
+ 1,
731
+ f
732
+ );
733
+ }
734
+ f = message.getRole();
735
+ if (f != null) {
736
+ writer.writeMessage(
737
+ 2,
738
+ f,
739
+ proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter
740
+ );
741
+ }
742
+ f = message.getUpdateMask();
743
+ if (f != null) {
744
+ writer.writeMessage(
745
+ 3,
746
+ f,
747
+ google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
748
+ );
749
+ }
750
+ f = message.getProjectRoleView();
751
+ if (f !== 0.0) {
752
+ writer.writeEnum(
753
+ 4,
754
+ f
755
+ );
756
+ }
757
+ };
758
+
759
+
760
+ /**
761
+ * optional string parent = 1;
762
+ * @return {string}
763
+ */
764
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getParent = function() {
765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
766
+ };
767
+
768
+
769
+ /**
770
+ * @param {string} value
771
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this
772
+ */
773
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setParent = function(value) {
774
+ return jspb.Message.setProto3StringField(this, 1, value);
775
+ };
776
+
777
+
778
+ /**
779
+ * optional ProjectRole role = 2;
780
+ * @return {?proto.ondewo.nlu.ProjectRole}
781
+ */
782
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getRole = function() {
783
+ return /** @type{?proto.ondewo.nlu.ProjectRole} */ (
784
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.ProjectRole, 2));
785
+ };
786
+
787
+
788
+ /**
789
+ * @param {?proto.ondewo.nlu.ProjectRole|undefined} value
790
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this
791
+ */
792
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setRole = function(value) {
793
+ return jspb.Message.setWrapperField(this, 2, value);
794
+ };
795
+
796
+
797
+ /**
798
+ * Clears the message field making it undefined.
799
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this
800
+ */
801
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.clearRole = function() {
802
+ return this.setRole(undefined);
803
+ };
804
+
805
+
806
+ /**
807
+ * Returns whether this field is set.
808
+ * @return {boolean}
809
+ */
810
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.hasRole = function() {
811
+ return jspb.Message.getField(this, 2) != null;
812
+ };
813
+
814
+
815
+ /**
816
+ * optional google.protobuf.FieldMask update_mask = 3;
817
+ * @return {?proto.google.protobuf.FieldMask}
818
+ */
819
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getUpdateMask = function() {
820
+ return /** @type{?proto.google.protobuf.FieldMask} */ (
821
+ jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3));
822
+ };
823
+
824
+
825
+ /**
826
+ * @param {?proto.google.protobuf.FieldMask|undefined} value
827
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this
828
+ */
829
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setUpdateMask = function(value) {
830
+ return jspb.Message.setWrapperField(this, 3, value);
831
+ };
832
+
833
+
834
+ /**
835
+ * Clears the message field making it undefined.
836
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this
837
+ */
838
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.clearUpdateMask = function() {
839
+ return this.setUpdateMask(undefined);
840
+ };
841
+
842
+
843
+ /**
844
+ * Returns whether this field is set.
845
+ * @return {boolean}
846
+ */
847
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.hasUpdateMask = function() {
848
+ return jspb.Message.getField(this, 3) != null;
849
+ };
850
+
851
+
852
+ /**
853
+ * optional ProjectRoleView project_role_view = 4;
854
+ * @return {!proto.ondewo.nlu.ProjectRoleView}
855
+ */
856
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getProjectRoleView = function() {
857
+ return /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
858
+ };
859
+
860
+
861
+ /**
862
+ * @param {!proto.ondewo.nlu.ProjectRoleView} value
863
+ * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this
864
+ */
865
+ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setProjectRoleView = function(value) {
866
+ return jspb.Message.setProto3EnumField(this, 4, value);
867
+ };
868
+
869
+
870
+
871
+ /**
872
+ * Oneof group definitions for this message. Each group defines the field
873
+ * numbers belonging to that group. When of these fields' value is set, all
874
+ * other fields in the group are cleared. During deserialization, if multiple
875
+ * fields are encountered for a group, only the last value seen will be kept.
876
+ * @private {!Array<!Array<number>>}
877
+ * @const
878
+ */
879
+ proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_ = [[2,3]];
880
+
881
+ /**
882
+ * @enum {number}
883
+ */
884
+ proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase = {
885
+ PROJECT_ROLE_IDENTIFIER_NOT_SET: 0,
886
+ ROLE_ID: 2,
887
+ ROLE_NAME: 3
888
+ };
889
+
890
+ /**
891
+ * @return {proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase}
892
+ */
893
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getProjectRoleIdentifierCase = function() {
894
+ return /** @type {proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0]));
895
+ };
896
+
897
+
898
+
899
+ if (jspb.Message.GENERATE_TO_OBJECT) {
900
+ /**
901
+ * Creates an object representation of this proto.
902
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
903
+ * Optional fields that are not set will be set to undefined.
904
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
905
+ * For the list of reserved names please see:
906
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
907
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
908
+ * JSPB instance for transitional soy proto support:
909
+ * http://goto/soy-param-migration
910
+ * @return {!Object}
911
+ */
912
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.toObject = function(opt_includeInstance) {
913
+ return proto.ondewo.nlu.GetProjectRoleRequest.toObject(opt_includeInstance, this);
914
+ };
915
+
916
+
917
+ /**
918
+ * Static version of the {@see toObject} method.
919
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
920
+ * the JSPB instance for transitional soy proto support:
921
+ * http://goto/soy-param-migration
922
+ * @param {!proto.ondewo.nlu.GetProjectRoleRequest} msg The msg instance to transform.
923
+ * @return {!Object}
924
+ * @suppress {unusedLocalVariables} f is only used for nested messages
925
+ */
926
+ proto.ondewo.nlu.GetProjectRoleRequest.toObject = function(includeInstance, msg) {
927
+ var f, obj = {
928
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
929
+ roleId: jspb.Message.getFieldWithDefault(msg, 2, 0),
930
+ roleName: jspb.Message.getFieldWithDefault(msg, 3, ""),
931
+ projectRoleView: jspb.Message.getFieldWithDefault(msg, 4, 0)
932
+ };
933
+
934
+ if (includeInstance) {
935
+ obj.$jspbMessageInstance = msg;
936
+ }
937
+ return obj;
938
+ };
939
+ }
940
+
941
+
942
+ /**
943
+ * Deserializes binary data (in protobuf wire format).
944
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
945
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest}
946
+ */
947
+ proto.ondewo.nlu.GetProjectRoleRequest.deserializeBinary = function(bytes) {
948
+ var reader = new jspb.BinaryReader(bytes);
949
+ var msg = new proto.ondewo.nlu.GetProjectRoleRequest;
950
+ return proto.ondewo.nlu.GetProjectRoleRequest.deserializeBinaryFromReader(msg, reader);
951
+ };
952
+
953
+
954
+ /**
955
+ * Deserializes binary data (in protobuf wire format) from the
956
+ * given reader into the given message object.
957
+ * @param {!proto.ondewo.nlu.GetProjectRoleRequest} msg The message object to deserialize into.
958
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
959
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest}
960
+ */
961
+ proto.ondewo.nlu.GetProjectRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
962
+ while (reader.nextField()) {
963
+ if (reader.isEndGroup()) {
964
+ break;
965
+ }
966
+ var field = reader.getFieldNumber();
967
+ switch (field) {
968
+ case 1:
969
+ var value = /** @type {string} */ (reader.readString());
970
+ msg.setParent(value);
971
+ break;
972
+ case 2:
973
+ var value = /** @type {number} */ (reader.readUint32());
974
+ msg.setRoleId(value);
975
+ break;
976
+ case 3:
977
+ var value = /** @type {string} */ (reader.readString());
978
+ msg.setRoleName(value);
979
+ break;
980
+ case 4:
981
+ var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum());
982
+ msg.setProjectRoleView(value);
983
+ break;
984
+ default:
985
+ reader.skipField();
986
+ break;
987
+ }
988
+ }
989
+ return msg;
990
+ };
991
+
992
+
993
+ /**
994
+ * Serializes the message to binary data (in protobuf wire format).
995
+ * @return {!Uint8Array}
996
+ */
997
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.serializeBinary = function() {
998
+ var writer = new jspb.BinaryWriter();
999
+ proto.ondewo.nlu.GetProjectRoleRequest.serializeBinaryToWriter(this, writer);
1000
+ return writer.getResultBuffer();
1001
+ };
1002
+
1003
+
1004
+ /**
1005
+ * Serializes the given message to binary data (in protobuf wire
1006
+ * format), writing to the given BinaryWriter.
1007
+ * @param {!proto.ondewo.nlu.GetProjectRoleRequest} message
1008
+ * @param {!jspb.BinaryWriter} writer
1009
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1010
+ */
1011
+ proto.ondewo.nlu.GetProjectRoleRequest.serializeBinaryToWriter = function(message, writer) {
1012
+ var f = undefined;
1013
+ f = message.getParent();
1014
+ if (f.length > 0) {
1015
+ writer.writeString(
1016
+ 1,
1017
+ f
1018
+ );
1019
+ }
1020
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
1021
+ if (f != null) {
1022
+ writer.writeUint32(
1023
+ 2,
1024
+ f
1025
+ );
1026
+ }
1027
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1028
+ if (f != null) {
1029
+ writer.writeString(
1030
+ 3,
1031
+ f
1032
+ );
1033
+ }
1034
+ f = message.getProjectRoleView();
1035
+ if (f !== 0.0) {
1036
+ writer.writeEnum(
1037
+ 4,
1038
+ f
1039
+ );
1040
+ }
1041
+ };
1042
+
1043
+
1044
+ /**
1045
+ * optional string parent = 1;
1046
+ * @return {string}
1047
+ */
1048
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getParent = function() {
1049
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * @param {string} value
1055
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this
1056
+ */
1057
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setParent = function(value) {
1058
+ return jspb.Message.setProto3StringField(this, 1, value);
1059
+ };
1060
+
1061
+
1062
+ /**
1063
+ * optional uint32 role_id = 2;
1064
+ * @return {number}
1065
+ */
1066
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getRoleId = function() {
1067
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1068
+ };
1069
+
1070
+
1071
+ /**
1072
+ * @param {number} value
1073
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this
1074
+ */
1075
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setRoleId = function(value) {
1076
+ return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], value);
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * Clears the field making it undefined.
1082
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this
1083
+ */
1084
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.clearRoleId = function() {
1085
+ return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], undefined);
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * Returns whether this field is set.
1091
+ * @return {boolean}
1092
+ */
1093
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.hasRoleId = function() {
1094
+ return jspb.Message.getField(this, 2) != null;
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * optional string role_name = 3;
1100
+ * @return {string}
1101
+ */
1102
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getRoleName = function() {
1103
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * @param {string} value
1109
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this
1110
+ */
1111
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setRoleName = function(value) {
1112
+ return jspb.Message.setOneofField(this, 3, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], value);
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * Clears the field making it undefined.
1118
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this
1119
+ */
1120
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.clearRoleName = function() {
1121
+ return jspb.Message.setOneofField(this, 3, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], undefined);
1122
+ };
1123
+
1124
+
1125
+ /**
1126
+ * Returns whether this field is set.
1127
+ * @return {boolean}
1128
+ */
1129
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.hasRoleName = function() {
1130
+ return jspb.Message.getField(this, 3) != null;
1131
+ };
1132
+
1133
+
1134
+ /**
1135
+ * optional ProjectRoleView project_role_view = 4;
1136
+ * @return {!proto.ondewo.nlu.ProjectRoleView}
1137
+ */
1138
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getProjectRoleView = function() {
1139
+ return /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1140
+ };
1141
+
1142
+
1143
+ /**
1144
+ * @param {!proto.ondewo.nlu.ProjectRoleView} value
1145
+ * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this
1146
+ */
1147
+ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setProjectRoleView = function(value) {
1148
+ return jspb.Message.setProto3EnumField(this, 4, value);
1149
+ };
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1156
+ /**
1157
+ * Creates an object representation of this proto.
1158
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1159
+ * Optional fields that are not set will be set to undefined.
1160
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1161
+ * For the list of reserved names please see:
1162
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1163
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1164
+ * JSPB instance for transitional soy proto support:
1165
+ * http://goto/soy-param-migration
1166
+ * @return {!Object}
1167
+ */
1168
+ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.toObject = function(opt_includeInstance) {
1169
+ return proto.ondewo.nlu.DeleteProjectRoleRequest.toObject(opt_includeInstance, this);
1170
+ };
1171
+
1172
+
1173
+ /**
1174
+ * Static version of the {@see toObject} method.
1175
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1176
+ * the JSPB instance for transitional soy proto support:
1177
+ * http://goto/soy-param-migration
1178
+ * @param {!proto.ondewo.nlu.DeleteProjectRoleRequest} msg The msg instance to transform.
1179
+ * @return {!Object}
1180
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1181
+ */
1182
+ proto.ondewo.nlu.DeleteProjectRoleRequest.toObject = function(includeInstance, msg) {
1183
+ var f, obj = {
1184
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
1185
+ roleId: jspb.Message.getFieldWithDefault(msg, 2, 0)
1186
+ };
1187
+
1188
+ if (includeInstance) {
1189
+ obj.$jspbMessageInstance = msg;
1190
+ }
1191
+ return obj;
1192
+ };
1193
+ }
1194
+
1195
+
1196
+ /**
1197
+ * Deserializes binary data (in protobuf wire format).
1198
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1199
+ * @return {!proto.ondewo.nlu.DeleteProjectRoleRequest}
1200
+ */
1201
+ proto.ondewo.nlu.DeleteProjectRoleRequest.deserializeBinary = function(bytes) {
1202
+ var reader = new jspb.BinaryReader(bytes);
1203
+ var msg = new proto.ondewo.nlu.DeleteProjectRoleRequest;
1204
+ return proto.ondewo.nlu.DeleteProjectRoleRequest.deserializeBinaryFromReader(msg, reader);
1205
+ };
1206
+
1207
+
1208
+ /**
1209
+ * Deserializes binary data (in protobuf wire format) from the
1210
+ * given reader into the given message object.
1211
+ * @param {!proto.ondewo.nlu.DeleteProjectRoleRequest} msg The message object to deserialize into.
1212
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1213
+ * @return {!proto.ondewo.nlu.DeleteProjectRoleRequest}
1214
+ */
1215
+ proto.ondewo.nlu.DeleteProjectRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
1216
+ while (reader.nextField()) {
1217
+ if (reader.isEndGroup()) {
1218
+ break;
1219
+ }
1220
+ var field = reader.getFieldNumber();
1221
+ switch (field) {
1222
+ case 1:
1223
+ var value = /** @type {string} */ (reader.readString());
1224
+ msg.setParent(value);
1225
+ break;
1226
+ case 2:
1227
+ var value = /** @type {number} */ (reader.readUint32());
1228
+ msg.setRoleId(value);
1229
+ break;
1230
+ default:
1231
+ reader.skipField();
1232
+ break;
1233
+ }
1234
+ }
1235
+ return msg;
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * Serializes the message to binary data (in protobuf wire format).
1241
+ * @return {!Uint8Array}
1242
+ */
1243
+ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.serializeBinary = function() {
1244
+ var writer = new jspb.BinaryWriter();
1245
+ proto.ondewo.nlu.DeleteProjectRoleRequest.serializeBinaryToWriter(this, writer);
1246
+ return writer.getResultBuffer();
1247
+ };
1248
+
1249
+
1250
+ /**
1251
+ * Serializes the given message to binary data (in protobuf wire
1252
+ * format), writing to the given BinaryWriter.
1253
+ * @param {!proto.ondewo.nlu.DeleteProjectRoleRequest} message
1254
+ * @param {!jspb.BinaryWriter} writer
1255
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1256
+ */
1257
+ proto.ondewo.nlu.DeleteProjectRoleRequest.serializeBinaryToWriter = function(message, writer) {
1258
+ var f = undefined;
1259
+ f = message.getParent();
1260
+ if (f.length > 0) {
1261
+ writer.writeString(
1262
+ 1,
1263
+ f
1264
+ );
1265
+ }
1266
+ f = message.getRoleId();
1267
+ if (f !== 0) {
1268
+ writer.writeUint32(
1269
+ 2,
1270
+ f
1271
+ );
1272
+ }
1273
+ };
1274
+
1275
+
1276
+ /**
1277
+ * optional string parent = 1;
1278
+ * @return {string}
1279
+ */
1280
+ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.getParent = function() {
1281
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1282
+ };
1283
+
1284
+
1285
+ /**
1286
+ * @param {string} value
1287
+ * @return {!proto.ondewo.nlu.DeleteProjectRoleRequest} returns this
1288
+ */
1289
+ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.setParent = function(value) {
1290
+ return jspb.Message.setProto3StringField(this, 1, value);
1291
+ };
1292
+
1293
+
1294
+ /**
1295
+ * optional uint32 role_id = 2;
1296
+ * @return {number}
1297
+ */
1298
+ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.getRoleId = function() {
1299
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * @param {number} value
1305
+ * @return {!proto.ondewo.nlu.DeleteProjectRoleRequest} returns this
1306
+ */
1307
+ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.setRoleId = function(value) {
1308
+ return jspb.Message.setProto3IntField(this, 2, value);
1309
+ };
1310
+
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.ListProjectRolesRequest.prototype.toObject = function(opt_includeInstance) {
1329
+ return proto.ondewo.nlu.ListProjectRolesRequest.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.ListProjectRolesRequest} msg The msg instance to transform.
1339
+ * @return {!Object}
1340
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1341
+ */
1342
+ proto.ondewo.nlu.ListProjectRolesRequest.toObject = function(includeInstance, msg) {
1343
+ var f, obj = {
1344
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
1345
+ pageToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
1346
+ projectRoleView: jspb.Message.getFieldWithDefault(msg, 3, 0)
1347
+ };
1348
+
1349
+ if (includeInstance) {
1350
+ obj.$jspbMessageInstance = msg;
1351
+ }
1352
+ return obj;
1353
+ };
1354
+ }
1355
+
1356
+
1357
+ /**
1358
+ * Deserializes binary data (in protobuf wire format).
1359
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1360
+ * @return {!proto.ondewo.nlu.ListProjectRolesRequest}
1361
+ */
1362
+ proto.ondewo.nlu.ListProjectRolesRequest.deserializeBinary = function(bytes) {
1363
+ var reader = new jspb.BinaryReader(bytes);
1364
+ var msg = new proto.ondewo.nlu.ListProjectRolesRequest;
1365
+ return proto.ondewo.nlu.ListProjectRolesRequest.deserializeBinaryFromReader(msg, reader);
1366
+ };
1367
+
1368
+
1369
+ /**
1370
+ * Deserializes binary data (in protobuf wire format) from the
1371
+ * given reader into the given message object.
1372
+ * @param {!proto.ondewo.nlu.ListProjectRolesRequest} msg The message object to deserialize into.
1373
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1374
+ * @return {!proto.ondewo.nlu.ListProjectRolesRequest}
1375
+ */
1376
+ proto.ondewo.nlu.ListProjectRolesRequest.deserializeBinaryFromReader = function(msg, reader) {
1377
+ while (reader.nextField()) {
1378
+ if (reader.isEndGroup()) {
1379
+ break;
1380
+ }
1381
+ var field = reader.getFieldNumber();
1382
+ switch (field) {
1383
+ case 1:
1384
+ var value = /** @type {string} */ (reader.readString());
1385
+ msg.setParent(value);
1386
+ break;
1387
+ case 2:
1388
+ var value = /** @type {string} */ (reader.readString());
1389
+ msg.setPageToken(value);
1390
+ break;
1391
+ case 3:
1392
+ var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum());
1393
+ msg.setProjectRoleView(value);
1394
+ break;
1395
+ default:
1396
+ reader.skipField();
1397
+ break;
1398
+ }
1399
+ }
1400
+ return msg;
1401
+ };
1402
+
1403
+
1404
+ /**
1405
+ * Serializes the message to binary data (in protobuf wire format).
1406
+ * @return {!Uint8Array}
1407
+ */
1408
+ proto.ondewo.nlu.ListProjectRolesRequest.prototype.serializeBinary = function() {
1409
+ var writer = new jspb.BinaryWriter();
1410
+ proto.ondewo.nlu.ListProjectRolesRequest.serializeBinaryToWriter(this, writer);
1411
+ return writer.getResultBuffer();
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * Serializes the given message to binary data (in protobuf wire
1417
+ * format), writing to the given BinaryWriter.
1418
+ * @param {!proto.ondewo.nlu.ListProjectRolesRequest} message
1419
+ * @param {!jspb.BinaryWriter} writer
1420
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1421
+ */
1422
+ proto.ondewo.nlu.ListProjectRolesRequest.serializeBinaryToWriter = function(message, writer) {
1423
+ var f = undefined;
1424
+ f = message.getParent();
1425
+ if (f.length > 0) {
1426
+ writer.writeString(
1427
+ 1,
1428
+ f
1429
+ );
1430
+ }
1431
+ f = message.getPageToken();
1432
+ if (f.length > 0) {
1433
+ writer.writeString(
1434
+ 2,
1435
+ f
1436
+ );
1437
+ }
1438
+ f = message.getProjectRoleView();
1439
+ if (f !== 0.0) {
1440
+ writer.writeEnum(
1441
+ 3,
1442
+ f
1443
+ );
1444
+ }
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * optional string parent = 1;
1450
+ * @return {string}
1451
+ */
1452
+ proto.ondewo.nlu.ListProjectRolesRequest.prototype.getParent = function() {
1453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * @param {string} value
1459
+ * @return {!proto.ondewo.nlu.ListProjectRolesRequest} returns this
1460
+ */
1461
+ proto.ondewo.nlu.ListProjectRolesRequest.prototype.setParent = function(value) {
1462
+ return jspb.Message.setProto3StringField(this, 1, value);
1463
+ };
1464
+
1465
+
1466
+ /**
1467
+ * optional string page_token = 2;
1468
+ * @return {string}
1469
+ */
1470
+ proto.ondewo.nlu.ListProjectRolesRequest.prototype.getPageToken = function() {
1471
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1472
+ };
1473
+
1474
+
1475
+ /**
1476
+ * @param {string} value
1477
+ * @return {!proto.ondewo.nlu.ListProjectRolesRequest} returns this
1478
+ */
1479
+ proto.ondewo.nlu.ListProjectRolesRequest.prototype.setPageToken = function(value) {
1480
+ return jspb.Message.setProto3StringField(this, 2, value);
1481
+ };
1482
+
1483
+
1484
+ /**
1485
+ * optional ProjectRoleView project_role_view = 3;
1486
+ * @return {!proto.ondewo.nlu.ProjectRoleView}
1487
+ */
1488
+ proto.ondewo.nlu.ListProjectRolesRequest.prototype.getProjectRoleView = function() {
1489
+ return /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * @param {!proto.ondewo.nlu.ProjectRoleView} value
1495
+ * @return {!proto.ondewo.nlu.ListProjectRolesRequest} returns this
1496
+ */
1497
+ proto.ondewo.nlu.ListProjectRolesRequest.prototype.setProjectRoleView = function(value) {
1498
+ return jspb.Message.setProto3EnumField(this, 3, value);
1499
+ };
1500
+
1501
+
1502
+
1503
+ /**
1504
+ * List of repeated fields within this message type.
1505
+ * @private {!Array<number>}
1506
+ * @const
1507
+ */
1508
+ proto.ondewo.nlu.ListProjectRolesResponse.repeatedFields_ = [1];
1509
+
1510
+
1511
+
1512
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1513
+ /**
1514
+ * Creates an object representation of this proto.
1515
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1516
+ * Optional fields that are not set will be set to undefined.
1517
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1518
+ * For the list of reserved names please see:
1519
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1520
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1521
+ * JSPB instance for transitional soy proto support:
1522
+ * http://goto/soy-param-migration
1523
+ * @return {!Object}
1524
+ */
1525
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.toObject = function(opt_includeInstance) {
1526
+ return proto.ondewo.nlu.ListProjectRolesResponse.toObject(opt_includeInstance, this);
1527
+ };
1528
+
1529
+
1530
+ /**
1531
+ * Static version of the {@see toObject} method.
1532
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1533
+ * the JSPB instance for transitional soy proto support:
1534
+ * http://goto/soy-param-migration
1535
+ * @param {!proto.ondewo.nlu.ListProjectRolesResponse} msg The msg instance to transform.
1536
+ * @return {!Object}
1537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1538
+ */
1539
+ proto.ondewo.nlu.ListProjectRolesResponse.toObject = function(includeInstance, msg) {
1540
+ var f, obj = {
1541
+ projectRolesList: jspb.Message.toObjectList(msg.getProjectRolesList(),
1542
+ proto.ondewo.nlu.ProjectRole.toObject, includeInstance),
1543
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
1544
+ };
1545
+
1546
+ if (includeInstance) {
1547
+ obj.$jspbMessageInstance = msg;
1548
+ }
1549
+ return obj;
1550
+ };
1551
+ }
1552
+
1553
+
1554
+ /**
1555
+ * Deserializes binary data (in protobuf wire format).
1556
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1557
+ * @return {!proto.ondewo.nlu.ListProjectRolesResponse}
1558
+ */
1559
+ proto.ondewo.nlu.ListProjectRolesResponse.deserializeBinary = function(bytes) {
1560
+ var reader = new jspb.BinaryReader(bytes);
1561
+ var msg = new proto.ondewo.nlu.ListProjectRolesResponse;
1562
+ return proto.ondewo.nlu.ListProjectRolesResponse.deserializeBinaryFromReader(msg, reader);
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * Deserializes binary data (in protobuf wire format) from the
1568
+ * given reader into the given message object.
1569
+ * @param {!proto.ondewo.nlu.ListProjectRolesResponse} msg The message object to deserialize into.
1570
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1571
+ * @return {!proto.ondewo.nlu.ListProjectRolesResponse}
1572
+ */
1573
+ proto.ondewo.nlu.ListProjectRolesResponse.deserializeBinaryFromReader = function(msg, reader) {
1574
+ while (reader.nextField()) {
1575
+ if (reader.isEndGroup()) {
1576
+ break;
1577
+ }
1578
+ var field = reader.getFieldNumber();
1579
+ switch (field) {
1580
+ case 1:
1581
+ var value = new proto.ondewo.nlu.ProjectRole;
1582
+ reader.readMessage(value,proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader);
1583
+ msg.addProjectRoles(value);
1584
+ break;
1585
+ case 2:
1586
+ var value = /** @type {string} */ (reader.readString());
1587
+ msg.setNextPageToken(value);
1588
+ break;
1589
+ default:
1590
+ reader.skipField();
1591
+ break;
1592
+ }
1593
+ }
1594
+ return msg;
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * Serializes the message to binary data (in protobuf wire format).
1600
+ * @return {!Uint8Array}
1601
+ */
1602
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.serializeBinary = function() {
1603
+ var writer = new jspb.BinaryWriter();
1604
+ proto.ondewo.nlu.ListProjectRolesResponse.serializeBinaryToWriter(this, writer);
1605
+ return writer.getResultBuffer();
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * Serializes the given message to binary data (in protobuf wire
1611
+ * format), writing to the given BinaryWriter.
1612
+ * @param {!proto.ondewo.nlu.ListProjectRolesResponse} message
1613
+ * @param {!jspb.BinaryWriter} writer
1614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1615
+ */
1616
+ proto.ondewo.nlu.ListProjectRolesResponse.serializeBinaryToWriter = function(message, writer) {
1617
+ var f = undefined;
1618
+ f = message.getProjectRolesList();
1619
+ if (f.length > 0) {
1620
+ writer.writeRepeatedMessage(
1621
+ 1,
1622
+ f,
1623
+ proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter
1624
+ );
1625
+ }
1626
+ f = message.getNextPageToken();
1627
+ if (f.length > 0) {
1628
+ writer.writeString(
1629
+ 2,
1630
+ f
1631
+ );
1632
+ }
1633
+ };
1634
+
1635
+
1636
+ /**
1637
+ * repeated ProjectRole project_roles = 1;
1638
+ * @return {!Array<!proto.ondewo.nlu.ProjectRole>}
1639
+ */
1640
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.getProjectRolesList = function() {
1641
+ return /** @type{!Array<!proto.ondewo.nlu.ProjectRole>} */ (
1642
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.ProjectRole, 1));
1643
+ };
1644
+
1645
+
1646
+ /**
1647
+ * @param {!Array<!proto.ondewo.nlu.ProjectRole>} value
1648
+ * @return {!proto.ondewo.nlu.ListProjectRolesResponse} returns this
1649
+ */
1650
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.setProjectRolesList = function(value) {
1651
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1652
+ };
1653
+
1654
+
1655
+ /**
1656
+ * @param {!proto.ondewo.nlu.ProjectRole=} opt_value
1657
+ * @param {number=} opt_index
1658
+ * @return {!proto.ondewo.nlu.ProjectRole}
1659
+ */
1660
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.addProjectRoles = function(opt_value, opt_index) {
1661
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.ProjectRole, opt_index);
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * Clears the list making it empty but non-null.
1667
+ * @return {!proto.ondewo.nlu.ListProjectRolesResponse} returns this
1668
+ */
1669
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.clearProjectRolesList = function() {
1670
+ return this.setProjectRolesList([]);
1671
+ };
1672
+
1673
+
1674
+ /**
1675
+ * optional string next_page_token = 2;
1676
+ * @return {string}
1677
+ */
1678
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.getNextPageToken = function() {
1679
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * @param {string} value
1685
+ * @return {!proto.ondewo.nlu.ListProjectRolesResponse} returns this
1686
+ */
1687
+ proto.ondewo.nlu.ListProjectRolesResponse.prototype.setNextPageToken = function(value) {
1688
+ return jspb.Message.setProto3StringField(this, 2, value);
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * @enum {number}
1694
+ */
1695
+ proto.ondewo.nlu.DefaultProjectRole = {
1696
+ PROJECT_UNSPECIFIED: 0,
1697
+ PROJECT_USER: 1,
1698
+ PROJECT_EXECUTOR: 2,
1699
+ PROJECT_DEVELOPER: 3,
1700
+ PROJECT_ADMIN: 4,
1701
+ PROJECT_INACTIVE: 5
1702
+ };
1703
+
1704
+ /**
1705
+ * @enum {number}
1706
+ */
1707
+ proto.ondewo.nlu.ProjectRoleView = {
1708
+ PROJECT_ROLE_VIEW_UNSPECIFIED: 0,
1709
+ PROJECT_ROLE_VIEW_SHALLOW: 1,
1710
+ PROJECT_ROLE_VIEW_FULL: 2
1711
+ };
1712
+
1713
+ goog.object.extend(exports, proto.ondewo.nlu);