@ondewo/nlu-client-typescript 7.0.0 → 7.1.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.
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  var google_api_http_pb = require('../../google/api/http_pb.js');
25
19
  goog.object.extend(proto, google_api_http_pb);
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  goog.exportSymbol('proto.google.protobuf.Any', null, global);
25
19
  /**
@@ -89,7 +83,7 @@ value: msg.getValue_asB64()
89
83
 
90
84
  /**
91
85
  * Deserializes binary data (in protobuf wire format).
92
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
86
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
93
87
  * @return {!proto.google.protobuf.Any}
94
88
  */
95
89
  proto.google.protobuf.Any.deserializeBinary = function(bytes) {
@@ -114,7 +108,7 @@ proto.google.protobuf.Any.deserializeBinaryFromReader = function(msg, reader) {
114
108
  var field = reader.getFieldNumber();
115
109
  switch (field) {
116
110
  case 1:
117
- var value = /** @type {string} */ (reader.readString());
111
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
118
112
  msg.setTypeUrl(value);
119
113
  break;
120
114
  case 2:
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  goog.exportSymbol('proto.google.protobuf.Empty', null, global);
25
19
  /**
@@ -88,7 +82,7 @@ proto.google.protobuf.Empty.toObject = function(includeInstance, msg) {
88
82
 
89
83
  /**
90
84
  * Deserializes binary data (in protobuf wire format).
91
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
85
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
92
86
  * @return {!proto.google.protobuf.Empty}
93
87
  */
94
88
  proto.google.protobuf.Empty.deserializeBinary = function(bytes) {
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  goog.exportSymbol('proto.google.protobuf.FieldMask', null, global);
25
19
  /**
@@ -95,7 +89,7 @@ pathsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
95
89
 
96
90
  /**
97
91
  * Deserializes binary data (in protobuf wire format).
98
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
92
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
99
93
  * @return {!proto.google.protobuf.FieldMask}
100
94
  */
101
95
  proto.google.protobuf.FieldMask.deserializeBinary = function(bytes) {
@@ -120,7 +114,7 @@ proto.google.protobuf.FieldMask.deserializeBinaryFromReader = function(msg, read
120
114
  var field = reader.getFieldNumber();
121
115
  switch (field) {
122
116
  case 1:
123
- var value = /** @type {string} */ (reader.readString());
117
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
124
118
  msg.addPaths(value);
125
119
  break;
126
120
  default:
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  goog.exportSymbol('proto.google.protobuf.ListValue', null, global);
25
19
  goog.exportSymbol('proto.google.protobuf.NullValue', null, global);
@@ -134,7 +128,7 @@ fieldsMap: (f = msg.getFieldsMap()) ? f.toObject(includeInstance, proto.google.p
134
128
 
135
129
  /**
136
130
  * Deserializes binary data (in protobuf wire format).
137
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
131
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
138
132
  * @return {!proto.google.protobuf.Struct}
139
133
  */
140
134
  proto.google.protobuf.Struct.deserializeBinary = function(bytes) {
@@ -161,7 +155,7 @@ proto.google.protobuf.Struct.deserializeBinaryFromReader = function(msg, reader)
161
155
  case 1:
162
156
  var value = msg.getFieldsMap();
163
157
  reader.readMessage(value, function(message, reader) {
164
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
158
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readStringRequireUtf8, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
165
159
  });
166
160
  break;
167
161
  default:
@@ -195,7 +189,13 @@ proto.google.protobuf.Struct.serializeBinaryToWriter = function(message, writer)
195
189
  var f = undefined;
196
190
  f = message.getFieldsMap(true);
197
191
  if (f && f.getLength() > 0) {
198
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
192
+ jspb.internal.public_for_gencode.serializeMapToBinary(
193
+ message.getFieldsMap(true),
194
+ 1,
195
+ writer,
196
+ jspb.BinaryWriter.prototype.writeString,
197
+ jspb.BinaryWriter.prototype.writeMessage,
198
+ proto.google.protobuf.Value.serializeBinaryToWriter);
199
199
  }
200
200
  };
201
201
 
@@ -303,7 +303,7 @@ listValue: (f = msg.getListValue()) && proto.google.protobuf.ListValue.toObject(
303
303
 
304
304
  /**
305
305
  * Deserializes binary data (in protobuf wire format).
306
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
306
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
307
307
  * @return {!proto.google.protobuf.Value}
308
308
  */
309
309
  proto.google.protobuf.Value.deserializeBinary = function(bytes) {
@@ -336,7 +336,7 @@ proto.google.protobuf.Value.deserializeBinaryFromReader = function(msg, reader)
336
336
  msg.setNumberValue(value);
337
337
  break;
338
338
  case 3:
339
- var value = /** @type {string} */ (reader.readString());
339
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
340
340
  msg.setStringValue(value);
341
341
  break;
342
342
  case 4:
@@ -700,7 +700,7 @@ valuesList: jspb.Message.toObjectList(msg.getValuesList(),
700
700
 
701
701
  /**
702
702
  * Deserializes binary data (in protobuf wire format).
703
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
703
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
704
704
  * @return {!proto.google.protobuf.ListValue}
705
705
  */
706
706
  proto.google.protobuf.ListValue.deserializeBinary = function(bytes) {
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  goog.exportSymbol('proto.google.protobuf.Timestamp', null, global);
25
19
  /**
@@ -89,7 +83,7 @@ nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
89
83
 
90
84
  /**
91
85
  * Deserializes binary data (in protobuf wire format).
92
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
86
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
93
87
  * @return {!proto.google.protobuf.Timestamp}
94
88
  */
95
89
  proto.google.protobuf.Timestamp.deserializeBinary = function(bytes) {
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
25
19
  goog.object.extend(proto, google_protobuf_any_pb);
@@ -100,7 +94,7 @@ detailsList: jspb.Message.toObjectList(msg.getDetailsList(),
100
94
 
101
95
  /**
102
96
  * Deserializes binary data (in protobuf wire format).
103
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
97
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
104
98
  * @return {!proto.google.rpc.Status}
105
99
  */
106
100
  proto.google.rpc.Status.deserializeBinary = function(bytes) {
@@ -129,7 +123,7 @@ proto.google.rpc.Status.deserializeBinaryFromReader = function(msg, reader) {
129
123
  msg.setCode(value);
130
124
  break;
131
125
  case 2:
132
- var value = /** @type {string} */ (reader.readString());
126
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
133
127
  msg.setMessage(value);
134
128
  break;
135
129
  case 3:
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  goog.exportSymbol('proto.google.type.LatLng', null, global);
25
19
  /**
@@ -89,7 +83,7 @@ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
89
83
 
90
84
  /**
91
85
  * Deserializes binary data (in protobuf wire format).
92
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
86
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
93
87
  * @return {!proto.google.type.LatLng}
94
88
  */
95
89
  proto.google.type.LatLng.deserializeBinary = function(bytes) {