@ondewo/nlu-client-typescript 4.5.0 → 4.7.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.
@@ -24,6 +24,8 @@ var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/fie
24
24
 
25
25
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js')
26
26
 
27
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
28
+
27
29
  var google_rpc_status_pb = require('../../google/rpc/status_pb.js')
28
30
 
29
31
  var google_type_latlng_pb = require('../../google/type/latlng_pb.js')
@@ -4,6 +4,7 @@ import * as google_api_annotations_pb from '../../google/api/annotations_pb';
4
4
  import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
5
5
  import * as google_protobuf_field_mask_pb from 'google-protobuf/google/protobuf/field_mask_pb';
6
6
  import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb';
7
+ import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
7
8
  import * as google_rpc_status_pb from '../../google/rpc/status_pb';
8
9
  import * as google_type_latlng_pb from '../../google/type/latlng_pb';
9
10
  import * as ondewo_nlu_context_pb from '../../ondewo/nlu/context_pb';
@@ -525,6 +526,11 @@ export class SessionStep extends jspb.Message {
525
526
  clearContextsList(): SessionStep;
526
527
  addContexts(value?: ondewo_nlu_context_pb.Context, index?: number): ondewo_nlu_context_pb.Context;
527
528
 
529
+ getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
530
+ setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): SessionStep;
531
+ hasTimestamp(): boolean;
532
+ clearTimestamp(): SessionStep;
533
+
528
534
  serializeBinary(): Uint8Array;
529
535
  toObject(includeInstance?: boolean): SessionStep.AsObject;
530
536
  static toObject(includeInstance: boolean, msg: SessionStep): SessionStep.AsObject;
@@ -539,6 +545,7 @@ export namespace SessionStep {
539
545
  detectIntentRequest?: DetectIntentRequest.AsObject,
540
546
  detectIntentResponse?: DetectIntentResponse.AsObject,
541
547
  contextsList: Array<ondewo_nlu_context_pb.Context.AsObject>,
548
+ timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
542
549
  }
543
550
  }
544
551
 
@@ -1270,6 +1277,11 @@ export class SessionReviewStep extends jspb.Message {
1270
1277
  clearPlatformsList(): SessionReviewStep;
1271
1278
  addPlatforms(value: ondewo_nlu_intent_pb.Intent.Message.Platform, index?: number): SessionReviewStep;
1272
1279
 
1280
+ getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
1281
+ setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): SessionReviewStep;
1282
+ hasTimestamp(): boolean;
1283
+ clearTimestamp(): SessionReviewStep;
1284
+
1273
1285
  serializeBinary(): Uint8Array;
1274
1286
  toObject(includeInstance?: boolean): SessionReviewStep.AsObject;
1275
1287
  static toObject(includeInstance: boolean, msg: SessionReviewStep): SessionReviewStep.AsObject;
@@ -1288,6 +1300,7 @@ export namespace SessionReviewStep {
1288
1300
  contextsOutList: Array<ondewo_nlu_context_pb.Context.AsObject>,
1289
1301
  queryTextOriginal: string,
1290
1302
  platformsList: Array<ondewo_nlu_intent_pb.Intent.Message.Platform>,
1303
+ timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1291
1304
  }
1292
1305
  }
1293
1306
 
@@ -23,6 +23,8 @@ var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/fie
23
23
  goog.object.extend(proto, google_protobuf_field_mask_pb);
24
24
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_struct_pb);
26
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
28
  var google_rpc_status_pb = require('../../google/rpc/status_pb.js');
27
29
  goog.object.extend(proto, google_rpc_status_pb);
28
30
  var google_type_latlng_pb = require('../../google/type/latlng_pb.js');
@@ -5198,7 +5200,8 @@ proto.ondewo.nlu.SessionStep.toObject = function(includeInstance, msg) {
5198
5200
  detectIntentRequest: (f = msg.getDetectIntentRequest()) && proto.ondewo.nlu.DetectIntentRequest.toObject(includeInstance, f),
5199
5201
  detectIntentResponse: (f = msg.getDetectIntentResponse()) && proto.ondewo.nlu.DetectIntentResponse.toObject(includeInstance, f),
5200
5202
  contextsList: jspb.Message.toObjectList(msg.getContextsList(),
5201
- ondewo_nlu_context_pb.Context.toObject, includeInstance)
5203
+ ondewo_nlu_context_pb.Context.toObject, includeInstance),
5204
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
5202
5205
  };
5203
5206
 
5204
5207
  if (includeInstance) {
@@ -5254,6 +5257,11 @@ proto.ondewo.nlu.SessionStep.deserializeBinaryFromReader = function(msg, reader)
5254
5257
  reader.readMessage(value,ondewo_nlu_context_pb.Context.deserializeBinaryFromReader);
5255
5258
  msg.addContexts(value);
5256
5259
  break;
5260
+ case 5:
5261
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5262
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5263
+ msg.setTimestamp(value);
5264
+ break;
5257
5265
  default:
5258
5266
  reader.skipField();
5259
5267
  break;
@@ -5314,6 +5322,14 @@ proto.ondewo.nlu.SessionStep.serializeBinaryToWriter = function(message, writer)
5314
5322
  ondewo_nlu_context_pb.Context.serializeBinaryToWriter
5315
5323
  );
5316
5324
  }
