@@ -38,6 +38,7 @@ private Match(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38
38
}
39
39
40
40
private Match () {
41
+ event_ = "" ;
41
42
resolvedInput_ = "" ;
42
43
matchType_ = 0 ;
43
44
}
@@ -121,6 +122,13 @@ private Match(
121
122
confidence_ = input .readFloat ();
122
123
break ;
123
124
}
125
+ case 50 :
126
+ {
127
+ java .lang .String s = input .readStringRequireUtf8 ();
128
+
129
+ event_ = s ;
130
+ break ;
131
+ }
124
132
default :
125
133
{
126
134
if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
@@ -225,6 +233,16 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum {
225
233
* <code>NO_INPUT = 5;</code>
226
234
*/
227
235
NO_INPUT (5 ),
236
+ /**
237
+ *
238
+ *
239
+ * <pre>
240
+ * The query directly triggered an event.
241
+ * </pre>
242
+ *
243
+ * <code>EVENT = 6;</code>
244
+ */
245
+ EVENT (6 ),
228
246
UNRECOGNIZED (-1 ),
229
247
;
230
248
@@ -288,6 +306,16 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum {
288
306
* <code>NO_INPUT = 5;</code>
289
307
*/
290
308
public static final int NO_INPUT_VALUE = 5 ;
309
+ /**
310
+ *
311
+ *
312
+ * <pre>
313
+ * The query directly triggered an event.
314
+ * </pre>
315
+ *
316
+ * <code>EVENT = 6;</code>
317
+ */
318
+ public static final int EVENT_VALUE = 6 ;
291
319
292
320
public final int getNumber () {
293
321
if (this == UNRECOGNIZED ) {
@@ -325,6 +353,8 @@ public static MatchType forNumber(int value) {
325
353
return NO_MATCH ;
326
354
case 5 :
327
355
return NO_INPUT ;
356
+ case 6 :
357
+ return EVENT ;
328
358
default :
329
359
return null ;
330
360
}
@@ -432,6 +462,57 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder
432
462
return getIntent ();
433
463
}
434
464
465
+ public static final int EVENT_FIELD_NUMBER = 6 ;
466
+ private volatile java .lang .Object event_ ;
467
+ /**
468
+ *
469
+ *
470
+ * <pre>
471
+ * The event that matched the query. Only filled for
472
+ * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
473
+ * </pre>
474
+ *
475
+ * <code>string event = 6;</code>
476
+ *
477
+ * @return The event.
478
+ */
479
+ @ java .lang .Override
480
+ public java .lang .String getEvent () {
481
+ java .lang .Object ref = event_ ;
482
+ if (ref instanceof java .lang .String ) {
483
+ return (java .lang .String ) ref ;
484
+ } else {
485
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
486
+ java .lang .String s = bs .toStringUtf8 ();
487
+ event_ = s ;
488
+ return s ;
489
+ }
490
+ }
491
+ /**
492
+ *
493
+ *
494
+ * <pre>
495
+ * The event that matched the query. Only filled for
496
+ * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
497
+ * </pre>
498
+ *
499
+ * <code>string event = 6;</code>
500
+ *
501
+ * @return The bytes for event.
502
+ */
503
+ @ java .lang .Override
504
+ public com .google .protobuf .ByteString getEventBytes () {
505
+ java .lang .Object ref = event_ ;
506
+ if (ref instanceof java .lang .String ) {
507
+ com .google .protobuf .ByteString b =
508
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
509
+ event_ = b ;
510
+ return b ;
511
+ } else {
512
+ return (com .google .protobuf .ByteString ) ref ;
513
+ }
514
+ }
515
+
435
516
public static final int PARAMETERS_FIELD_NUMBER = 2 ;
436
517
private com .google .protobuf .Struct parameters_ ;
437
518
/**
@@ -659,6 +740,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
659
740
if (confidence_ != 0F ) {
660
741
output .writeFloat (5 , confidence_ );
661
742
}
743
+ if (!getEventBytes ().isEmpty ()) {
744
+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 6 , event_ );
745
+ }
662
746
unknownFields .writeTo (output );
663
747
}
664
748
@@ -685,6 +769,9 @@ public int getSerializedSize() {
685
769
if (confidence_ != 0F ) {
686
770
size += com .google .protobuf .CodedOutputStream .computeFloatSize (5 , confidence_ );
687
771
}
772
+ if (!getEventBytes ().isEmpty ()) {
773
+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (6 , event_ );
774
+ }
688
775
size += unknownFields .getSerializedSize ();
689
776
memoizedSize = size ;
690
777
return size ;
@@ -705,6 +792,7 @@ public boolean equals(final java.lang.Object obj) {
705
792
if (hasIntent ()) {
706
793
if (!getIntent ().equals (other .getIntent ())) return false ;
707
794
}
795
+ if (!getEvent ().equals (other .getEvent ())) return false ;
708
796
if (hasParameters () != other .hasParameters ()) return false ;
709
797
if (hasParameters ()) {
710
798
if (!getParameters ().equals (other .getParameters ())) return false ;
@@ -728,6 +816,8 @@ public int hashCode() {
728
816
hash = (37 * hash ) + INTENT_FIELD_NUMBER ;
729
817
hash = (53 * hash ) + getIntent ().hashCode ();
730
818
}
819
+ hash = (37 * hash ) + EVENT_FIELD_NUMBER ;
820
+ hash = (53 * hash ) + getEvent ().hashCode ();
731
821
if (hasParameters ()) {
732
822
hash = (37 * hash ) + PARAMETERS_FIELD_NUMBER ;
733
823
hash = (53 * hash ) + getParameters ().hashCode ();
@@ -889,6 +979,8 @@ public Builder clear() {
889
979
intent_ = null ;
890
980
intentBuilder_ = null ;
891
981
}
982
+ event_ = "" ;
983
+
892
984
if (parametersBuilder_ == null ) {
893
985
parameters_ = null ;
894
986
} else {
@@ -933,6 +1025,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Match buildPartial() {
933
1025
} else {
934
1026
result .intent_ = intentBuilder_ .build ();
935
1027
}
1028
+ result .event_ = event_ ;
936
1029
if (parametersBuilder_ == null ) {
937
1030
result .parameters_ = parameters_ ;
938
1031
} else {
@@ -993,6 +1086,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Match other) {
993
1086
if (other .hasIntent ()) {
994
1087
mergeIntent (other .getIntent ());
995
1088
}
1089
+ if (!other .getEvent ().isEmpty ()) {
1090
+ event_ = other .event_ ;
1091
+ onChanged ();
1092
+ }
996
1093
if (other .hasParameters ()) {
997
1094
mergeParameters (other .getParameters ());
998
1095
}
@@ -1239,6 +1336,117 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder
1239
1336
return intentBuilder_ ;
1240
1337
}
1241
1338
1339
+ private java .lang .Object event_ = "" ;
1340
+ /**
1341
+ *
1342
+ *
1343
+ * <pre>
1344
+ * The event that matched the query. Only filled for
1345
+ * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
1346
+ * </pre>
1347
+ *
1348
+ * <code>string event = 6;</code>
1349
+ *
1350
+ * @return The event.
1351
+ */
1352
+ public java .lang .String getEvent () {
1353
+ java .lang .Object ref = event_ ;
1354
+ if (!(ref instanceof java .lang .String )) {
1355
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
1356
+ java .lang .String s = bs .toStringUtf8 ();
1357
+ event_ = s ;
1358
+ return s ;
1359
+ } else {
1360
+ return (java .lang .String ) ref ;
1361
+ }
1362
+ }
1363
+ /**
1364
+ *
1365
+ *
1366
+ * <pre>
1367
+ * The event that matched the query. Only filled for
1368
+ * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
1369
+ * </pre>
1370
+ *
1371
+ * <code>string event = 6;</code>
1372
+ *
1373
+ * @return The bytes for event.
1374
+ */
1375
+ public com .google .protobuf .ByteString getEventBytes () {
1376
+ java .lang .Object ref = event_ ;
1377
+ if (ref instanceof String ) {
1378
+ com .google .protobuf .ByteString b =
1379
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
1380
+ event_ = b ;
1381
+ return b ;
1382
+ } else {
1383
+ return (com .google .protobuf .ByteString ) ref ;
1384
+ }
1385
+ }
1386
+ /**
1387
+ *
1388
+ *
1389
+ * <pre>
1390
+ * The event that matched the query. Only filled for
1391
+ * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
1392
+ * </pre>
1393
+ *
1394
+ * <code>string event = 6;</code>
1395
+ *
1396
+ * @param value The event to set.
1397
+ * @return This builder for chaining.
1398
+ */
1399
+ public Builder setEvent (java .lang .String value ) {
1400
+ if (value == null ) {
1401
+ throw new NullPointerException ();
1402
+ }
1403
+
1404
+ event_ = value ;
1405
+ onChanged ();
1406
+ return this ;
1407
+ }
1408
+ /**
1409
+ *
1410
+ *
1411
+ * <pre>
1412
+ * The event that matched the query. Only filled for
1413
+ * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
1414
+ * </pre>
1415
+ *
1416
+ * <code>string event = 6;</code>
1417
+ *
1418
+ * @return This builder for chaining.
1419
+ */
1420
+ public Builder clearEvent () {
1421
+
1422
+ event_ = getDefaultInstance ().getEvent ();
1423
+ onChanged ();
1424
+ return this ;
1425
+ }
1426
+ /**
1427
+ *
1428
+ *
1429
+ * <pre>
1430
+ * The event that matched the query. Only filled for
1431
+ * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
1432
+ * </pre>
1433
+ *
1434
+ * <code>string event = 6;</code>
1435
+ *
1436
+ * @param value The bytes for event to set.
1437
+ * @return This builder for chaining.
1438
+ */
1439
+ public Builder setEventBytes (com .google .protobuf .ByteString value ) {
1440
+ if (value == null ) {
1441
+ throw new NullPointerException ();
1442
+ }
1443
+ checkByteStringIsUtf8 (value );
1444
+
1445
+ event_ = value ;
1446
+ onChanged ();
1447
+ return this ;
1448
+ }
1449
+
1242
1450
private com .google .protobuf .Struct parameters_ ;
1243
1451
private com .google .protobuf .SingleFieldBuilderV3 <
1244
1452
com .google .protobuf .Struct ,
0 commit comments