diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index ce233a730..84b1f0d26 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -179,7 +179,12 @@ public final OperationsClient getOperationsClient() { * } * * @param parent Required. The agent to list all intents from. Format: `projects/<Project - * ID>/agent`. + * ID>/agent` or `projects/<Project ID>/locations/<Location ID>/agent`. + *

Alternatively, you can specify the environment to list intents for. Format: + * `projects/<Project ID>/agent/environments/<Environment ID>` or + * `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>`. Note: training phrases of the intents + * will not be returned for non-draft environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIntentsPagedResponse listIntents(AgentName parent) { @@ -206,7 +211,12 @@ public final ListIntentsPagedResponse listIntents(AgentName parent) { * } * * @param parent Required. The agent to list all intents from. Format: `projects/<Project - * ID>/agent`. + * ID>/agent` or `projects/<Project ID>/locations/<Location ID>/agent`. + *

Alternatively, you can specify the environment to list intents for. Format: + * `projects/<Project ID>/agent/environments/<Environment ID>` or + * `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>`. Note: training phrases of the intents + * will not be returned for non-draft environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIntentsPagedResponse listIntents(String parent) { @@ -231,7 +241,12 @@ public final ListIntentsPagedResponse listIntents(String parent) { * } * * @param parent Required. The agent to list all intents from. Format: `projects/<Project - * ID>/agent`. + * ID>/agent` or `projects/<Project ID>/locations/<Location ID>/agent`. + *

Alternatively, you can specify the environment to list intents for. Format: + * `projects/<Project ID>/agent/environments/<Environment ID>` or + * `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>`. Note: training phrases of the intents + * will not be returned for non-draft environment. * @param languageCode Optional. The language used to access language-specific data. If not * specified, the agent's default language is used. For more information, see [Multilingual * intent and entity @@ -264,7 +279,12 @@ public final ListIntentsPagedResponse listIntents(AgentName parent, String langu * } * * @param parent Required. The agent to list all intents from. Format: `projects/<Project - * ID>/agent`. + * ID>/agent` or `projects/<Project ID>/locations/<Location ID>/agent`. + *

Alternatively, you can specify the environment to list intents for. Format: + * `projects/<Project ID>/agent/environments/<Environment ID>` or + * `projects/<Project ID>/locations/<Location + * ID>/agent/environments/<Environment ID>`. Note: training phrases of the intents + * will not be returned for non-draft environment. * @param languageCode Optional. The language used to access language-specific data. If not * specified, the agent's default language is used. For more information, see [Multilingual * intent and entity diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java index d9808e1ee..dbd9ab741 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java @@ -226,6 +226,11 @@ private QueryResult( sentimentAnalysisResult_ = subBuilder.buildPartial(); } + break; + } + case 168: + { + cancelsSlotFilling_ = input.readBool(); break; } default: @@ -567,6 +572,25 @@ public boolean getAllRequiredParamsPresent() { return allRequiredParamsPresent_; } + public static final int CANCELS_SLOT_FILLING_FIELD_NUMBER = 21; + private boolean cancelsSlotFilling_; + /** + * + * + *

+   * Indicates whether the conversational query triggers a cancellation for slot
+   * filling.
+   * 
+ * + * bool cancels_slot_filling = 21; + * + * @return The cancelsSlotFilling. + */ + @java.lang.Override + public boolean getCancelsSlotFilling() { + return cancelsSlotFilling_; + } + public static final int FULFILLMENT_TEXT_FIELD_NUMBER = 6; private volatile java.lang.Object fulfillmentText_; /** @@ -1129,6 +1153,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sentimentAnalysisResult_ != null) { output.writeMessage(17, getSentimentAnalysisResult()); } + if (cancelsSlotFilling_ != false) { + output.writeBool(21, cancelsSlotFilling_); + } unknownFields.writeTo(output); } @@ -1188,6 +1215,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 17, getSentimentAnalysisResult()); } + if (cancelsSlotFilling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, cancelsSlotFilling_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1214,6 +1244,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParameters().equals(other.getParameters())) return false; } if (getAllRequiredParamsPresent() != other.getAllRequiredParamsPresent()) return false; + if (getCancelsSlotFilling() != other.getCancelsSlotFilling()) return false; if (!getFulfillmentText().equals(other.getFulfillmentText())) return false; if (!getFulfillmentMessagesList().equals(other.getFulfillmentMessagesList())) return false; if (!getWebhookSource().equals(other.getWebhookSource())) return false; @@ -1261,6 +1292,8 @@ public int hashCode() { } hash = (37 * hash) + ALL_REQUIRED_PARAMS_PRESENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllRequiredParamsPresent()); + hash = (37 * hash) + CANCELS_SLOT_FILLING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelsSlotFilling()); hash = (37 * hash) + FULFILLMENT_TEXT_FIELD_NUMBER; hash = (53 * hash) + getFulfillmentText().hashCode(); if (getFulfillmentMessagesCount() > 0) { @@ -1455,6 +1488,8 @@ public Builder clear() { } allRequiredParamsPresent_ = false; + cancelsSlotFilling_ = false; + fulfillmentText_ = ""; if (fulfillmentMessagesBuilder_ == null) { @@ -1535,6 +1570,7 @@ public com.google.cloud.dialogflow.v2.QueryResult buildPartial() { result.parameters_ = parametersBuilder_.build(); } result.allRequiredParamsPresent_ = allRequiredParamsPresent_; + result.cancelsSlotFilling_ = cancelsSlotFilling_; result.fulfillmentText_ = fulfillmentText_; if (fulfillmentMessagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1646,6 +1682,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.QueryResult other) { if (other.getAllRequiredParamsPresent() != false) { setAllRequiredParamsPresent(other.getAllRequiredParamsPresent()); } + if (other.getCancelsSlotFilling() != false) { + setCancelsSlotFilling(other.getCancelsSlotFilling()); + } if (!other.getFulfillmentText().isEmpty()) { fulfillmentText_ = other.fulfillmentText_; onChanged(); @@ -2555,6 +2594,61 @@ public Builder clearAllRequiredParamsPresent() { return this; } + private boolean cancelsSlotFilling_; + /** + * + * + *
+     * Indicates whether the conversational query triggers a cancellation for slot
+     * filling.
+     * 
+ * + * bool cancels_slot_filling = 21; + * + * @return The cancelsSlotFilling. + */ + @java.lang.Override + public boolean getCancelsSlotFilling() { + return cancelsSlotFilling_; + } + /** + * + * + *
+     * Indicates whether the conversational query triggers a cancellation for slot
+     * filling.
+     * 
+ * + * bool cancels_slot_filling = 21; + * + * @param value The cancelsSlotFilling to set. + * @return This builder for chaining. + */ + public Builder setCancelsSlotFilling(boolean value) { + + cancelsSlotFilling_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates whether the conversational query triggers a cancellation for slot
+     * filling.
+     * 
+ * + * bool cancels_slot_filling = 21; + * + * @return This builder for chaining. + */ + public Builder clearCancelsSlotFilling() { + + cancelsSlotFilling_ = false; + onChanged(); + return this; + } + private java.lang.Object fulfillmentText_ = ""; /** * diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java index 85bba3558..09e62d5a7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java @@ -229,6 +229,20 @@ public interface QueryResultOrBuilder */ boolean getAllRequiredParamsPresent(); + /** + * + * + *
+   * Indicates whether the conversational query triggers a cancellation for slot
+   * filling.
+   * 
+ * + * bool cancels_slot_filling = 21; + * + * @return The cancelsSlotFilling. + */ + boolean getCancelsSlotFilling(); + /** * * diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java index d023935cb..80b9275f6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java @@ -138,93 +138,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oud.dialogflow.v2.InputAudioConfigH\000\0225\n\004" + "text\030\002 \001(\0132%.google.cloud.dialogflow.v2." + "TextInputH\000\0227\n\005event\030\003 \001(\0132&.google.clou" - + "d.dialogflow.v2.EventInputH\000B\007\n\005input\"\220\005" + + "d.dialogflow.v2.EventInputH\000B\007\n\005input\"\256\005" + "\n\013QueryResult\022\022\n\nquery_text\030\001 \001(\t\022\025\n\rlan" + "guage_code\030\017 \001(\t\022%\n\035speech_recognition_c" + "onfidence\030\002 \001(\002\022\016\n\006action\030\003 \001(\t\022+\n\nparam" + "eters\030\004 \001(\0132\027.google.protobuf.Struct\022#\n\033" - + "all_required_params_present\030\005 \001(\010\022\030\n\020ful" - + "fillment_text\030\006 \001(\t\022H\n\024fulfillment_messa" - + "ges\030\007 \003(\0132*.google.cloud.dialogflow.v2.I" - + "ntent.Message\022\026\n\016webhook_source\030\010 \001(\t\0220\n" - + "\017webhook_payload\030\t \001(\0132\027.google.protobuf" - + ".Struct\022<\n\017output_contexts\030\n \003(\0132#.googl" - + "e.cloud.dialogflow.v2.Context\0222\n\006intent\030" - + "\013 \001(\0132\".google.cloud.dialogflow.v2.Inten" - + "t\022#\n\033intent_detection_confidence\030\014 \001(\002\0220" - + "\n\017diagnostic_info\030\016 \001(\0132\027.google.protobu" - + "f.Struct\022V\n\031sentiment_analysis_result\030\021 " - + "\001(\01323.google.cloud.dialogflow.v2.Sentime" - + "ntAnalysisResult\"\234\003\n\034StreamingDetectInte" - + "ntRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dial" - + "ogflow.googleapis.com/Session\022A\n\014query_p" - + "arams\030\002 \001(\0132+.google.cloud.dialogflow.v2" - + ".QueryParameters\022@\n\013query_input\030\003 \001(\0132&." - + "google.cloud.dialogflow.v2.QueryInputB\003\340" - + "A\002\022\034\n\020single_utterance\030\004 \001(\010B\002\030\001\022J\n\023outp" - + "ut_audio_config\030\005 \001(\0132-.google.cloud.dia" - + "logflow.v2.OutputAudioConfig\022<\n\030output_a" - + "udio_config_mask\030\007 \001(\0132\032.google.protobuf" - + ".FieldMask\022\023\n\013input_audio\030\006 \001(\014\"\325\002\n\035Stre" - + "amingDetectIntentResponse\022\023\n\013response_id" - + "\030\001 \001(\t\022R\n\022recognition_result\030\002 \001(\01326.goo" - + "gle.cloud.dialogflow.v2.StreamingRecogni" - + "tionResult\022=\n\014query_result\030\003 \001(\0132\'.googl" - + "e.cloud.dialogflow.v2.QueryResult\022*\n\016web" - + "hook_status\030\004 \001(\0132\022.google.rpc.Status\022\024\n" - + "\014output_audio\030\005 \001(\014\022J\n\023output_audio_conf" - + "ig\030\006 \001(\0132-.google.cloud.dialogflow.v2.Ou" - + "tputAudioConfig\"\206\003\n\032StreamingRecognition" - + "Result\022X\n\014message_type\030\001 \001(\0162B.google.cl" - + "oud.dialogflow.v2.StreamingRecognitionRe" - + "sult.MessageType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010" - + "is_final\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\022D\n\020sp" - + "eech_word_info\030\007 \003(\0132*.google.cloud.dial" - + "ogflow.v2.SpeechWordInfo\0224\n\021speech_end_o" - + "ffset\030\010 \001(\0132\031.google.protobuf.Duration\"X" - + "\n\013MessageType\022\034\n\030MESSAGE_TYPE_UNSPECIFIE" - + "D\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTT" - + "ERANCE\020\002\":\n\tTextInput\022\021\n\004text\030\001 \001(\tB\003\340A\002" - + "\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\002\"h\n\nEventInp" - + "ut\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\nparameters\030\002 \001(" - + "\0132\027.google.protobuf.Struct\022\032\n\rlanguage_c" - + "ode\030\003 \001(\tB\003\340A\002\"F\n\036SentimentAnalysisReque" - + "stConfig\022$\n\034analyze_query_text_sentiment" - + "\030\001 \001(\010\"^\n\027SentimentAnalysisResult\022C\n\024que" - + "ry_text_sentiment\030\001 \001(\0132%.google.cloud.d" - + "ialogflow.v2.Sentiment\"-\n\tSentiment\022\r\n\005s" - + "core\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\345\005\n\010Sessio" - + "ns\022\311\003\n\014DetectIntent\022/.google.cloud.dialo" - + "gflow.v2.DetectIntentRequest\0320.google.cl" - + "oud.dialogflow.v2.DetectIntentResponse\"\325" - + "\002\202\323\344\223\002\270\002\"6/v2/{session=projects/*/agent/" - + "sessions/*}:detectIntent:\001*ZR\"M/v2/{sess" - + "ion=projects/*/agent/environments/*/user" - + "s/*/sessions/*}:detectIntent:\001*ZG\"B/v2/{" - + "session=projects/*/locations/*/agent/ses" - + "sions/*}:detectIntent:\001*Z^\"Y/v2/{session" - + "=projects/*/locations/*/agent/environmen" - + "ts/*/users/*/sessions/*}:detectIntent:\001*" - + "\332A\023session,query_input\022\222\001\n\025StreamingDete" - + "ctIntent\0228.google.cloud.dialogflow.v2.St" - + "reamingDetectIntentRequest\0329.google.clou" - + "d.dialogflow.v2.StreamingDetectIntentRes" - + "ponse\"\000(\0010\001\032x\312A\031dialogflow.googleapis.co" - + "m\322AYhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/dialogflowB\360\003\n\036com.google.cloud.dialo" - + "gflow.v2B\014SessionProtoP\001ZDgoogle.golang." - + "org/genproto/googleapis/cloud/dialogflow" - + "/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Di" - + "alogflow.V2\352A\321\002\n!dialogflow.googleapis.c" - + "om/Session\022+projects/{project}/agent/ses" - + "sions/{session}\022Sprojects/{project}/agen" - + "t/environments/{environment}/users/{user" - + "}/sessions/{session}\022@projects/{project}" - + "/locations/{location}/agent/sessions/{se" - + "ssion}\022hprojects/{project}/locations/{lo" - + "cation}/agent/environments/{environment}" - + "/users/{user}/sessions/{session}b\006proto3" + + "all_required_params_present\030\005 \001(\010\022\034\n\024can" + + "cels_slot_filling\030\025 \001(\010\022\030\n\020fulfillment_t" + + "ext\030\006 \001(\t\022H\n\024fulfillment_messages\030\007 \003(\0132" + + "*.google.cloud.dialogflow.v2.Intent.Mess" + + "age\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017webhook_p" + + "ayload\030\t \001(\0132\027.google.protobuf.Struct\022<\n" + + "\017output_contexts\030\n \003(\0132#.google.cloud.di" + + "alogflow.v2.Context\0222\n\006intent\030\013 \001(\0132\".go" + + "ogle.cloud.dialogflow.v2.Intent\022#\n\033inten" + + "t_detection_confidence\030\014 \001(\002\0220\n\017diagnost" + + "ic_info\030\016 \001(\0132\027.google.protobuf.Struct\022V" + + "\n\031sentiment_analysis_result\030\021 \001(\01323.goog" + + "le.cloud.dialogflow.v2.SentimentAnalysis" + + "Result\"\234\003\n\034StreamingDetectIntentRequest\022" + + ":\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.goo" + + "gleapis.com/Session\022A\n\014query_params\030\002 \001(" + + "\0132+.google.cloud.dialogflow.v2.QueryPara" + + "meters\022@\n\013query_input\030\003 \001(\0132&.google.clo" + + "ud.dialogflow.v2.QueryInputB\003\340A\002\022\034\n\020sing" + + "le_utterance\030\004 \001(\010B\002\030\001\022J\n\023output_audio_c" + + "onfig\030\005 \001(\0132-.google.cloud.dialogflow.v2" + + ".OutputAudioConfig\022<\n\030output_audio_confi" + + "g_mask\030\007 \001(\0132\032.google.protobuf.FieldMask" + + "\022\023\n\013input_audio\030\006 \001(\014\"\325\002\n\035StreamingDetec" + + "tIntentResponse\022\023\n\013response_id\030\001 \001(\t\022R\n\022" + + "recognition_result\030\002 \001(\01326.google.cloud." + + "dialogflow.v2.StreamingRecognitionResult" + + "\022=\n\014query_result\030\003 \001(\0132\'.google.cloud.di" + + "alogflow.v2.QueryResult\022*\n\016webhook_statu" + + "s\030\004 \001(\0132\022.google.rpc.Status\022\024\n\014output_au" + + "dio\030\005 \001(\014\022J\n\023output_audio_config\030\006 \001(\0132-" + + ".google.cloud.dialogflow.v2.OutputAudioC" + + "onfig\"\206\003\n\032StreamingRecognitionResult\022X\n\014" + + "message_type\030\001 \001(\0162B.google.cloud.dialog" + + "flow.v2.StreamingRecognitionResult.Messa" + + "geType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010is_final\030\003" + + " \001(\010\022\022\n\nconfidence\030\004 \001(\002\022D\n\020speech_word_" + + "info\030\007 \003(\0132*.google.cloud.dialogflow.v2." + + "SpeechWordInfo\0224\n\021speech_end_offset\030\010 \001(" + + "\0132\031.google.protobuf.Duration\"X\n\013MessageT" + + "ype\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRA" + + "NSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\":" + + "\n\tTextInput\022\021\n\004text\030\001 \001(\tB\003\340A\002\022\032\n\rlangua" + + "ge_code\030\002 \001(\tB\003\340A\002\"h\n\nEventInput\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\022+\n\nparameters\030\002 \001(\0132\027.google" + + ".protobuf.Struct\022\032\n\rlanguage_code\030\003 \001(\tB" + + "\003\340A\002\"F\n\036SentimentAnalysisRequestConfig\022$" + + "\n\034analyze_query_text_sentiment\030\001 \001(\010\"^\n\027" + + "SentimentAnalysisResult\022C\n\024query_text_se" + + "ntiment\030\001 \001(\0132%.google.cloud.dialogflow." + + "v2.Sentiment\"-\n\tSentiment\022\r\n\005score\030\001 \001(\002" + + "\022\021\n\tmagnitude\030\002 \001(\0022\345\005\n\010Sessions\022\311\003\n\014Det" + + "ectIntent\022/.google.cloud.dialogflow.v2.D" + + "etectIntentRequest\0320.google.cloud.dialog" + + "flow.v2.DetectIntentResponse\"\325\002\202\323\344\223\002\270\002\"6" + + "/v2/{session=projects/*/agent/sessions/*" + + "}:detectIntent:\001*ZR\"M/v2/{session=projec" + + "ts/*/agent/environments/*/users/*/sessio" + + "ns/*}:detectIntent:\001*ZG\"B/v2/{session=pr" + + "ojects/*/locations/*/agent/sessions/*}:d" + + "etectIntent:\001*Z^\"Y/v2/{session=projects/" + + "*/locations/*/agent/environments/*/users" + + "/*/sessions/*}:detectIntent:\001*\332A\023session" + + ",query_input\022\222\001\n\025StreamingDetectIntent\0228" + + ".google.cloud.dialogflow.v2.StreamingDet" + + "ectIntentRequest\0329.google.cloud.dialogfl" + + "ow.v2.StreamingDetectIntentResponse\"\000(\0010" + + "\001\032x\312A\031dialogflow.googleapis.com\322AYhttps:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/dialogf" + + "lowB\360\003\n\036com.google.cloud.dialogflow.v2B\014" + + "SessionProtoP\001ZDgoogle.golang.org/genpro" + + "to/googleapis/cloud/dialogflow/v2;dialog" + + "flow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V" + + "2\352A\321\002\n!dialogflow.googleapis.com/Session" + + "\022+projects/{project}/agent/sessions/{ses" + + "sion}\022Sprojects/{project}/agent/environm" + + "ents/{environment}/users/{user}/sessions" + + "/{session}\022@projects/{project}/locations" + + "/{location}/agent/sessions/{session}\022hpr" + + "ojects/{project}/locations/{location}/ag" + + "ent/environments/{environment}/users/{us" + + "er}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -310,6 +311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Action", "Parameters", "AllRequiredParamsPresent", + "CancelsSlotFilling", "FulfillmentText", "FulfillmentMessages", "WebhookSource", diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index 45b1454e7..2398811ae 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -309,6 +309,10 @@ message QueryResult { // matched intent doesn't contain any required parameters. bool all_required_params_present = 5; + // Indicates whether the conversational query triggers a cancellation for slot + // filling. + bool cancels_slot_filling = 21; + // The text to be pronounced to the user or shown on the screen. // Note: This is a legacy field, `fulfillment_messages` should be preferred. string fulfillment_text = 6; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java index 1ca1a2c6d..2c57f2933 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java @@ -131,6 +131,26 @@ private AutomatedAgentReply( cxSessionParameters_ = subBuilder.buildPartial(); } + break; + } + case 77: + { + matchConfidence_ = input.readFloat(); + break; + } + case 82: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); + } + break; } default: @@ -536,6 +556,75 @@ public com.google.protobuf.ByteString getEventBytes() { } } + public static final int MATCH_CONFIDENCE_FIELD_NUMBER = 9; + private float matchConfidence_; + /** + * + * + *
+   * The confidence of the match. Values range from 0.0 (completely uncertain)
+   * to 1.0 (completely certain).
+   * This value is for informational purpose only and is only used to help match
+   * the best intent within the classification threshold. This value may change
+   * for the same end-user expression at any time due to a model retraining or
+   * change in implementation.
+   * 
+ * + * float match_confidence = 9; + * + * @return The matchConfidence. + */ + @java.lang.Override + public float getMatchConfidence() { + return matchConfidence_; + } + + public static final int PARAMETERS_FIELD_NUMBER = 10; + private com.google.protobuf.Struct parameters_; + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return parameters_ != null; + } + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return The parameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getParameters() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + return getParameters(); + } + public static final int CX_SESSION_PARAMETERS_FIELD_NUMBER = 6; private com.google.protobuf.Struct cxSessionParameters_; /** @@ -544,13 +633,15 @@ public com.google.protobuf.ByteString getEventBytes() { *
    * The collection of current Dialogflow CX agent session parameters at the
    * time of this response.
+   * Deprecated: Use `parameters` instead.
    * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @return Whether the cxSessionParameters field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasCxSessionParameters() { return cxSessionParameters_ != null; } @@ -560,13 +651,15 @@ public boolean hasCxSessionParameters() { *
    * The collection of current Dialogflow CX agent session parameters at the
    * time of this response.
+   * Deprecated: Use `parameters` instead.
    * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @return The cxSessionParameters. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.Struct getCxSessionParameters() { return cxSessionParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() @@ -578,11 +671,13 @@ public com.google.protobuf.Struct getCxSessionParameters() { *
    * The collection of current Dialogflow CX agent session parameters at the
    * time of this response.
+   * Deprecated: Use `parameters` instead.
    * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.StructOrBuilder getCxSessionParametersOrBuilder() { return getCxSessionParameters(); } @@ -616,6 +711,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cxSessionParameters_ != null) { output.writeMessage(6, getCxSessionParameters()); } + if (matchConfidence_ != 0F) { + output.writeFloat(9, matchConfidence_); + } + if (parameters_ != null) { + output.writeMessage(10, getParameters()); + } unknownFields.writeTo(output); } @@ -642,6 +743,12 @@ public int getSerializedSize() { if (cxSessionParameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCxSessionParameters()); } + if (matchConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, matchConfidence_); + } + if (parameters_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getParameters()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -659,6 +766,12 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply) obj; if (!getResponseMessagesList().equals(other.getResponseMessagesList())) return false; + if (java.lang.Float.floatToIntBits(getMatchConfidence()) + != java.lang.Float.floatToIntBits(other.getMatchConfidence())) return false; + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) return false; + } if (hasCxSessionParameters() != other.hasCxSessionParameters()) return false; if (hasCxSessionParameters()) { if (!getCxSessionParameters().equals(other.getCxSessionParameters())) return false; @@ -697,6 +810,12 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getResponseMessagesList().hashCode(); } + hash = (37 * hash) + MATCH_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMatchConfidence()); + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } if (hasCxSessionParameters()) { hash = (37 * hash) + CX_SESSION_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getCxSessionParameters().hashCode(); @@ -875,6 +994,14 @@ public Builder clear() { } else { responseMessagesBuilder_.clear(); } + matchConfidence_ = 0F; + + if (parametersBuilder_ == null) { + parameters_ = null; + } else { + parameters_ = null; + parametersBuilder_ = null; + } if (cxSessionParametersBuilder_ == null) { cxSessionParameters_ = null; } else { @@ -935,6 +1062,12 @@ public com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply buildPartial() { if (matchCase_ == 5) { result.match_ = match_; } + result.matchConfidence_ = matchConfidence_; + if (parametersBuilder_ == null) { + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } if (cxSessionParametersBuilder_ == null) { result.cxSessionParameters_ = cxSessionParameters_; } else { @@ -1019,6 +1152,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply } } } + if (other.getMatchConfidence() != 0F) { + setMatchConfidence(other.getMatchConfidence()); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } if (other.hasCxSessionParameters()) { mergeCxSessionParameters(other.getCxSessionParameters()); } @@ -1991,6 +2130,252 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { return this; } + private float matchConfidence_; + /** + * + * + *
+     * The confidence of the match. Values range from 0.0 (completely uncertain)
+     * to 1.0 (completely certain).
+     * This value is for informational purpose only and is only used to help match
+     * the best intent within the classification threshold. This value may change
+     * for the same end-user expression at any time due to a model retraining or
+     * change in implementation.
+     * 
+ * + * float match_confidence = 9; + * + * @return The matchConfidence. + */ + @java.lang.Override + public float getMatchConfidence() { + return matchConfidence_; + } + /** + * + * + *
+     * The confidence of the match. Values range from 0.0 (completely uncertain)
+     * to 1.0 (completely certain).
+     * This value is for informational purpose only and is only used to help match
+     * the best intent within the classification threshold. This value may change
+     * for the same end-user expression at any time due to a model retraining or
+     * change in implementation.
+     * 
+ * + * float match_confidence = 9; + * + * @param value The matchConfidence to set. + * @return This builder for chaining. + */ + public Builder setMatchConfidence(float value) { + + matchConfidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The confidence of the match. Values range from 0.0 (completely uncertain)
+     * to 1.0 (completely certain).
+     * This value is for informational purpose only and is only used to help match
+     * the best intent within the classification threshold. This value may change
+     * for the same end-user expression at any time due to a model retraining or
+     * change in implementation.
+     * 
+ * + * float match_confidence = 9; + * + * @return This builder for chaining. + */ + public Builder clearMatchConfidence() { + + matchConfidence_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Struct parameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + parametersBuilder_; + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return parametersBuilder_ != null || parameters_ != null; + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return The parameters. + */ + public com.google.protobuf.Struct getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder setParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + onChanged(); + } else { + parametersBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + onChanged(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder mergeParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (parameters_ != null) { + parameters_ = + com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); + } else { + parameters_ = value; + } + onChanged(); + } else { + parametersBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = null; + onChanged(); + } else { + parameters_ = null; + parametersBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public com.google.protobuf.Struct.Builder getParametersBuilder() { + + onChanged(); + return getParametersFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + } + /** + * + * + *
+     * The collection of current parameters at the time of this response.
+     * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + private com.google.protobuf.Struct cxSessionParameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, @@ -2003,12 +2388,14 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @return Whether the cxSessionParameters field is set. */ + @java.lang.Deprecated public boolean hasCxSessionParameters() { return cxSessionParametersBuilder_ != null || cxSessionParameters_ != null; } @@ -2018,12 +2405,14 @@ public boolean hasCxSessionParameters() { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @return The cxSessionParameters. */ + @java.lang.Deprecated public com.google.protobuf.Struct getCxSessionParameters() { if (cxSessionParametersBuilder_ == null) { return cxSessionParameters_ == null @@ -2039,10 +2428,12 @@ public com.google.protobuf.Struct getCxSessionParameters() { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ + @java.lang.Deprecated public Builder setCxSessionParameters(com.google.protobuf.Struct value) { if (cxSessionParametersBuilder_ == null) { if (value == null) { @@ -2062,10 +2453,12 @@ public Builder setCxSessionParameters(com.google.protobuf.Struct value) { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ + @java.lang.Deprecated public Builder setCxSessionParameters(com.google.protobuf.Struct.Builder builderForValue) { if (cxSessionParametersBuilder_ == null) { cxSessionParameters_ = builderForValue.build(); @@ -2082,10 +2475,12 @@ public Builder setCxSessionParameters(com.google.protobuf.Struct.Builder builder *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeCxSessionParameters(com.google.protobuf.Struct value) { if (cxSessionParametersBuilder_ == null) { if (cxSessionParameters_ != null) { @@ -2109,10 +2504,12 @@ public Builder mergeCxSessionParameters(com.google.protobuf.Struct value) { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearCxSessionParameters() { if (cxSessionParametersBuilder_ == null) { cxSessionParameters_ = null; @@ -2130,10 +2527,12 @@ public Builder clearCxSessionParameters() { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.Struct.Builder getCxSessionParametersBuilder() { onChanged(); @@ -2145,10 +2544,12 @@ public com.google.protobuf.Struct.Builder getCxSessionParametersBuilder() { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.StructOrBuilder getCxSessionParametersOrBuilder() { if (cxSessionParametersBuilder_ != null) { return cxSessionParametersBuilder_.getMessageOrBuilder(); @@ -2164,9 +2565,10 @@ public com.google.protobuf.StructOrBuilder getCxSessionParametersOrBuilder() { *
      * The collection of current Dialogflow CX agent session parameters at the
      * time of this response.
+     * Deprecated: Use `parameters` instead.
      * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java index ecab61c17..06c5070cb 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java @@ -198,18 +198,73 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages */ com.google.protobuf.ByteString getEventBytes(); + /** + * + * + *
+   * The confidence of the match. Values range from 0.0 (completely uncertain)
+   * to 1.0 (completely certain).
+   * This value is for informational purpose only and is only used to help match
+   * the best intent within the classification threshold. This value may change
+   * for the same end-user expression at any time due to a model retraining or
+   * change in implementation.
+   * 
+ * + * float match_confidence = 9; + * + * @return The matchConfidence. + */ + float getMatchConfidence(); + + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + * + * @return The parameters. + */ + com.google.protobuf.Struct getParameters(); + /** + * + * + *
+   * The collection of current parameters at the time of this response.
+   * 
+ * + * .google.protobuf.Struct parameters = 10; + */ + com.google.protobuf.StructOrBuilder getParametersOrBuilder(); + /** * * *
    * The collection of current Dialogflow CX agent session parameters at the
    * time of this response.
+   * Deprecated: Use `parameters` instead.
    * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @return Whether the cxSessionParameters field is set. */ + @java.lang.Deprecated boolean hasCxSessionParameters(); /** * @@ -217,12 +272,14 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages *
    * The collection of current Dialogflow CX agent session parameters at the
    * time of this response.
+   * Deprecated: Use `parameters` instead.
    * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @return The cxSessionParameters. */ + @java.lang.Deprecated com.google.protobuf.Struct getCxSessionParameters(); /** * @@ -230,10 +287,12 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages *
    * The collection of current Dialogflow CX agent session parameters at the
    * time of this response.
+   * Deprecated: Use `parameters` instead.
    * 
* - * .google.protobuf.Struct cx_session_parameters = 6; + * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; */ + @java.lang.Deprecated com.google.protobuf.StructOrBuilder getCxSessionParametersOrBuilder(); public com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.ResponseCase getResponseCase(); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java index 77647b375..39110d518 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java @@ -573,68 +573,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tch\0228\n\007intents\030\001 \003(\0132\'.google.cloud.dial" + "ogflow.v2beta1.Intent*?\n\nIntentView\022\033\n\027I" + "NTENT_VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT_VIEW_" - + "FULL\020\0012\330\021\n\007Intents\022\305\002\n\013ListIntents\0223.goo" + + "FULL\020\0012\241\022\n\007Intents\022\216\003\n\013ListIntents\0223.goo" + "gle.cloud.dialogflow.v2beta1.ListIntents" + "Request\0324.google.cloud.dialogflow.v2beta" - + "1.ListIntentsResponse\"\312\001\202\323\344\223\002\243\001\022*/v2beta" + + "1.ListIntentsResponse\"\223\002\202\323\344\223\002\354\001\022*/v2beta" + "1/{parent=projects/*/agent}/intentsZ8\0226/" + "v2beta1/{parent=projects/*/locations/*/a" + "gent}/intentsZ;\0229/v2beta1/{parent=projec" - + "ts/*/agent/environments/*}/intents\332A\006par" - + "ent\332A\024parent,language_code\022\362\001\n\tGetIntent" - + "\0221.google.cloud.dialogflow.v2beta1.GetIn" - + "tentRequest\032\'.google.cloud.dialogflow.v2" - + "beta1.Intent\"\210\001\202\323\344\223\002f\022*/v2beta1/{name=pr" - + "ojects/*/agent/intents/*}Z8\0226/v2beta1/{n" - + "ame=projects/*/locations/*/agent/intents" - + "/*}\332A\004name\332A\022name,language_code\022\232\002\n\014Crea" - + "teIntent\0224.google.cloud.dialogflow.v2bet" - + "a1.CreateIntentRequest\032\'.google.cloud.di" - + "alogflow.v2beta1.Intent\"\252\001\202\323\344\223\002v\"*/v2bet" - + "a1/{parent=projects/*/agent}/intents:\006in" - + "tentZ@\"6/v2beta1/{parent=projects/*/loca" - + "tions/*/agent}/intents:\006intent\332A\rparent," - + "intent\332A\033parent,intent,language_code\022\323\002\n" - + "\014UpdateIntent\0224.google.cloud.dialogflow." - + "v2beta1.UpdateIntentRequest\032\'.google.clo" - + "ud.dialogflow.v2beta1.Intent\"\343\001\202\323\344\223\002\204\00121" - + "/v2beta1/{intent.name=projects/*/agent/i" - + "ntents/*}:\006intentZG2=/v2beta1/{intent.na" - + "me=projects/*/locations/*/agent/intents/" - + "*}:\006intent\332A\022intent,update_mask\332A\006intent" - + "\332A\024intent,language_code\332A intent,languag" - + "e_code,update_mask\022\321\001\n\014DeleteIntent\0224.go" - + "ogle.cloud.dialogflow.v2beta1.DeleteInte" - + "ntRequest\032\026.google.protobuf.Empty\"s\202\323\344\223\002" - + "f**/v2beta1/{name=projects/*/agent/inten" - + "ts/*}Z8*6/v2beta1/{name=projects/*/locat" - + "ions/*/agent/intents/*}\332A\004name\022\213\003\n\022Batch" - + "UpdateIntents\022:.google.cloud.dialogflow." - + "v2beta1.BatchUpdateIntentsRequest\032\035.goog" - + "le.longrunning.Operation\"\231\002\202\323\344\223\002\204\001\"6/v2b" - + "eta1/{parent=projects/*/agent}/intents:b" - + "atchUpdate:\001*ZG\"B/v2beta1/{parent=projec" - + "ts/*/locations/*/agent}/intents:batchUpd" - + "ate:\001*\332A\027parent,intent_batch_uri\332A\032paren" - + "t,intent_batch_inline\312AT\n:google.cloud.d" - + "ialogflow.v2beta1.BatchUpdateIntentsResp" - + "onse\022\026google.protobuf.Struct\022\300\002\n\022BatchDe" - + "leteIntents\022:.google.cloud.dialogflow.v2" - + "beta1.BatchDeleteIntentsRequest\032\035.google" - + ".longrunning.Operation\"\316\001\202\323\344\223\002\204\001\"6/v2bet" - + "a1/{parent=projects/*/agent}/intents:bat" - + "chDelete:\001*ZG\"B/v2beta1/{parent=projects" - + "/*/locations/*/agent}/intents:batchDelet" - + "e:\001*\332A\016parent,intents\312A/\n\025google.protobu" - + "f.Empty\022\026google.protobuf.Struct\032x\312A\031dial" - + "ogflow.googleapis.com\322AYhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/dialogflowB\251\001\n#co" - + "m.google.cloud.dialogflow.v2beta1B\013Inten" - + "tProtoP\001ZIgoogle.golang.org/genproto/goo" - + "gleapis/cloud/dialogflow/v2beta1;dialogf" - + "low\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2" - + "beta1b\006proto3" + + "ts/*/agent/environments/*}/intentsZG\022E/v" + + "2beta1/{parent=projects/*/locations/*/ag" + + "ent/environments/*}/intents\332A\006parent\332A\024p" + + "arent,language_code\022\362\001\n\tGetIntent\0221.goog" + + "le.cloud.dialogflow.v2beta1.GetIntentReq" + + "uest\032\'.google.cloud.dialogflow.v2beta1.I" + + "ntent\"\210\001\202\323\344\223\002f\022*/v2beta1/{name=projects/" + + "*/agent/intents/*}Z8\0226/v2beta1/{name=pro" + + "jects/*/locations/*/agent/intents/*}\332A\004n" + + "ame\332A\022name,language_code\022\232\002\n\014CreateInten" + + "t\0224.google.cloud.dialogflow.v2beta1.Crea" + + "teIntentRequest\032\'.google.cloud.dialogflo" + + "w.v2beta1.Intent\"\252\001\202\323\344\223\002v\"*/v2beta1/{par" + + "ent=projects/*/agent}/intents:\006intentZ@\"" + + "6/v2beta1/{parent=projects/*/locations/*" + + "/agent}/intents:\006intent\332A\rparent,intent\332" + + "A\033parent,intent,language_code\022\323\002\n\014Update" + + "Intent\0224.google.cloud.dialogflow.v2beta1" + + ".UpdateIntentRequest\032\'.google.cloud.dial" + + "ogflow.v2beta1.Intent\"\343\001\202\323\344\223\002\204\00121/v2beta" + + "1/{intent.name=projects/*/agent/intents/" + + "*}:\006intentZG2=/v2beta1/{intent.name=proj" + + "ects/*/locations/*/agent/intents/*}:\006int" + + "ent\332A\022intent,update_mask\332A\006intent\332A\024inte" + + "nt,language_code\332A intent,language_code," + + "update_mask\022\321\001\n\014DeleteIntent\0224.google.cl" + + "oud.dialogflow.v2beta1.DeleteIntentReque" + + "st\032\026.google.protobuf.Empty\"s\202\323\344\223\002f**/v2b" + + "eta1/{name=projects/*/agent/intents/*}Z8" + + "*6/v2beta1/{name=projects/*/locations/*/" + + "agent/intents/*}\332A\004name\022\213\003\n\022BatchUpdateI" + + "ntents\022:.google.cloud.dialogflow.v2beta1" + + ".BatchUpdateIntentsRequest\032\035.google.long" + + "running.Operation\"\231\002\202\323\344\223\002\204\001\"6/v2beta1/{p" + + "arent=projects/*/agent}/intents:batchUpd" + + "ate:\001*ZG\"B/v2beta1/{parent=projects/*/lo" + + "cations/*/agent}/intents:batchUpdate:\001*\332" + + "A\027parent,intent_batch_uri\332A\032parent,inten" + + "t_batch_inline\312AT\n:google.cloud.dialogfl" + + "ow.v2beta1.BatchUpdateIntentsResponse\022\026g" + + "oogle.protobuf.Struct\022\300\002\n\022BatchDeleteInt" + + "ents\022:.google.cloud.dialogflow.v2beta1.B" + + "atchDeleteIntentsRequest\032\035.google.longru" + + "nning.Operation\"\316\001\202\323\344\223\002\204\001\"6/v2beta1/{par" + + "ent=projects/*/agent}/intents:batchDelet" + + "e:\001*ZG\"B/v2beta1/{parent=projects/*/loca" + + "tions/*/agent}/intents:batchDelete:\001*\332A\016" + + "parent,intents\312A/\n\025google.protobuf.Empty" + + "\022\026google.protobuf.Struct\032x\312A\031dialogflow." + + "googleapis.com\322AYhttps://www.googleapis." + + "com/auth/cloud-platform,https://www.goog" + + "leapis.com/auth/dialogflowB\251\001\n#com.googl" + + "e.cloud.dialogflow.v2beta1B\013IntentProtoP" + + "\001ZIgoogle.golang.org/genproto/googleapis" + + "/cloud/dialogflow/v2beta1;dialogflow\370\001\001\242" + + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java index f14bf4ea8..7dafd8f42 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java @@ -147,7 +147,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The agent to list all intents from.
-   * Format: `projects/<Project ID>/agent`.
+   * Format: `projects/<Project ID>/agent` or `projects/<Project
+   * ID>/locations/<Location ID>/agent`.
+   * Alternatively, you can specify the environment to list intents for.
+   * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+   * or `projects/<Project ID>/locations/<Location
+   * ID>/agent/environments/<Environment ID>`.
+   * Note: training phrases of the intents will not be returned for non-draft
+   * environment.
    * 
* * @@ -173,7 +180,14 @@ public java.lang.String getParent() { * *
    * Required. The agent to list all intents from.
-   * Format: `projects/<Project ID>/agent`.
+   * Format: `projects/<Project ID>/agent` or `projects/<Project
+   * ID>/locations/<Location ID>/agent`.
+   * Alternatively, you can specify the environment to list intents for.
+   * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+   * or `projects/<Project ID>/locations/<Location
+   * ID>/agent/environments/<Environment ID>`.
+   * Note: training phrases of the intents will not be returned for non-draft
+   * environment.
    * 
* * @@ -745,7 +759,14 @@ public Builder mergeFrom( * *
      * Required. The agent to list all intents from.
-     * Format: `projects/<Project ID>/agent`.
+     * Format: `projects/<Project ID>/agent` or `projects/<Project
+     * ID>/locations/<Location ID>/agent`.
+     * Alternatively, you can specify the environment to list intents for.
+     * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+     * or `projects/<Project ID>/locations/<Location
+     * ID>/agent/environments/<Environment ID>`.
+     * Note: training phrases of the intents will not be returned for non-draft
+     * environment.
      * 
* * @@ -770,7 +791,14 @@ public java.lang.String getParent() { * *
      * Required. The agent to list all intents from.
-     * Format: `projects/<Project ID>/agent`.
+     * Format: `projects/<Project ID>/agent` or `projects/<Project
+     * ID>/locations/<Location ID>/agent`.
+     * Alternatively, you can specify the environment to list intents for.
+     * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+     * or `projects/<Project ID>/locations/<Location
+     * ID>/agent/environments/<Environment ID>`.
+     * Note: training phrases of the intents will not be returned for non-draft
+     * environment.
      * 
* * @@ -795,7 +823,14 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The agent to list all intents from.
-     * Format: `projects/<Project ID>/agent`.
+     * Format: `projects/<Project ID>/agent` or `projects/<Project
+     * ID>/locations/<Location ID>/agent`.
+     * Alternatively, you can specify the environment to list intents for.
+     * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+     * or `projects/<Project ID>/locations/<Location
+     * ID>/agent/environments/<Environment ID>`.
+     * Note: training phrases of the intents will not be returned for non-draft
+     * environment.
      * 
* * @@ -819,7 +854,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The agent to list all intents from.
-     * Format: `projects/<Project ID>/agent`.
+     * Format: `projects/<Project ID>/agent` or `projects/<Project
+     * ID>/locations/<Location ID>/agent`.
+     * Alternatively, you can specify the environment to list intents for.
+     * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+     * or `projects/<Project ID>/locations/<Location
+     * ID>/agent/environments/<Environment ID>`.
+     * Note: training phrases of the intents will not be returned for non-draft
+     * environment.
      * 
* * @@ -839,7 +881,14 @@ public Builder clearParent() { * *
      * Required. The agent to list all intents from.
-     * Format: `projects/<Project ID>/agent`.
+     * Format: `projects/<Project ID>/agent` or `projects/<Project
+     * ID>/locations/<Location ID>/agent`.
+     * Alternatively, you can specify the environment to list intents for.
+     * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+     * or `projects/<Project ID>/locations/<Location
+     * ID>/agent/environments/<Environment ID>`.
+     * Note: training phrases of the intents will not be returned for non-draft
+     * environment.
      * 
* * diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java index 67d07ecd4..75b6d4a47 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java @@ -28,7 +28,14 @@ public interface ListIntentsRequestOrBuilder * *
    * Required. The agent to list all intents from.
-   * Format: `projects/<Project ID>/agent`.
+   * Format: `projects/<Project ID>/agent` or `projects/<Project
+   * ID>/locations/<Location ID>/agent`.
+   * Alternatively, you can specify the environment to list intents for.
+   * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+   * or `projects/<Project ID>/locations/<Location
+   * ID>/agent/environments/<Environment ID>`.
+   * Note: training phrases of the intents will not be returned for non-draft
+   * environment.
    * 
* * @@ -43,7 +50,14 @@ public interface ListIntentsRequestOrBuilder * *
    * Required. The agent to list all intents from.
-   * Format: `projects/<Project ID>/agent`.
+   * Format: `projects/<Project ID>/agent` or `projects/<Project
+   * ID>/locations/<Location ID>/agent`.
+   * Alternatively, you can specify the environment to list intents for.
+   * Format: `projects/<Project ID>/agent/environments/<Environment ID>`
+   * or `projects/<Project ID>/locations/<Location
+   * ID>/agent/environments/<Environment ID>`.
+   * Note: training phrases of the intents will not be returned for non-draft
+   * environment.
    * 
* * diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 2bebc5144..167f709c1 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -256,227 +256,229 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le.protobuf.FieldMaskB\003\340A\002\"`\n\013OutputAudi" + "o\022B\n\006config\030\001 \001(\01322.google.cloud.dialogf" + "low.v2beta1.OutputAudioConfig\022\r\n\005audio\030\002" - + " \001(\014\"\322\002\n\023AutomatedAgentReply\022W\n\026detect_i" + + " \001(\014\"\235\003\n\023AutomatedAgentReply\022W\n\026detect_i" + "ntent_response\030\001 \001(\01325.google.cloud.dial" + "ogflow.v2beta1.DetectIntentResponseH\000\022K\n" + "\021response_messages\030\003 \003(\01320.google.cloud." + "dialogflow.v2beta1.ResponseMessage\0227\n\006in" + "tent\030\004 \001(\tB%\372A\"\n dialogflow.googleapis.c" - + "om/IntentH\001\022\017\n\005event\030\005 \001(\tH\001\0226\n\025cx_sessi" - + "on_parameters\030\006 \001(\0132\027.google.protobuf.St" - + "ructB\n\n\010responseB\007\n\005match\"\252\001\n\021Suggestion" - + "Feature\022E\n\004type\030\001 \001(\01627.google.cloud.dia" - + "logflow.v2beta1.SuggestionFeature.Type\"N" - + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICLE_" - + "SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_REPLY\020\003\"\315" - + "\003\n\025AnalyzeContentRequest\022B\n\013participant\030" - + "\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.com" - + "/Participant\022@\n\ntext_input\030\006 \001(\0132*.googl" - + "e.cloud.dialogflow.v2beta1.TextInputH\000\022B" - + "\n\013event_input\030\010 \001(\0132+.google.cloud.dialo" - + "gflow.v2beta1.EventInputH\000\022N\n\022reply_audi" - + "o_config\030\005 \001(\01322.google.cloud.dialogflow" - + ".v2beta1.OutputAudioConfig\022F\n\014query_para" - + "ms\030\t \001(\01320.google.cloud.dialogflow.v2bet" - + "a1.QueryParameters\0225\n\021message_send_time\030" - + "\n \001(\0132\032.google.protobuf.Timestamp\022\022\n\nreq" - + "uest_id\030\013 \001(\tB\007\n\005input\",\n\016DtmfParameters" - + "\022\032\n\022accepts_dtmf_input\030\001 \001(\010\"\374\003\n\026Analyze" - + "ContentResponse\022\022\n\nreply_text\030\001 \001(\t\022A\n\013r" - + "eply_audio\030\002 \001(\0132,.google.cloud.dialogfl" - + "ow.v2beta1.OutputAudio\022S\n\025automated_agen" - + "t_reply\030\003 \001(\01324.google.cloud.dialogflow." - + "v2beta1.AutomatedAgentReply\0229\n\007message\030\005" - + " \001(\0132(.google.cloud.dialogflow.v2beta1.M" - + "essage\022Y\n\036human_agent_suggestion_results" - + "\030\006 \003(\01321.google.cloud.dialogflow.v2beta1" - + ".SuggestionResult\022V\n\033end_user_suggestion" - + "_results\030\007 \003(\01321.google.cloud.dialogflow" - + ".v2beta1.SuggestionResult\022H\n\017dtmf_parame" - + "ters\030\t \001(\0132/.google.cloud.dialogflow.v2b" - + "eta1.DtmfParameters\"j\n\024AnnotatedMessageP" - + "art\022\014\n\004text\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(\t\022/" - + "\n\017formatted_value\030\003 \001(\0132\026.google.protobu" - + "f.Value\"s\n\021MessageAnnotation\022D\n\005parts\030\001 " - + "\003(\01325.google.cloud.dialogflow.v2beta1.An" - + "notatedMessagePart\022\030\n\020contain_entities\030\002" - + " \001(\010\"\325\001\n\rArticleAnswer\022\r\n\005title\030\001 \001(\t\022\013\n" - + "\003uri\030\002 \001(\t\022\020\n\010snippets\030\003 \003(\t\022N\n\010metadata" - + "\030\005 \003(\0132<.google.cloud.dialogflow.v2beta1" - + ".ArticleAnswer.MetadataEntry\022\025\n\ranswer_r" - + "ecord\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\345\001\n\tFaqAnswer\022\016\n\006an" - + "swer\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\020\n\010questi" - + "on\030\003 \001(\t\022\016\n\006source\030\004 \001(\t\022J\n\010metadata\030\005 \003" - + "(\01328.google.cloud.dialogflow.v2beta1.Faq" - + "Answer.MetadataEntry\022\025\n\ranswer_record\030\006 " - + "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"L\n\020SmartReplyAnswer\022\r\n\005repl" - + "y\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\025\n\ranswer_re" - + "cord\030\003 \001(\t\"\371\002\n\020SuggestionResult\022#\n\005error" - + "\030\001 \001(\0132\022.google.rpc.StatusH\000\022]\n\031suggest_" - + "articles_response\030\002 \001(\01328.google.cloud.d" - + "ialogflow.v2beta1.SuggestArticlesRespons" - + "eH\000\022b\n\034suggest_faq_answers_response\030\003 \001(" - + "\0132:.google.cloud.dialogflow.v2beta1.Sugg" - + "estFaqAnswersResponseH\000\022f\n\036suggest_smart" - + "_replies_response\030\004 \001(\0132<.google.cloud.d" - + "ialogflow.v2beta1.SuggestSmartRepliesRes" - + "ponseH\000B\025\n\023suggestion_response\"\265\001\n\026Sugge" - + "stArticlesRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A" - + "\'\n%dialogflow.googleapis.com/Participant" - + "\022A\n\016latest_message\030\002 \001(\tB)\340A\001\372A#\n!dialog" - + "flow.googleapis.com/Message\022\031\n\014context_s" - + "ize\030\003 \001(\005B\003\340A\001\"\220\001\n\027SuggestArticlesRespon" - + "se\022G\n\017article_answers\030\001 \003(\0132..google.clo" - + "ud.dialogflow.v2beta1.ArticleAnswer\022\026\n\016l" - + "atest_message\030\002 \001(\t\022\024\n\014context_size\030\003 \001(" - + "\005\"\267\001\n\030SuggestFaqAnswersRequest\022=\n\006parent" - + "\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.co" - + "m/Participant\022A\n\016latest_message\030\002 \001(\tB)\340" - + "A\001\372A#\n!dialogflow.googleapis.com/Message" - + "\022\031\n\014context_size\030\003 \001(\005B\003\340A\001\"\212\001\n\031SuggestF" - + "aqAnswersResponse\022?\n\013faq_answers\030\001 \003(\0132*" - + ".google.cloud.dialogflow.v2beta1.FaqAnsw" - + "er\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014context_si" - + "ze\030\003 \001(\005\"\371\001\n\032SuggestSmartRepliesRequest\022" - + "=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.goog" - + "leapis.com/Participant\022F\n\022current_text_i" - + "nput\030\004 \001(\0132*.google.cloud.dialogflow.v2b" - + "eta1.TextInput\022>\n\016latest_message\030\002 \001(\tB&" - + "\372A#\n!dialogflow.googleapis.com/Message\022\024" - + "\n\014context_size\030\003 \001(\005\"\233\001\n\033SuggestSmartRep" - + "liesResponse\022N\n\023smart_reply_answers\030\001 \003(" - + "\01321.google.cloud.dialogflow.v2beta1.Smar" - + "tReplyAnswer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014" - + "context_size\030\003 \001(\005\"\304\005\n\nSuggestion\022\014\n\004nam" - + "e\030\001 \001(\t\022E\n\010articles\030\002 \003(\01323.google.cloud" - + ".dialogflow.v2beta1.Suggestion.Article\022J" - + "\n\013faq_answers\030\004 \003(\01325.google.cloud.dialo" - + "gflow.v2beta1.Suggestion.FaqAnswer\022/\n\013cr" - + "eate_time\030\005 \001(\0132\032.google.protobuf.Timest" - + "amp\022\026\n\016latest_message\030\007 \001(\t\032\324\001\n\007Article\022" - + "\r\n\005title\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010snippets\030" - + "\003 \003(\t\022S\n\010metadata\030\005 \003(\0132A.google.cloud.d" - + "ialogflow.v2beta1.Suggestion.Article.Met" - + "adataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMet" - + "adataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\032\360\001\n\tFaqAnswer\022\016\n\006answer\030\001 \001(\t\022\022\n\nconf" - + "idence\030\002 \001(\002\022\020\n\010question\030\003 \001(\t\022\016\n\006source" - + "\030\004 \001(\t\022U\n\010metadata\030\005 \003(\0132C.google.cloud." - + "dialogflow.v2beta1.Suggestion.FaqAnswer." - + "MetadataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\r" - + "MetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:\002\030\001\"c\n\026ListSuggestionsRequest\022\016\n\006p" - + "arent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t:\002\030\001\"x\n\027ListSu" - + "ggestionsResponse\022@\n\013suggestions\030\001 \003(\0132+" - + ".google.cloud.dialogflow.v2beta1.Suggest" - + "ion\022\027\n\017next_page_token\030\002 \001(\t:\002\030\001\"\\\n\030Comp" - + "ileSuggestionRequest\022\016\n\006parent\030\001 \001(\t\022\026\n\016" - + "latest_message\030\002 \001(\t\022\024\n\014context_size\030\003 \001" - + "(\005:\002\030\001\"\216\001\n\031CompileSuggestionResponse\022?\n\n" - + "suggestion\030\001 \001(\0132+.google.cloud.dialogfl" - + "ow.v2beta1.Suggestion\022\026\n\016latest_message\030" - + "\002 \001(\t\022\024\n\014context_size\030\003 \001(\005:\002\030\001\"\263\003\n\017Resp" - + "onseMessage\022E\n\004text\030\001 \001(\01325.google.cloud" - + ".dialogflow.v2beta1.ResponseMessage.Text" - + "H\000\022*\n\007payload\030\002 \001(\0132\027.google.protobuf.St" - + "ructH\000\022_\n\022live_agent_handoff\030\003 \001(\0132A.goo" - + "gle.cloud.dialogflow.v2beta1.ResponseMes" - + "sage.LiveAgentHandoffH\000\022Z\n\017end_interacti" - + "on\030\004 \001(\0132?.google.cloud.dialogflow.v2bet" - + "a1.ResponseMessage.EndInteractionH\000\032\024\n\004T" - + "ext\022\014\n\004text\030\001 \003(\t\032=\n\020LiveAgentHandoff\022)\n" - + "\010metadata\030\001 \001(\0132\027.google.protobuf.Struct" - + "\032\020\n\016EndInteractionB\t\n\007message2\310\031\n\014Partic" - + "ipants\022\271\002\n\021CreateParticipant\0229.google.cl" - + "oud.dialogflow.v2beta1.CreateParticipant" - + "Request\032,.google.cloud.dialogflow.v2beta" - + "1.Participant\"\272\001\202\323\344\223\002\236\001\"9/v2beta1/{paren" - + "t=projects/*/conversations/*}/participan" - + "ts:\013participantZT\"E/v2beta1/{parent=proj" - + "ects/*/locations/*/conversations/*}/part" - + "icipants:\013participant\332A\022parent,participa" - + "nt\022\213\002\n\016GetParticipant\0226.google.cloud.dia" - + "logflow.v2beta1.GetParticipantRequest\032,." - + "google.cloud.dialogflow.v2beta1.Particip" - + "ant\"\222\001\202\323\344\223\002\204\001\0229/v2beta1/{name=projects/*" - + "/conversations/*/participants/*}ZG\022E/v2b" - + "eta1/{name=projects/*/locations/*/conver" - + "sations/*/participants/*}\332A\004name\022\236\002\n\020Lis" - + "tParticipants\0228.google.cloud.dialogflow." - + "v2beta1.ListParticipantsRequest\0329.google" - + ".cloud.dialogflow.v2beta1.ListParticipan" - + "tsResponse\"\224\001\202\323\344\223\002\204\001\0229/v2beta1/{parent=p" - + "rojects/*/conversations/*}/participantsZ" - + "G\022E/v2beta1/{parent=projects/*/locations" - + "/*/conversations/*}/participants\332A\006paren" - + "t\022\326\002\n\021UpdateParticipant\0229.google.cloud.d" - + "ialogflow.v2beta1.UpdateParticipantReque" + + "om/IntentH\001\022\017\n\005event\030\005 \001(\tH\001\022\030\n\020match_co" + + "nfidence\030\t \001(\002\022+\n\nparameters\030\n \001(\0132\027.goo" + + "gle.protobuf.Struct\022:\n\025cx_session_parame" + + "ters\030\006 \001(\0132\027.google.protobuf.StructB\002\030\001B" + + "\n\n\010responseB\007\n\005match\"\252\001\n\021SuggestionFeatu" + + "re\022E\n\004type\030\001 \001(\01627.google.cloud.dialogfl" + + "ow.v2beta1.SuggestionFeature.Type\"N\n\004Typ" + + "e\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICLE_SUGGE" + + "STION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_REPLY\020\003\"\315\003\n\025An" + + "alyzeContentRequest\022B\n\013participant\030\001 \001(\t" + + "B-\340A\002\372A\'\n%dialogflow.googleapis.com/Part" + + "icipant\022@\n\ntext_input\030\006 \001(\0132*.google.clo" + + "ud.dialogflow.v2beta1.TextInputH\000\022B\n\013eve" + + "nt_input\030\010 \001(\0132+.google.cloud.dialogflow" + + ".v2beta1.EventInputH\000\022N\n\022reply_audio_con" + + "fig\030\005 \001(\01322.google.cloud.dialogflow.v2be" + + "ta1.OutputAudioConfig\022F\n\014query_params\030\t " + + "\001(\01320.google.cloud.dialogflow.v2beta1.Qu" + + "eryParameters\0225\n\021message_send_time\030\n \001(\013" + + "2\032.google.protobuf.Timestamp\022\022\n\nrequest_" + + "id\030\013 \001(\tB\007\n\005input\",\n\016DtmfParameters\022\032\n\022a" + + "ccepts_dtmf_input\030\001 \001(\010\"\374\003\n\026AnalyzeConte" + + "ntResponse\022\022\n\nreply_text\030\001 \001(\t\022A\n\013reply_" + + "audio\030\002 \001(\0132,.google.cloud.dialogflow.v2" + + "beta1.OutputAudio\022S\n\025automated_agent_rep" + + "ly\030\003 \001(\01324.google.cloud.dialogflow.v2bet" + + "a1.AutomatedAgentReply\0229\n\007message\030\005 \001(\0132" + + "(.google.cloud.dialogflow.v2beta1.Messag" + + "e\022Y\n\036human_agent_suggestion_results\030\006 \003(" + + "\01321.google.cloud.dialogflow.v2beta1.Sugg" + + "estionResult\022V\n\033end_user_suggestion_resu" + + "lts\030\007 \003(\01321.google.cloud.dialogflow.v2be" + + "ta1.SuggestionResult\022H\n\017dtmf_parameters\030" + + "\t \001(\0132/.google.cloud.dialogflow.v2beta1." + + "DtmfParameters\"j\n\024AnnotatedMessagePart\022\014" + + "\n\004text\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(\t\022/\n\017for" + + "matted_value\030\003 \001(\0132\026.google.protobuf.Val" + + "ue\"s\n\021MessageAnnotation\022D\n\005parts\030\001 \003(\01325" + + ".google.cloud.dialogflow.v2beta1.Annotat" + + "edMessagePart\022\030\n\020contain_entities\030\002 \001(\010\"" + + "\325\001\n\rArticleAnswer\022\r\n\005title\030\001 \001(\t\022\013\n\003uri\030" + + "\002 \001(\t\022\020\n\010snippets\030\003 \003(\t\022N\n\010metadata\030\005 \003(" + + "\0132<.google.cloud.dialogflow.v2beta1.Arti" + + "cleAnswer.MetadataEntry\022\025\n\ranswer_record" + + "\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\345\001\n\tFaqAnswer\022\016\n\006answer\030" + + "\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\020\n\010question\030\003 " + + "\001(\t\022\016\n\006source\030\004 \001(\t\022J\n\010metadata\030\005 \003(\01328." + + "google.cloud.dialogflow.v2beta1.FaqAnswe" + + "r.MetadataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/" + + "\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"L\n\020SmartReplyAnswer\022\r\n\005reply\030\001 \001" + + "(\t\022\022\n\nconfidence\030\002 \001(\002\022\025\n\ranswer_record\030" + + "\003 \001(\t\"\371\002\n\020SuggestionResult\022#\n\005error\030\001 \001(" + + "\0132\022.google.rpc.StatusH\000\022]\n\031suggest_artic" + + "les_response\030\002 \001(\01328.google.cloud.dialog" + + "flow.v2beta1.SuggestArticlesResponseH\000\022b" + + "\n\034suggest_faq_answers_response\030\003 \001(\0132:.g" + + "oogle.cloud.dialogflow.v2beta1.SuggestFa" + + "qAnswersResponseH\000\022f\n\036suggest_smart_repl" + + "ies_response\030\004 \001(\0132<.google.cloud.dialog" + + "flow.v2beta1.SuggestSmartRepliesResponse" + + "H\000B\025\n\023suggestion_response\"\265\001\n\026SuggestArt" + + "iclesRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%di" + + "alogflow.googleapis.com/Participant\022A\n\016l" + + "atest_message\030\002 \001(\tB)\340A\001\372A#\n!dialogflow." + + "googleapis.com/Message\022\031\n\014context_size\030\003" + + " \001(\005B\003\340A\001\"\220\001\n\027SuggestArticlesResponse\022G\n" + + "\017article_answers\030\001 \003(\0132..google.cloud.di" + + "alogflow.v2beta1.ArticleAnswer\022\026\n\016latest" + + "_message\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005\"\267\001\n" + + "\030SuggestFaqAnswersRequest\022=\n\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\n%dialogflow.googleapis.com/Par" + + "ticipant\022A\n\016latest_message\030\002 \001(\tB)\340A\001\372A#" + + "\n!dialogflow.googleapis.com/Message\022\031\n\014c" + + "ontext_size\030\003 \001(\005B\003\340A\001\"\212\001\n\031SuggestFaqAns" + + "wersResponse\022?\n\013faq_answers\030\001 \003(\0132*.goog" + + "le.cloud.dialogflow.v2beta1.FaqAnswer\022\026\n" + + "\016latest_message\030\002 \001(\t\022\024\n\014context_size\030\003 " + + "\001(\005\"\371\001\n\032SuggestSmartRepliesRequest\022=\n\006pa" + + "rent\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapi" + + "s.com/Participant\022F\n\022current_text_input\030" + + "\004 \001(\0132*.google.cloud.dialogflow.v2beta1." + + "TextInput\022>\n\016latest_message\030\002 \001(\tB&\372A#\n!" + + "dialogflow.googleapis.com/Message\022\024\n\014con" + + "text_size\030\003 \001(\005\"\233\001\n\033SuggestSmartRepliesR" + + "esponse\022N\n\023smart_reply_answers\030\001 \003(\01321.g" + + "oogle.cloud.dialogflow.v2beta1.SmartRepl" + + "yAnswer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014conte" + + "xt_size\030\003 \001(\005\"\304\005\n\nSuggestion\022\014\n\004name\030\001 \001" + + "(\t\022E\n\010articles\030\002 \003(\01323.google.cloud.dial" + + "ogflow.v2beta1.Suggestion.Article\022J\n\013faq" + + "_answers\030\004 \003(\01325.google.cloud.dialogflow" + + ".v2beta1.Suggestion.FaqAnswer\022/\n\013create_" + + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\022\026" + + "\n\016latest_message\030\007 \001(\t\032\324\001\n\007Article\022\r\n\005ti" + + "tle\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010snippets\030\003 \003(\t" + + "\022S\n\010metadata\030\005 \003(\0132A.google.cloud.dialog" + + "flow.v2beta1.Suggestion.Article.Metadata" + + "Entry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMetadata" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\360\001" + + "\n\tFaqAnswer\022\016\n\006answer\030\001 \001(\t\022\022\n\nconfidenc" + + "e\030\002 \001(\002\022\020\n\010question\030\003 \001(\t\022\016\n\006source\030\004 \001(" + + "\t\022U\n\010metadata\030\005 \003(\0132C.google.cloud.dialo" + + "gflow.v2beta1.Suggestion.FaqAnswer.Metad" + + "ataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMetad" + + "ataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":\002\030\001\"c\n\026ListSuggestionsRequest\022\016\n\006parent" + + "\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\022\016\n\006filter\030\004 \001(\t:\002\030\001\"x\n\027ListSuggest" + + "ionsResponse\022@\n\013suggestions\030\001 \003(\0132+.goog" + + "le.cloud.dialogflow.v2beta1.Suggestion\022\027" + + "\n\017next_page_token\030\002 \001(\t:\002\030\001\"\\\n\030CompileSu" + + "ggestionRequest\022\016\n\006parent\030\001 \001(\t\022\026\n\016lates" + + "t_message\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005:\002\030" + + "\001\"\216\001\n\031CompileSuggestionResponse\022?\n\nsugge" + + "stion\030\001 \001(\0132+.google.cloud.dialogflow.v2" + + "beta1.Suggestion\022\026\n\016latest_message\030\002 \001(\t" + + "\022\024\n\014context_size\030\003 \001(\005:\002\030\001\"\263\003\n\017ResponseM" + + "essage\022E\n\004text\030\001 \001(\01325.google.cloud.dial" + + "ogflow.v2beta1.ResponseMessage.TextH\000\022*\n" + + "\007payload\030\002 \001(\0132\027.google.protobuf.StructH" + + "\000\022_\n\022live_agent_handoff\030\003 \001(\0132A.google.c" + + "loud.dialogflow.v2beta1.ResponseMessage." + + "LiveAgentHandoffH\000\022Z\n\017end_interaction\030\004 " + + "\001(\0132?.google.cloud.dialogflow.v2beta1.Re" + + "sponseMessage.EndInteractionH\000\032\024\n\004Text\022\014" + + "\n\004text\030\001 \003(\t\032=\n\020LiveAgentHandoff\022)\n\010meta" + + "data\030\001 \001(\0132\027.google.protobuf.Struct\032\020\n\016E" + + "ndInteractionB\t\n\007message2\310\031\n\014Participant" + + "s\022\271\002\n\021CreateParticipant\0229.google.cloud.d" + + "ialogflow.v2beta1.CreateParticipantReque" + "st\032,.google.cloud.dialogflow.v2beta1.Par" - + "ticipant\"\327\001\202\323\344\223\002\266\0012E/v2beta1/{participan" - + "t.name=projects/*/conversations/*/partic" - + "ipants/*}:\013participantZ`2Q/v2beta1/{part" - + "icipant.name=projects/*/locations/*/conv" - + "ersations/*/participants/*}:\013participant" - + "\332A\027participant,update_mask\022\364\002\n\016AnalyzeCo" - + "ntent\0226.google.cloud.dialogflow.v2beta1." - + "AnalyzeContentRequest\0327.google.cloud.dia" - + "logflow.v2beta1.AnalyzeContentResponse\"\360" - + "\001\202\323\344\223\002\266\001\"O/v2beta1/{participant=projects" - + "/*/conversations/*/participants/*}:analy" - + "zeContent:\001*Z`\"[/v2beta1/{participant=pr" - + "ojects/*/locations/*/conversations/*/par" - + "ticipants/*}:analyzeContent:\001*\332A\026partici" - + "pant,text_input\332A\027participant,event_inpu" - + "t\022\335\002\n\017SuggestArticles\0227.google.cloud.dia" - + "logflow.v2beta1.SuggestArticlesRequest\0328" - + ".google.cloud.dialogflow.v2beta1.Suggest" - + "ArticlesResponse\"\326\001\202\323\344\223\002\306\001\"W/v2beta1/{pa" - + "rent=projects/*/conversations/*/particip" - + "ants/*}/suggestions:suggestArticles:\001*Zh" - + "\"c/v2beta1/{parent=projects/*/locations/" - + "*/conversations/*/participants/*}/sugges" - + "tions:suggestArticles:\001*\332A\006parent\022\347\002\n\021Su" - + "ggestFaqAnswers\0229.google.cloud.dialogflo" - + "w.v2beta1.SuggestFaqAnswersRequest\032:.goo" - + "gle.cloud.dialogflow.v2beta1.SuggestFaqA" - + "nswersResponse\"\332\001\202\323\344\223\002\312\001\"Y/v2beta1/{pare" - + "nt=projects/*/conversations/*/participan" - + "ts/*}/suggestions:suggestFaqAnswers:\001*Zj" - + "\"e/v2beta1/{parent=projects/*/locations/" - + "*/conversations/*/participants/*}/sugges" - + "tions:suggestFaqAnswers:\001*\332A\006parent\022\361\002\n\023" - + "SuggestSmartReplies\022;.google.cloud.dialo" - + "gflow.v2beta1.SuggestSmartRepliesRequest" - + "\032<.google.cloud.dialogflow.v2beta1.Sugge" - + "stSmartRepliesResponse\"\336\001\202\323\344\223\002\316\001\"[/v2bet" - + "a1/{parent=projects/*/conversations/*/pa" - + "rticipants/*}/suggestions:suggestSmartRe" - + "plies:\001*Zl\"g/v2beta1/{parent=projects/*/" - + "locations/*/conversations/*/participants" - + "/*}/suggestions:suggestSmartReplies:\001*\332A" - + "\006parent\022\330\001\n\017ListSuggestions\0227.google.clo" - + "ud.dialogflow.v2beta1.ListSuggestionsReq" - + "uest\0328.google.cloud.dialogflow.v2beta1.L" - + "istSuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2be" - + "ta1/{parent=projects/*/conversations/*/p" - + "articipants/*}/suggestions\022\351\001\n\021CompileSu" - + "ggestion\0229.google.cloud.dialogflow.v2bet" - + "a1.CompileSuggestionRequest\032:.google.clo" - + "ud.dialogflow.v2beta1.CompileSuggestionR" - + "esponse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=pro" - + "jects/*/conversations/*/participants/*}/" - + "suggestions:compile:\001*\032x\312A\031dialogflow.go" - + "ogleapis.com\322AYhttps://www.googleapis.co" - + "m/auth/cloud-platform,https://www.google" - + "apis.com/auth/dialogflowB\256\001\n#com.google." - + "cloud.dialogflow.v2beta1B\020ParticipantPro" - + "toP\001ZIgoogle.golang.org/genproto/googlea" - + "pis/cloud/dialogflow/v2beta1;dialogflow\370" - + "\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta" - + "1b\006proto3" + + "ticipant\"\272\001\202\323\344\223\002\236\001\"9/v2beta1/{parent=pro" + + "jects/*/conversations/*}/participants:\013p" + + "articipantZT\"E/v2beta1/{parent=projects/" + + "*/locations/*/conversations/*}/participa" + + "nts:\013participant\332A\022parent,participant\022\213\002" + + "\n\016GetParticipant\0226.google.cloud.dialogfl" + + "ow.v2beta1.GetParticipantRequest\032,.googl" + + "e.cloud.dialogflow.v2beta1.Participant\"\222" + + "\001\202\323\344\223\002\204\001\0229/v2beta1/{name=projects/*/conv" + + "ersations/*/participants/*}ZG\022E/v2beta1/" + + "{name=projects/*/locations/*/conversatio" + + "ns/*/participants/*}\332A\004name\022\236\002\n\020ListPart" + + "icipants\0228.google.cloud.dialogflow.v2bet" + + "a1.ListParticipantsRequest\0329.google.clou" + + "d.dialogflow.v2beta1.ListParticipantsRes" + + "ponse\"\224\001\202\323\344\223\002\204\001\0229/v2beta1/{parent=projec" + + "ts/*/conversations/*}/participantsZG\022E/v" + + "2beta1/{parent=projects/*/locations/*/co" + + "nversations/*}/participants\332A\006parent\022\326\002\n" + + "\021UpdateParticipant\0229.google.cloud.dialog" + + "flow.v2beta1.UpdateParticipantRequest\032,." + + "google.cloud.dialogflow.v2beta1.Particip" + + "ant\"\327\001\202\323\344\223\002\266\0012E/v2beta1/{participant.nam" + + "e=projects/*/conversations/*/participant" + + "s/*}:\013participantZ`2Q/v2beta1/{participa" + + "nt.name=projects/*/locations/*/conversat" + + "ions/*/participants/*}:\013participant\332A\027pa" + + "rticipant,update_mask\022\364\002\n\016AnalyzeContent" + + "\0226.google.cloud.dialogflow.v2beta1.Analy" + + "zeContentRequest\0327.google.cloud.dialogfl" + + "ow.v2beta1.AnalyzeContentResponse\"\360\001\202\323\344\223" + + "\002\266\001\"O/v2beta1/{participant=projects/*/co" + + "nversations/*/participants/*}:analyzeCon" + + "tent:\001*Z`\"[/v2beta1/{participant=project" + + "s/*/locations/*/conversations/*/particip" + + "ants/*}:analyzeContent:\001*\332A\026participant," + + "text_input\332A\027participant,event_input\022\335\002\n" + + "\017SuggestArticles\0227.google.cloud.dialogfl" + + "ow.v2beta1.SuggestArticlesRequest\0328.goog" + + "le.cloud.dialogflow.v2beta1.SuggestArtic" + + "lesResponse\"\326\001\202\323\344\223\002\306\001\"W/v2beta1/{parent=" + + "projects/*/conversations/*/participants/" + + "*}/suggestions:suggestArticles:\001*Zh\"c/v2" + + "beta1/{parent=projects/*/locations/*/con" + + "versations/*/participants/*}/suggestions" + + ":suggestArticles:\001*\332A\006parent\022\347\002\n\021Suggest" + + "FaqAnswers\0229.google.cloud.dialogflow.v2b" + + "eta1.SuggestFaqAnswersRequest\032:.google.c" + + "loud.dialogflow.v2beta1.SuggestFaqAnswer" + + "sResponse\"\332\001\202\323\344\223\002\312\001\"Y/v2beta1/{parent=pr" + + "ojects/*/conversations/*/participants/*}" + + "/suggestions:suggestFaqAnswers:\001*Zj\"e/v2" + + "beta1/{parent=projects/*/locations/*/con" + + "versations/*/participants/*}/suggestions" + + ":suggestFaqAnswers:\001*\332A\006parent\022\361\002\n\023Sugge" + + "stSmartReplies\022;.google.cloud.dialogflow" + + ".v2beta1.SuggestSmartRepliesRequest\032<.go" + + "ogle.cloud.dialogflow.v2beta1.SuggestSma" + + "rtRepliesResponse\"\336\001\202\323\344\223\002\316\001\"[/v2beta1/{p" + + "arent=projects/*/conversations/*/partici" + + "pants/*}/suggestions:suggestSmartReplies" + + ":\001*Zl\"g/v2beta1/{parent=projects/*/locat" + + "ions/*/conversations/*/participants/*}/s" + + "uggestions:suggestSmartReplies:\001*\332A\006pare" + + "nt\022\330\001\n\017ListSuggestions\0227.google.cloud.di" + + "alogflow.v2beta1.ListSuggestionsRequest\032" + + "8.google.cloud.dialogflow.v2beta1.ListSu" + + "ggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/{" + + "parent=projects/*/conversations/*/partic" + + "ipants/*}/suggestions\022\351\001\n\021CompileSuggest" + + "ion\0229.google.cloud.dialogflow.v2beta1.Co" + + "mpileSuggestionRequest\032:.google.cloud.di" + + "alogflow.v2beta1.CompileSuggestionRespon" + + "se\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=projects" + + "/*/conversations/*/participants/*}/sugge" + + "stions:compile:\001*\032x\312A\031dialogflow.googlea" + + "pis.com\322AYhttps://www.googleapis.com/aut" + + "h/cloud-platform,https://www.googleapis." + + "com/auth/dialogflowB\256\001\n#com.google.cloud" + + ".dialogflow.v2beta1B\020ParticipantProtoP\001Z" + + "Igoogle.golang.org/genproto/googleapis/c" + + "loud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002" + + "DF\252\002\037Google.Cloud.Dialogflow.V2beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -578,6 +580,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResponseMessages", "Intent", "Event", + "MatchConfidence", + "Parameters", "CxSessionParameters", "Response", "Match", diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java index ae73532a6..1db54a348 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java @@ -245,6 +245,11 @@ private QueryResult( knowledgeAnswers_ = subBuilder.buildPartial(); } + break; + } + case 168: + { + cancelsSlotFilling_ = input.readBool(); break; } default: @@ -586,6 +591,25 @@ public boolean getAllRequiredParamsPresent() { return allRequiredParamsPresent_; } + public static final int CANCELS_SLOT_FILLING_FIELD_NUMBER = 21; + private boolean cancelsSlotFilling_; + /** + * + * + *
+   * Indicates whether the conversational query triggers a cancellation for slot
+   * filling.
+   * 
+ * + * bool cancels_slot_filling = 21; + * + * @return The cancelsSlotFilling. + */ + @java.lang.Override + public boolean getCancelsSlotFilling() { + return cancelsSlotFilling_; + } + public static final int FULFILLMENT_TEXT_FIELD_NUMBER = 6; private volatile java.lang.Object fulfillmentText_; /** @@ -1206,6 +1230,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (knowledgeAnswers_ != null) { output.writeMessage(18, getKnowledgeAnswers()); } + if (cancelsSlotFilling_ != false) { + output.writeBool(21, cancelsSlotFilling_); + } unknownFields.writeTo(output); } @@ -1268,6 +1295,9 @@ public int getSerializedSize() { if (knowledgeAnswers_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getKnowledgeAnswers()); } + if (cancelsSlotFilling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, cancelsSlotFilling_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1294,6 +1324,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParameters().equals(other.getParameters())) return false; } if (getAllRequiredParamsPresent() != other.getAllRequiredParamsPresent()) return false; + if (getCancelsSlotFilling() != other.getCancelsSlotFilling()) return false; if (!getFulfillmentText().equals(other.getFulfillmentText())) return false; if (!getFulfillmentMessagesList().equals(other.getFulfillmentMessagesList())) return false; if (!getWebhookSource().equals(other.getWebhookSource())) return false; @@ -1345,6 +1376,8 @@ public int hashCode() { } hash = (37 * hash) + ALL_REQUIRED_PARAMS_PRESENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllRequiredParamsPresent()); + hash = (37 * hash) + CANCELS_SLOT_FILLING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelsSlotFilling()); hash = (37 * hash) + FULFILLMENT_TEXT_FIELD_NUMBER; hash = (53 * hash) + getFulfillmentText().hashCode(); if (getFulfillmentMessagesCount() > 0) { @@ -1543,6 +1576,8 @@ public Builder clear() { } allRequiredParamsPresent_ = false; + cancelsSlotFilling_ = false; + fulfillmentText_ = ""; if (fulfillmentMessagesBuilder_ == null) { @@ -1629,6 +1664,7 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult buildPartial() { result.parameters_ = parametersBuilder_.build(); } result.allRequiredParamsPresent_ = allRequiredParamsPresent_; + result.cancelsSlotFilling_ = cancelsSlotFilling_; result.fulfillmentText_ = fulfillmentText_; if (fulfillmentMessagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1746,6 +1782,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.QueryResult other) if (other.getAllRequiredParamsPresent() != false) { setAllRequiredParamsPresent(other.getAllRequiredParamsPresent()); } + if (other.getCancelsSlotFilling() != false) { + setCancelsSlotFilling(other.getCancelsSlotFilling()); + } if (!other.getFulfillmentText().isEmpty()) { fulfillmentText_ = other.fulfillmentText_; onChanged(); @@ -2658,6 +2697,61 @@ public Builder clearAllRequiredParamsPresent() { return this; } + private boolean cancelsSlotFilling_; + /** + * + * + *
+     * Indicates whether the conversational query triggers a cancellation for slot
+     * filling.
+     * 
+ * + * bool cancels_slot_filling = 21; + * + * @return The cancelsSlotFilling. + */ + @java.lang.Override + public boolean getCancelsSlotFilling() { + return cancelsSlotFilling_; + } + /** + * + * + *
+     * Indicates whether the conversational query triggers a cancellation for slot
+     * filling.
+     * 
+ * + * bool cancels_slot_filling = 21; + * + * @param value The cancelsSlotFilling to set. + * @return This builder for chaining. + */ + public Builder setCancelsSlotFilling(boolean value) { + + cancelsSlotFilling_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates whether the conversational query triggers a cancellation for slot
+     * filling.
+     * 
+ * + * bool cancels_slot_filling = 21; + * + * @return This builder for chaining. + */ + public Builder clearCancelsSlotFilling() { + + cancelsSlotFilling_ = false; + onChanged(); + return this; + } + private java.lang.Object fulfillmentText_ = ""; /** * diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java index 3ee2fde3f..95ef23dba 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java @@ -229,6 +229,20 @@ public interface QueryResultOrBuilder */ boolean getAllRequiredParamsPresent(); + /** + * + * + *
+   * Indicates whether the conversational query triggers a cancellation for slot
+   * filling.
+   * 
+ * + * bool cancels_slot_filling = 21; + * + * @return The cancelsSlotFilling. + */ + boolean getCancelsSlotFilling(); + /** * * diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java index 1feb00556..7cd324ab8 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java @@ -157,113 +157,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\005event\030\003 \001(\0132+.google.cloud.dialogflow." + "v2beta1.EventInputH\000\022D\n\004dtmf\030\004 \001(\01324.goo" + "gle.cloud.dialogflow.v2beta1.TelephonyDt" - + "mfEventsH\000B\007\n\005input\"\362\005\n\013QueryResult\022\022\n\nq" + + "mfEventsH\000B\007\n\005input\"\220\006\n\013QueryResult\022\022\n\nq" + "uery_text\030\001 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\022%" + "\n\035speech_recognition_confidence\030\002 \001(\002\022\016\n" + "\006action\030\003 \001(\t\022+\n\nparameters\030\004 \001(\0132\027.goog" + "le.protobuf.Struct\022#\n\033all_required_param" - + "s_present\030\005 \001(\010\022\030\n\020fulfillment_text\030\006 \001(" - + "\t\022M\n\024fulfillment_messages\030\007 \003(\0132/.google" - + ".cloud.dialogflow.v2beta1.Intent.Message" - + "\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017webhook_payl" - + "oad\030\t \001(\0132\027.google.protobuf.Struct\022A\n\017ou" - + "tput_contexts\030\n \003(\0132(.google.cloud.dialo" - + "gflow.v2beta1.Context\0227\n\006intent\030\013 \001(\0132\'." - + "google.cloud.dialogflow.v2beta1.Intent\022#" - + "\n\033intent_detection_confidence\030\014 \001(\002\0220\n\017d" - + "iagnostic_info\030\016 \001(\0132\027.google.protobuf.S" - + "truct\022[\n\031sentiment_analysis_result\030\021 \001(\013" - + "28.google.cloud.dialogflow.v2beta1.Senti" - + "mentAnalysisResult\022L\n\021knowledge_answers\030" - + "\022 \001(\01321.google.cloud.dialogflow.v2beta1." - + "KnowledgeAnswers\"\257\003\n\020KnowledgeAnswers\022I\n" - + "\007answers\030\001 \003(\01328.google.cloud.dialogflow" - + ".v2beta1.KnowledgeAnswers.Answer\032\317\002\n\006Ans" - + "wer\0227\n\006source\030\001 \001(\tB\'\372A$\n\"dialogflow.goo" - + "gleapis.com/Document\022\024\n\014faq_question\030\002 \001" - + "(\t\022\016\n\006answer\030\003 \001(\t\022m\n\026match_confidence_l" - + "evel\030\004 \001(\0162M.google.cloud.dialogflow.v2b" - + "eta1.KnowledgeAnswers.Answer.MatchConfid" - + "enceLevel\022\030\n\020match_confidence\030\005 \001(\002\"]\n\024M" - + "atchConfidenceLevel\022&\n\"MATCH_CONFIDENCE_" - + "LEVEL_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002" - + "\022\010\n\004HIGH\020\003\"\253\003\n\034StreamingDetectIntentRequ" - + "est\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dialogflow" - + ".googleapis.com/Session\022F\n\014query_params\030" - + "\002 \001(\01320.google.cloud.dialogflow.v2beta1." - + "QueryParameters\022E\n\013query_input\030\003 \001(\0132+.g" - + "oogle.cloud.dialogflow.v2beta1.QueryInpu" - + "tB\003\340A\002\022\034\n\020single_utterance\030\004 \001(\010B\002\030\001\022O\n\023" - + "output_audio_config\030\005 \001(\01322.google.cloud" - + ".dialogflow.v2beta1.OutputAudioConfig\022<\n" - + "\030output_audio_config_mask\030\007 \001(\0132\032.google" - + ".protobuf.FieldMask\022\023\n\013input_audio\030\006 \001(\014" - + "\"\265\003\n\035StreamingDetectIntentResponse\022\023\n\013re" - + "sponse_id\030\001 \001(\t\022W\n\022recognition_result\030\002 " - + "\001(\0132;.google.cloud.dialogflow.v2beta1.St" - + "reamingRecognitionResult\022B\n\014query_result" - + "\030\003 \001(\0132,.google.cloud.dialogflow.v2beta1" - + ".QueryResult\022O\n\031alternative_query_result" - + "s\030\007 \003(\0132,.google.cloud.dialogflow.v2beta" - + "1.QueryResult\022*\n\016webhook_status\030\004 \001(\0132\022." - + "google.rpc.Status\022\024\n\014output_audio\030\005 \001(\014\022" - + "O\n\023output_audio_config\030\006 \001(\01322.google.cl" - + "oud.dialogflow.v2beta1.OutputAudioConfig" - + "\"\356\003\n\032StreamingRecognitionResult\022]\n\014messa" - + "ge_type\030\001 \001(\0162G.google.cloud.dialogflow." - + "v2beta1.StreamingRecognitionResult.Messa" - + "geType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010is_final\030\003" - + " \001(\010\022\022\n\nconfidence\030\004 \001(\002\022\021\n\tstability\030\006 " - + "\001(\002\022I\n\020speech_word_info\030\007 \003(\0132/.google.c" - + "loud.dialogflow.v2beta1.SpeechWordInfo\0224" - + "\n\021speech_end_offset\030\010 \001(\0132\031.google.proto" - + "buf.Duration\022I\n\013dtmf_digits\030\005 \001(\01324.goog" - + "le.cloud.dialogflow.v2beta1.TelephonyDtm" - + "fEvents\"X\n\013MessageType\022\034\n\030MESSAGE_TYPE_U" - + "NSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_S" - + "INGLE_UTTERANCE\020\002\"0\n\tTextInput\022\014\n\004text\030\001" - + " \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"^\n\nEventInpu" - + "t\022\014\n\004name\030\001 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.go" - + "ogle.protobuf.Struct\022\025\n\rlanguage_code\030\003 " - + "\001(\t\"F\n\036SentimentAnalysisRequestConfig\022$\n" - + "\034analyze_query_text_sentiment\030\001 \001(\010\"c\n\027S" - + "entimentAnalysisResult\022H\n\024query_text_sen" - + "timent\030\001 \001(\0132*.google.cloud.dialogflow.v" - + "2beta1.Sentiment\"-\n\tSentiment\022\r\n\005score\030\001" - + " \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\215\006\n\010Sessions\022\347\003\n" - + "\014DetectIntent\0224.google.cloud.dialogflow." - + "v2beta1.DetectIntentRequest\0325.google.clo" - + "ud.dialogflow.v2beta1.DetectIntentRespon" - + "se\"\351\002\202\323\344\223\002\314\002\";/v2beta1/{session=projects" - + "/*/agent/sessions/*}:detectIntent:\001*ZW\"R" - + "/v2beta1/{session=projects/*/agent/envir" - + "onments/*/users/*/sessions/*}:detectInte" - + "nt:\001*ZL\"G/v2beta1/{session=projects/*/lo" - + "cations/*/agent/sessions/*}:detectIntent" - + ":\001*Zc\"^/v2beta1/{session=projects/*/loca" - + "tions/*/agent/environments/*/users/*/ses" - + "sions/*}:detectIntent:\001*\332A\023session,query" - + "_input\022\234\001\n\025StreamingDetectIntent\022=.googl" - + "e.cloud.dialogflow.v2beta1.StreamingDete" - + "ctIntentRequest\032>.google.cloud.dialogflo" - + "w.v2beta1.StreamingDetectIntentResponse\"" - + "\000(\0010\001\032x\312A\031dialogflow.googleapis.com\322AYht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form,https://www.googleapis.com/auth/dia" - + "logflowB\377\003\n#com.google.cloud.dialogflow." - + "v2beta1B\014SessionProtoP\001ZIgoogle.golang.o" - + "rg/genproto/googleapis/cloud/dialogflow/" - + "v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Clou" - + "d.Dialogflow.V2beta1\352A\321\002\n!dialogflow.goo" - + "gleapis.com/Session\022+projects/{project}/" - + "agent/sessions/{session}\022Sprojects/{proj" - + "ect}/agent/environments/{environment}/us" - + "ers/{user}/sessions/{session}\022@projects/" - + "{project}/locations/{location}/agent/ses" - + "sions/{session}\022hprojects/{project}/loca" - + "tions/{location}/agent/environments/{env" - + "ironment}/users/{user}/sessions/{session" - + "}b\006proto3" + + "s_present\030\005 \001(\010\022\034\n\024cancels_slot_filling\030" + + "\025 \001(\010\022\030\n\020fulfillment_text\030\006 \001(\t\022M\n\024fulfi" + + "llment_messages\030\007 \003(\0132/.google.cloud.dia" + + "logflow.v2beta1.Intent.Message\022\026\n\016webhoo" + + "k_source\030\010 \001(\t\0220\n\017webhook_payload\030\t \001(\0132" + + "\027.google.protobuf.Struct\022A\n\017output_conte" + + "xts\030\n \003(\0132(.google.cloud.dialogflow.v2be" + + "ta1.Context\0227\n\006intent\030\013 \001(\0132\'.google.clo" + + "ud.dialogflow.v2beta1.Intent\022#\n\033intent_d" + + "etection_confidence\030\014 \001(\002\0220\n\017diagnostic_" + + "info\030\016 \001(\0132\027.google.protobuf.Struct\022[\n\031s" + + "entiment_analysis_result\030\021 \001(\01328.google." + + "cloud.dialogflow.v2beta1.SentimentAnalys" + + "isResult\022L\n\021knowledge_answers\030\022 \001(\01321.go" + + "ogle.cloud.dialogflow.v2beta1.KnowledgeA" + + "nswers\"\257\003\n\020KnowledgeAnswers\022I\n\007answers\030\001" + + " \003(\01328.google.cloud.dialogflow.v2beta1.K" + + "nowledgeAnswers.Answer\032\317\002\n\006Answer\0227\n\006sou" + + "rce\030\001 \001(\tB\'\372A$\n\"dialogflow.googleapis.co" + + "m/Document\022\024\n\014faq_question\030\002 \001(\t\022\016\n\006answ" + + "er\030\003 \001(\t\022m\n\026match_confidence_level\030\004 \001(\016" + + "2M.google.cloud.dialogflow.v2beta1.Knowl" + + "edgeAnswers.Answer.MatchConfidenceLevel\022" + + "\030\n\020match_confidence\030\005 \001(\002\"]\n\024MatchConfid" + + "enceLevel\022&\n\"MATCH_CONFIDENCE_LEVEL_UNSP" + + "ECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003" + + "\"\253\003\n\034StreamingDetectIntentRequest\022:\n\007ses" + + "sion\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapi" + + "s.com/Session\022F\n\014query_params\030\002 \001(\01320.go" + + "ogle.cloud.dialogflow.v2beta1.QueryParam" + + "eters\022E\n\013query_input\030\003 \001(\0132+.google.clou" + + "d.dialogflow.v2beta1.QueryInputB\003\340A\002\022\034\n\020" + + "single_utterance\030\004 \001(\010B\002\030\001\022O\n\023output_aud" + + "io_config\030\005 \001(\01322.google.cloud.dialogflo" + + "w.v2beta1.OutputAudioConfig\022<\n\030output_au" + + "dio_config_mask\030\007 \001(\0132\032.google.protobuf." + + "FieldMask\022\023\n\013input_audio\030\006 \001(\014\"\265\003\n\035Strea" + + "mingDetectIntentResponse\022\023\n\013response_id\030" + + "\001 \001(\t\022W\n\022recognition_result\030\002 \001(\0132;.goog" + + "le.cloud.dialogflow.v2beta1.StreamingRec" + + "ognitionResult\022B\n\014query_result\030\003 \001(\0132,.g" + + "oogle.cloud.dialogflow.v2beta1.QueryResu" + + "lt\022O\n\031alternative_query_results\030\007 \003(\0132,." + + "google.cloud.dialogflow.v2beta1.QueryRes" + + "ult\022*\n\016webhook_status\030\004 \001(\0132\022.google.rpc" + + ".Status\022\024\n\014output_audio\030\005 \001(\014\022O\n\023output_" + + "audio_config\030\006 \001(\01322.google.cloud.dialog" + + "flow.v2beta1.OutputAudioConfig\"\231\004\n\032Strea" + + "mingRecognitionResult\022]\n\014message_type\030\001 " + + "\001(\0162G.google.cloud.dialogflow.v2beta1.St" + + "reamingRecognitionResult.MessageType\022\022\n\n" + + "transcript\030\002 \001(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nco" + + "nfidence\030\004 \001(\002\022\021\n\tstability\030\006 \001(\002\022I\n\020spe" + + "ech_word_info\030\007 \003(\0132/.google.cloud.dialo" + + "gflow.v2beta1.SpeechWordInfo\0224\n\021speech_e" + + "nd_offset\030\010 \001(\0132\031.google.protobuf.Durati" + + "on\022I\n\013dtmf_digits\030\005 \001(\01324.google.cloud.d" + + "ialogflow.v2beta1.TelephonyDtmfEvents\"\202\001" + + "\n\013MessageType\022\034\n\030MESSAGE_TYPE_UNSPECIFIE" + + "D\020\000\022\016\n\nTRANSCRIPT\020\001\022\017\n\013DTMF_DIGITS\020\003\022\033\n\027" + + "END_OF_SINGLE_UTTERANCE\020\002\022\027\n\023PARTIAL_DTM" + + "F_DIGITS\020\004\"0\n\tTextInput\022\014\n\004text\030\001 \001(\t\022\025\n" + + "\rlanguage_code\030\002 \001(\t\"^\n\nEventInput\022\014\n\004na" + + "me\030\001 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google.pr" + + "otobuf.Struct\022\025\n\rlanguage_code\030\003 \001(\t\"F\n\036" + + "SentimentAnalysisRequestConfig\022$\n\034analyz" + + "e_query_text_sentiment\030\001 \001(\010\"c\n\027Sentimen" + + "tAnalysisResult\022H\n\024query_text_sentiment\030" + + "\001 \001(\0132*.google.cloud.dialogflow.v2beta1." + + "Sentiment\"-\n\tSentiment\022\r\n\005score\030\001 \001(\002\022\021\n" + + "\tmagnitude\030\002 \001(\0022\215\006\n\010Sessions\022\347\003\n\014Detect" + + "Intent\0224.google.cloud.dialogflow.v2beta1" + + ".DetectIntentRequest\0325.google.cloud.dial" + + "ogflow.v2beta1.DetectIntentResponse\"\351\002\202\323" + + "\344\223\002\314\002\";/v2beta1/{session=projects/*/agen" + + "t/sessions/*}:detectIntent:\001*ZW\"R/v2beta" + + "1/{session=projects/*/agent/environments" + + "/*/users/*/sessions/*}:detectIntent:\001*ZL" + + "\"G/v2beta1/{session=projects/*/locations" + + "/*/agent/sessions/*}:detectIntent:\001*Zc\"^" + + "/v2beta1/{session=projects/*/locations/*" + + "/agent/environments/*/users/*/sessions/*" + + "}:detectIntent:\001*\332A\023session,query_input\022" + + "\234\001\n\025StreamingDetectIntent\022=.google.cloud" + + ".dialogflow.v2beta1.StreamingDetectInten" + + "tRequest\032>.google.cloud.dialogflow.v2bet" + + "a1.StreamingDetectIntentResponse\"\000(\0010\001\032x" + + "\312A\031dialogflow.googleapis.com\322AYhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/dialogflow" + + "B\377\003\n#com.google.cloud.dialogflow.v2beta1" + + "B\014SessionProtoP\001ZIgoogle.golang.org/genp" + + "roto/googleapis/cloud/dialogflow/v2beta1" + + ";dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialo" + + "gflow.V2beta1\352A\321\002\n!dialogflow.googleapis" + + ".com/Session\022+projects/{project}/agent/s" + + "essions/{session}\022Sprojects/{project}/ag" + + "ent/environments/{environment}/users/{us" + + "er}/sessions/{session}\022@projects/{projec" + + "t}/locations/{location}/agent/sessions/{" + + "session}\022hprojects/{project}/locations/{" + + "location}/agent/environments/{environmen" + + "t}/users/{user}/sessions/{session}b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -358,6 +360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Action", "Parameters", "AllRequiredParamsPresent", + "CancelsSlotFilling", "FulfillmentText", "FulfillmentMessages", "WebhookSource", diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java index b51f8df49..4a1671b41 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java @@ -233,6 +233,19 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * TRANSCRIPT = 1; */ TRANSCRIPT(1), + /** + * + * + *
+     * Message contains DTMF digits. When the client gets the message, it
+     * should stop sending additional data, half-close the gRPC connection, and
+     * wait for any additional results until the server closes the gRPC.
+     * connection.
+     * 
+ * + * DTMF_DIGITS = 3; + */ + DTMF_DIGITS(3), /** * * @@ -249,6 +262,18 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * END_OF_SINGLE_UTTERANCE = 2; */ END_OF_SINGLE_UTTERANCE(2), + /** + * + * + *
+     * Message contains DTMF digits. Before a message with DTMF_DIGITS is sent,
+     * a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected
+     * up to the time of sending, which represents an intermediate result.
+     * 
+ * + * PARTIAL_DTMF_DIGITS = 4; + */ + PARTIAL_DTMF_DIGITS(4), UNRECOGNIZED(-1), ; @@ -272,6 +297,19 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * TRANSCRIPT = 1; */ public static final int TRANSCRIPT_VALUE = 1; + /** + * + * + *
+     * Message contains DTMF digits. When the client gets the message, it
+     * should stop sending additional data, half-close the gRPC connection, and
+     * wait for any additional results until the server closes the gRPC.
+     * connection.
+     * 
+ * + * DTMF_DIGITS = 3; + */ + public static final int DTMF_DIGITS_VALUE = 3; /** * * @@ -288,6 +326,18 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * END_OF_SINGLE_UTTERANCE = 2; */ public static final int END_OF_SINGLE_UTTERANCE_VALUE = 2; + /** + * + * + *
+     * Message contains DTMF digits. Before a message with DTMF_DIGITS is sent,
+     * a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected
+     * up to the time of sending, which represents an intermediate result.
+     * 
+ * + * PARTIAL_DTMF_DIGITS = 4; + */ + public static final int PARTIAL_DTMF_DIGITS_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -317,8 +367,12 @@ public static MessageType forNumber(int value) { return MESSAGE_TYPE_UNSPECIFIED; case 1: return TRANSCRIPT; + case 3: + return DTMF_DIGITS; case 2: return END_OF_SINGLE_UTTERANCE; + case 4: + return PARTIAL_DTMF_DIGITS; default: return null; } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto index 62258c1bb..226c9a0d5 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto @@ -287,9 +287,7 @@ message CreateEnvironmentRequest { // The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.v2beta1.Environments.UpdateEnvironment]. message UpdateEnvironmentRequest { // Required. The environment to update. - Environment environment = 1 [ - (google.api.field_behavior) = REQUIRED - ]; + Environment environment = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The mask to control which fields get updated. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto index ba8c1f830..ee31c026f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto @@ -53,6 +53,9 @@ service Intents { additional_bindings { get: "/v2beta1/{parent=projects/*/agent/environments/*}/intents" } + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*/agent/environments/*}/intents" + } }; option (google.api.method_signature) = "parent"; option (google.api.method_signature) = "parent,language_code"; @@ -1198,7 +1201,15 @@ message Intent { // The request message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents]. message ListIntentsRequest { // Required. The agent to list all intents from. - // Format: `projects//agent`. + // Format: `projects//agent` or `projects//locations//agent`. + // + // Alternatively, you can specify the environment to list intents for. + // Format: `projects//agent/environments/` + // or `projects//locations//agent/environments/`. + // Note: training phrases of the intents will not be returned for non-draft + // environment. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index d4400025e..d6ba092b4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -410,9 +410,21 @@ message AutomatedAgentReply { string event = 5; } + // The confidence of the match. Values range from 0.0 (completely uncertain) + // to 1.0 (completely certain). + // This value is for informational purpose only and is only used to help match + // the best intent within the classification threshold. This value may change + // for the same end-user expression at any time due to a model retraining or + // change in implementation. + float match_confidence = 9; + + // The collection of current parameters at the time of this response. + google.protobuf.Struct parameters = 10; + // The collection of current Dialogflow CX agent session parameters at the // time of this response. - google.protobuf.Struct cx_session_parameters = 6; + // Deprecated: Use `parameters` instead. + google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; } // The type of Human Agent Assistant API suggestion to perform, and the maximum diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index 2eba19bd3..6a5a67cde 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -342,6 +342,10 @@ message QueryResult { // matched intent doesn't contain any required parameters. bool all_required_params_present = 5; + // Indicates whether the conversational query triggers a cancellation for slot + // filling. + bool cancels_slot_filling = 21; + // The text to be pronounced to the user or shown on the screen. // Note: This is a legacy field, `fulfillment_messages` should be preferred. string fulfillment_text = 6; @@ -659,6 +663,12 @@ message StreamingRecognitionResult { // Message contains a (possibly partial) transcript. TRANSCRIPT = 1; + // Message contains DTMF digits. When the client gets the message, it + // should stop sending additional data, half-close the gRPC connection, and + // wait for any additional results until the server closes the gRPC. + // connection. + DTMF_DIGITS = 3; + // Event indicates that the server has detected the end of the user's speech // utterance and expects no additional speech. Therefore, the server will // not process additional audio (although it may subsequently return @@ -667,6 +677,11 @@ message StreamingRecognitionResult { // until the server closes the gRPC connection. This message is only sent if // `single_utterance` was set to `true`, and is not used otherwise. END_OF_SINGLE_UTTERANCE = 2; + + // Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, + // a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected + // up to the time of sending, which represents an intermediate result. + PARTIAL_DTMF_DIGITS = 4; } // Type of the result message. diff --git a/synth.metadata b/synth.metadata index ab5865f53..39e17297c 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow.git", - "sha": "6cd34208911fa52c8ee0acd3937520273bdadac0" + "sha": "15edcf09d2e6b281f16efa051868c1ca235928da" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0d68bbb80a7620b69aff5ab0b497c8a396e73558", - "internalRef": "373895026" + "sha": "5e797ab6ee046efd2baeef6a7b1aeddab6718074", + "internalRef": "375741797" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0d68bbb80a7620b69aff5ab0b497c8a396e73558", - "internalRef": "373895026" + "sha": "5e797ab6ee046efd2baeef6a7b1aeddab6718074", + "internalRef": "375741797" } }, {