5325
+ f = message.getTimestamp();
5326
+ if (f != null) {
5327
+ writer.writeMessage(
5328
+ 5,
5329
+ f,
5330
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5331
+ );
5332
+ }
5317
5333
  };
5318
5334
 
5319
5335
 
@@ -5447,6 +5463,43 @@ proto.ondewo.nlu.SessionStep.prototype.clearContextsList = function() {
5447
5463
  };
5448
5464
 
5449
5465
 
5466
+ /**
5467
+ * optional google.protobuf.Timestamp timestamp = 5;
5468
+ * @return {?proto.google.protobuf.Timestamp}
5469
+ */
5470
+ proto.ondewo.nlu.SessionStep.prototype.getTimestamp = function() {
5471
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5472
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
5473
+ };
5474
+
5475
+
5476
+ /**
5477
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5478
+ * @return {!proto.ondewo.nlu.SessionStep} returns this
5479
+ */
5480
+ proto.ondewo.nlu.SessionStep.prototype.setTimestamp = function(value) {
5481
+ return jspb.Message.setWrapperField(this, 5, value);
5482
+ };
5483
+
5484
+
5485
+ /**
5486
+ * Clears the message field making it undefined.
5487
+ * @return {!proto.ondewo.nlu.SessionStep} returns this
5488
+ */
5489
+ proto.ondewo.nlu.SessionStep.prototype.clearTimestamp = function() {
5490
+ return this.setTimestamp(undefined);
5491
+ };
5492
+
5493
+
5494
+ /**
5495
+ * Returns whether this field is set.
5496
+ * @return {boolean}
5497
+ */
5498
+ proto.ondewo.nlu.SessionStep.prototype.hasTimestamp = function() {
5499
+ return jspb.Message.getField(this, 5) != null;
5500
+ };
5501
+
5502
+
5450
5503
 
5451
5504
 
5452
5505
 
@@ -10850,7 +10903,8 @@ proto.ondewo.nlu.SessionReviewStep.toObject = function(includeInstance, msg) {
10850
10903
  contextsOutList: jspb.Message.toObjectList(msg.getContextsOutList(),
10851
10904
  ondewo_nlu_context_pb.Context.toObject, includeInstance),
10852
10905
  queryTextOriginal: jspb.Message.getFieldWithDefault(msg, 7, ""),
10853
- platformsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
10906
+ platformsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
10907
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
10854
10908
  };
10855
10909
 
10856
10910
  if (includeInstance) {
@@ -10925,6 +10979,11 @@ proto.ondewo.nlu.SessionReviewStep.deserializeBinaryFromReader = function(msg, r
10925
10979
  msg.addPlatforms(values[i]);
10926
10980
  }
10927
10981
  break;
10982
+ case 9:
10983
+ var value = new google_protobuf_timestamp_pb.Timestamp;
10984
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
10985
+ msg.setTimestamp(value);
10986
+ break;
10928
10987
  default:
10929
10988
  reader.skipField();
10930
10989
  break;
@@ -11014,6 +11073,14 @@ proto.ondewo.nlu.SessionReviewStep.serializeBinaryToWriter = function(message, w
11014
11073
  f
11015
11074
  );
11016
11075
  }
11076
+ f = message.getTimestamp();
11077
+ if (f != null) {
11078
+ writer.writeMessage(
11079
+ 9,
11080
+ f,
11081
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
11082
+ );
11083
+ }
11017
11084
  };
11018
11085
 
11019
11086
 
@@ -11259,6 +11326,43 @@ proto.ondewo.nlu.SessionReviewStep.prototype.clearPlatformsList = function() {
11259
11326
  };
11260
11327
 
11261
11328
 
11329
+ /**
11330
+ * optional google.protobuf.Timestamp timestamp = 9;
11331
+ * @return {?proto.google.protobuf.Timestamp}
11332
+ */
11333
+ proto.ondewo.nlu.SessionReviewStep.prototype.getTimestamp = function() {
11334
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
11335
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
11336
+ };
11337
+
11338
+
11339
+ /**
11340
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
11341
+ * @return {!proto.ondewo.nlu.SessionReviewStep} returns this
11342
+ */
11343
+ proto.ondewo.nlu.SessionReviewStep.prototype.setTimestamp = function(value) {
11344
+ return jspb.Message.setWrapperField(this, 9, value);
11345
+ };
11346
+
11347
+
11348
+ /**
11349
+ * Clears the message field making it undefined.
11350
+ * @return {!proto.ondewo.nlu.SessionReviewStep} returns this
11351
+ */
11352
+ proto.ondewo.nlu.SessionReviewStep.prototype.clearTimestamp = function() {
11353
+ return this.setTimestamp(undefined);
11354
+ };
11355
+
11356
+
11357
+ /**
11358
+ * Returns whether this field is set.
11359
+ * @return {boolean}
11360
+ */
11361
+ proto.ondewo.nlu.SessionReviewStep.prototype.hasTimestamp = function() {
11362
+ return jspb.Message.getField(this, 9) != null;
11363
+ };
11364
+
11365
+
11262
11366
 
11263
11367
  /**
11264
11368
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondewo/nlu-client-typescript",
3
- "version": "4.5.0",
3
+ "version": "4.7.0",
4
4
  "description": "Ondewo Natural Language Understanding (NLU) Client library for typescript as a commonjs module",
5
5
  "main": "public-api.js",
6
6
  "typings": "public-api.d.ts",