From e88fe30b5ed56f1614595cc888e44875992e6d03 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 10:44:58 -0400 Subject: [PATCH] feat: [dialogflow] Add the enable_partial_automated_agent_reply flag (#9906) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add the enable_partial_automated_agent_reply flag feat: Remove backend API deadline PiperOrigin-RevId: 568908437 Source-Link: https://github.com/googleapis/googleapis/commit/56f0766ba9c90f9efa70f69f19e500c8226d1b4b Source-Link: https://github.com/googleapis/googleapis-gen/commit/5949657519f8f0b752e0e887c61e737eb5b7bb22 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiI1OTQ5NjU3NTE5ZjhmMGI3NTJlMGU4ODdjNjFlNzM3ZWI1YjdiYjIyIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-dialogflow/README.md | 6 +- .../v2beta1/ParticipantsClient.java | 1 + .../v2beta1/ParticipantsClientTest.java | 2 + .../dialogflow/v2beta1/ParticipantProto.java | 488 +++++++++--------- .../StreamingAnalyzeContentRequest.java | 179 ++++++- ...reamingAnalyzeContentRequestOrBuilder.java | 31 ++ .../dialogflow/v2beta1/participant.proto | 21 + .../AsyncStreamingAnalyzeContent.java | 1 + 8 files changed, 476 insertions(+), 253 deletions(-) diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 916972afb856..4af51376d039 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.31.0 + 4.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.31.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.30.0" ``` diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index e28b8fcdcfa5..fe6cc4a2e384 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -1067,6 +1067,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) * .setCxParameters(Struct.newBuilder().build()) * .setCxCurrentPage("cxCurrentPage1596907507") + * .setEnableExtendedStreaming(true) * .setEnablePartialAutomatedAgentReply(true) * .setEnableDebuggingInfo(true) * .build(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java index 4b5fe0998530..e2cd89117945 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java @@ -737,6 +737,7 @@ public void streamingAnalyzeContentTest() throws Exception { .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) .setCxParameters(Struct.newBuilder().build()) .setCxCurrentPage("cxCurrentPage1596907507") + .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) .setEnableDebuggingInfo(true) .build(); @@ -772,6 +773,7 @@ public void streamingAnalyzeContentExceptionTest() throws Exception { .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) .setCxParameters(Struct.newBuilder().build()) .setCxCurrentPage("cxCurrentPage1596907507") + .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) .setEnableDebuggingInfo(true) .build(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 9b54b87fde57..09f3edcf0676 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -391,7 +391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sult\022H\n\017dtmf_parameters\030\t \001(\0132/.google.c" + "loud.dialogflow.v2beta1.DtmfParameters\"(" + "\n\017InputTextConfig\022\025\n\rlanguage_code\030\001 \001(\t" - + "\"\210\006\n\036StreamingAnalyzeContentRequest\022C\n\013p" + + "\"\261\006\n\036StreamingAnalyzeContentRequest\022C\n\013p" + "articipant\030\001 \001(\tB.\342A\001\002\372A\'\n%dialogflow.go" + "ogleapis.com/Participant\022I\n\014audio_config" + "\030\002 \001(\01321.google.cloud.dialogflow.v2beta1" @@ -408,249 +408,250 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.dialogflow.v2beta1.AssistQuery" + "Parameters\022.\n\rcx_parameters\030\r \001(\0132\027.goog" + "le.protobuf.Struct\022\027\n\017cx_current_page\030\017 " - + "\001(\t\022,\n$enable_partial_automated_agent_re" - + "ply\030\014 \001(\010\022\035\n\025enable_debugging_info\030\023 \001(\010" - + "B\010\n\006configB\007\n\005input\"\267\005\n\037StreamingAnalyze" - + "ContentResponse\022W\n\022recognition_result\030\001 " - + "\001(\0132;.google.cloud.dialogflow.v2beta1.St" - + "reamingRecognitionResult\022\022\n\nreply_text\030\002" - + " \001(\t\022A\n\013reply_audio\030\003 \001(\0132,.google.cloud" - + ".dialogflow.v2beta1.OutputAudio\022S\n\025autom" - + "ated_agent_reply\030\004 \001(\01324.google.cloud.di" - + "alogflow.v2beta1.AutomatedAgentReply\0229\n\007" - + "message\030\006 \001(\0132(.google.cloud.dialogflow." - + "v2beta1.Message\022Y\n\036human_agent_suggestio" - + "n_results\030\007 \003(\01321.google.cloud.dialogflo" - + "w.v2beta1.SuggestionResult\022V\n\033end_user_s" - + "uggestion_results\030\010 \003(\01321.google.cloud.d" - + "ialogflow.v2beta1.SuggestionResult\022H\n\017dt" - + "mf_parameters\030\n \001(\0132/.google.cloud.dialo" - + "gflow.v2beta1.DtmfParameters\022W\n\016debuggin" - + "g_info\030\013 \001(\0132?.google.cloud.dialogflow.v" - + "2beta1.CloudConversationDebuggingInfo\"j\n" - + "\024AnnotatedMessagePart\022\014\n\004text\030\001 \001(\t\022\023\n\013e" - + "ntity_type\030\002 \001(\t\022/\n\017formatted_value\030\003 \001(" - + "\0132\026.google.protobuf.Value\"s\n\021MessageAnno" - + "tation\022D\n\005parts\030\001 \003(\01325.google.cloud.dia" - + "logflow.v2beta1.AnnotatedMessagePart\022\030\n\020" - + "contain_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.Metadat" - + "aEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMetadat" - + "aEntry\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\006answer\030\001 \001(\t\022\022\n\nconfiden" - + "ce\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.dial" - + "ogflow.v2beta1.FaqAnswer.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\"y\n\020SmartR" - + "eplyAnswer\022\r\n\005reply\030\001 \001(\t\022\022\n\nconfidence\030" - + "\002 \001(\002\022B\n\ranswer_record\030\003 \001(\tB+\372A(\n&dialo" - + "gflow.googleapis.com/AnswerRecord\"\\\n\020Int" - + "entSuggestion\022\024\n\014display_name\030\001 \001(\t\022\023\n\ti" - + "ntent_v2\030\002 \001(\tH\000\022\023\n\013description\030\005 \001(\tB\010\n" - + "\006intent\"\317\001\n\026DialogflowAssistAnswer\022D\n\014qu" - + "ery_result\030\001 \001(\0132,.google.cloud.dialogfl" - + "ow.v2beta1.QueryResultH\000\022N\n\021intent_sugge" - + "stion\030\005 \001(\01321.google.cloud.dialogflow.v2" - + "beta1.IntentSuggestionH\000\022\025\n\ranswer_recor" - + "d\030\002 \001(\tB\010\n\006result\"\334\004\n\020SuggestionResult\022#" - + "\n\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022]\n\031s" - + "uggest_articles_response\030\002 \001(\01328.google." - + "cloud.dialogflow.v2beta1.SuggestArticles" - + "ResponseH\000\022b\n\034suggest_faq_answers_respon" - + "se\030\003 \001(\0132:.google.cloud.dialogflow.v2bet" - + "a1.SuggestFaqAnswersResponseH\000\022f\n\036sugges" - + "t_smart_replies_response\030\004 \001(\0132<.google." - + "cloud.dialogflow.v2beta1.SuggestSmartRep" - + "liesResponseH\000\022p\n#suggest_dialogflow_ass" - + "ists_response\030\005 \001(\0132A.google.cloud.dialo" - + "gflow.v2beta1.SuggestDialogflowAssistsRe" - + "sponseH\000\022o\n\"suggest_entity_extraction_re" - + "sponse\030\007 \001(\0132A.google.cloud.dialogflow.v" - + "2beta1.SuggestDialogflowAssistsResponseH" - + "\000B\025\n\023suggestion_response\"\223\002\n\026SuggestArti" - + "clesRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%di" - + "alogflow.googleapis.com/Participant\022B\n\016l" - + "atest_message\030\002 \001(\tB*\342A\001\001\372A#\n!dialogflow" - + ".googleapis.com/Message\022\032\n\014context_size\030" - + "\003 \001(\005B\004\342A\001\001\022Y\n\023assist_query_params\030\004 \001(\013" - + "26.google.cloud.dialogflow.v2beta1.Assis" - + "tQueryParametersB\004\342A\001\001\"\220\001\n\027SuggestArticl" - + "esResponse\022G\n\017article_answers\030\001 \003(\0132..go" - + "ogle.cloud.dialogflow.v2beta1.ArticleAns" - + "wer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014context_s" - + "ize\030\003 \001(\005\"\225\002\n\030SuggestFaqAnswersRequest\022>" - + "\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%dialogflow.goog" - + "leapis.com/Participant\022B\n\016latest_message" - + "\030\002 \001(\tB*\342A\001\001\372A#\n!dialogflow.googleapis.c" - + "om/Message\022\032\n\014context_size\030\003 \001(\005B\004\342A\001\001\022Y" - + "\n\023assist_query_params\030\004 \001(\01326.google.clo" - + "ud.dialogflow.v2beta1.AssistQueryParamet" - + "ersB\004\342A\001\001\"\212\001\n\031SuggestFaqAnswersResponse\022" - + "?\n\013faq_answers\030\001 \003(\0132*.google.cloud.dial" - + "ogflow.v2beta1.FaqAnswer\022\026\n\016latest_messa" - + "ge\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005\"\372\001\n\032Sugge" - + "stSmartRepliesRequest\022>\n\006parent\030\001 \001(\tB.\342" - + "A\001\002\372A\'\n%dialogflow.googleapis.com/Partic" - + "ipant\022F\n\022current_text_input\030\004 \001(\0132*.goog" - + "le.cloud.dialogflow.v2beta1.TextInput\022>\n" - + "\016latest_message\030\002 \001(\tB&\372A#\n!dialogflow.g" - + "oogleapis.com/Message\022\024\n\014context_size\030\003 " - + "\001(\005\"\303\001\n\033SuggestSmartRepliesResponse\022N\n\023s" - + "mart_reply_answers\030\001 \003(\01321.google.cloud." - + "dialogflow.v2beta1.SmartReplyAnswer\022>\n\016l" - + "atest_message\030\002 \001(\tB&\372A#\n!dialogflow.goo" - + "gleapis.com/Message\022\024\n\014context_size\030\003 \001(" - + "\005\"\254\001\n SuggestDialogflowAssistsResponse\022Z" - + "\n\031dialogflow_assist_answers\030\001 \003(\01327.goog" - + "le.cloud.dialogflow.v2beta1.DialogflowAs" - + "sistAnswer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014co" - + "ntext_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.d" - + "ialogflow.v2beta1.Suggestion.Article\022J\n\013" - + "faq_answers\030\004 \003(\01325.google.cloud.dialogf" - + "low.v2beta1.Suggestion.FaqAnswer\022/\n\013crea" - + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" - + "p\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.dia" - + "logflow.v2beta1.Suggestion.Article.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" - + "\032\360\001\n\tFaqAnswer\022\016\n\006answer\030\001 \001(\t\022\022\n\nconfid" - + "ence\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.di" - + "alogflow.v2beta1.Suggestion.FaqAnswer.Me" - + "tadataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMe" - + "tadataEntry\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\006par" - + "ent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t:\002\030\001\"x\n\027ListSugg" - + "estionsResponse\022@\n\013suggestions\030\001 \003(\0132+.g" - + "oogle.cloud.dialogflow.v2beta1.Suggestio" - + "n\022\027\n\017next_page_token\030\002 \001(\t:\002\030\001\"\\\n\030Compil" - + "eSuggestionRequest\022\016\n\006parent\030\001 \001(\t\022\026\n\016la" - + "test_message\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005" - + ":\002\030\001\"\216\001\n\031CompileSuggestionResponse\022?\n\nsu" - + "ggestion\030\001 \001(\0132+.google.cloud.dialogflow" - + ".v2beta1.Suggestion\022\026\n\016latest_message\030\002 " - + "\001(\t\022\024\n\014context_size\030\003 \001(\005:\002\030\001\"\203\007\n\017Respon" - + "seMessage\022E\n\004text\030\001 \001(\01325.google.cloud.d" - + "ialogflow.v2beta1.ResponseMessage.TextH\000" - + "\022*\n\007payload\030\002 \001(\0132\027.google.protobuf.Stru" - + "ctH\000\022_\n\022live_agent_handoff\030\003 \001(\0132A.googl" - + "e.cloud.dialogflow.v2beta1.ResponseMessa" - + "ge.LiveAgentHandoffH\000\022Z\n\017end_interaction" - + "\030\004 \001(\0132?.google.cloud.dialogflow.v2beta1" - + ".ResponseMessage.EndInteractionH\000\022R\n\013mix" - + "ed_audio\030\005 \001(\0132;.google.cloud.dialogflow" - + ".v2beta1.ResponseMessage.MixedAudioH\000\022i\n" - + "\027telephony_transfer_call\030\006 \001(\0132F.google." - + "cloud.dialogflow.v2beta1.ResponseMessage" - + ".TelephonyTransferCallH\000\032\024\n\004Text\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\016EndInte" - + "raction\032\276\001\n\nMixedAudio\022U\n\010segments\030\001 \003(\013" - + "2C.google.cloud.dialogflow.v2beta1.Respo" - + "nseMessage.MixedAudio.Segment\032Y\n\007Segment" - + "\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022#\n\033allo" - + "w_playback_interruption\030\003 \001(\010B\t\n\007content" - + "\032N\n\025TelephonyTransferCall\022\026\n\014phone_numbe" - + "r\030\001 \001(\tH\000\022\021\n\007sip_uri\030\002 \001(\tH\000B\n\n\010endpoint" - + "B\t\n\007message2\207\033\n\014Participants\022\271\002\n\021CreateP" - + "articipant\0229.google.cloud.dialogflow.v2b" - + "eta1.CreateParticipantRequest\032,.google.c" - + "loud.dialogflow.v2beta1.Participant\"\272\001\332A" - + "\022parent,participant\202\323\344\223\002\236\001\"9/v2beta1/{pa" - + "rent=projects/*/conversations/*}/partici" - + "pants:\013participantZT\"E/v2beta1/{parent=p" - + "rojects/*/locations/*/conversations/*}/p" - + "articipants:\013participant\022\213\002\n\016GetParticip" - + "ant\0226.google.cloud.dialogflow.v2beta1.Ge" - + "tParticipantRequest\032,.google.cloud.dialo" - + "gflow.v2beta1.Participant\"\222\001\332A\004name\202\323\344\223\002" - + "\204\001\0229/v2beta1/{name=projects/*/conversati" - + "ons/*/participants/*}ZG\022E/v2beta1/{name=" - + "projects/*/locations/*/conversations/*/p" - + "articipants/*}\022\236\002\n\020ListParticipants\0228.go" - + "ogle.cloud.dialogflow.v2beta1.ListPartic" - + "ipantsRequest\0329.google.cloud.dialogflow." - + "v2beta1.ListParticipantsResponse\"\224\001\332A\006pa" - + "rent\202\323\344\223\002\204\001\0229/v2beta1/{parent=projects/*" - + "/conversations/*}/participantsZG\022E/v2bet" - + "a1/{parent=projects/*/locations/*/conver" - + "sations/*}/participants\022\326\002\n\021UpdatePartic" - + "ipant\0229.google.cloud.dialogflow.v2beta1." - + "UpdateParticipantRequest\032,.google.cloud." - + "dialogflow.v2beta1.Participant\"\327\001\332A\027part" - + "icipant,update_mask\202\323\344\223\002\266\0012E/v2beta1/{pa" - + "rticipant.name=projects/*/conversations/" - + "*/participants/*}:\013participantZ`2Q/v2bet" - + "a1/{participant.name=projects/*/location" - + "s/*/conversations/*/participants/*}:\013par" - + "ticipant\022\216\003\n\016AnalyzeContent\0226.google.clo" - + "ud.dialogflow.v2beta1.AnalyzeContentRequ" - + "est\0327.google.cloud.dialogflow.v2beta1.An" - + "alyzeContentResponse\"\212\002\332A\026participant,te" - + "xt_input\332A\027participant,audio_input\332A\027par" - + "ticipant,event_input\202\323\344\223\002\266\001\"O/v2beta1/{p" - + "articipant=projects/*/conversations/*/pa" - + "rticipants/*}:analyzeContent:\001*Z`\"[/v2be" - + "ta1/{participant=projects/*/locations/*/" - + "conversations/*/participants/*}:analyzeC" - + "ontent:\001*\022\242\001\n\027StreamingAnalyzeContent\022?." - + "google.cloud.dialogflow.v2beta1.Streamin" - + "gAnalyzeContentRequest\032@.google.cloud.di" - + "alogflow.v2beta1.StreamingAnalyzeContent" - + "Response\"\000(\0010\001\022\335\002\n\017SuggestArticles\0227.goo" - + "gle.cloud.dialogflow.v2beta1.SuggestArti" - + "clesRequest\0328.google.cloud.dialogflow.v2" - + "beta1.SuggestArticlesResponse\"\326\001\332A\006paren" - + "t\202\323\344\223\002\306\001\"W/v2beta1/{parent=projects/*/co" - + "nversations/*/participants/*}/suggestion" - + "s:suggestArticles:\001*Zh\"c/v2beta1/{parent" - + "=projects/*/locations/*/conversations/*/" - + "participants/*}/suggestions:suggestArtic" - + "les:\001*\022\347\002\n\021SuggestFaqAnswers\0229.google.cl" - + "oud.dialogflow.v2beta1.SuggestFaqAnswers" - + "Request\032:.google.cloud.dialogflow.v2beta" - + "1.SuggestFaqAnswersResponse\"\332\001\332A\006parent\202" - + "\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/*/conv" - + "ersations/*/participants/*}/suggestions:" - + "suggestFaqAnswers:\001*Zj\"e/v2beta1/{parent" + + "\001(\t\022\'\n\031enable_extended_streaming\030\013 \001(\010B\004" + + "\342A\001\001\022,\n$enable_partial_automated_agent_r" + + "eply\030\014 \001(\010\022\035\n\025enable_debugging_info\030\023 \001(" + + "\010B\010\n\006configB\007\n\005input\"\267\005\n\037StreamingAnalyz" + + "eContentResponse\022W\n\022recognition_result\030\001" + + " \001(\0132;.google.cloud.dialogflow.v2beta1.S" + + "treamingRecognitionResult\022\022\n\nreply_text\030" + + "\002 \001(\t\022A\n\013reply_audio\030\003 \001(\0132,.google.clou" + + "d.dialogflow.v2beta1.OutputAudio\022S\n\025auto" + + "mated_agent_reply\030\004 \001(\01324.google.cloud.d" + + "ialogflow.v2beta1.AutomatedAgentReply\0229\n" + + "\007message\030\006 \001(\0132(.google.cloud.dialogflow" + + ".v2beta1.Message\022Y\n\036human_agent_suggesti" + + "on_results\030\007 \003(\01321.google.cloud.dialogfl" + + "ow.v2beta1.SuggestionResult\022V\n\033end_user_" + + "suggestion_results\030\010 \003(\01321.google.cloud." + + "dialogflow.v2beta1.SuggestionResult\022H\n\017d" + + "tmf_parameters\030\n \001(\0132/.google.cloud.dial" + + "ogflow.v2beta1.DtmfParameters\022W\n\016debuggi" + + "ng_info\030\013 \001(\0132?.google.cloud.dialogflow." + + "v2beta1.CloudConversationDebuggingInfo\"j" + + "\n\024AnnotatedMessagePart\022\014\n\004text\030\001 \001(\t\022\023\n\013" + + "entity_type\030\002 \001(\t\022/\n\017formatted_value\030\003 \001" + + "(\0132\026.google.protobuf.Value\"s\n\021MessageAnn" + + "otation\022D\n\005parts\030\001 \003(\01325.google.cloud.di" + + "alogflow.v2beta1.AnnotatedMessagePart\022\030\n" + + "\020contain_entities\030\002 \001(\010\"\325\001\n\rArticleAnswe" + + "r\022\r\n\005title\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010snippet" + + "s\030\003 \003(\t\022N\n\010metadata\030\005 \003(\0132<.google.cloud" + + ".dialogflow.v2beta1.ArticleAnswer.Metada" + + "taEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMetada" + + "taEntry\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\006answer\030\001 \001(\t\022\022\n\nconfide" + + "nce\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.dia" + + "logflow.v2beta1.FaqAnswer.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\"y\n\020Smart" + + "ReplyAnswer\022\r\n\005reply\030\001 \001(\t\022\022\n\nconfidence" + + "\030\002 \001(\002\022B\n\ranswer_record\030\003 \001(\tB+\372A(\n&dial" + + "ogflow.googleapis.com/AnswerRecord\"\\\n\020In" + + "tentSuggestion\022\024\n\014display_name\030\001 \001(\t\022\023\n\t" + + "intent_v2\030\002 \001(\tH\000\022\023\n\013description\030\005 \001(\tB\010" + + "\n\006intent\"\317\001\n\026DialogflowAssistAnswer\022D\n\014q" + + "uery_result\030\001 \001(\0132,.google.cloud.dialogf" + + "low.v2beta1.QueryResultH\000\022N\n\021intent_sugg" + + "estion\030\005 \001(\01321.google.cloud.dialogflow.v" + + "2beta1.IntentSuggestionH\000\022\025\n\ranswer_reco" + + "rd\030\002 \001(\tB\010\n\006result\"\334\004\n\020SuggestionResult\022" + + "#\n\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022]\n\031" + + "suggest_articles_response\030\002 \001(\01328.google" + + ".cloud.dialogflow.v2beta1.SuggestArticle" + + "sResponseH\000\022b\n\034suggest_faq_answers_respo" + + "nse\030\003 \001(\0132:.google.cloud.dialogflow.v2be" + + "ta1.SuggestFaqAnswersResponseH\000\022f\n\036sugge" + + "st_smart_replies_response\030\004 \001(\0132<.google" + + ".cloud.dialogflow.v2beta1.SuggestSmartRe" + + "pliesResponseH\000\022p\n#suggest_dialogflow_as" + + "sists_response\030\005 \001(\0132A.google.cloud.dial" + + "ogflow.v2beta1.SuggestDialogflowAssistsR" + + "esponseH\000\022o\n\"suggest_entity_extraction_r" + + "esponse\030\007 \001(\0132A.google.cloud.dialogflow." + + "v2beta1.SuggestDialogflowAssistsResponse" + + "H\000B\025\n\023suggestion_response\"\223\002\n\026SuggestArt" + + "iclesRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%d" + + "ialogflow.googleapis.com/Participant\022B\n\016" + + "latest_message\030\002 \001(\tB*\342A\001\001\372A#\n!dialogflo" + + "w.googleapis.com/Message\022\032\n\014context_size" + + "\030\003 \001(\005B\004\342A\001\001\022Y\n\023assist_query_params\030\004 \001(" + + "\01326.google.cloud.dialogflow.v2beta1.Assi" + + "stQueryParametersB\004\342A\001\001\"\220\001\n\027SuggestArtic" + + "lesResponse\022G\n\017article_answers\030\001 \003(\0132..g" + + "oogle.cloud.dialogflow.v2beta1.ArticleAn" + + "swer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014context_" + + "size\030\003 \001(\005\"\225\002\n\030SuggestFaqAnswersRequest\022" + + ">\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%dialogflow.goo" + + "gleapis.com/Participant\022B\n\016latest_messag" + + "e\030\002 \001(\tB*\342A\001\001\372A#\n!dialogflow.googleapis." + + "com/Message\022\032\n\014context_size\030\003 \001(\005B\004\342A\001\001\022" + + "Y\n\023assist_query_params\030\004 \001(\01326.google.cl" + + "oud.dialogflow.v2beta1.AssistQueryParame" + + "tersB\004\342A\001\001\"\212\001\n\031SuggestFaqAnswersResponse" + + "\022?\n\013faq_answers\030\001 \003(\0132*.google.cloud.dia" + + "logflow.v2beta1.FaqAnswer\022\026\n\016latest_mess" + + "age\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005\"\372\001\n\032Sugg" + + "estSmartRepliesRequest\022>\n\006parent\030\001 \001(\tB." + + "\342A\001\002\372A\'\n%dialogflow.googleapis.com/Parti" + + "cipant\022F\n\022current_text_input\030\004 \001(\0132*.goo" + + "gle.cloud.dialogflow.v2beta1.TextInput\022>" + + "\n\016latest_message\030\002 \001(\tB&\372A#\n!dialogflow." + + "googleapis.com/Message\022\024\n\014context_size\030\003" + + " \001(\005\"\303\001\n\033SuggestSmartRepliesResponse\022N\n\023" + + "smart_reply_answers\030\001 \003(\01321.google.cloud" + + ".dialogflow.v2beta1.SmartReplyAnswer\022>\n\016" + + "latest_message\030\002 \001(\tB&\372A#\n!dialogflow.go" + + "ogleapis.com/Message\022\024\n\014context_size\030\003 \001" + + "(\005\"\254\001\n SuggestDialogflowAssistsResponse\022" + + "Z\n\031dialogflow_assist_answers\030\001 \003(\01327.goo" + + "gle.cloud.dialogflow.v2beta1.DialogflowA" + + "ssistAnswer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014c" + + "ontext_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." + + "dialogflow.v2beta1.Suggestion.Article\022J\n" + + "\013faq_answers\030\004 \003(\01325.google.cloud.dialog" + + "flow.v2beta1.Suggestion.FaqAnswer\022/\n\013cre" + + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mp\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.di" + + "alogflow.v2beta1.Suggestion.Article.Meta" + + "dataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMeta" + + "dataEntry\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\nconfi" + + "dence\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.d" + + "ialogflow.v2beta1.Suggestion.FaqAnswer.M" + + "etadataEntry\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rM" + + "etadataEntry\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\006pa" + + "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t:\002\030\001\"x\n\027ListSug" + + "gestionsResponse\022@\n\013suggestions\030\001 \003(\0132+." + + "google.cloud.dialogflow.v2beta1.Suggesti" + + "on\022\027\n\017next_page_token\030\002 \001(\t:\002\030\001\"\\\n\030Compi" + + "leSuggestionRequest\022\016\n\006parent\030\001 \001(\t\022\026\n\016l" + + "atest_message\030\002 \001(\t\022\024\n\014context_size\030\003 \001(" + + "\005:\002\030\001\"\216\001\n\031CompileSuggestionResponse\022?\n\ns" + + "uggestion\030\001 \001(\0132+.google.cloud.dialogflo" + + "w.v2beta1.Suggestion\022\026\n\016latest_message\030\002" + + " \001(\t\022\024\n\014context_size\030\003 \001(\005:\002\030\001\"\203\007\n\017Respo" + + "nseMessage\022E\n\004text\030\001 \001(\01325.google.cloud." + + "dialogflow.v2beta1.ResponseMessage.TextH" + + "\000\022*\n\007payload\030\002 \001(\0132\027.google.protobuf.Str" + + "uctH\000\022_\n\022live_agent_handoff\030\003 \001(\0132A.goog" + + "le.cloud.dialogflow.v2beta1.ResponseMess" + + "age.LiveAgentHandoffH\000\022Z\n\017end_interactio" + + "n\030\004 \001(\0132?.google.cloud.dialogflow.v2beta" + + "1.ResponseMessage.EndInteractionH\000\022R\n\013mi" + + "xed_audio\030\005 \001(\0132;.google.cloud.dialogflo" + + "w.v2beta1.ResponseMessage.MixedAudioH\000\022i" + + "\n\027telephony_transfer_call\030\006 \001(\0132F.google" + + ".cloud.dialogflow.v2beta1.ResponseMessag" + + "e.TelephonyTransferCallH\000\032\024\n\004Text\022\014\n\004tex" + + "t\030\001 \003(\t\032=\n\020LiveAgentHandoff\022)\n\010metadata\030" + + "\001 \001(\0132\027.google.protobuf.Struct\032\020\n\016EndInt" + + "eraction\032\276\001\n\nMixedAudio\022U\n\010segments\030\001 \003(" + + "\0132C.google.cloud.dialogflow.v2beta1.Resp" + + "onseMessage.MixedAudio.Segment\032Y\n\007Segmen" + + "t\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022#\n\033all" + + "ow_playback_interruption\030\003 \001(\010B\t\n\007conten" + + "t\032N\n\025TelephonyTransferCall\022\026\n\014phone_numb" + + "er\030\001 \001(\tH\000\022\021\n\007sip_uri\030\002 \001(\tH\000B\n\n\010endpoin" + + "tB\t\n\007message2\207\033\n\014Participants\022\271\002\n\021Create" + + "Participant\0229.google.cloud.dialogflow.v2" + + "beta1.CreateParticipantRequest\032,.google." + + "cloud.dialogflow.v2beta1.Participant\"\272\001\332" + + "A\022parent,participant\202\323\344\223\002\236\001\"9/v2beta1/{p" + + "arent=projects/*/conversations/*}/partic" + + "ipants:\013participantZT\"E/v2beta1/{parent=" + + "projects/*/locations/*/conversations/*}/" + + "participants:\013participant\022\213\002\n\016GetPartici" + + "pant\0226.google.cloud.dialogflow.v2beta1.G" + + "etParticipantRequest\032,.google.cloud.dial" + + "ogflow.v2beta1.Participant\"\222\001\332A\004name\202\323\344\223" + + "\002\204\001\0229/v2beta1/{name=projects/*/conversat" + + "ions/*/participants/*}ZG\022E/v2beta1/{name" + "=projects/*/locations/*/conversations/*/" - + "participants/*}/suggestions:suggestFaqAn" - + "swers:\001*\022\361\002\n\023SuggestSmartReplies\022;.googl" - + "e.cloud.dialogflow.v2beta1.SuggestSmartR" - + "epliesRequest\032<.google.cloud.dialogflow." - + "v2beta1.SuggestSmartRepliesResponse\"\336\001\332A" - + "\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=project" - + "s/*/conversations/*/participants/*}/sugg" - + "estions:suggestSmartReplies:\001*Zl\"g/v2bet" - + "a1/{parent=projects/*/locations/*/conver" - + "sations/*/participants/*}/suggestions:su" - + "ggestSmartReplies:\001*\022\330\001\n\017ListSuggestions" - + "\0227.google.cloud.dialogflow.v2beta1.ListS" - + "uggestionsRequest\0328.google.cloud.dialogf" - + "low.v2beta1.ListSuggestionsResponse\"R\210\002\001" - + "\202\323\344\223\002I\022G/v2beta1/{parent=projects/*/conv" - + "ersations/*/participants/*}/suggestions\022" - + "\351\001\n\021CompileSuggestion\0229.google.cloud.dia" - + "logflow.v2beta1.CompileSuggestionRequest" - + "\032:.google.cloud.dialogflow.v2beta1.Compi" - + "leSuggestionResponse\"]\210\002\001\202\323\344\223\002T\"O/v2beta" - + "1/{parent=projects/*/conversations/*/par" - + "ticipants/*}/suggestions:compile:\001*\032x\312A\031" - + "dialogflow.googleapis.com\322AYhttps://www." - + "googleapis.com/auth/cloud-platform,https" - + "://www.googleapis.com/auth/dialogflowB\250\001" - + "\n#com.google.cloud.dialogflow.v2beta1B\020P" - + "articipantProtoP\001ZCcloud.google.com/go/d" - + "ialogflow/apiv2beta1/dialogflowpb;dialog" - + "flowpb\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow" - + ".V2Beta1b\006proto3" + + "participants/*}\022\236\002\n\020ListParticipants\0228.g" + + "oogle.cloud.dialogflow.v2beta1.ListParti" + + "cipantsRequest\0329.google.cloud.dialogflow" + + ".v2beta1.ListParticipantsResponse\"\224\001\332A\006p" + + "arent\202\323\344\223\002\204\001\0229/v2beta1/{parent=projects/" + + "*/conversations/*}/participantsZG\022E/v2be" + + "ta1/{parent=projects/*/locations/*/conve" + + "rsations/*}/participants\022\326\002\n\021UpdateParti" + + "cipant\0229.google.cloud.dialogflow.v2beta1" + + ".UpdateParticipantRequest\032,.google.cloud" + + ".dialogflow.v2beta1.Participant\"\327\001\332A\027par" + + "ticipant,update_mask\202\323\344\223\002\266\0012E/v2beta1/{p" + + "articipant.name=projects/*/conversations" + + "/*/participants/*}:\013participantZ`2Q/v2be" + + "ta1/{participant.name=projects/*/locatio" + + "ns/*/conversations/*/participants/*}:\013pa" + + "rticipant\022\216\003\n\016AnalyzeContent\0226.google.cl" + + "oud.dialogflow.v2beta1.AnalyzeContentReq" + + "uest\0327.google.cloud.dialogflow.v2beta1.A" + + "nalyzeContentResponse\"\212\002\332A\026participant,t" + + "ext_input\332A\027participant,audio_input\332A\027pa" + + "rticipant,event_input\202\323\344\223\002\266\001\"O/v2beta1/{" + + "participant=projects/*/conversations/*/p" + + "articipants/*}:analyzeContent:\001*Z`\"[/v2b" + + "eta1/{participant=projects/*/locations/*" + + "/conversations/*/participants/*}:analyze" + + "Content:\001*\022\242\001\n\027StreamingAnalyzeContent\022?" + + ".google.cloud.dialogflow.v2beta1.Streami" + + "ngAnalyzeContentRequest\032@.google.cloud.d" + + "ialogflow.v2beta1.StreamingAnalyzeConten" + + "tResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles\0227.go" + + "ogle.cloud.dialogflow.v2beta1.SuggestArt" + + "iclesRequest\0328.google.cloud.dialogflow.v" + + "2beta1.SuggestArticlesResponse\"\326\001\332A\006pare" + + "nt\202\323\344\223\002\306\001\"W/v2beta1/{parent=projects/*/c" + + "onversations/*/participants/*}/suggestio" + + "ns:suggestArticles:\001*Zh\"c/v2beta1/{paren" + + "t=projects/*/locations/*/conversations/*" + + "/participants/*}/suggestions:suggestArti" + + "cles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.google.c" + + "loud.dialogflow.v2beta1.SuggestFaqAnswer" + + "sRequest\032:.google.cloud.dialogflow.v2bet" + + "a1.SuggestFaqAnswersResponse\"\332\001\332A\006parent" + + "\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/*/con" + + "versations/*/participants/*}/suggestions" + + ":suggestFaqAnswers:\001*Zj\"e/v2beta1/{paren" + + "t=projects/*/locations/*/conversations/*" + + "/participants/*}/suggestions:suggestFaqA" + + "nswers:\001*\022\361\002\n\023SuggestSmartReplies\022;.goog" + + "le.cloud.dialogflow.v2beta1.SuggestSmart" + + "RepliesRequest\032<.google.cloud.dialogflow" + + ".v2beta1.SuggestSmartRepliesResponse\"\336\001\332" + + "A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=projec" + + "ts/*/conversations/*/participants/*}/sug" + + "gestions:suggestSmartReplies:\001*Zl\"g/v2be" + + "ta1/{parent=projects/*/locations/*/conve" + + "rsations/*/participants/*}/suggestions:s" + + "uggestSmartReplies:\001*\022\330\001\n\017ListSuggestion" + + "s\0227.google.cloud.dialogflow.v2beta1.List" + + "SuggestionsRequest\0328.google.cloud.dialog" + + "flow.v2beta1.ListSuggestionsResponse\"R\210\002" + + "\001\202\323\344\223\002I\022G/v2beta1/{parent=projects/*/con" + + "versations/*/participants/*}/suggestions" + + "\022\351\001\n\021CompileSuggestion\0229.google.cloud.di" + + "alogflow.v2beta1.CompileSuggestionReques" + + "t\032:.google.cloud.dialogflow.v2beta1.Comp" + + "ileSuggestionResponse\"]\210\002\001\202\323\344\223\002T\"O/v2bet" + + "a1/{parent=projects/*/conversations/*/pa" + + "rticipants/*}/suggestions:compile:\001*\032x\312A" + + "\031dialogflow.googleapis.com\322AYhttps://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/dialogflowB\250" + + "\001\n#com.google.cloud.dialogflow.v2beta1B\020" + + "ParticipantProtoP\001ZCcloud.google.com/go/" + + "dialogflow/apiv2beta1/dialogflowpb;dialo" + + "gflowpb\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflo" + + "w.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -885,6 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AssistQueryParams", "CxParameters", "CxCurrentPage", + "EnableExtendedStreaming", "EnablePartialAutomatedAgentReply", "EnableDebuggingInfo", "Config", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java index a2fe18e59b4f..6cecbe040180 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java @@ -849,6 +849,42 @@ public com.google.protobuf.ByteString getCxCurrentPageBytes() { } } + public static final int ENABLE_EXTENDED_STREAMING_FIELD_NUMBER = 11; + private boolean enableExtendedStreaming_ = false; + /** + * + * + *
+   * Optional. Enable full bidirectional streaming. You can keep streaming the
+   * audio until timeout, and there's no need to half close the stream to get
+   * the response.
+   *
+   * Restrictions:
+   *
+   * - Timeout: 3 mins.
+   * - Audio Encoding: only supports
+   * [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_LINEAR_16]
+   * and
+   * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_MULAW]
+   * - Lifecycle: conversation should be in `Assist Stage`, go to
+   *   [Conversation.CreateConversation][] for more information.
+   *
+   * InvalidArgument Error will be returned if the one of restriction checks
+   * failed.
+   *
+   * You can find more details in
+   * https://cloud.google.com/agent-assist/docs/extended-streaming
+   * 
+ * + * bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableExtendedStreaming. + */ + @java.lang.Override + public boolean getEnableExtendedStreaming() { + return enableExtendedStreaming_; + } + public static final int ENABLE_PARTIAL_AUTOMATED_AGENT_REPLY_FIELD_NUMBER = 12; private boolean enablePartialAutomatedAgentReply_ = false; /** @@ -930,6 +966,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 9) { output.writeMessage(9, (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_); } + if (enableExtendedStreaming_ != false) { + output.writeBool(11, enableExtendedStreaming_); + } if (enablePartialAutomatedAgentReply_ != false) { output.writeBool(12, enablePartialAutomatedAgentReply_); } @@ -986,6 +1025,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_); } + if (enableExtendedStreaming_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableExtendedStreaming_); + } if (enablePartialAutomatedAgentReply_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( @@ -1034,6 +1076,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCxParameters().equals(other.getCxParameters())) return false; } if (!getCxCurrentPage().equals(other.getCxCurrentPage())) return false; + if (getEnableExtendedStreaming() != other.getEnableExtendedStreaming()) return false; if (getEnablePartialAutomatedAgentReply() != other.getEnablePartialAutomatedAgentReply()) return false; if (getEnableDebuggingInfo() != other.getEnableDebuggingInfo()) return false; @@ -1093,6 +1136,8 @@ public int hashCode() { } hash = (37 * hash) + CX_CURRENT_PAGE_FIELD_NUMBER; hash = (53 * hash) + getCxCurrentPage().hashCode(); + hash = (37 * hash) + ENABLE_EXTENDED_STREAMING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExtendedStreaming()); hash = (37 * hash) + ENABLE_PARTIAL_AUTOMATED_AGENT_REPLY_FIELD_NUMBER; hash = (53 * hash) @@ -1343,6 +1388,7 @@ public Builder clear() { cxParametersBuilder_ = null; } cxCurrentPage_ = ""; + enableExtendedStreaming_ = false; enablePartialAutomatedAgentReply_ = false; enableDebuggingInfo_ = false; configCase_ = 0; @@ -1414,9 +1460,12 @@ private void buildPartial0( result.cxCurrentPage_ = cxCurrentPage_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_; + result.enableExtendedStreaming_ = enableExtendedStreaming_; } if (((from_bitField0_ & 0x00001000) != 0)) { + result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.enableDebuggingInfo_ = enableDebuggingInfo_; } } @@ -1509,6 +1558,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; onChanged(); } + if (other.getEnableExtendedStreaming() != false) { + setEnableExtendedStreaming(other.getEnableExtendedStreaming()); + } if (other.getEnablePartialAutomatedAgentReply() != false) { setEnablePartialAutomatedAgentReply(other.getEnablePartialAutomatedAgentReply()); } @@ -1637,10 +1689,16 @@ public Builder mergeFrom( inputCase_ = 9; break; } // case 74 + case 88: + { + enableExtendedStreaming_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 88 case 96: { enablePartialAutomatedAgentReply_ = input.readBool(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 96 case 106: @@ -1658,7 +1716,7 @@ public Builder mergeFrom( case 152: { enableDebuggingInfo_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 152 default: @@ -3722,6 +3780,113 @@ public Builder setCxCurrentPageBytes(com.google.protobuf.ByteString value) { return this; } + private boolean enableExtendedStreaming_; + /** + * + * + *
+     * Optional. Enable full bidirectional streaming. You can keep streaming the
+     * audio until timeout, and there's no need to half close the stream to get
+     * the response.
+     *
+     * Restrictions:
+     *
+     * - Timeout: 3 mins.
+     * - Audio Encoding: only supports
+     * [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_LINEAR_16]
+     * and
+     * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_MULAW]
+     * - Lifecycle: conversation should be in `Assist Stage`, go to
+     *   [Conversation.CreateConversation][] for more information.
+     *
+     * InvalidArgument Error will be returned if the one of restriction checks
+     * failed.
+     *
+     * You can find more details in
+     * https://cloud.google.com/agent-assist/docs/extended-streaming
+     * 
+ * + * bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableExtendedStreaming. + */ + @java.lang.Override + public boolean getEnableExtendedStreaming() { + return enableExtendedStreaming_; + } + /** + * + * + *
+     * Optional. Enable full bidirectional streaming. You can keep streaming the
+     * audio until timeout, and there's no need to half close the stream to get
+     * the response.
+     *
+     * Restrictions:
+     *
+     * - Timeout: 3 mins.
+     * - Audio Encoding: only supports
+     * [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_LINEAR_16]
+     * and
+     * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_MULAW]
+     * - Lifecycle: conversation should be in `Assist Stage`, go to
+     *   [Conversation.CreateConversation][] for more information.
+     *
+     * InvalidArgument Error will be returned if the one of restriction checks
+     * failed.
+     *
+     * You can find more details in
+     * https://cloud.google.com/agent-assist/docs/extended-streaming
+     * 
+ * + * bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableExtendedStreaming to set. + * @return This builder for chaining. + */ + public Builder setEnableExtendedStreaming(boolean value) { + + enableExtendedStreaming_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Enable full bidirectional streaming. You can keep streaming the
+     * audio until timeout, and there's no need to half close the stream to get
+     * the response.
+     *
+     * Restrictions:
+     *
+     * - Timeout: 3 mins.
+     * - Audio Encoding: only supports
+     * [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_LINEAR_16]
+     * and
+     * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_MULAW]
+     * - Lifecycle: conversation should be in `Assist Stage`, go to
+     *   [Conversation.CreateConversation][] for more information.
+     *
+     * InvalidArgument Error will be returned if the one of restriction checks
+     * failed.
+     *
+     * You can find more details in
+     * https://cloud.google.com/agent-assist/docs/extended-streaming
+     * 
+ * + * bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableExtendedStreaming() { + bitField0_ = (bitField0_ & ~0x00000800); + enableExtendedStreaming_ = false; + onChanged(); + return this; + } + private boolean enablePartialAutomatedAgentReply_; /** * @@ -3759,7 +3924,7 @@ public boolean getEnablePartialAutomatedAgentReply() { public Builder setEnablePartialAutomatedAgentReply(boolean value) { enablePartialAutomatedAgentReply_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3778,7 +3943,7 @@ public Builder setEnablePartialAutomatedAgentReply(boolean value) { * @return This builder for chaining. */ public Builder clearEnablePartialAutomatedAgentReply() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); enablePartialAutomatedAgentReply_ = false; onChanged(); return this; @@ -3817,7 +3982,7 @@ public boolean getEnableDebuggingInfo() { public Builder setEnableDebuggingInfo(boolean value) { enableDebuggingInfo_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3834,7 +3999,7 @@ public Builder setEnableDebuggingInfo(boolean value) { * @return This builder for chaining. */ public Builder clearEnableDebuggingInfo() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); enableDebuggingInfo_ = false; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java index c50e4c14865f..e9c0f94f2dd8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java @@ -464,6 +464,37 @@ public interface StreamingAnalyzeContentRequestOrBuilder */ com.google.protobuf.ByteString getCxCurrentPageBytes(); + /** + * + * + *
+   * Optional. Enable full bidirectional streaming. You can keep streaming the
+   * audio until timeout, and there's no need to half close the stream to get
+   * the response.
+   *
+   * Restrictions:
+   *
+   * - Timeout: 3 mins.
+   * - Audio Encoding: only supports
+   * [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_LINEAR_16]
+   * and
+   * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_MULAW]
+   * - Lifecycle: conversation should be in `Assist Stage`, go to
+   *   [Conversation.CreateConversation][] for more information.
+   *
+   * InvalidArgument Error will be returned if the one of restriction checks
+   * failed.
+   *
+   * You can find more details in
+   * https://cloud.google.com/agent-assist/docs/extended-streaming
+   * 
+ * + * bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableExtendedStreaming. + */ + boolean getEnableExtendedStreaming(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index 44d26fb0f90f..baedc2fd3877 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -931,6 +931,27 @@ message StreamingAnalyzeContentRequest { // CX agent. string cx_current_page = 15; + // Optional. Enable full bidirectional streaming. You can keep streaming the + // audio until timeout, and there's no need to half close the stream to get + // the response. + // + // Restrictions: + // + // - Timeout: 3 mins. + // - Audio Encoding: only supports + // [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_LINEAR_16] + // and + // [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_MULAW] + // - Lifecycle: conversation should be in `Assist Stage`, go to + // [Conversation.CreateConversation][] for more information. + // + // InvalidArgument Error will be returned if the one of restriction checks + // failed. + // + // You can find more details in + // https://cloud.google.com/agent-assist/docs/extended-streaming + bool enable_extended_streaming = 11 [(google.api.field_behavior) = OPTIONAL]; + // Enable partial virtual agent responses. If this flag is not enabled, // response stream still contains only one final response even if some // `Fulfillment`s in Dialogflow virtual agent have been configured to return diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java index f63d1b87e019..7dead29448cb 100644 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java @@ -53,6 +53,7 @@ public static void asyncStreamingAnalyzeContent() throws Exception { .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) .setCxParameters(Struct.newBuilder().build()) .setCxCurrentPage("cxCurrentPage1596907507") + .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) .setEnableDebuggingInfo(true) .build();