@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,740 @@
1
+ // source: ondewo/nlu/operation_metadata.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_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
20
+ goog.exportSymbol('proto.ondewo.nlu.OperationMetadata', null, global);
21
+ goog.exportSymbol('proto.ondewo.nlu.OperationMetadata.OperationType', null, global);
22
+ goog.exportSymbol('proto.ondewo.nlu.OperationMetadata.Status', null, global);
23
+ /**
24
+ * Generated by JsPbCodeGenerator.
25
+ * @param {Array=} opt_data Optional initial data array, typically from a
26
+ * server response, or constructed directly in Javascript. The array is used
27
+ * in place and becomes part of the constructed object. It is not cloned.
28
+ * If no data is provided, the constructed object will be empty, but still
29
+ * valid.
30
+ * @extends {jspb.Message}
31
+ * @constructor
32
+ */
33
+ proto.ondewo.nlu.OperationMetadata = function(opt_data) {
34
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.OperationMetadata.repeatedFields_, null);
35
+ };
36
+ goog.inherits(proto.ondewo.nlu.OperationMetadata, jspb.Message);
37
+ if (goog.DEBUG && !COMPILED) {
38
+ /**
39
+ * @public
40
+ * @override
41
+ */
42
+ proto.ondewo.nlu.OperationMetadata.displayName = 'proto.ondewo.nlu.OperationMetadata';
43
+ }
44
+
45
+ /**
46
+ * List of repeated fields within this message type.
47
+ * @private {!Array<number>}
48
+ * @const
49
+ */
50
+ proto.ondewo.nlu.OperationMetadata.repeatedFields_ = [3];
51
+
52
+
53
+
54
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55
+ /**
56
+ * Creates an object representation of this proto.
57
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58
+ * Optional fields that are not set will be set to undefined.
59
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60
+ * For the list of reserved names please see:
61
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
63
+ * JSPB instance for transitional soy proto support:
64
+ * http://goto/soy-param-migration
65
+ * @return {!Object}
66
+ */
67
+ proto.ondewo.nlu.OperationMetadata.prototype.toObject = function(opt_includeInstance) {
68
+ return proto.ondewo.nlu.OperationMetadata.toObject(opt_includeInstance, this);
69
+ };
70
+
71
+
72
+ /**
73
+ * Static version of the {@see toObject} method.
74
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
75
+ * the JSPB instance for transitional soy proto support:
76
+ * http://goto/soy-param-migration
77
+ * @param {!proto.ondewo.nlu.OperationMetadata} msg The msg instance to transform.
78
+ * @return {!Object}
79
+ * @suppress {unusedLocalVariables} f is only used for nested messages
80
+ */
81
+ proto.ondewo.nlu.OperationMetadata.toObject = function(includeInstance, msg) {
82
+ var f, obj = {
83
+ status: jspb.Message.getFieldWithDefault(msg, 1, 0),
84
+ parentOperationName: jspb.Message.getFieldWithDefault(msg, 2, ""),
85
+ subOperationNamesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
86
+ createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
87
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
88
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
89
+ isCancellationRequested: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
90
+ cancelCommand: jspb.Message.getFieldWithDefault(msg, 8, ""),
91
+ userIdCreated: jspb.Message.getFieldWithDefault(msg, 9, ""),
92
+ userIdCancelled: jspb.Message.getFieldWithDefault(msg, 10, ""),
93
+ projectParent: jspb.Message.getFieldWithDefault(msg, 11, ""),
94
+ operationType: jspb.Message.getFieldWithDefault(msg, 12, 0),
95
+ hostName: jspb.Message.getFieldWithDefault(msg, 13, ""),
96
+ numReruns: jspb.Message.getFieldWithDefault(msg, 14, 0),
97
+ maxNumReruns: jspb.Message.getFieldWithDefault(msg, 15, 0),
98
+ description: jspb.Message.getFieldWithDefault(msg, 16, "")
99
+ };
100
+
101
+ if (includeInstance) {
102
+ obj.$jspbMessageInstance = msg;
103
+ }
104
+ return obj;
105
+ };
106
+ }
107
+
108
+
109
+ /**
110
+ * Deserializes binary data (in protobuf wire format).
111
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
112
+ * @return {!proto.ondewo.nlu.OperationMetadata}
113
+ */
114
+ proto.ondewo.nlu.OperationMetadata.deserializeBinary = function(bytes) {
115
+ var reader = new jspb.BinaryReader(bytes);
116
+ var msg = new proto.ondewo.nlu.OperationMetadata;
117
+ return proto.ondewo.nlu.OperationMetadata.deserializeBinaryFromReader(msg, reader);
118
+ };
119
+
120
+
121
+ /**
122
+ * Deserializes binary data (in protobuf wire format) from the
123
+ * given reader into the given message object.
124
+ * @param {!proto.ondewo.nlu.OperationMetadata} msg The message object to deserialize into.
125
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
126
+ * @return {!proto.ondewo.nlu.OperationMetadata}
127
+ */
128
+ proto.ondewo.nlu.OperationMetadata.deserializeBinaryFromReader = function(msg, reader) {
129
+ while (reader.nextField()) {
130
+ if (reader.isEndGroup()) {
131
+ break;
132
+ }
133
+ var field = reader.getFieldNumber();
134
+ switch (field) {
135
+ case 1:
136
+ var value = /** @type {!proto.ondewo.nlu.OperationMetadata.Status} */ (reader.readEnum());
137
+ msg.setStatus(value);
138
+ break;
139
+ case 2:
140
+ var value = /** @type {string} */ (reader.readString());
141
+ msg.setParentOperationName(value);
142
+ break;
143
+ case 3:
144
+ var value = /** @type {string} */ (reader.readString());
145
+ msg.addSubOperationNames(value);
146
+ break;
147
+ case 4:
148
+ var value = new google_protobuf_timestamp_pb.Timestamp;
149
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
150
+ msg.setCreateTime(value);
151
+ break;
152
+ case 5:
153
+ var value = new google_protobuf_timestamp_pb.Timestamp;
154
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
155
+ msg.setStartTime(value);
156
+ break;
157
+ case 6:
158
+ var value = new google_protobuf_timestamp_pb.Timestamp;
159
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
160
+ msg.setEndTime(value);
161
+ break;
162
+ case 7:
163
+ var value = /** @type {boolean} */ (reader.readBool());
164
+ msg.setIsCancellationRequested(value);
165
+ break;
166
+ case 8:
167
+ var value = /** @type {string} */ (reader.readString());
168
+ msg.setCancelCommand(value);
169
+ break;
170
+ case 9:
171
+ var value = /** @type {string} */ (reader.readString());
172
+ msg.setUserIdCreated(value);
173
+ break;
174
+ case 10:
175
+ var value = /** @type {string} */ (reader.readString());
176
+ msg.setUserIdCancelled(value);
177
+ break;
178
+ case 11:
179
+ var value = /** @type {string} */ (reader.readString());
180
+ msg.setProjectParent(value);
181
+ break;
182
+ case 12:
183
+ var value = /** @type {!proto.ondewo.nlu.OperationMetadata.OperationType} */ (reader.readEnum());
184
+ msg.setOperationType(value);
185
+ break;
186
+ case 13:
187
+ var value = /** @type {string} */ (reader.readString());
188
+ msg.setHostName(value);
189
+ break;
190
+ case 14:
191
+ var value = /** @type {number} */ (reader.readInt32());
192
+ msg.setNumReruns(value);
193
+ break;
194
+ case 15:
195
+ var value = /** @type {number} */ (reader.readInt32());
196
+ msg.setMaxNumReruns(value);
197
+ break;
198
+ case 16:
199
+ var value = /** @type {string} */ (reader.readString());
200
+ msg.setDescription(value);
201
+ break;
202
+ default:
203
+ reader.skipField();
204
+ break;
205
+ }
206
+ }
207
+ return msg;
208
+ };
209
+
210
+
211
+ /**
212
+ * Serializes the message to binary data (in protobuf wire format).
213
+ * @return {!Uint8Array}
214
+ */
215
+ proto.ondewo.nlu.OperationMetadata.prototype.serializeBinary = function() {
216
+ var writer = new jspb.BinaryWriter();
217
+ proto.ondewo.nlu.OperationMetadata.serializeBinaryToWriter(this, writer);
218
+ return writer.getResultBuffer();
219
+ };
220
+
221
+
222
+ /**
223
+ * Serializes the given message to binary data (in protobuf wire
224
+ * format), writing to the given BinaryWriter.
225
+ * @param {!proto.ondewo.nlu.OperationMetadata} message
226
+ * @param {!jspb.BinaryWriter} writer
227
+ * @suppress {unusedLocalVariables} f is only used for nested messages
228
+ */
229
+ proto.ondewo.nlu.OperationMetadata.serializeBinaryToWriter = function(message, writer) {
230
+ var f = undefined;
231
+ f = message.getStatus();
232
+ if (f !== 0.0) {
233
+ writer.writeEnum(
234
+ 1,
235
+ f
236
+ );
237
+ }
238
+ f = message.getParentOperationName();
239
+ if (f.length > 0) {
240
+ writer.writeString(
241
+ 2,
242
+ f
243
+ );
244
+ }
245
+ f = message.getSubOperationNamesList();
246
+ if (f.length > 0) {
247
+ writer.writeRepeatedString(
248
+ 3,
249
+ f
250
+ );
251
+ }
252
+ f = message.getCreateTime();
253
+ if (f != null) {
254
+ writer.writeMessage(
255
+ 4,
256
+ f,
257
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
258
+ );
259
+ }
260
+ f = message.getStartTime();
261
+ if (f != null) {
262
+ writer.writeMessage(
263
+ 5,
264
+ f,
265
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
266
+ );
267
+ }
268
+ f = message.getEndTime();
269
+ if (f != null) {
270
+ writer.writeMessage(
271
+ 6,
272
+ f,
273
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
274
+ );
275
+ }
276
+ f = message.getIsCancellationRequested();
277
+ if (f) {
278
+ writer.writeBool(
279
+ 7,
280
+ f
281
+ );
282
+ }
283
+ f = message.getCancelCommand();
284
+ if (f.length > 0) {
285
+ writer.writeString(
286
+ 8,
287
+ f
288
+ );
289
+ }
290
+ f = message.getUserIdCreated();
291
+ if (f.length > 0) {
292
+ writer.writeString(
293
+ 9,
294
+ f
295
+ );
296
+ }
297
+ f = message.getUserIdCancelled();
298
+ if (f.length > 0) {
299
+ writer.writeString(
300
+ 10,
301
+ f
302
+ );
303
+ }
304
+ f = message.getProjectParent();
305
+ if (f.length > 0) {
306
+ writer.writeString(
307
+ 11,
308
+ f
309
+ );
310
+ }
311
+ f = message.getOperationType();
312
+ if (f !== 0.0) {
313
+ writer.writeEnum(
314
+ 12,
315
+ f
316
+ );
317
+ }
318
+ f = message.getHostName();
319
+ if (f.length > 0) {
320
+ writer.writeString(
321
+ 13,
322
+ f
323
+ );
324
+ }
325
+ f = message.getNumReruns();
326
+ if (f !== 0) {
327
+ writer.writeInt32(
328
+ 14,
329
+ f
330
+ );
331
+ }
332
+ f = message.getMaxNumReruns();
333
+ if (f !== 0) {
334
+ writer.writeInt32(
335
+ 15,
336
+ f
337
+ );
338
+ }
339
+ f = message.getDescription();
340
+ if (f.length > 0) {
341
+ writer.writeString(
342
+ 16,
343
+ f
344
+ );
345
+ }
346
+ };
347
+
348
+
349
+ /**
350
+ * @enum {number}
351
+ */
352
+ proto.ondewo.nlu.OperationMetadata.Status = {
353
+ STATUS_UNSPECIFIED: 0,
354
+ NOT_STARTED: 1,
355
+ IN_PROGRESS: 2,
356
+ DONE: 3,
357
+ CANCELLED: 4,
358
+ FAILED: 5
359
+ };
360
+
361
+ /**
362
+ * @enum {number}
363
+ */
364
+ proto.ondewo.nlu.OperationMetadata.OperationType = {
365
+ OPERATION_TYPE_UNSPECIFIED: 0,
366
+ CREATE_AGENT: 1,
367
+ IMPORT_AGENT: 2,
368
+ EXPORT_AGENT: 3,
369
+ DELETE_AGENT: 4,
370
+ RESTORE_AGENT: 5,
371
+ BUILD_AGENT_CACHE: 6,
372
+ TRAIN_AGENT: 7,
373
+ EXPORT_BENCHMARK_AGENT: 8
374
+ };
375
+
376
+ /**
377
+ * optional Status status = 1;
378
+ * @return {!proto.ondewo.nlu.OperationMetadata.Status}
379
+ */
380
+ proto.ondewo.nlu.OperationMetadata.prototype.getStatus = function() {
381
+ return /** @type {!proto.ondewo.nlu.OperationMetadata.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
382
+ };
383
+
384
+
385
+ /**
386
+ * @param {!proto.ondewo.nlu.OperationMetadata.Status} value
387
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
388
+ */
389
+ proto.ondewo.nlu.OperationMetadata.prototype.setStatus = function(value) {
390
+ return jspb.Message.setProto3EnumField(this, 1, value);
391
+ };
392
+
393
+
394
+ /**
395
+ * optional string parent_operation_name = 2;
396
+ * @return {string}
397
+ */
398
+ proto.ondewo.nlu.OperationMetadata.prototype.getParentOperationName = function() {
399
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
400
+ };
401
+
402
+
403
+ /**
404
+ * @param {string} value
405
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
406
+ */
407
+ proto.ondewo.nlu.OperationMetadata.prototype.setParentOperationName = function(value) {
408
+ return jspb.Message.setProto3StringField(this, 2, value);
409
+ };
410
+
411
+
412
+ /**
413
+ * repeated string sub_operation_names = 3;
414
+ * @return {!Array<string>}
415
+ */
416
+ proto.ondewo.nlu.OperationMetadata.prototype.getSubOperationNamesList = function() {
417
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
418
+ };
419
+
420
+
421
+ /**
422
+ * @param {!Array<string>} value
423
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
424
+ */
425
+ proto.ondewo.nlu.OperationMetadata.prototype.setSubOperationNamesList = function(value) {
426
+ return jspb.Message.setField(this, 3, value || []);
427
+ };
428
+
429
+
430
+ /**
431
+ * @param {string} value
432
+ * @param {number=} opt_index
433
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
434
+ */
435
+ proto.ondewo.nlu.OperationMetadata.prototype.addSubOperationNames = function(value, opt_index) {
436
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
437
+ };
438
+
439
+
440
+ /**
441
+ * Clears the list making it empty but non-null.
442
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
443
+ */
444
+ proto.ondewo.nlu.OperationMetadata.prototype.clearSubOperationNamesList = function() {
445
+ return this.setSubOperationNamesList([]);
446
+ };
447
+
448
+
449
+ /**
450
+ * optional google.protobuf.Timestamp create_time = 4;
451
+ * @return {?proto.google.protobuf.Timestamp}
452
+ */
453
+ proto.ondewo.nlu.OperationMetadata.prototype.getCreateTime = function() {
454
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
455
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
456
+ };
457
+
458
+
459
+ /**
460
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
461
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
462
+ */
463
+ proto.ondewo.nlu.OperationMetadata.prototype.setCreateTime = function(value) {
464
+ return jspb.Message.setWrapperField(this, 4, value);
465
+ };
466
+
467
+
468
+ /**
469
+ * Clears the message field making it undefined.
470
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
471
+ */
472
+ proto.ondewo.nlu.OperationMetadata.prototype.clearCreateTime = function() {
473
+ return this.setCreateTime(undefined);
474
+ };
475
+
476
+
477
+ /**
478
+ * Returns whether this field is set.
479
+ * @return {boolean}
480
+ */
481
+ proto.ondewo.nlu.OperationMetadata.prototype.hasCreateTime = function() {
482
+ return jspb.Message.getField(this, 4) != null;
483
+ };
484
+
485
+
486
+ /**
487
+ * optional google.protobuf.Timestamp start_time = 5;
488
+ * @return {?proto.google.protobuf.Timestamp}
489
+ */
490
+ proto.ondewo.nlu.OperationMetadata.prototype.getStartTime = function() {
491
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
492
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
493
+ };
494
+
495
+
496
+ /**
497
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
498
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
499
+ */
500
+ proto.ondewo.nlu.OperationMetadata.prototype.setStartTime = function(value) {
501
+ return jspb.Message.setWrapperField(this, 5, value);
502
+ };
503
+
504
+
505
+ /**
506
+ * Clears the message field making it undefined.
507
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
508
+ */
509
+ proto.ondewo.nlu.OperationMetadata.prototype.clearStartTime = function() {
510
+ return this.setStartTime(undefined);
511
+ };
512
+
513
+
514
+ /**
515
+ * Returns whether this field is set.
516
+ * @return {boolean}
517
+ */
518
+ proto.ondewo.nlu.OperationMetadata.prototype.hasStartTime = function() {
519
+ return jspb.Message.getField(this, 5) != null;
520
+ };
521
+
522
+
523
+ /**
524
+ * optional google.protobuf.Timestamp end_time = 6;
525
+ * @return {?proto.google.protobuf.Timestamp}
526
+ */
527
+ proto.ondewo.nlu.OperationMetadata.prototype.getEndTime = function() {
528
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
529
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
530
+ };
531
+
532
+
533
+ /**
534
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
535
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
536
+ */
537
+ proto.ondewo.nlu.OperationMetadata.prototype.setEndTime = function(value) {
538
+ return jspb.Message.setWrapperField(this, 6, value);
539
+ };
540
+
541
+
542
+ /**
543
+ * Clears the message field making it undefined.
544
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
545
+ */
546
+ proto.ondewo.nlu.OperationMetadata.prototype.clearEndTime = function() {
547
+ return this.setEndTime(undefined);
548
+ };
549
+
550
+
551
+ /**
552
+ * Returns whether this field is set.
553
+ * @return {boolean}
554
+ */
555
+ proto.ondewo.nlu.OperationMetadata.prototype.hasEndTime = function() {
556
+ return jspb.Message.getField(this, 6) != null;
557
+ };
558
+
559
+
560
+ /**
561
+ * optional bool is_cancellation_requested = 7;
562
+ * @return {boolean}
563
+ */
564
+ proto.ondewo.nlu.OperationMetadata.prototype.getIsCancellationRequested = function() {
565
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
566
+ };
567
+
568
+
569
+ /**
570
+ * @param {boolean} value
571
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
572
+ */
573
+ proto.ondewo.nlu.OperationMetadata.prototype.setIsCancellationRequested = function(value) {
574
+ return jspb.Message.setProto3BooleanField(this, 7, value);
575
+ };
576
+
577
+
578
+ /**
579
+ * optional string cancel_command = 8;
580
+ * @return {string}
581
+ */
582
+ proto.ondewo.nlu.OperationMetadata.prototype.getCancelCommand = function() {
583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
584
+ };
585
+
586
+
587
+ /**
588
+ * @param {string} value
589
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
590
+ */
591
+ proto.ondewo.nlu.OperationMetadata.prototype.setCancelCommand = function(value) {
592
+ return jspb.Message.setProto3StringField(this, 8, value);
593
+ };
594
+
595
+
596
+ /**
597
+ * optional string user_id_created = 9;
598
+ * @return {string}
599
+ */
600
+ proto.ondewo.nlu.OperationMetadata.prototype.getUserIdCreated = function() {
601
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
602
+ };
603
+
604
+
605
+ /**
606
+ * @param {string} value
607
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
608
+ */
609
+ proto.ondewo.nlu.OperationMetadata.prototype.setUserIdCreated = function(value) {
610
+ return jspb.Message.setProto3StringField(this, 9, value);
611
+ };
612
+
613
+
614
+ /**
615
+ * optional string user_id_cancelled = 10;
616
+ * @return {string}
617
+ */
618
+ proto.ondewo.nlu.OperationMetadata.prototype.getUserIdCancelled = function() {
619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
620
+ };
621
+
622
+
623
+ /**
624
+ * @param {string} value
625
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
626
+ */
627
+ proto.ondewo.nlu.OperationMetadata.prototype.setUserIdCancelled = function(value) {
628
+ return jspb.Message.setProto3StringField(this, 10, value);
629
+ };
630
+
631
+
632
+ /**
633
+ * optional string project_parent = 11;
634
+ * @return {string}
635
+ */
636
+ proto.ondewo.nlu.OperationMetadata.prototype.getProjectParent = function() {
637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
638
+ };
639
+
640
+
641
+ /**
642
+ * @param {string} value
643
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
644
+ */
645
+ proto.ondewo.nlu.OperationMetadata.prototype.setProjectParent = function(value) {
646
+ return jspb.Message.setProto3StringField(this, 11, value);
647
+ };
648
+
649
+
650
+ /**
651
+ * optional OperationType operation_type = 12;
652
+ * @return {!proto.ondewo.nlu.OperationMetadata.OperationType}
653
+ */
654
+ proto.ondewo.nlu.OperationMetadata.prototype.getOperationType = function() {
655
+ return /** @type {!proto.ondewo.nlu.OperationMetadata.OperationType} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
656
+ };
657
+
658
+
659
+ /**
660
+ * @param {!proto.ondewo.nlu.OperationMetadata.OperationType} value
661
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
662
+ */
663
+ proto.ondewo.nlu.OperationMetadata.prototype.setOperationType = function(value) {
664
+ return jspb.Message.setProto3EnumField(this, 12, value);
665
+ };
666
+
667
+
668
+ /**
669
+ * optional string host_name = 13;
670
+ * @return {string}
671
+ */
672
+ proto.ondewo.nlu.OperationMetadata.prototype.getHostName = function() {
673
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
674
+ };
675
+
676
+
677
+ /**
678
+ * @param {string} value
679
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
680
+ */
681
+ proto.ondewo.nlu.OperationMetadata.prototype.setHostName = function(value) {
682
+ return jspb.Message.setProto3StringField(this, 13, value);
683
+ };
684
+
685
+
686
+ /**
687
+ * optional int32 num_reruns = 14;
688
+ * @return {number}
689
+ */
690
+ proto.ondewo.nlu.OperationMetadata.prototype.getNumReruns = function() {
691
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
692
+ };
693
+
694
+
695
+ /**
696
+ * @param {number} value
697
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
698
+ */
699
+ proto.ondewo.nlu.OperationMetadata.prototype.setNumReruns = function(value) {
700
+ return jspb.Message.setProto3IntField(this, 14, value);
701
+ };
702
+
703
+
704
+ /**
705
+ * optional int32 max_num_reruns = 15;
706
+ * @return {number}
707
+ */
708
+ proto.ondewo.nlu.OperationMetadata.prototype.getMaxNumReruns = function() {
709
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
710
+ };
711
+
712
+
713
+ /**
714
+ * @param {number} value
715
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
716
+ */
717
+ proto.ondewo.nlu.OperationMetadata.prototype.setMaxNumReruns = function(value) {
718
+ return jspb.Message.setProto3IntField(this, 15, value);
719
+ };
720
+
721
+
722
+ /**
723
+ * optional string description = 16;
724
+ * @return {string}
725
+ */
726
+ proto.ondewo.nlu.OperationMetadata.prototype.getDescription = function() {
727
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
728
+ };
729
+
730
+
731
+ /**
732
+ * @param {string} value
733
+ * @return {!proto.ondewo.nlu.OperationMetadata} returns this
734
+ */
735
+ proto.ondewo.nlu.OperationMetadata.prototype.setDescription = function(value) {
736
+ return jspb.Message.setProto3StringField(this, 16, value);
737
+ };
738
+
739
+
740
+ goog.object.extend(exports, proto.ondewo.nlu);