From 22344ef0df7361dcb56b0b34d369b30b5bf482bd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 13 Nov 2020 14:32:02 -0800 Subject: [PATCH] feat: expose matched event in Sessions API. (#83) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/f3c880c7-daa4-4d19-8cea-a8cf9bd3e014/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 342188199 Source-Link: https://github.com/googleapis/googleapis/commit/836f0eaf5f21f300f63ac635e5ef263d183e0cdd --- .../cloud/dialogflow/cx/v3beta1/Match.java | 208 ++++++++++++++++++ .../dialogflow/cx/v3beta1/MatchOrBuilder.java | 27 +++ .../dialogflow/cx/v3beta1/SessionProto.java | 157 ++++++------- .../cloud/dialogflow/cx/v3beta1/session.proto | 7 + synth.metadata | 8 - 5 files changed, 321 insertions(+), 86 deletions(-) diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java index 6b8650c66..130016604 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java @@ -38,6 +38,7 @@ private Match(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Match() { + event_ = ""; resolvedInput_ = ""; matchType_ = 0; } @@ -121,6 +122,13 @@ private Match( confidence_ = input.readFloat(); break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + event_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -225,6 +233,16 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * NO_INPUT = 5; */ NO_INPUT(5), + /** + * + * + *
+     * The query directly triggered an event.
+     * 
+ * + * EVENT = 6; + */ + EVENT(6), UNRECOGNIZED(-1), ; @@ -288,6 +306,16 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * NO_INPUT = 5; */ public static final int NO_INPUT_VALUE = 5; + /** + * + * + *
+     * The query directly triggered an event.
+     * 
+ * + * EVENT = 6; + */ + public static final int EVENT_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -325,6 +353,8 @@ public static MatchType forNumber(int value) { return NO_MATCH; case 5: return NO_INPUT; + case 6: + return EVENT; default: return null; } @@ -432,6 +462,57 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder return getIntent(); } + public static final int EVENT_FIELD_NUMBER = 6; + private volatile java.lang.Object event_; + /** + * + * + *
+   * The event that matched the query. Only filled for
+   * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+   * 
+ * + * string event = 6; + * + * @return The event. + */ + @java.lang.Override + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; + } + } + /** + * + * + *
+   * The event that matched the query. Only filled for
+   * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+   * 
+ * + * string event = 6; + * + * @return The bytes for event. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PARAMETERS_FIELD_NUMBER = 2; private com.google.protobuf.Struct parameters_; /** @@ -659,6 +740,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (confidence_ != 0F) { output.writeFloat(5, confidence_); } + if (!getEventBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, event_); + } unknownFields.writeTo(output); } @@ -685,6 +769,9 @@ public int getSerializedSize() { if (confidence_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } + if (!getEventBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, event_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -705,6 +792,7 @@ public boolean equals(final java.lang.Object obj) { if (hasIntent()) { if (!getIntent().equals(other.getIntent())) return false; } + if (!getEvent().equals(other.getEvent())) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { if (!getParameters().equals(other.getParameters())) return false; @@ -728,6 +816,8 @@ public int hashCode() { hash = (37 * hash) + INTENT_FIELD_NUMBER; hash = (53 * hash) + getIntent().hashCode(); } + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); if (hasParameters()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParameters().hashCode(); @@ -889,6 +979,8 @@ public Builder clear() { intent_ = null; intentBuilder_ = null; } + event_ = ""; + if (parametersBuilder_ == null) { parameters_ = null; } else { @@ -933,6 +1025,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Match buildPartial() { } else { result.intent_ = intentBuilder_.build(); } + result.event_ = event_; if (parametersBuilder_ == null) { result.parameters_ = parameters_; } else { @@ -993,6 +1086,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Match other) { if (other.hasIntent()) { mergeIntent(other.getIntent()); } + if (!other.getEvent().isEmpty()) { + event_ = other.event_; + onChanged(); + } if (other.hasParameters()) { mergeParameters(other.getParameters()); } @@ -1239,6 +1336,117 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder return intentBuilder_; } + private java.lang.Object event_ = ""; + /** + * + * + *
+     * The event that matched the query. Only filled for
+     * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+     * 
+ * + * string event = 6; + * + * @return The event. + */ + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The event that matched the query. Only filled for
+     * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+     * 
+ * + * string event = 6; + * + * @return The bytes for event. + */ + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The event that matched the query. Only filled for
+     * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+     * 
+ * + * string event = 6; + * + * @param value The event to set. + * @return This builder for chaining. + */ + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + event_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The event that matched the query. Only filled for
+     * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+     * 
+ * + * string event = 6; + * + * @return This builder for chaining. + */ + public Builder clearEvent() { + + event_ = getDefaultInstance().getEvent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The event that matched the query. Only filled for
+     * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+     * 
+ * + * string event = 6; + * + * @param value The bytes for event to set. + * @return This builder for chaining. + */ + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + event_ = value; + onChanged(); + return this; + } + private com.google.protobuf.Struct parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchOrBuilder.java index 633982743..0a9eef550 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchOrBuilder.java @@ -64,6 +64,33 @@ public interface MatchOrBuilder */ com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder(); + /** + * + * + *
+   * The event that matched the query. Only filled for
+   * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+   * 
+ * + * string event = 6; + * + * @return The event. + */ + java.lang.String getEvent(); + /** + * + * + *
+   * The event that matched the query. Only filled for
+   * [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
+   * 
+ * + * string event = 6; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java index 653b7ab28..f76943b5f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java @@ -208,83 +208,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v3beta1.InputAudioConfigB\003\340A\002\022\r\n\005audio\030\002" + " \001(\014\"\033\n\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtm" + "fInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002" - + " \001(\t\"\340\002\n\005Match\022:\n\006intent\030\001 \001(\0132*.google." - + "cloud.dialogflow.cx.v3beta1.Intent\022+\n\npa" - + "rameters\030\002 \001(\0132\027.google.protobuf.Struct\022" - + "\026\n\016resolved_input\030\003 \001(\t\022G\n\nmatch_type\030\004 " - + "\001(\01623.google.cloud.dialogflow.cx.v3beta1" - + ".Match.MatchType\022\022\n\nconfidence\030\005 \001(\002\"y\n\t" - + "MatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETE" - + "R_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\"" - + "\345\001\n\022MatchIntentRequest\022:\n\007session\030\001 \001(\tB" - + ")\340A\002\372A#\n!dialogflow.googleapis.com/Sessi" - + "on\022I\n\014query_params\030\002 \001(\01323.google.cloud." - + "dialogflow.cx.v3beta1.QueryParameters\022H\n" - + "\013query_input\030\003 \001(\0132..google.cloud.dialog" - + "flow.cx.v3beta1.QueryInputB\003\340A\002\"\363\001\n\023Matc" - + "hIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022\030\n\016trigg" - + "er_intent\030\002 \001(\tH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022" - + "\027\n\rtrigger_event\030\006 \001(\tH\000\022:\n\007matches\030\004 \003(" - + "\0132).google.cloud.dialogflow.cx.v3beta1.M" - + "atch\022>\n\014current_page\030\005 \001(\0132(.google.clou" - + "d.dialogflow.cx.v3beta1.PageB\007\n\005query\"\372\001" - + "\n\024FulfillIntentRequest\022T\n\024match_intent_r" - + "equest\030\001 \001(\01326.google.cloud.dialogflow.c" - + "x.v3beta1.MatchIntentRequest\0228\n\005match\030\002 " - + "\001(\0132).google.cloud.dialogflow.cx.v3beta1" - + ".Match\022R\n\023output_audio_config\030\003 \001(\01325.go" - + "ogle.cloud.dialogflow.cx.v3beta1.OutputA" - + "udioConfig\"\335\001\n\025FulfillIntentResponse\022\023\n\013" - + "response_id\030\001 \001(\t\022E\n\014query_result\030\002 \001(\0132" - + "/.google.cloud.dialogflow.cx.v3beta1.Que" - + "ryResult\022\024\n\014output_audio\030\003 \001(\014\022R\n\023output" - + "_audio_config\030\004 \001(\01325.google.cloud.dialo" - + "gflow.cx.v3beta1.OutputAudioConfig\";\n\027Se" - + "ntimentAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\t" - + "magnitude\030\002 \001(\0022\212\n\n\010Sessions\022\272\002\n\014DetectI" - + "ntent\0227.google.cloud.dialogflow.cx.v3bet" - + "a1.DetectIntentRequest\0328.google.cloud.di" - + "alogflow.cx.v3beta1.DetectIntentResponse" - + "\"\266\001\202\323\344\223\002\257\001\"J/v3beta1/{session=projects/*" - + "/locations/*/agents/*/sessions/*}:detect" - + "Intent:\001*Z^\"Y/v3beta1/{session=projects/" - + "*/locations/*/agents/*/environments/*/se" - + "ssions/*}:detectIntent:\001*\022\242\001\n\025StreamingD" - + "etectIntent\022@.google.cloud.dialogflow.cx" - + ".v3beta1.StreamingDetectIntentRequest\032A." - + "google.cloud.dialogflow.cx.v3beta1.Strea" - + "mingDetectIntentResponse\"\000(\0010\001\022\265\002\n\013Match" - + "Intent\0226.google.cloud.dialogflow.cx.v3be" - + "ta1.MatchIntentRequest\0327.google.cloud.di" - + "alogflow.cx.v3beta1.MatchIntentResponse\"" - + "\264\001\202\323\344\223\002\255\001\"I/v3beta1/{session=projects/*/" - + "locations/*/agents/*/sessions/*}:matchIn" - + "tent:\001*Z]\"X/v3beta1/{session=projects/*/" - + "locations/*/agents/*/environments/*/sess" - + "ions/*}:matchIntent:\001*\022\351\002\n\rFulfillIntent" - + "\0228.google.cloud.dialogflow.cx.v3beta1.Fu" - + "lfillIntentRequest\0329.google.cloud.dialog" - + "flow.cx.v3beta1.FulfillIntentResponse\"\342\001" - + "\202\323\344\223\002\333\001\"`/v3beta1/{match_intent_request." - + "session=projects/*/locations/*/agents/*/" - + "sessions/*}:fulfillIntent:\001*Zt\"o/v3beta1" - + "/{match_intent_request.session=projects/" - + "*/locations/*/agents/*/environments/*/se" - + "ssions/*}:fulfillIntent:\001*\032x\312A\031dialogflo" - + "w.googleapis.com\322AYhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/dialogflowB\203\003\n&com.goo" - + "gle.cloud.dialogflow.cx.v3beta1B\014Session" - + "ProtoP\001ZDgoogle.golang.org/genproto/goog" - + "leapis/cloud/dialogflow/cx/v3beta1;cx\370\001\001" - + "\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Bet" - + "a1\352A\324\001\n!dialogflow.googleapis.com/Sessio" - + "n\022Iprojects/{project}/locations/{locatio" - + "n}/agents/{agent}/sessions/{session}\022dpr" - + "ojects/{project}/locations/{location}/ag" - + "ents/{agent}/environments/{environment}/" - + "sessions/{session}b\006proto3" + + " \001(\t\"\373\002\n\005Match\022:\n\006intent\030\001 \001(\0132*.google." + + "cloud.dialogflow.cx.v3beta1.Intent\022\r\n\005ev" + + "ent\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google.p" + + "rotobuf.Struct\022\026\n\016resolved_input\030\003 \001(\t\022G" + + "\n\nmatch_type\030\004 \001(\01623.google.cloud.dialog" + + "flow.cx.v3beta1.Match.MatchType\022\022\n\nconfi" + + "dence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE_" + + "UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INTE" + + "NT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH\020" + + "\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\345\001\n\022MatchInte" + + "ntRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dial" + + "ogflow.googleapis.com/Session\022I\n\014query_p" + + "arams\030\002 \001(\01323.google.cloud.dialogflow.cx" + + ".v3beta1.QueryParameters\022H\n\013query_input\030" + + "\003 \001(\0132..google.cloud.dialogflow.cx.v3bet" + + "a1.QueryInputB\003\340A\002\"\363\001\n\023MatchIntentRespon" + + "se\022\016\n\004text\030\001 \001(\tH\000\022\030\n\016trigger_intent\030\002 \001" + + "(\tH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rtrigger_ev" + + "ent\030\006 \001(\tH\000\022:\n\007matches\030\004 \003(\0132).google.cl" + + "oud.dialogflow.cx.v3beta1.Match\022>\n\014curre" + + "nt_page\030\005 \001(\0132(.google.cloud.dialogflow." + + "cx.v3beta1.PageB\007\n\005query\"\372\001\n\024FulfillInte" + + "ntRequest\022T\n\024match_intent_request\030\001 \001(\0132" + + "6.google.cloud.dialogflow.cx.v3beta1.Mat" + + "chIntentRequest\0228\n\005match\030\002 \001(\0132).google." + + "cloud.dialogflow.cx.v3beta1.Match\022R\n\023out" + + "put_audio_config\030\003 \001(\01325.google.cloud.di" + + "alogflow.cx.v3beta1.OutputAudioConfig\"\335\001" + + "\n\025FulfillIntentResponse\022\023\n\013response_id\030\001" + + " \001(\t\022E\n\014query_result\030\002 \001(\0132/.google.clou" + + "d.dialogflow.cx.v3beta1.QueryResult\022\024\n\014o" + + "utput_audio\030\003 \001(\014\022R\n\023output_audio_config" + + "\030\004 \001(\01325.google.cloud.dialogflow.cx.v3be" + + "ta1.OutputAudioConfig\";\n\027SentimentAnalys" + + "isResult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001" + + "(\0022\212\n\n\010Sessions\022\272\002\n\014DetectIntent\0227.googl" + + "e.cloud.dialogflow.cx.v3beta1.DetectInte" + + "ntRequest\0328.google.cloud.dialogflow.cx.v" + + "3beta1.DetectIntentResponse\"\266\001\202\323\344\223\002\257\001\"J/" + + "v3beta1/{session=projects/*/locations/*/" + + "agents/*/sessions/*}:detectIntent:\001*Z^\"Y" + + "/v3beta1/{session=projects/*/locations/*" + + "/agents/*/environments/*/sessions/*}:det" + + "ectIntent:\001*\022\242\001\n\025StreamingDetectIntent\022@" + + ".google.cloud.dialogflow.cx.v3beta1.Stre" + + "amingDetectIntentRequest\032A.google.cloud." + + "dialogflow.cx.v3beta1.StreamingDetectInt" + + "entResponse\"\000(\0010\001\022\265\002\n\013MatchIntent\0226.goog" + + "le.cloud.dialogflow.cx.v3beta1.MatchInte" + + "ntRequest\0327.google.cloud.dialogflow.cx.v" + + "3beta1.MatchIntentResponse\"\264\001\202\323\344\223\002\255\001\"I/v" + + "3beta1/{session=projects/*/locations/*/a" + + "gents/*/sessions/*}:matchIntent:\001*Z]\"X/v" + + "3beta1/{session=projects/*/locations/*/a" + + "gents/*/environments/*/sessions/*}:match" + + "Intent:\001*\022\351\002\n\rFulfillIntent\0228.google.clo" + + "ud.dialogflow.cx.v3beta1.FulfillIntentRe" + + "quest\0329.google.cloud.dialogflow.cx.v3bet" + + "a1.FulfillIntentResponse\"\342\001\202\323\344\223\002\333\001\"`/v3b" + + "eta1/{match_intent_request.session=proje" + + "cts/*/locations/*/agents/*/sessions/*}:f" + + "ulfillIntent:\001*Zt\"o/v3beta1/{match_inten" + + "t_request.session=projects/*/locations/*" + + "/agents/*/environments/*/sessions/*}:ful" + + "fillIntent:\001*\032x\312A\031dialogflow.googleapis." + + "com\322AYhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/dialogflowB\203\003\n&com.google.cloud.dia" + + "logflow.cx.v3beta1B\014SessionProtoP\001ZDgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "dialogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Googl" + + "e.Cloud.Dialogflow.Cx.V3Beta1\352A\324\001\n!dialo" + + "gflow.googleapis.com/Session\022Iprojects/{" + + "project}/locations/{location}/agents/{ag" + + "ent}/sessions/{session}\022dprojects/{proje" + + "ct}/locations/{location}/agents/{agent}/" + + "environments/{environment}/sessions/{ses" + + "sion}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -441,7 +442,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Match_descriptor, new java.lang.String[] { - "Intent", "Parameters", "ResolvedInput", "MatchType", "Confidence", + "Intent", "Event", "Parameters", "ResolvedInput", "MatchType", "Confidence", }); internal_static_google_cloud_dialogflow_cx_v3beta1_MatchIntentRequest_descriptor = getDescriptor().getMessageTypes().get(14); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index 397c20787..9b94a19db 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -576,6 +576,9 @@ message Match { // Indicates an empty query. NO_INPUT = 5; + + // The query directly triggered an event. + EVENT = 6; } // The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query. Some, not all fields are filled in @@ -583,6 +586,10 @@ message Match { // filled for [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type. Intent intent = 1; + // The event that matched the query. Only filled for + // [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type. + string event = 6; + // The collection of parameters extracted from the query. // // Depending on your protocol or client library language, this is a diff --git a/synth.metadata b/synth.metadata index ecb7bcd8e..321ec7622 100644 --- a/synth.metadata +++ b/synth.metadata @@ -15,14 +15,6 @@ "internalRef": "341478628" } }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6c0f55f33f882cf97fd3135e93b144ad9c94ebab", - "internalRef": "341478628" - } - }, { "git": { "name": "synthtool",