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