@ondewo/nlu-client-typescript 4.0.0 → 4.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.
- package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +450 -490
- package/api/ondewo/nlu/agent_grpc_web_pb.js +1113 -1244
- package/api/ondewo/nlu/agent_pb.d.ts +1939 -1751
- package/api/ondewo/nlu/agent_pb.js +9062 -10483
- package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +98 -106
- package/api/ondewo/nlu/aiservices_grpc_web_pb.js +245 -280
- package/api/ondewo/nlu/aiservices_pb.d.ts +745 -674
- package/api/ondewo/nlu/aiservices_pb.js +3638 -4403
- package/api/ondewo/nlu/common_pb.d.ts +15 -17
- package/api/ondewo/nlu/common_pb.js +83 -93
- package/api/ondewo/nlu/context_grpc_web_pb.d.ts +76 -82
- package/api/ondewo/nlu/context_grpc_web_pb.js +191 -220
- package/api/ondewo/nlu/context_pb.d.ts +151 -151
- package/api/ondewo/nlu/context_pb.js +889 -1042
- package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +142 -154
- package/api/ondewo/nlu/entity_type_grpc_web_pb.js +351 -398
- package/api/ondewo/nlu/entity_type_pb.d.ts +614 -571
- package/api/ondewo/nlu/entity_type_pb.js +2893 -3369
- package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +310 -334
- package/api/ondewo/nlu/intent_grpc_web_pb.js +766 -851
- package/api/ondewo/nlu/intent_pb.d.ts +2151 -1993
- package/api/ondewo/nlu/intent_pb.js +9502 -10692
- package/api/ondewo/nlu/operation_metadata_pb.d.ts +86 -88
- package/api/ondewo/nlu/operation_metadata_pb.js +321 -412
- package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +46 -50
- package/api/ondewo/nlu/operations_grpc_web_pb.js +140 -163
- package/api/ondewo/nlu/operations_pb.d.ts +189 -182
- package/api/ondewo/nlu/operations_pb.js +843 -1004
- package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +65 -70
- package/api/ondewo/nlu/project_role_grpc_web_pb.js +164 -190
- package/api/ondewo/nlu/project_role_pb.d.ts +165 -151
- package/api/ondewo/nlu/project_role_pb.js +796 -963
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +98 -106
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +246 -281
- package/api/ondewo/nlu/project_statistics_pb.d.ts +67 -63
- package/api/ondewo/nlu/project_statistics_pb.js +354 -418
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +43 -46
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +110 -130
- package/api/ondewo/nlu/server_statistics_pb.d.ts +15 -14
- package/api/ondewo/nlu/server_statistics_pb.js +81 -91
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +164 -178
- package/api/ondewo/nlu/session_grpc_web_pb.js +409 -462
- package/api/ondewo/nlu/session_pb.d.ts +1080 -1025
- package/api/ondewo/nlu/session_pb.js +5285 -6536
- package/api/ondewo/nlu/user_grpc_web_pb.d.ts +172 -190
- package/api/ondewo/nlu/user_grpc_web_pb.js +431 -487
- package/api/ondewo/nlu/user_pb.d.ts +345 -325
- package/api/ondewo/nlu/user_pb.js +1948 -2312
- package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +98 -106
- package/api/ondewo/nlu/utility_grpc_web_pb.js +244 -279
- package/api/ondewo/nlu/utility_pb.d.ts +588 -535
- package/api/ondewo/nlu/utility_pb.js +2814 -3348
- package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +43 -46
- package/api/ondewo/nlu/webhook_grpc_web_pb.js +112 -132
- package/api/ondewo/nlu/webhook_pb.d.ts +123 -119
- package/api/ondewo/nlu/webhook_pb.js +599 -718
- package/api/ondewo/qa/qa_grpc_web_pb.d.ts +87 -94
- package/api/ondewo/qa/qa_grpc_web_pb.js +218 -250
- package/api/ondewo/qa/qa_pb.d.ts +235 -220
- package/api/ondewo/qa/qa_pb.js +1222 -1452
- package/package.json +1 -1
- package/public-api.d.ts +4 -34
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = function () {
|
|
17
|
+
return this || window || global || self || Function('return this')();
|
|
18
|
+
}.call(null);
|
|
17
19
|
|
|
18
20
|
var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
|
|
19
21
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
@@ -40,16 +42,16 @@ goog.exportSymbol('proto.ondewo.nlu.WebhookResponse', null, global);
|
|
|
40
42
|
* @extends {jspb.Message}
|
|
41
43
|
* @constructor
|
|
42
44
|
*/
|
|
43
|
-
proto.ondewo.nlu.PingRequest = function(opt_data) {
|
|
44
|
-
|
|
45
|
+
proto.ondewo.nlu.PingRequest = function (opt_data) {
|
|
46
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
45
47
|
};
|
|
46
48
|
goog.inherits(proto.ondewo.nlu.PingRequest, jspb.Message);
|
|
47
49
|
if (goog.DEBUG && !COMPILED) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
* @override
|
|
53
|
+
*/
|
|
54
|
+
proto.ondewo.nlu.PingRequest.displayName = 'proto.ondewo.nlu.PingRequest';
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
55
57
|
* Generated by JsPbCodeGenerator.
|
|
@@ -61,16 +63,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
61
63
|
* @extends {jspb.Message}
|
|
62
64
|
* @constructor
|
|
63
65
|
*/
|
|
64
|
-
proto.ondewo.nlu.WebhookRequest = function(opt_data) {
|
|
65
|
-
|
|
66
|
+
proto.ondewo.nlu.WebhookRequest = function (opt_data) {
|
|
67
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
66
68
|
};
|
|
67
69
|
goog.inherits(proto.ondewo.nlu.WebhookRequest, jspb.Message);
|
|
68
70
|
if (goog.DEBUG && !COMPILED) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
* @override
|
|
74
|
+
*/
|
|
75
|
+
proto.ondewo.nlu.WebhookRequest.displayName = 'proto.ondewo.nlu.WebhookRequest';
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
76
78
|
* Generated by JsPbCodeGenerator.
|
|
@@ -82,16 +84,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
82
84
|
* @extends {jspb.Message}
|
|
83
85
|
* @constructor
|
|
84
86
|
*/
|
|
85
|
-
proto.ondewo.nlu.WebhookResponse = function(opt_data) {
|
|
86
|
-
|
|
87
|
+
proto.ondewo.nlu.WebhookResponse = function (opt_data) {
|
|
88
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.WebhookResponse.repeatedFields_, null);
|
|
87
89
|
};
|
|
88
90
|
goog.inherits(proto.ondewo.nlu.WebhookResponse, jspb.Message);
|
|
89
91
|
if (goog.DEBUG && !COMPILED) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
* @override
|
|
95
|
+
*/
|
|
96
|
+
proto.ondewo.nlu.WebhookResponse.displayName = 'proto.ondewo.nlu.WebhookResponse';
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
97
99
|
* Generated by JsPbCodeGenerator.
|
|
@@ -103,16 +105,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
103
105
|
* @extends {jspb.Message}
|
|
104
106
|
* @constructor
|
|
105
107
|
*/
|
|
106
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest = function(opt_data) {
|
|
107
|
-
|
|
108
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest = function (opt_data) {
|
|
109
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
108
110
|
};
|
|
109
111
|
goog.inherits(proto.ondewo.nlu.OriginalDetectIntentRequest, jspb.Message);
|
|
110
112
|
if (goog.DEBUG && !COMPILED) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
* @override
|
|
116
|
+
*/
|
|
117
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.displayName = 'proto.ondewo.nlu.OriginalDetectIntentRequest';
|
|
116
118
|
}
|
|
117
119
|
/**
|
|
118
120
|
* Generated by JsPbCodeGenerator.
|
|
@@ -124,72 +126,68 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
124
126
|
* @extends {jspb.Message}
|
|
125
127
|
* @constructor
|
|
126
128
|
*/
|
|
127
|
-
proto.ondewo.nlu.PingResponse = function(opt_data) {
|
|
128
|
-
|
|
129
|
+
proto.ondewo.nlu.PingResponse = function (opt_data) {
|
|
130
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
129
131
|
};
|
|
130
132
|
goog.inherits(proto.ondewo.nlu.PingResponse, jspb.Message);
|
|
131
133
|
if (goog.DEBUG && !COMPILED) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
* @override
|
|
137
|
+
*/
|
|
138
|
+
proto.ondewo.nlu.PingResponse.displayName = 'proto.ondewo.nlu.PingResponse';
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
|
|
140
|
-
|
|
141
141
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
142
|
-
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
proto.ondewo.nlu.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
|
155
|
-
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
142
|
+
/**
|
|
143
|
+
* Creates an object representation of this proto.
|
|
144
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
145
|
+
* Optional fields that are not set will be set to undefined.
|
|
146
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
147
|
+
* For the list of reserved names please see:
|
|
148
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
149
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
150
|
+
* JSPB instance for transitional soy proto support:
|
|
151
|
+
* http://goto/soy-param-migration
|
|
152
|
+
* @return {!Object}
|
|
153
|
+
*/
|
|
154
|
+
proto.ondewo.nlu.PingRequest.prototype.toObject = function (opt_includeInstance) {
|
|
155
|
+
return proto.ondewo.nlu.PingRequest.toObject(opt_includeInstance, this);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Static version of the {@see toObject} method.
|
|
160
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
161
|
+
* the JSPB instance for transitional soy proto support:
|
|
162
|
+
* http://goto/soy-param-migration
|
|
163
|
+
* @param {!proto.ondewo.nlu.PingRequest} msg The msg instance to transform.
|
|
164
|
+
* @return {!Object}
|
|
165
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
166
|
+
*/
|
|
167
|
+
proto.ondewo.nlu.PingRequest.toObject = function (includeInstance, msg) {
|
|
168
|
+
var f,
|
|
169
|
+
obj = {
|
|
170
|
+
session: jspb.Message.getFieldWithDefault(msg, 1, '')
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
if (includeInstance) {
|
|
174
|
+
obj.$jspbMessageInstance = msg;
|
|
175
|
+
}
|
|
176
|
+
return obj;
|
|
177
|
+
};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
|
|
181
180
|
/**
|
|
182
181
|
* Deserializes binary data (in protobuf wire format).
|
|
183
182
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
184
183
|
* @return {!proto.ondewo.nlu.PingRequest}
|
|
185
184
|
*/
|
|
186
|
-
proto.ondewo.nlu.PingRequest.deserializeBinary = function(bytes) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
proto.ondewo.nlu.PingRequest.deserializeBinary = function (bytes) {
|
|
186
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
187
|
+
var msg = new proto.ondewo.nlu.PingRequest();
|
|
188
|
+
return proto.ondewo.nlu.PingRequest.deserializeBinaryFromReader(msg, reader);
|
|
190
189
|
};
|
|
191
190
|
|
|
192
|
-
|
|
193
191
|
/**
|
|
194
192
|
* Deserializes binary data (in protobuf wire format) from the
|
|
195
193
|
* given reader into the given message object.
|
|
@@ -197,37 +195,35 @@ proto.ondewo.nlu.PingRequest.deserializeBinary = function(bytes) {
|
|
|
197
195
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
198
196
|
* @return {!proto.ondewo.nlu.PingRequest}
|
|
199
197
|
*/
|
|
200
|
-
proto.ondewo.nlu.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
198
|
+
proto.ondewo.nlu.PingRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
199
|
+
while (reader.nextField()) {
|
|
200
|
+
if (reader.isEndGroup()) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
var field = reader.getFieldNumber();
|
|
204
|
+
switch (field) {
|
|
205
|
+
case 1:
|
|
206
|
+
var value = /** @type {string} */ (reader.readString());
|
|
207
|
+
msg.setSession(value);
|
|
208
|
+
break;
|
|
209
|
+
default:
|
|
210
|
+
reader.skipField();
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return msg;
|
|
217
215
|
};
|
|
218
216
|
|
|
219
|
-
|
|
220
217
|
/**
|
|
221
218
|
* Serializes the message to binary data (in protobuf wire format).
|
|
222
219
|
* @return {!Uint8Array}
|
|
223
220
|
*/
|
|
224
|
-
proto.ondewo.nlu.PingRequest.prototype.serializeBinary = function() {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
221
|
+
proto.ondewo.nlu.PingRequest.prototype.serializeBinary = function () {
|
|
222
|
+
var writer = new jspb.BinaryWriter();
|
|
223
|
+
proto.ondewo.nlu.PingRequest.serializeBinaryToWriter(this, writer);
|
|
224
|
+
return writer.getResultBuffer();
|
|
228
225
|
};
|
|
229
226
|
|
|
230
|
-
|
|
231
227
|
/**
|
|
232
228
|
* Serializes the given message to binary data (in protobuf wire
|
|
233
229
|
* format), writing to the given BinaryWriter.
|
|
@@ -235,95 +231,86 @@ proto.ondewo.nlu.PingRequest.prototype.serializeBinary = function() {
|
|
|
235
231
|
* @param {!jspb.BinaryWriter} writer
|
|
236
232
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
237
233
|
*/
|
|
238
|
-
proto.ondewo.nlu.PingRequest.serializeBinaryToWriter = function(message, writer) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
f
|
|
245
|
-
);
|
|
246
|
-
}
|
|
234
|
+
proto.ondewo.nlu.PingRequest.serializeBinaryToWriter = function (message, writer) {
|
|
235
|
+
var f = undefined;
|
|
236
|
+
f = message.getSession();
|
|
237
|
+
if (f.length > 0) {
|
|
238
|
+
writer.writeString(1, f);
|
|
239
|
+
}
|
|
247
240
|
};
|
|
248
241
|
|
|
249
|
-
|
|
250
242
|
/**
|
|
251
243
|
* optional string session = 1;
|
|
252
244
|
* @return {string}
|
|
253
245
|
*/
|
|
254
|
-
proto.ondewo.nlu.PingRequest.prototype.getSession = function() {
|
|
255
|
-
|
|
246
|
+
proto.ondewo.nlu.PingRequest.prototype.getSession = function () {
|
|
247
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
|
256
248
|
};
|
|
257
249
|
|
|
258
|
-
|
|
259
250
|
/**
|
|
260
251
|
* @param {string} value
|
|
261
252
|
* @return {!proto.ondewo.nlu.PingRequest} returns this
|
|
262
253
|
*/
|
|
263
|
-
proto.ondewo.nlu.PingRequest.prototype.setSession = function(value) {
|
|
264
|
-
|
|
254
|
+
proto.ondewo.nlu.PingRequest.prototype.setSession = function (value) {
|
|
255
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
265
256
|
};
|
|
266
257
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
258
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
272
|
-
/**
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
proto.ondewo.nlu.WebhookRequest.prototype.toObject = function(opt_includeInstance) {
|
|
285
|
-
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
259
|
+
/**
|
|
260
|
+
* Creates an object representation of this proto.
|
|
261
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
262
|
+
* Optional fields that are not set will be set to undefined.
|
|
263
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
264
|
+
* For the list of reserved names please see:
|
|
265
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
266
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
267
|
+
* JSPB instance for transitional soy proto support:
|
|
268
|
+
* http://goto/soy-param-migration
|
|
269
|
+
* @return {!Object}
|
|
270
|
+
*/
|
|
271
|
+
proto.ondewo.nlu.WebhookRequest.prototype.toObject = function (opt_includeInstance) {
|
|
272
|
+
return proto.ondewo.nlu.WebhookRequest.toObject(opt_includeInstance, this);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Static version of the {@see toObject} method.
|
|
277
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
278
|
+
* the JSPB instance for transitional soy proto support:
|
|
279
|
+
* http://goto/soy-param-migration
|
|
280
|
+
* @param {!proto.ondewo.nlu.WebhookRequest} msg The msg instance to transform.
|
|
281
|
+
* @return {!Object}
|
|
282
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
283
|
+
*/
|
|
284
|
+
proto.ondewo.nlu.WebhookRequest.toObject = function (includeInstance, msg) {
|
|
285
|
+
var f,
|
|
286
|
+
obj = {
|
|
287
|
+
session: jspb.Message.getFieldWithDefault(msg, 4, ''),
|
|
288
|
+
responseId: jspb.Message.getFieldWithDefault(msg, 1, ''),
|
|
289
|
+
queryResult: (f = msg.getQueryResult()) && ondewo_nlu_session_pb.QueryResult.toObject(includeInstance, f),
|
|
290
|
+
originalDetectIntentRequest:
|
|
291
|
+
(f = msg.getOriginalDetectIntentRequest()) &&
|
|
292
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.toObject(includeInstance, f),
|
|
293
|
+
headers: (f = msg.getHeaders()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
if (includeInstance) {
|
|
297
|
+
obj.$jspbMessageInstance = msg;
|
|
298
|
+
}
|
|
299
|
+
return obj;
|
|
300
|
+
};
|
|
312
301
|
}
|
|
313
302
|
|
|
314
|
-
|
|
315
303
|
/**
|
|
316
304
|
* Deserializes binary data (in protobuf wire format).
|
|
317
305
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
318
306
|
* @return {!proto.ondewo.nlu.WebhookRequest}
|
|
319
307
|
*/
|
|
320
|
-
proto.ondewo.nlu.WebhookRequest.deserializeBinary = function(bytes) {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
308
|
+
proto.ondewo.nlu.WebhookRequest.deserializeBinary = function (bytes) {
|
|
309
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
310
|
+
var msg = new proto.ondewo.nlu.WebhookRequest();
|
|
311
|
+
return proto.ondewo.nlu.WebhookRequest.deserializeBinaryFromReader(msg, reader);
|
|
324
312
|
};
|
|
325
313
|
|
|
326
|
-
|
|
327
314
|
/**
|
|
328
315
|
* Deserializes binary data (in protobuf wire format) from the
|
|
329
316
|
* given reader into the given message object.
|
|
@@ -331,56 +318,54 @@ proto.ondewo.nlu.WebhookRequest.deserializeBinary = function(bytes) {
|
|
|
331
318
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
332
319
|
* @return {!proto.ondewo.nlu.WebhookRequest}
|
|
333
320
|
*/
|
|
334
|
-
proto.ondewo.nlu.WebhookRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
321
|
+
proto.ondewo.nlu.WebhookRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
322
|
+
while (reader.nextField()) {
|
|
323
|
+
if (reader.isEndGroup()) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
var field = reader.getFieldNumber();
|
|
327
|
+
switch (field) {
|
|
328
|
+
case 4:
|
|
329
|
+
var value = /** @type {string} */ (reader.readString());
|
|
330
|
+
msg.setSession(value);
|
|
331
|
+
break;
|
|
332
|
+
case 1:
|
|
333
|
+
var value = /** @type {string} */ (reader.readString());
|
|
334
|
+
msg.setResponseId(value);
|
|
335
|
+
break;
|
|
336
|
+
case 2:
|
|
337
|
+
var value = new ondewo_nlu_session_pb.QueryResult();
|
|
338
|
+
reader.readMessage(value, ondewo_nlu_session_pb.QueryResult.deserializeBinaryFromReader);
|
|
339
|
+
msg.setQueryResult(value);
|
|
340
|
+
break;
|
|
341
|
+
case 3:
|
|
342
|
+
var value = new proto.ondewo.nlu.OriginalDetectIntentRequest();
|
|
343
|
+
reader.readMessage(value, proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader);
|
|
344
|
+
msg.setOriginalDetectIntentRequest(value);
|
|
345
|
+
break;
|
|
346
|
+
case 5:
|
|
347
|
+
var value = new google_protobuf_struct_pb.Struct();
|
|
348
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
349
|
+
msg.setHeaders(value);
|
|
350
|
+
break;
|
|
351
|
+
default:
|
|
352
|
+
reader.skipField();
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return msg;
|
|
370
357
|
};
|
|
371
358
|
|
|
372
|
-
|
|
373
359
|
/**
|
|
374
360
|
* Serializes the message to binary data (in protobuf wire format).
|
|
375
361
|
* @return {!Uint8Array}
|
|
376
362
|
*/
|
|
377
|
-
proto.ondewo.nlu.WebhookRequest.prototype.serializeBinary = function() {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
363
|
+
proto.ondewo.nlu.WebhookRequest.prototype.serializeBinary = function () {
|
|
364
|
+
var writer = new jspb.BinaryWriter();
|
|
365
|
+
proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter(this, writer);
|
|
366
|
+
return writer.getResultBuffer();
|
|
381
367
|
};
|
|
382
368
|
|
|
383
|
-
|
|
384
369
|
/**
|
|
385
370
|
* Serializes the given message to binary data (in protobuf wire
|
|
386
371
|
* format), writing to the given BinaryWriter.
|
|
@@ -388,265 +373,235 @@ proto.ondewo.nlu.WebhookRequest.prototype.serializeBinary = function() {
|
|
|
388
373
|
* @param {!jspb.BinaryWriter} writer
|
|
389
374
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
390
375
|
*/
|
|
391
|
-
proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter = function(message, writer) {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
);
|
|
414
|
-
}
|
|
415
|
-
f = message.getOriginalDetectIntentRequest();
|
|
416
|
-
if (f != null) {
|
|
417
|
-
writer.writeMessage(
|
|
418
|
-
3,
|
|
419
|
-
f,
|
|
420
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter
|
|
421
|
-
);
|
|
422
|
-
}
|
|
423
|
-
f = message.getHeaders();
|
|
424
|
-
if (f != null) {
|
|
425
|
-
writer.writeMessage(
|
|
426
|
-
5,
|
|
427
|
-
f,
|
|
428
|
-
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
429
|
-
);
|
|
430
|
-
}
|
|
376
|
+
proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter = function (message, writer) {
|
|
377
|
+
var f = undefined;
|
|
378
|
+
f = message.getSession();
|
|
379
|
+
if (f.length > 0) {
|
|
380
|
+
writer.writeString(4, f);
|
|
381
|
+
}
|
|
382
|
+
f = message.getResponseId();
|
|
383
|
+
if (f.length > 0) {
|
|
384
|
+
writer.writeString(1, f);
|
|
385
|
+
}
|
|
386
|
+
f = message.getQueryResult();
|
|
387
|
+
if (f != null) {
|
|
388
|
+
writer.writeMessage(2, f, ondewo_nlu_session_pb.QueryResult.serializeBinaryToWriter);
|
|
389
|
+
}
|
|
390
|
+
f = message.getOriginalDetectIntentRequest();
|
|
391
|
+
if (f != null) {
|
|
392
|
+
writer.writeMessage(3, f, proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter);
|
|
393
|
+
}
|
|
394
|
+
f = message.getHeaders();
|
|
395
|
+
if (f != null) {
|
|
396
|
+
writer.writeMessage(5, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
397
|
+
}
|
|
431
398
|
};
|
|
432
399
|
|
|
433
|
-
|
|
434
400
|
/**
|
|
435
401
|
* optional string session = 4;
|
|
436
402
|
* @return {string}
|
|
437
403
|
*/
|
|
438
|
-
proto.ondewo.nlu.WebhookRequest.prototype.getSession = function() {
|
|
439
|
-
|
|
404
|
+
proto.ondewo.nlu.WebhookRequest.prototype.getSession = function () {
|
|
405
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ''));
|
|
440
406
|
};
|
|
441
407
|
|
|
442
|
-
|
|
443
408
|
/**
|
|
444
409
|
* @param {string} value
|
|
445
410
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
446
411
|
*/
|
|
447
|
-
proto.ondewo.nlu.WebhookRequest.prototype.setSession = function(value) {
|
|
448
|
-
|
|
412
|
+
proto.ondewo.nlu.WebhookRequest.prototype.setSession = function (value) {
|
|
413
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
449
414
|
};
|
|
450
415
|
|
|
451
|
-
|
|
452
416
|
/**
|
|
453
417
|
* optional string response_id = 1;
|
|
454
418
|
* @return {string}
|
|
455
419
|
*/
|
|
456
|
-
proto.ondewo.nlu.WebhookRequest.prototype.getResponseId = function() {
|
|
457
|
-
|
|
420
|
+
proto.ondewo.nlu.WebhookRequest.prototype.getResponseId = function () {
|
|
421
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
|
458
422
|
};
|
|
459
423
|
|
|
460
|
-
|
|
461
424
|
/**
|
|
462
425
|
* @param {string} value
|
|
463
426
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
464
427
|
*/
|
|
465
|
-
proto.ondewo.nlu.WebhookRequest.prototype.setResponseId = function(value) {
|
|
466
|
-
|
|
428
|
+
proto.ondewo.nlu.WebhookRequest.prototype.setResponseId = function (value) {
|
|
429
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
467
430
|
};
|
|
468
431
|
|
|
469
|
-
|
|
470
432
|
/**
|
|
471
433
|
* optional QueryResult query_result = 2;
|
|
472
434
|
* @return {?proto.ondewo.nlu.QueryResult}
|
|
473
435
|
*/
|
|
474
|
-
proto.ondewo.nlu.WebhookRequest.prototype.getQueryResult = function() {
|
|
475
|
-
|
|
476
|
-
|
|
436
|
+
proto.ondewo.nlu.WebhookRequest.prototype.getQueryResult = function () {
|
|
437
|
+
return /** @type{?proto.ondewo.nlu.QueryResult} */ (
|
|
438
|
+
jspb.Message.getWrapperField(this, ondewo_nlu_session_pb.QueryResult, 2)
|
|
439
|
+
);
|
|
477
440
|
};
|
|
478
441
|
|
|
479
|
-
|
|
480
442
|
/**
|
|
481
443
|
* @param {?proto.ondewo.nlu.QueryResult|undefined} value
|
|
482
444
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
483
|
-
*/
|
|
484
|
-
proto.ondewo.nlu.WebhookRequest.prototype.setQueryResult = function(value) {
|
|
485
|
-
|
|
445
|
+
*/
|
|
446
|
+
proto.ondewo.nlu.WebhookRequest.prototype.setQueryResult = function (value) {
|
|
447
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
486
448
|
};
|
|
487
449
|
|
|
488
|
-
|
|
489
450
|
/**
|
|
490
451
|
* Clears the message field making it undefined.
|
|
491
452
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
492
453
|
*/
|
|
493
|
-
proto.ondewo.nlu.WebhookRequest.prototype.clearQueryResult = function() {
|
|
494
|
-
|
|
454
|
+
proto.ondewo.nlu.WebhookRequest.prototype.clearQueryResult = function () {
|
|
455
|
+
return this.setQueryResult(undefined);
|
|
495
456
|
};
|
|
496
457
|
|
|
497
|
-
|
|
498
458
|
/**
|
|
499
459
|
* Returns whether this field is set.
|
|
500
460
|
* @return {boolean}
|
|
501
461
|
*/
|
|
502
|
-
proto.ondewo.nlu.WebhookRequest.prototype.hasQueryResult = function() {
|
|
503
|
-
|
|
462
|
+
proto.ondewo.nlu.WebhookRequest.prototype.hasQueryResult = function () {
|
|
463
|
+
return jspb.Message.getField(this, 2) != null;
|
|
504
464
|
};
|
|
505
465
|
|
|
506
|
-
|
|
507
466
|
/**
|
|
508
467
|
* optional OriginalDetectIntentRequest original_detect_intent_request = 3;
|
|
509
468
|
* @return {?proto.ondewo.nlu.OriginalDetectIntentRequest}
|
|
510
469
|
*/
|
|
511
|
-
proto.ondewo.nlu.WebhookRequest.prototype.getOriginalDetectIntentRequest = function() {
|
|
512
|
-
|
|
513
|
-
|
|
470
|
+
proto.ondewo.nlu.WebhookRequest.prototype.getOriginalDetectIntentRequest = function () {
|
|
471
|
+
return /** @type{?proto.ondewo.nlu.OriginalDetectIntentRequest} */ (
|
|
472
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.OriginalDetectIntentRequest, 3)
|
|
473
|
+
);
|
|
514
474
|
};
|
|
515
475
|
|
|
516
|
-
|
|
517
476
|
/**
|
|
518
477
|
* @param {?proto.ondewo.nlu.OriginalDetectIntentRequest|undefined} value
|
|
519
478
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
520
|
-
*/
|
|
521
|
-
proto.ondewo.nlu.WebhookRequest.prototype.setOriginalDetectIntentRequest = function(value) {
|
|
522
|
-
|
|
479
|
+
*/
|
|
480
|
+
proto.ondewo.nlu.WebhookRequest.prototype.setOriginalDetectIntentRequest = function (value) {
|
|
481
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
523
482
|
};
|
|
524
483
|
|
|
525
|
-
|
|
526
484
|
/**
|
|
527
485
|
* Clears the message field making it undefined.
|
|
528
486
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
529
487
|
*/
|
|
530
|
-
proto.ondewo.nlu.WebhookRequest.prototype.clearOriginalDetectIntentRequest = function() {
|
|
531
|
-
|
|
488
|
+
proto.ondewo.nlu.WebhookRequest.prototype.clearOriginalDetectIntentRequest = function () {
|
|
489
|
+
return this.setOriginalDetectIntentRequest(undefined);
|
|
532
490
|
};
|
|
533
491
|
|
|
534
|
-
|
|
535
492
|
/**
|
|
536
493
|
* Returns whether this field is set.
|
|
537
494
|
* @return {boolean}
|
|
538
495
|
*/
|
|
539
|
-
proto.ondewo.nlu.WebhookRequest.prototype.hasOriginalDetectIntentRequest = function() {
|
|
540
|
-
|
|
496
|
+
proto.ondewo.nlu.WebhookRequest.prototype.hasOriginalDetectIntentRequest = function () {
|
|
497
|
+
return jspb.Message.getField(this, 3) != null;
|
|
541
498
|
};
|
|
542
499
|
|
|
543
|
-
|
|
544
500
|
/**
|
|
545
501
|
* optional google.protobuf.Struct headers = 5;
|
|
546
502
|
* @return {?proto.google.protobuf.Struct}
|
|
547
503
|
*/
|
|
548
|
-
proto.ondewo.nlu.WebhookRequest.prototype.getHeaders = function() {
|
|
549
|
-
|
|
550
|
-
|
|
504
|
+
proto.ondewo.nlu.WebhookRequest.prototype.getHeaders = function () {
|
|
505
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
506
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)
|
|
507
|
+
);
|
|
551
508
|
};
|
|
552
509
|
|
|
553
|
-
|
|
554
510
|
/**
|
|
555
511
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
556
512
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
557
|
-
*/
|
|
558
|
-
proto.ondewo.nlu.WebhookRequest.prototype.setHeaders = function(value) {
|
|
559
|
-
|
|
513
|
+
*/
|
|
514
|
+
proto.ondewo.nlu.WebhookRequest.prototype.setHeaders = function (value) {
|
|
515
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
560
516
|
};
|
|
561
517
|
|
|
562
|
-
|
|
563
518
|
/**
|
|
564
519
|
* Clears the message field making it undefined.
|
|
565
520
|
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
566
521
|
*/
|
|
567
|
-
proto.ondewo.nlu.WebhookRequest.prototype.clearHeaders = function() {
|
|
568
|
-
|
|
522
|
+
proto.ondewo.nlu.WebhookRequest.prototype.clearHeaders = function () {
|
|
523
|
+
return this.setHeaders(undefined);
|
|
569
524
|
};
|
|
570
525
|
|
|
571
|
-
|
|
572
526
|
/**
|
|
573
527
|
* Returns whether this field is set.
|
|
574
528
|
* @return {boolean}
|
|
575
529
|
*/
|
|
576
|
-
proto.ondewo.nlu.WebhookRequest.prototype.hasHeaders = function() {
|
|
577
|
-
|
|
530
|
+
proto.ondewo.nlu.WebhookRequest.prototype.hasHeaders = function () {
|
|
531
|
+
return jspb.Message.getField(this, 5) != null;
|
|
578
532
|
};
|
|
579
533
|
|
|
580
|
-
|
|
581
|
-
|
|
582
534
|
/**
|
|
583
535
|
* List of repeated fields within this message type.
|
|
584
536
|
* @private {!Array<number>}
|
|
585
537
|
* @const
|
|
586
538
|
*/
|
|
587
|
-
proto.ondewo.nlu.WebhookResponse.repeatedFields_ = [2,5];
|
|
588
|
-
|
|
589
|
-
|
|
539
|
+
proto.ondewo.nlu.WebhookResponse.repeatedFields_ = [2, 5];
|
|
590
540
|
|
|
591
541
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
592
|
-
/**
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
proto.ondewo.nlu.WebhookResponse.prototype.toObject = function(opt_includeInstance) {
|
|
605
|
-
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
542
|
+
/**
|
|
543
|
+
* Creates an object representation of this proto.
|
|
544
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
545
|
+
* Optional fields that are not set will be set to undefined.
|
|
546
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
547
|
+
* For the list of reserved names please see:
|
|
548
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
549
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
550
|
+
* JSPB instance for transitional soy proto support:
|
|
551
|
+
* http://goto/soy-param-migration
|
|
552
|
+
* @return {!Object}
|
|
553
|
+
*/
|
|
554
|
+
proto.ondewo.nlu.WebhookResponse.prototype.toObject = function (opt_includeInstance) {
|
|
555
|
+
return proto.ondewo.nlu.WebhookResponse.toObject(opt_includeInstance, this);
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Static version of the {@see toObject} method.
|
|
560
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
561
|
+
* the JSPB instance for transitional soy proto support:
|
|
562
|
+
* http://goto/soy-param-migration
|
|
563
|
+
* @param {!proto.ondewo.nlu.WebhookResponse} msg The msg instance to transform.
|
|
564
|
+
* @return {!Object}
|
|
565
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
566
|
+
*/
|
|
567
|
+
proto.ondewo.nlu.WebhookResponse.toObject = function (includeInstance, msg) {
|
|
568
|
+
var f,
|
|
569
|
+
obj = {
|
|
570
|
+
fulfillmentText: jspb.Message.getFieldWithDefault(msg, 1, ''),
|
|
571
|
+
fulfillmentMessagesList: jspb.Message.toObjectList(
|
|
572
|
+
msg.getFulfillmentMessagesList(),
|
|
573
|
+
ondewo_nlu_intent_pb.Intent.Message.toObject,
|
|
574
|
+
includeInstance
|
|
575
|
+
),
|
|
576
|
+
source: jspb.Message.getFieldWithDefault(msg, 3, ''),
|
|
577
|
+
payload: (f = msg.getPayload()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
578
|
+
outputContextsList: jspb.Message.toObjectList(
|
|
579
|
+
msg.getOutputContextsList(),
|
|
580
|
+
ondewo_nlu_context_pb.Context.toObject,
|
|
581
|
+
includeInstance
|
|
582
|
+
),
|
|
583
|
+
followupEventInput:
|
|
584
|
+
(f = msg.getFollowupEventInput()) && ondewo_nlu_session_pb.EventInput.toObject(includeInstance, f)
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
if (includeInstance) {
|
|
588
|
+
obj.$jspbMessageInstance = msg;
|
|
589
|
+
}
|
|
590
|
+
return obj;
|
|
591
|
+
};
|
|
635
592
|
}
|
|
636
593
|
|
|
637
|
-
|
|
638
594
|
/**
|
|
639
595
|
* Deserializes binary data (in protobuf wire format).
|
|
640
596
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
641
597
|
* @return {!proto.ondewo.nlu.WebhookResponse}
|
|
642
598
|
*/
|
|
643
|
-
proto.ondewo.nlu.WebhookResponse.deserializeBinary = function(bytes) {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
599
|
+
proto.ondewo.nlu.WebhookResponse.deserializeBinary = function (bytes) {
|
|
600
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
601
|
+
var msg = new proto.ondewo.nlu.WebhookResponse();
|
|
602
|
+
return proto.ondewo.nlu.WebhookResponse.deserializeBinaryFromReader(msg, reader);
|
|
647
603
|
};
|
|
648
604
|
|
|
649
|
-
|
|
650
605
|
/**
|
|
651
606
|
* Deserializes binary data (in protobuf wire format) from the
|
|
652
607
|
* given reader into the given message object.
|
|
@@ -654,61 +609,59 @@ proto.ondewo.nlu.WebhookResponse.deserializeBinary = function(bytes) {
|
|
|
654
609
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
655
610
|
* @return {!proto.ondewo.nlu.WebhookResponse}
|
|
656
611
|
*/
|
|
657
|
-
proto.ondewo.nlu.WebhookResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
612
|
+
proto.ondewo.nlu.WebhookResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
613
|
+
while (reader.nextField()) {
|
|
614
|
+
if (reader.isEndGroup()) {
|
|
615
|
+
break;
|
|
616
|
+
}
|
|
617
|
+
var field = reader.getFieldNumber();
|
|
618
|
+
switch (field) {
|
|
619
|
+
case 1:
|
|
620
|
+
var value = /** @type {string} */ (reader.readString());
|
|
621
|
+
msg.setFulfillmentText(value);
|
|
622
|
+
break;
|
|
623
|
+
case 2:
|
|
624
|
+
var value = new ondewo_nlu_intent_pb.Intent.Message();
|
|
625
|
+
reader.readMessage(value, ondewo_nlu_intent_pb.Intent.Message.deserializeBinaryFromReader);
|
|
626
|
+
msg.addFulfillmentMessages(value);
|
|
627
|
+
break;
|
|
628
|
+
case 3:
|
|
629
|
+
var value = /** @type {string} */ (reader.readString());
|
|
630
|
+
msg.setSource(value);
|
|
631
|
+
break;
|
|
632
|
+
case 4:
|
|
633
|
+
var value = new google_protobuf_struct_pb.Struct();
|
|
634
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
635
|
+
msg.setPayload(value);
|
|
636
|
+
break;
|
|
637
|
+
case 5:
|
|
638
|
+
var value = new ondewo_nlu_context_pb.Context();
|
|
639
|
+
reader.readMessage(value, ondewo_nlu_context_pb.Context.deserializeBinaryFromReader);
|
|
640
|
+
msg.addOutputContexts(value);
|
|
641
|
+
break;
|
|
642
|
+
case 6:
|
|
643
|
+
var value = new ondewo_nlu_session_pb.EventInput();
|
|
644
|
+
reader.readMessage(value, ondewo_nlu_session_pb.EventInput.deserializeBinaryFromReader);
|
|
645
|
+
msg.setFollowupEventInput(value);
|
|
646
|
+
break;
|
|
647
|
+
default:
|
|
648
|
+
reader.skipField();
|
|
649
|
+
break;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return msg;
|
|
698
653
|
};
|
|
699
654
|
|
|
700
|
-
|
|
701
655
|
/**
|
|
702
656
|
* Serializes the message to binary data (in protobuf wire format).
|
|
703
657
|
* @return {!Uint8Array}
|
|
704
658
|
*/
|
|
705
|
-
proto.ondewo.nlu.WebhookResponse.prototype.serializeBinary = function() {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
659
|
+
proto.ondewo.nlu.WebhookResponse.prototype.serializeBinary = function () {
|
|
660
|
+
var writer = new jspb.BinaryWriter();
|
|
661
|
+
proto.ondewo.nlu.WebhookResponse.serializeBinaryToWriter(this, writer);
|
|
662
|
+
return writer.getResultBuffer();
|
|
709
663
|
};
|
|
710
664
|
|
|
711
|
-
|
|
712
665
|
/**
|
|
713
666
|
* Serializes the given message to binary data (in protobuf wire
|
|
714
667
|
* format), writing to the given BinaryWriter.
|
|
@@ -716,299 +669,255 @@ proto.ondewo.nlu.WebhookResponse.prototype.serializeBinary = function() {
|
|
|
716
669
|
* @param {!jspb.BinaryWriter} writer
|
|
717
670
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
718
671
|
*/
|
|
719
|
-
proto.ondewo.nlu.WebhookResponse.serializeBinaryToWriter = function(message, writer) {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
writer.writeMessage(
|
|
746
|
-
4,
|
|
747
|
-
f,
|
|
748
|
-
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
749
|
-
);
|
|
750
|
-
}
|
|
751
|
-
f = message.getOutputContextsList();
|
|
752
|
-
if (f.length > 0) {
|
|
753
|
-
writer.writeRepeatedMessage(
|
|
754
|
-
5,
|
|
755
|
-
f,
|
|
756
|
-
ondewo_nlu_context_pb.Context.serializeBinaryToWriter
|
|
757
|
-
);
|
|
758
|
-
}
|
|
759
|
-
f = message.getFollowupEventInput();
|
|
760
|
-
if (f != null) {
|
|
761
|
-
writer.writeMessage(
|
|
762
|
-
6,
|
|
763
|
-
f,
|
|
764
|
-
ondewo_nlu_session_pb.EventInput.serializeBinaryToWriter
|
|
765
|
-
);
|
|
766
|
-
}
|
|
672
|
+
proto.ondewo.nlu.WebhookResponse.serializeBinaryToWriter = function (message, writer) {
|
|
673
|
+
var f = undefined;
|
|
674
|
+
f = message.getFulfillmentText();
|
|
675
|
+
if (f.length > 0) {
|
|
676
|
+
writer.writeString(1, f);
|
|
677
|
+
}
|
|
678
|
+
f = message.getFulfillmentMessagesList();
|
|
679
|
+
if (f.length > 0) {
|
|
680
|
+
writer.writeRepeatedMessage(2, f, ondewo_nlu_intent_pb.Intent.Message.serializeBinaryToWriter);
|
|
681
|
+
}
|
|
682
|
+
f = message.getSource();
|
|
683
|
+
if (f.length > 0) {
|
|
684
|
+
writer.writeString(3, f);
|
|
685
|
+
}
|
|
686
|
+
f = message.getPayload();
|
|
687
|
+
if (f != null) {
|
|
688
|
+
writer.writeMessage(4, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
689
|
+
}
|
|
690
|
+
f = message.getOutputContextsList();
|
|
691
|
+
if (f.length > 0) {
|
|
692
|
+
writer.writeRepeatedMessage(5, f, ondewo_nlu_context_pb.Context.serializeBinaryToWriter);
|
|
693
|
+
}
|
|
694
|
+
f = message.getFollowupEventInput();
|
|
695
|
+
if (f != null) {
|
|
696
|
+
writer.writeMessage(6, f, ondewo_nlu_session_pb.EventInput.serializeBinaryToWriter);
|
|
697
|
+
}
|
|
767
698
|
};
|
|
768
699
|
|
|
769
|
-
|
|
770
700
|
/**
|
|
771
701
|
* optional string fulfillment_text = 1;
|
|
772
702
|
* @return {string}
|
|
773
703
|
*/
|
|
774
|
-
proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentText = function() {
|
|
775
|
-
|
|
704
|
+
proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentText = function () {
|
|
705
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
|
776
706
|
};
|
|
777
707
|
|
|
778
|
-
|
|
779
708
|
/**
|
|
780
709
|
* @param {string} value
|
|
781
710
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
782
711
|
*/
|
|
783
|
-
proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentText = function(value) {
|
|
784
|
-
|
|
712
|
+
proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentText = function (value) {
|
|
713
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
785
714
|
};
|
|
786
715
|
|
|
787
|
-
|
|
788
716
|
/**
|
|
789
717
|
* repeated Intent.Message fulfillment_messages = 2;
|
|
790
718
|
* @return {!Array<!proto.ondewo.nlu.Intent.Message>}
|
|
791
719
|
*/
|
|
792
|
-
proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentMessagesList = function() {
|
|
793
|
-
|
|
794
|
-
|
|
720
|
+
proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentMessagesList = function () {
|
|
721
|
+
return /** @type{!Array<!proto.ondewo.nlu.Intent.Message>} */ (
|
|
722
|
+
jspb.Message.getRepeatedWrapperField(this, ondewo_nlu_intent_pb.Intent.Message, 2)
|
|
723
|
+
);
|
|
795
724
|
};
|
|
796
725
|
|
|
797
|
-
|
|
798
726
|
/**
|
|
799
727
|
* @param {!Array<!proto.ondewo.nlu.Intent.Message>} value
|
|
800
728
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
801
|
-
*/
|
|
802
|
-
proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentMessagesList = function(value) {
|
|
803
|
-
|
|
729
|
+
*/
|
|
730
|
+
proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentMessagesList = function (value) {
|
|
731
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
804
732
|
};
|
|
805
733
|
|
|
806
|
-
|
|
807
734
|
/**
|
|
808
735
|
* @param {!proto.ondewo.nlu.Intent.Message=} opt_value
|
|
809
736
|
* @param {number=} opt_index
|
|
810
737
|
* @return {!proto.ondewo.nlu.Intent.Message}
|
|
811
738
|
*/
|
|
812
|
-
proto.ondewo.nlu.WebhookResponse.prototype.addFulfillmentMessages = function(opt_value, opt_index) {
|
|
813
|
-
|
|
739
|
+
proto.ondewo.nlu.WebhookResponse.prototype.addFulfillmentMessages = function (opt_value, opt_index) {
|
|
740
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ondewo.nlu.Intent.Message, opt_index);
|
|
814
741
|
};
|
|
815
742
|
|
|
816
|
-
|
|
817
743
|
/**
|
|
818
744
|
* Clears the list making it empty but non-null.
|
|
819
745
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
820
746
|
*/
|
|
821
|
-
proto.ondewo.nlu.WebhookResponse.prototype.clearFulfillmentMessagesList = function() {
|
|
822
|
-
|
|
747
|
+
proto.ondewo.nlu.WebhookResponse.prototype.clearFulfillmentMessagesList = function () {
|
|
748
|
+
return this.setFulfillmentMessagesList([]);
|
|
823
749
|
};
|
|
824
750
|
|
|
825
|
-
|
|
826
751
|
/**
|
|
827
752
|
* optional string source = 3;
|
|
828
753
|
* @return {string}
|
|
829
754
|
*/
|
|
830
|
-
proto.ondewo.nlu.WebhookResponse.prototype.getSource = function() {
|
|
831
|
-
|
|
755
|
+
proto.ondewo.nlu.WebhookResponse.prototype.getSource = function () {
|
|
756
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''));
|
|
832
757
|
};
|
|
833
758
|
|
|
834
|
-
|
|
835
759
|
/**
|
|
836
760
|
* @param {string} value
|
|
837
761
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
838
762
|
*/
|
|
839
|
-
proto.ondewo.nlu.WebhookResponse.prototype.setSource = function(value) {
|
|
840
|
-
|
|
763
|
+
proto.ondewo.nlu.WebhookResponse.prototype.setSource = function (value) {
|
|
764
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
841
765
|
};
|
|
842
766
|
|
|
843
|
-
|
|
844
767
|
/**
|
|
845
768
|
* optional google.protobuf.Struct payload = 4;
|
|
846
769
|
* @return {?proto.google.protobuf.Struct}
|
|
847
770
|
*/
|
|
848
|
-
proto.ondewo.nlu.WebhookResponse.prototype.getPayload = function() {
|
|
849
|
-
|
|
850
|
-
|
|
771
|
+
proto.ondewo.nlu.WebhookResponse.prototype.getPayload = function () {
|
|
772
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
773
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)
|
|
774
|
+
);
|
|
851
775
|
};
|
|
852
776
|
|
|
853
|
-
|
|
854
777
|
/**
|
|
855
778
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
856
779
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
857
|
-
*/
|
|
858
|
-
proto.ondewo.nlu.WebhookResponse.prototype.setPayload = function(value) {
|
|
859
|
-
|
|
780
|
+
*/
|
|
781
|
+
proto.ondewo.nlu.WebhookResponse.prototype.setPayload = function (value) {
|
|
782
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
860
783
|
};
|
|
861
784
|
|
|
862
|
-
|
|
863
785
|
/**
|
|
864
786
|
* Clears the message field making it undefined.
|
|
865
787
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
866
788
|
*/
|
|
867
|
-
proto.ondewo.nlu.WebhookResponse.prototype.clearPayload = function() {
|
|
868
|
-
|
|
789
|
+
proto.ondewo.nlu.WebhookResponse.prototype.clearPayload = function () {
|
|
790
|
+
return this.setPayload(undefined);
|
|
869
791
|
};
|
|
870
792
|
|
|
871
|
-
|
|
872
793
|
/**
|
|
873
794
|
* Returns whether this field is set.
|
|
874
795
|
* @return {boolean}
|
|
875
796
|
*/
|
|
876
|
-
proto.ondewo.nlu.WebhookResponse.prototype.hasPayload = function() {
|
|
877
|
-
|
|
797
|
+
proto.ondewo.nlu.WebhookResponse.prototype.hasPayload = function () {
|
|
798
|
+
return jspb.Message.getField(this, 4) != null;
|
|
878
799
|
};
|
|
879
800
|
|
|
880
|
-
|
|
881
801
|
/**
|
|
882
802
|
* repeated Context output_contexts = 5;
|
|
883
803
|
* @return {!Array<!proto.ondewo.nlu.Context>}
|
|
884
804
|
*/
|
|
885
|
-
proto.ondewo.nlu.WebhookResponse.prototype.getOutputContextsList = function() {
|
|
886
|
-
|
|
887
|
-
|
|
805
|
+
proto.ondewo.nlu.WebhookResponse.prototype.getOutputContextsList = function () {
|
|
806
|
+
return /** @type{!Array<!proto.ondewo.nlu.Context>} */ (
|
|
807
|
+
jspb.Message.getRepeatedWrapperField(this, ondewo_nlu_context_pb.Context, 5)
|
|
808
|
+
);
|
|
888
809
|
};
|
|
889
810
|
|
|
890
|
-
|
|
891
811
|
/**
|
|
892
812
|
* @param {!Array<!proto.ondewo.nlu.Context>} value
|
|
893
813
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
894
|
-
*/
|
|
895
|
-
proto.ondewo.nlu.WebhookResponse.prototype.setOutputContextsList = function(value) {
|
|
896
|
-
|
|
814
|
+
*/
|
|
815
|
+
proto.ondewo.nlu.WebhookResponse.prototype.setOutputContextsList = function (value) {
|
|
816
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
897
817
|
};
|
|
898
818
|
|
|
899
|
-
|
|
900
819
|
/**
|
|
901
820
|
* @param {!proto.ondewo.nlu.Context=} opt_value
|
|
902
821
|
* @param {number=} opt_index
|
|
903
822
|
* @return {!proto.ondewo.nlu.Context}
|
|
904
823
|
*/
|
|
905
|
-
proto.ondewo.nlu.WebhookResponse.prototype.addOutputContexts = function(opt_value, opt_index) {
|
|
906
|
-
|
|
824
|
+
proto.ondewo.nlu.WebhookResponse.prototype.addOutputContexts = function (opt_value, opt_index) {
|
|
825
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ondewo.nlu.Context, opt_index);
|
|
907
826
|
};
|
|
908
827
|
|
|
909
|
-
|
|
910
828
|
/**
|
|
911
829
|
* Clears the list making it empty but non-null.
|
|
912
830
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
913
831
|
*/
|
|
914
|
-
proto.ondewo.nlu.WebhookResponse.prototype.clearOutputContextsList = function() {
|
|
915
|
-
|
|
832
|
+
proto.ondewo.nlu.WebhookResponse.prototype.clearOutputContextsList = function () {
|
|
833
|
+
return this.setOutputContextsList([]);
|
|
916
834
|
};
|
|
917
835
|
|
|
918
|
-
|
|
919
836
|
/**
|
|
920
837
|
* optional EventInput followup_event_input = 6;
|
|
921
838
|
* @return {?proto.ondewo.nlu.EventInput}
|
|
922
839
|
*/
|
|
923
|
-
proto.ondewo.nlu.WebhookResponse.prototype.getFollowupEventInput = function() {
|
|
924
|
-
|
|
925
|
-
|
|
840
|
+
proto.ondewo.nlu.WebhookResponse.prototype.getFollowupEventInput = function () {
|
|
841
|
+
return /** @type{?proto.ondewo.nlu.EventInput} */ (
|
|
842
|
+
jspb.Message.getWrapperField(this, ondewo_nlu_session_pb.EventInput, 6)
|
|
843
|
+
);
|
|
926
844
|
};
|
|
927
845
|
|
|
928
|
-
|
|
929
846
|
/**
|
|
930
847
|
* @param {?proto.ondewo.nlu.EventInput|undefined} value
|
|
931
848
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
932
|
-
*/
|
|
933
|
-
proto.ondewo.nlu.WebhookResponse.prototype.setFollowupEventInput = function(value) {
|
|
934
|
-
|
|
849
|
+
*/
|
|
850
|
+
proto.ondewo.nlu.WebhookResponse.prototype.setFollowupEventInput = function (value) {
|
|
851
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
935
852
|
};
|
|
936
853
|
|
|
937
|
-
|
|
938
854
|
/**
|
|
939
855
|
* Clears the message field making it undefined.
|
|
940
856
|
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
941
857
|
*/
|
|
942
|
-
proto.ondewo.nlu.WebhookResponse.prototype.clearFollowupEventInput = function() {
|
|
943
|
-
|
|
858
|
+
proto.ondewo.nlu.WebhookResponse.prototype.clearFollowupEventInput = function () {
|
|
859
|
+
return this.setFollowupEventInput(undefined);
|
|
944
860
|
};
|
|
945
861
|
|
|
946
|
-
|
|
947
862
|
/**
|
|
948
863
|
* Returns whether this field is set.
|
|
949
864
|
* @return {boolean}
|
|
950
865
|
*/
|
|
951
|
-
proto.ondewo.nlu.WebhookResponse.prototype.hasFollowupEventInput = function() {
|
|
952
|
-
|
|
866
|
+
proto.ondewo.nlu.WebhookResponse.prototype.hasFollowupEventInput = function () {
|
|
867
|
+
return jspb.Message.getField(this, 6) != null;
|
|
953
868
|
};
|
|
954
869
|
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
870
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
960
|
-
/**
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.toObject = function(opt_includeInstance) {
|
|
973
|
-
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
};
|
|
871
|
+
/**
|
|
872
|
+
* Creates an object representation of this proto.
|
|
873
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
874
|
+
* Optional fields that are not set will be set to undefined.
|
|
875
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
876
|
+
* For the list of reserved names please see:
|
|
877
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
878
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
879
|
+
* JSPB instance for transitional soy proto support:
|
|
880
|
+
* http://goto/soy-param-migration
|
|
881
|
+
* @return {!Object}
|
|
882
|
+
*/
|
|
883
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.toObject = function (opt_includeInstance) {
|
|
884
|
+
return proto.ondewo.nlu.OriginalDetectIntentRequest.toObject(opt_includeInstance, this);
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Static version of the {@see toObject} method.
|
|
889
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
890
|
+
* the JSPB instance for transitional soy proto support:
|
|
891
|
+
* http://goto/soy-param-migration
|
|
892
|
+
* @param {!proto.ondewo.nlu.OriginalDetectIntentRequest} msg The msg instance to transform.
|
|
893
|
+
* @return {!Object}
|
|
894
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
895
|
+
*/
|
|
896
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.toObject = function (includeInstance, msg) {
|
|
897
|
+
var f,
|
|
898
|
+
obj = {
|
|
899
|
+
source: jspb.Message.getFieldWithDefault(msg, 1, ''),
|
|
900
|
+
payload: (f = msg.getPayload()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
if (includeInstance) {
|
|
904
|
+
obj.$jspbMessageInstance = msg;
|
|
905
|
+
}
|
|
906
|
+
return obj;
|
|
907
|
+
};
|
|
997
908
|
}
|
|
998
909
|
|
|
999
|
-
|
|
1000
910
|
/**
|
|
1001
911
|
* Deserializes binary data (in protobuf wire format).
|
|
1002
912
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1003
913
|
* @return {!proto.ondewo.nlu.OriginalDetectIntentRequest}
|
|
1004
914
|
*/
|
|
1005
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinary = function(bytes) {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
915
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinary = function (bytes) {
|
|
916
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
917
|
+
var msg = new proto.ondewo.nlu.OriginalDetectIntentRequest();
|
|
918
|
+
return proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader(msg, reader);
|
|
1009
919
|
};
|
|
1010
920
|
|
|
1011
|
-
|
|
1012
921
|
/**
|
|
1013
922
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1014
923
|
* given reader into the given message object.
|
|
@@ -1016,42 +925,40 @@ proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinary = function(bytes)
|
|
|
1016
925
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1017
926
|
* @return {!proto.ondewo.nlu.OriginalDetectIntentRequest}
|
|
1018
927
|
*/
|
|
1019
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
928
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
929
|
+
while (reader.nextField()) {
|
|
930
|
+
if (reader.isEndGroup()) {
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
var field = reader.getFieldNumber();
|
|
934
|
+
switch (field) {
|
|
935
|
+
case 1:
|
|
936
|
+
var value = /** @type {string} */ (reader.readString());
|
|
937
|
+
msg.setSource(value);
|
|
938
|
+
break;
|
|
939
|
+
case 3:
|
|
940
|
+
var value = new google_protobuf_struct_pb.Struct();
|
|
941
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
942
|
+
msg.setPayload(value);
|
|
943
|
+
break;
|
|
944
|
+
default:
|
|
945
|
+
reader.skipField();
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
return msg;
|
|
1041
950
|
};
|
|
1042
951
|
|
|
1043
|
-
|
|
1044
952
|
/**
|
|
1045
953
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1046
954
|
* @return {!Uint8Array}
|
|
1047
955
|
*/
|
|
1048
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.serializeBinary = function() {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
956
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.serializeBinary = function () {
|
|
957
|
+
var writer = new jspb.BinaryWriter();
|
|
958
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter(this, writer);
|
|
959
|
+
return writer.getResultBuffer();
|
|
1052
960
|
};
|
|
1053
961
|
|
|
1054
|
-
|
|
1055
962
|
/**
|
|
1056
963
|
* Serializes the given message to binary data (in protobuf wire
|
|
1057
964
|
* format), writing to the given BinaryWriter.
|
|
@@ -1059,136 +966,118 @@ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.serializeBinary = functio
|
|
|
1059
966
|
* @param {!jspb.BinaryWriter} writer
|
|
1060
967
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1061
968
|
*/
|
|
1062
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
if (f != null) {
|
|
1073
|
-
writer.writeMessage(
|
|
1074
|
-
3,
|
|
1075
|
-
f,
|
|
1076
|
-
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
1077
|
-
);
|
|
1078
|
-
}
|
|
969
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter = function (message, writer) {
|
|
970
|
+
var f = undefined;
|
|
971
|
+
f = message.getSource();
|
|
972
|
+
if (f.length > 0) {
|
|
973
|
+
writer.writeString(1, f);
|
|
974
|
+
}
|
|
975
|
+
f = message.getPayload();
|
|
976
|
+
if (f != null) {
|
|
977
|
+
writer.writeMessage(3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
978
|
+
}
|
|
1079
979
|
};
|
|
1080
980
|
|
|
1081
|
-
|
|
1082
981
|
/**
|
|
1083
982
|
* optional string source = 1;
|
|
1084
983
|
* @return {string}
|
|
1085
984
|
*/
|
|
1086
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getSource = function() {
|
|
1087
|
-
|
|
985
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getSource = function () {
|
|
986
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
|
1088
987
|
};
|
|
1089
988
|
|
|
1090
|
-
|
|
1091
989
|
/**
|
|
1092
990
|
* @param {string} value
|
|
1093
991
|
* @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
|
|
1094
992
|
*/
|
|
1095
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setSource = function(value) {
|
|
1096
|
-
|
|
993
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setSource = function (value) {
|
|
994
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1097
995
|
};
|
|
1098
996
|
|
|
1099
|
-
|
|
1100
997
|
/**
|
|
1101
998
|
* optional google.protobuf.Struct payload = 3;
|
|
1102
999
|
* @return {?proto.google.protobuf.Struct}
|
|
1103
1000
|
*/
|
|
1104
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getPayload = function() {
|
|
1105
|
-
|
|
1106
|
-
|
|
1001
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getPayload = function () {
|
|
1002
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
1003
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)
|
|
1004
|
+
);
|
|
1107
1005
|
};
|
|
1108
1006
|
|
|
1109
|
-
|
|
1110
1007
|
/**
|
|
1111
1008
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
1112
1009
|
* @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
|
|
1113
|
-
*/
|
|
1114
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setPayload = function(value) {
|
|
1115
|
-
|
|
1010
|
+
*/
|
|
1011
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setPayload = function (value) {
|
|
1012
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1116
1013
|
};
|
|
1117
1014
|
|
|
1118
|
-
|
|
1119
1015
|
/**
|
|
1120
1016
|
* Clears the message field making it undefined.
|
|
1121
1017
|
* @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
|
|
1122
1018
|
*/
|
|
1123
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.clearPayload = function() {
|
|
1124
|
-
|
|
1019
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.clearPayload = function () {
|
|
1020
|
+
return this.setPayload(undefined);
|
|
1125
1021
|
};
|
|
1126
1022
|
|
|
1127
|
-
|
|
1128
1023
|
/**
|
|
1129
1024
|
* Returns whether this field is set.
|
|
1130
1025
|
* @return {boolean}
|
|
1131
1026
|
*/
|
|
1132
|
-
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.hasPayload = function() {
|
|
1133
|
-
|
|
1027
|
+
proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.hasPayload = function () {
|
|
1028
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1134
1029
|
};
|
|
1135
1030
|
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
1031
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1141
|
-
/**
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
proto.ondewo.nlu.PingResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1154
|
-
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
};
|
|
1032
|
+
/**
|
|
1033
|
+
* Creates an object representation of this proto.
|
|
1034
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1035
|
+
* Optional fields that are not set will be set to undefined.
|
|
1036
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1037
|
+
* For the list of reserved names please see:
|
|
1038
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1039
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1040
|
+
* JSPB instance for transitional soy proto support:
|
|
1041
|
+
* http://goto/soy-param-migration
|
|
1042
|
+
* @return {!Object}
|
|
1043
|
+
*/
|
|
1044
|
+
proto.ondewo.nlu.PingResponse.prototype.toObject = function (opt_includeInstance) {
|
|
1045
|
+
return proto.ondewo.nlu.PingResponse.toObject(opt_includeInstance, this);
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Static version of the {@see toObject} method.
|
|
1050
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1051
|
+
* the JSPB instance for transitional soy proto support:
|
|
1052
|
+
* http://goto/soy-param-migration
|
|
1053
|
+
* @param {!proto.ondewo.nlu.PingResponse} msg The msg instance to transform.
|
|
1054
|
+
* @return {!Object}
|
|
1055
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1056
|
+
*/
|
|
1057
|
+
proto.ondewo.nlu.PingResponse.toObject = function (includeInstance, msg) {
|
|
1058
|
+
var f,
|
|
1059
|
+
obj = {
|
|
1060
|
+
isReachable: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
if (includeInstance) {
|
|
1064
|
+
obj.$jspbMessageInstance = msg;
|
|
1065
|
+
}
|
|
1066
|
+
return obj;
|
|
1067
|
+
};
|
|
1177
1068
|
}
|
|
1178
1069
|
|
|
1179
|
-
|
|
1180
1070
|
/**
|
|
1181
1071
|
* Deserializes binary data (in protobuf wire format).
|
|
1182
1072
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1183
1073
|
* @return {!proto.ondewo.nlu.PingResponse}
|
|
1184
1074
|
*/
|
|
1185
|
-
proto.ondewo.nlu.PingResponse.deserializeBinary = function(bytes) {
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1075
|
+
proto.ondewo.nlu.PingResponse.deserializeBinary = function (bytes) {
|
|
1076
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1077
|
+
var msg = new proto.ondewo.nlu.PingResponse();
|
|
1078
|
+
return proto.ondewo.nlu.PingResponse.deserializeBinaryFromReader(msg, reader);
|
|
1189
1079
|
};
|
|
1190
1080
|
|
|
1191
|
-
|
|
1192
1081
|
/**
|
|
1193
1082
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1194
1083
|
* given reader into the given message object.
|
|
@@ -1196,37 +1085,35 @@ proto.ondewo.nlu.PingResponse.deserializeBinary = function(bytes) {
|
|
|
1196
1085
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1197
1086
|
* @return {!proto.ondewo.nlu.PingResponse}
|
|
1198
1087
|
*/
|
|
1199
|
-
proto.ondewo.nlu.PingResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1088
|
+
proto.ondewo.nlu.PingResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
1089
|
+
while (reader.nextField()) {
|
|
1090
|
+
if (reader.isEndGroup()) {
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
var field = reader.getFieldNumber();
|
|
1094
|
+
switch (field) {
|
|
1095
|
+
case 1:
|
|
1096
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1097
|
+
msg.setIsReachable(value);
|
|
1098
|
+
break;
|
|
1099
|
+
default:
|
|
1100
|
+
reader.skipField();
|
|
1101
|
+
break;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
return msg;
|
|
1216
1105
|
};
|
|
1217
1106
|
|
|
1218
|
-
|
|
1219
1107
|
/**
|
|
1220
1108
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1221
1109
|
* @return {!Uint8Array}
|
|
1222
1110
|
*/
|
|
1223
|
-
proto.ondewo.nlu.PingResponse.prototype.serializeBinary = function() {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1111
|
+
proto.ondewo.nlu.PingResponse.prototype.serializeBinary = function () {
|
|
1112
|
+
var writer = new jspb.BinaryWriter();
|
|
1113
|
+
proto.ondewo.nlu.PingResponse.serializeBinaryToWriter(this, writer);
|
|
1114
|
+
return writer.getResultBuffer();
|
|
1227
1115
|
};
|
|
1228
1116
|
|
|
1229
|
-
|
|
1230
1117
|
/**
|
|
1231
1118
|
* Serializes the given message to binary data (in protobuf wire
|
|
1232
1119
|
* format), writing to the given BinaryWriter.
|
|
@@ -1234,34 +1121,28 @@ proto.ondewo.nlu.PingResponse.prototype.serializeBinary = function() {
|
|
|
1234
1121
|
* @param {!jspb.BinaryWriter} writer
|
|
1235
1122
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1236
1123
|
*/
|
|
1237
|
-
proto.ondewo.nlu.PingResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
f
|
|
1244
|
-
);
|
|
1245
|
-
}
|
|
1124
|
+
proto.ondewo.nlu.PingResponse.serializeBinaryToWriter = function (message, writer) {
|
|
1125
|
+
var f = undefined;
|
|
1126
|
+
f = message.getIsReachable();
|
|
1127
|
+
if (f) {
|
|
1128
|
+
writer.writeBool(1, f);
|
|
1129
|
+
}
|
|
1246
1130
|
};
|
|
1247
1131
|
|
|
1248
|
-
|
|
1249
1132
|
/**
|
|
1250
1133
|
* optional bool is_reachable = 1;
|
|
1251
1134
|
* @return {boolean}
|
|
1252
1135
|
*/
|
|
1253
|
-
proto.ondewo.nlu.PingResponse.prototype.getIsReachable = function() {
|
|
1254
|
-
|
|
1136
|
+
proto.ondewo.nlu.PingResponse.prototype.getIsReachable = function () {
|
|
1137
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
1255
1138
|
};
|
|
1256
1139
|
|
|
1257
|
-
|
|
1258
1140
|
/**
|
|
1259
1141
|
* @param {boolean} value
|
|
1260
1142
|
* @return {!proto.ondewo.nlu.PingResponse} returns this
|
|
1261
1143
|
*/
|
|
1262
|
-
proto.ondewo.nlu.PingResponse.prototype.setIsReachable = function(value) {
|
|
1263
|
-
|
|
1144
|
+
proto.ondewo.nlu.PingResponse.prototype.setIsReachable = function (value) {
|
|
1145
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
1264
1146
|
};
|
|
1265
1147
|
|
|
1266
|
-
|
|
1267
1148
|
goog.object.extend(exports, proto.ondewo.nlu);
|