From 8c1e2a9ab95bb5d0fafa17ecc114829b3908a9e7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 22 Nov 2022 15:40:15 +0000 Subject: [PATCH] feat: [dialogflow] added cx_current_page field to AutomatedAgentReply (#8830) - [ ] Regenerate this pull request now. docs: clarified docs for Sentiment PiperOrigin-RevId: 490103678 Source-Link: https://togithub.com/googleapis/googleapis/commit/8f95a5f2d5032f040d93874bf8e63b33d135d11d Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/fed1c108dbe9291c14f7f305ca1e8bf2830c9c60 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiJmZWQxYzEwOGRiZTkyOTFjMTRmN2YzMDVjYTFlOGJmMjgzMGM5YzYwIn0= --- .../dialogflow/v2/AutomatedAgentReply.java | 192 +++++++++++++++ .../v2/AutomatedAgentReplyOrBuilder.java | 29 +++ .../cloud/dialogflow/v2/ParticipantProto.java | 233 +++++++++--------- .../google/cloud/dialogflow/v2/Sentiment.java | 8 +- .../cloud/dialogflow/v2/participant.proto | 5 + .../google/cloud/dialogflow/v2/session.proto | 4 +- 6 files changed, 353 insertions(+), 118 deletions(-) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java index 08bdd8aaeefd..44a19ff51835 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java @@ -39,6 +39,7 @@ private AutomatedAgentReply(com.google.protobuf.GeneratedMessageV3.Builder bu private AutomatedAgentReply() { automatedAgentReplyType_ = 0; + cxCurrentPage_ = ""; } @java.lang.Override @@ -346,6 +347,59 @@ public boolean getAllowCancellation() { return allowCancellation_; } + public static final int CX_CURRENT_PAGE_FIELD_NUMBER = 11; + private volatile java.lang.Object cxCurrentPage_; + /** + * + * + *
+   * The unique identifier of the current Dialogflow CX conversation page.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * 
+ * + * string cx_current_page = 11; + * + * @return The cxCurrentPage. + */ + @java.lang.Override + public java.lang.String getCxCurrentPage() { + java.lang.Object ref = cxCurrentPage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cxCurrentPage_ = s; + return s; + } + } + /** + * + * + *
+   * The unique identifier of the current Dialogflow CX conversation page.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * 
+ * + * string cx_current_page = 11; + * + * @return The bytes for cxCurrentPage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCxCurrentPageBytes() { + java.lang.Object ref = cxCurrentPage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cxCurrentPage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -372,6 +426,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allowCancellation_ != false) { output.writeBool(8, allowCancellation_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cxCurrentPage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, cxCurrentPage_); + } getUnknownFields().writeTo(output); } @@ -394,6 +451,9 @@ public int getSerializedSize() { if (allowCancellation_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, allowCancellation_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cxCurrentPage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cxCurrentPage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -416,6 +476,7 @@ public boolean equals(final java.lang.Object obj) { } if (automatedAgentReplyType_ != other.automatedAgentReplyType_) return false; if (getAllowCancellation() != other.getAllowCancellation()) return false; + if (!getCxCurrentPage().equals(other.getCxCurrentPage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -435,6 +496,8 @@ public int hashCode() { hash = (53 * hash) + automatedAgentReplyType_; hash = (37 * hash) + ALLOW_CANCELLATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCancellation()); + hash = (37 * hash) + CX_CURRENT_PAGE_FIELD_NUMBER; + hash = (53 * hash) + getCxCurrentPage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -583,6 +646,8 @@ public Builder clear() { allowCancellation_ = false; + cxCurrentPage_ = ""; + return this; } @@ -617,6 +682,7 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply buildPartial() { } result.automatedAgentReplyType_ = automatedAgentReplyType_; result.allowCancellation_ = allowCancellation_; + result.cxCurrentPage_ = cxCurrentPage_; onBuilt(); return result; } @@ -676,6 +742,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AutomatedAgentReply othe if (other.getAllowCancellation() != false) { setAllowCancellation(other.getAllowCancellation()); } + if (!other.getCxCurrentPage().isEmpty()) { + cxCurrentPage_ = other.cxCurrentPage_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -721,6 +791,12 @@ public Builder mergeFrom( break; } // case 64 + case 90: + { + cxCurrentPage_ = input.readStringRequireUtf8(); + + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1092,6 +1168,122 @@ public Builder clearAllowCancellation() { return this; } + private java.lang.Object cxCurrentPage_ = ""; + /** + * + * + *
+     * The unique identifier of the current Dialogflow CX conversation page.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * 
+ * + * string cx_current_page = 11; + * + * @return The cxCurrentPage. + */ + public java.lang.String getCxCurrentPage() { + java.lang.Object ref = cxCurrentPage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cxCurrentPage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The unique identifier of the current Dialogflow CX conversation page.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * 
+ * + * string cx_current_page = 11; + * + * @return The bytes for cxCurrentPage. + */ + public com.google.protobuf.ByteString getCxCurrentPageBytes() { + java.lang.Object ref = cxCurrentPage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cxCurrentPage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The unique identifier of the current Dialogflow CX conversation page.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * 
+ * + * string cx_current_page = 11; + * + * @param value The cxCurrentPage to set. + * @return This builder for chaining. + */ + public Builder setCxCurrentPage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cxCurrentPage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the current Dialogflow CX conversation page.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * 
+ * + * string cx_current_page = 11; + * + * @return This builder for chaining. + */ + public Builder clearCxCurrentPage() { + + cxCurrentPage_ = getDefaultInstance().getCxCurrentPage(); + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the current Dialogflow CX conversation page.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * 
+ * + * string cx_current_page = 11; + * + * @param value The bytes for cxCurrentPage to set. + * @return This builder for chaining. + */ + public Builder setCxCurrentPageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cxCurrentPage_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java index 04e651f2c6d2..ba7428339fa3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java @@ -102,4 +102,33 @@ public interface AutomatedAgentReplyOrBuilder * @return The allowCancellation. */ boolean getAllowCancellation(); + + /** + * + * + *
+   * The unique identifier of the current Dialogflow CX conversation page.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * 
+ * + * string cx_current_page = 11; + * + * @return The cxCurrentPage. + */ + java.lang.String getCxCurrentPage(); + /** + * + * + *
+   * The unique identifier of the current Dialogflow CX conversation page.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * 
+ * + * string cx_current_page = 11; + * + * @return The bytes for cxCurrentPage. + */ + com.google.protobuf.ByteString getCxCurrentPageBytes(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java index df461ad107b8..4cfb1407f141 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java @@ -314,126 +314,126 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "flow.googleapis.com/Message\022\024\n\014context_s" + "ize\030\003 \001(\005\"[\n\013OutputAudio\022=\n\006config\030\001 \001(\013" + "2-.google.cloud.dialogflow.v2.OutputAudi" - + "oConfig\022\r\n\005audio\030\002 \001(\014\"\317\002\n\023AutomatedAgen" + + "oConfig\022\r\n\005audio\030\002 \001(\014\"\350\002\n\023AutomatedAgen" + "tReply\022P\n\026detect_intent_response\030\001 \001(\01320" + ".google.cloud.dialogflow.v2.DetectIntent" + "Response\022k\n\032automated_agent_reply_type\030\007" + " \001(\0162G.google.cloud.dialogflow.v2.Automa" + "tedAgentReply.AutomatedAgentReplyType\022\032\n" - + "\022allow_cancellation\030\010 \001(\010\"]\n\027AutomatedAg" - + "entReplyType\022*\n&AUTOMATED_AGENT_REPLY_TY" - + "PE_UNSPECIFIED\020\000\022\013\n\007PARTIAL\020\001\022\t\n\005FINAL\020\002" - + "\"\344\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\022\022\n\nconfidence\030\004" - + " \001(\002\022I\n\010metadata\030\005 \003(\01327.google.cloud.di" - + "alogflow.v2.ArticleAnswer.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\"\340\001\n\tFaqA" - + "nswer\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\022E\n\010m" - + "etadata\030\005 \003(\01323.google.cloud.dialogflow." - + "v2.FaqAnswer.MetadataEntry\022\025\n\ranswer_rec" - + "ord\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\020SmartReplyAnswer\022\r" - + "\n\005reply\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022B\n\rans" - + "wer_record\030\003 \001(\tB+\372A(\n&dialogflow.google" - + "apis.com/AnswerRecord\"\352\002\n\020SuggestionResu" - + "lt\022#\n\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022" - + "X\n\031suggest_articles_response\030\002 \001(\01323.goo" - + "gle.cloud.dialogflow.v2.SuggestArticlesR" - + "esponseH\000\022]\n\034suggest_faq_answers_respons" - + "e\030\003 \001(\01325.google.cloud.dialogflow.v2.Sug" - + "gestFaqAnswersResponseH\000\022a\n\036suggest_smar" - + "t_replies_response\030\004 \001(\01327.google.cloud." - + "dialogflow.v2.SuggestSmartRepliesRespons" - + "eH\000B\025\n\023suggestion_response\"-\n\017InputTextC" - + "onfig\022\032\n\rlanguage_code\030\001 \001(\tB\003\340A\002\"j\n\024Ann" - + "otatedMessagePart\022\014\n\004text\030\001 \001(\t\022\023\n\013entit" - + "y_type\030\002 \001(\t\022/\n\017formatted_value\030\003 \001(\0132\026." - + "google.protobuf.Value\"n\n\021MessageAnnotati" - + "on\022?\n\005parts\030\001 \003(\01320.google.cloud.dialogf" - + "low.v2.AnnotatedMessagePart\022\030\n\020contain_e" - + "ntities\030\002 \001(\010\"\315\001\n\025AssistQueryParameters\022" - + "s\n\032documents_metadata_filters\030\001 \003(\0132O.go" - + "ogle.cloud.dialogflow.v2.AssistQueryPara" - + "meters.DocumentsMetadataFiltersEntry\032?\n\035" - + "DocumentsMetadataFiltersEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\372\025\n\014Participants\022\245" - + "\002\n\021CreateParticipant\0224.google.cloud.dial" - + "ogflow.v2.CreateParticipantRequest\032\'.goo" - + "gle.cloud.dialogflow.v2.Participant\"\260\001\202\323" - + "\344\223\002\224\001\"4/v2/{parent=projects/*/conversati" - + "ons/*}/participants:\013participantZO\"@/v2/" - + "{parent=projects/*/locations/*/conversat" - + "ions/*}/participants:\013participant\332A\022pare" - + "nt,participant\022\366\001\n\016GetParticipant\0221.goog" - + "le.cloud.dialogflow.v2.GetParticipantReq" - + "uest\032\'.google.cloud.dialogflow.v2.Partic" - + "ipant\"\207\001\202\323\344\223\002z\0224/v2/{name=projects/*/con" - + "versations/*/participants/*}ZB\022@/v2/{nam" - + "e=projects/*/locations/*/conversations/*" - + "/participants/*}\332A\004name\022\211\002\n\020ListParticip" - + "ants\0223.google.cloud.dialogflow.v2.ListPa" - + "rticipantsRequest\0324.google.cloud.dialogf" - + "low.v2.ListParticipantsResponse\"\211\001\202\323\344\223\002z" - + "\0224/v2/{parent=projects/*/conversations/*" - + "}/participantsZB\022@/v2/{parent=projects/*" - + "/locations/*/conversations/*}/participan" - + "ts\332A\006parent\022\302\002\n\021UpdateParticipant\0224.goog" - + "le.cloud.dialogflow.v2.UpdateParticipant" - + "Request\032\'.google.cloud.dialogflow.v2.Par" - + "ticipant\"\315\001\202\323\344\223\002\254\0012@/v2/{participant.nam" - + "e=projects/*/conversations/*/participant" - + "s/*}:\013participantZ[2L/v2/{participant.na" - + "me=projects/*/locations/*/conversations/" - + "*/participants/*}:\013participant\332A\027partici" - + "pant,update_mask\022\340\002\n\016AnalyzeContent\0221.go" - + "ogle.cloud.dialogflow.v2.AnalyzeContentR" - + "equest\0322.google.cloud.dialogflow.v2.Anal" - + "yzeContentResponse\"\346\001\202\323\344\223\002\254\001\"J/v2/{parti" - + "cipant=projects/*/conversations/*/partic" - + "ipants/*}:analyzeContent:\001*Z[\"V/v2/{part" - + "icipant=projects/*/locations/*/conversat" - + "ions/*/participants/*}:analyzeContent:\001*" - + "\332A\026participant,text_input\332A\027participant," - + "event_input\022\230\001\n\027StreamingAnalyzeContent\022" - + ":.google.cloud.dialogflow.v2.StreamingAn" - + "alyzeContentRequest\032;.google.cloud.dialo" - + "gflow.v2.StreamingAnalyzeContentResponse" - + "\"\000(\0010\001\022\311\002\n\017SuggestArticles\0222.google.clou" - + "d.dialogflow.v2.SuggestArticlesRequest\0323" - + ".google.cloud.dialogflow.v2.SuggestArtic" - + "lesResponse\"\314\001\202\323\344\223\002\274\001\"R/v2/{parent=proje" - + "cts/*/conversations/*/participants/*}/su" - + "ggestions:suggestArticles:\001*Zc\"^/v2/{par" - + "ent=projects/*/locations/*/conversations" - + "/*/participants/*}/suggestions:suggestAr" - + "ticles:\001*\332A\006parent\022\323\002\n\021SuggestFaqAnswers" - + "\0224.google.cloud.dialogflow.v2.SuggestFaq" - + "AnswersRequest\0325.google.cloud.dialogflow" - + ".v2.SuggestFaqAnswersResponse\"\320\001\202\323\344\223\002\300\001\"" - + "T/v2/{parent=projects/*/conversations/*/" - + "participants/*}/suggestions:suggestFaqAn" - + "swers:\001*Ze\"`/v2/{parent=projects/*/locat" - + "ions/*/conversations/*/participants/*}/s" - + "uggestions:suggestFaqAnswers:\001*\332A\006parent" - + "\022\335\002\n\023SuggestSmartReplies\0226.google.cloud." - + "dialogflow.v2.SuggestSmartRepliesRequest" - + "\0327.google.cloud.dialogflow.v2.SuggestSma" - + "rtRepliesResponse\"\324\001\202\323\344\223\002\304\001\"V/v2/{parent" - + "=projects/*/conversations/*/participants" - + "/*}/suggestions:suggestSmartReplies:\001*Zg" - + "\"b/v2/{parent=projects/*/locations/*/con" + + "\022allow_cancellation\030\010 \001(\010\022\027\n\017cx_current_" + + "page\030\013 \001(\t\"]\n\027AutomatedAgentReplyType\022*\n" + + "&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\020" + + "\000\022\013\n\007PARTIAL\020\001\022\t\n\005FINAL\020\002\"\344\001\n\rArticleAns" + + "wer\022\r\n\005title\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010snipp" + + "ets\030\003 \003(\t\022\022\n\nconfidence\030\004 \001(\002\022I\n\010metadat" + + "a\030\005 \003(\01327.google.cloud.dialogflow.v2.Art" + + "icleAnswer.MetadataEntry\022\025\n\ranswer_recor" + + "d\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\"\340\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\022E\n\010metadata\030\005 \003(\01323" + + ".google.cloud.dialogflow.v2.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\"y\n\020SmartReplyAnswer\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&dialogflow.googleapis.com/Answer" + + "Record\"\352\002\n\020SuggestionResult\022#\n\005error\030\001 \001" + + "(\0132\022.google.rpc.StatusH\000\022X\n\031suggest_arti" + + "cles_response\030\002 \001(\01323.google.cloud.dialo" + + "gflow.v2.SuggestArticlesResponseH\000\022]\n\034su" + + "ggest_faq_answers_response\030\003 \001(\01325.googl" + + "e.cloud.dialogflow.v2.SuggestFaqAnswersR" + + "esponseH\000\022a\n\036suggest_smart_replies_respo" + + "nse\030\004 \001(\01327.google.cloud.dialogflow.v2.S" + + "uggestSmartRepliesResponseH\000B\025\n\023suggesti" + + "on_response\"-\n\017InputTextConfig\022\032\n\rlangua" + + "ge_code\030\001 \001(\tB\003\340A\002\"j\n\024AnnotatedMessagePa" + + "rt\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.protobuf" + + ".Value\"n\n\021MessageAnnotation\022?\n\005parts\030\001 \003" + + "(\01320.google.cloud.dialogflow.v2.Annotate" + + "dMessagePart\022\030\n\020contain_entities\030\002 \001(\010\"\315" + + "\001\n\025AssistQueryParameters\022s\n\032documents_me" + + "tadata_filters\030\001 \003(\0132O.google.cloud.dial" + + "ogflow.v2.AssistQueryParameters.Document" + + "sMetadataFiltersEntry\032?\n\035DocumentsMetada" + + "taFiltersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\0012\372\025\n\014Participants\022\245\002\n\021CreatePartic" + + "ipant\0224.google.cloud.dialogflow.v2.Creat" + + "eParticipantRequest\032\'.google.cloud.dialo" + + "gflow.v2.Participant\"\260\001\202\323\344\223\002\224\001\"4/v2/{par" + + "ent=projects/*/conversations/*}/particip" + + "ants:\013participantZO\"@/v2/{parent=project" + + "s/*/locations/*/conversations/*}/partici" + + "pants:\013participant\332A\022parent,participant\022" + + "\366\001\n\016GetParticipant\0221.google.cloud.dialog" + + "flow.v2.GetParticipantRequest\032\'.google.c" + + "loud.dialogflow.v2.Participant\"\207\001\202\323\344\223\002z\022" + + "4/v2/{name=projects/*/conversations/*/pa" + + "rticipants/*}ZB\022@/v2/{name=projects/*/lo" + + "cations/*/conversations/*/participants/*" + + "}\332A\004name\022\211\002\n\020ListParticipants\0223.google.c" + + "loud.dialogflow.v2.ListParticipantsReque" + + "st\0324.google.cloud.dialogflow.v2.ListPart" + + "icipantsResponse\"\211\001\202\323\344\223\002z\0224/v2/{parent=p" + + "rojects/*/conversations/*}/participantsZ" + + "B\022@/v2/{parent=projects/*/locations/*/co" + + "nversations/*}/participants\332A\006parent\022\302\002\n" + + "\021UpdateParticipant\0224.google.cloud.dialog" + + "flow.v2.UpdateParticipantRequest\032\'.googl" + + "e.cloud.dialogflow.v2.Participant\"\315\001\202\323\344\223" + + "\002\254\0012@/v2/{participant.name=projects/*/co" + + "nversations/*/participants/*}:\013participa" + + "ntZ[2L/v2/{participant.name=projects/*/l" + + "ocations/*/conversations/*/participants/" + + "*}:\013participant\332A\027participant,update_mas" + + "k\022\340\002\n\016AnalyzeContent\0221.google.cloud.dial" + + "ogflow.v2.AnalyzeContentRequest\0322.google" + + ".cloud.dialogflow.v2.AnalyzeContentRespo" + + "nse\"\346\001\202\323\344\223\002\254\001\"J/v2/{participant=projects" + + "/*/conversations/*/participants/*}:analy" + + "zeContent:\001*Z[\"V/v2/{participant=project" + + "s/*/locations/*/conversations/*/particip" + + "ants/*}:analyzeContent:\001*\332A\026participant," + + "text_input\332A\027participant,event_input\022\230\001\n" + + "\027StreamingAnalyzeContent\022:.google.cloud." + + "dialogflow.v2.StreamingAnalyzeContentReq" + + "uest\032;.google.cloud.dialogflow.v2.Stream" + + "ingAnalyzeContentResponse\"\000(\0010\001\022\311\002\n\017Sugg" + + "estArticles\0222.google.cloud.dialogflow.v2" + + ".SuggestArticlesRequest\0323.google.cloud.d" + + "ialogflow.v2.SuggestArticlesResponse\"\314\001\202" + + "\323\344\223\002\274\001\"R/v2/{parent=projects/*/conversat" + + "ions/*/participants/*}/suggestions:sugge" + + "stArticles:\001*Zc\"^/v2/{parent=projects/*/" + + "locations/*/conversations/*/participants" + + "/*}/suggestions:suggestArticles:\001*\332A\006par" + + "ent\022\323\002\n\021SuggestFaqAnswers\0224.google.cloud" + + ".dialogflow.v2.SuggestFaqAnswersRequest\032" + + "5.google.cloud.dialogflow.v2.SuggestFaqA" + + "nswersResponse\"\320\001\202\323\344\223\002\300\001\"T/v2/{parent=pr" + + "ojects/*/conversations/*/participants/*}" + + "/suggestions:suggestFaqAnswers:\001*Ze\"`/v2" + + "/{parent=projects/*/locations/*/conversa" + + "tions/*/participants/*}/suggestions:sugg" + + "estFaqAnswers:\001*\332A\006parent\022\335\002\n\023SuggestSma" + + "rtReplies\0226.google.cloud.dialogflow.v2.S" + + "uggestSmartRepliesRequest\0327.google.cloud" + + ".dialogflow.v2.SuggestSmartRepliesRespon" + + "se\"\324\001\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/con" + "versations/*/participants/*}/suggestions" - + ":suggestSmartReplies:\001*\332A\006parent\032x\312A\031dia" - + "logflow.googleapis.com\322AYhttps://www.goo" - + "gleapis.com/auth/cloud-platform,https://" - + "www.googleapis.com/auth/dialogflowB\237\001\n\036c" - + "om.google.cloud.dialogflow.v2B\020Participa" - + "ntProtoP\001ZDgoogle.golang.org/genproto/go" - + "ogleapis/cloud/dialogflow/v2;dialogflow\370" - + "\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006pr" - + "oto3" + + ":suggestSmartReplies:\001*Zg\"b/v2/{parent=p" + + "rojects/*/locations/*/conversations/*/pa" + + "rticipants/*}/suggestions:suggestSmartRe" + + "plies:\001*\332A\006parent\032x\312A\031dialogflow.googlea" + + "pis.com\322AYhttps://www.googleapis.com/aut" + + "h/cloud-platform,https://www.googleapis." + + "com/auth/dialogflowB\237\001\n\036com.google.cloud" + + ".dialogflow.v2B\020ParticipantProtoP\001ZDgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Googl" + + "e.Cloud.Dialogflow.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -661,7 +661,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor, new java.lang.String[] { - "DetectIntentResponse", "AutomatedAgentReplyType", "AllowCancellation", + "DetectIntentResponse", + "AutomatedAgentReplyType", + "AllowCancellation", + "CxCurrentPage", }); internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor = getDescriptor().getMessageTypes().get(20); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java index 8d317de84a1c..99726a6f0610 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java @@ -23,7 +23,9 @@ * *
  * The sentiment, such as positive/negative feeling or association, for a unit
- * of analysis, such as the query text.
+ * of analysis, such as the query text. See:
+ * https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
+ * for how to interpret the result.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Sentiment} @@ -278,7 +280,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * The sentiment, such as positive/negative feeling or association, for a unit
-   * of analysis, such as the query text.
+   * of analysis, such as the query text. See:
+   * https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
+   * for how to interpret the result.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Sentiment} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto index a39d49fb5278..f6b385077de6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto @@ -836,6 +836,11 @@ message AutomatedAgentReply { // later reply message arrives. e.g. if the agent specified some music as // partial response, it can be cancelled. bool allow_cancellation = 8; + + // The unique identifier of the current Dialogflow CX conversation page. + // Format: `projects//locations//agents//flows//pages/`. + string cx_current_page = 11; } // Represents article answer. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index 107e02060a3c..85119ecc5318 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -689,7 +689,9 @@ message SentimentAnalysisResult { } // The sentiment, such as positive/negative feeling or association, for a unit -// of analysis, such as the query text. +// of analysis, such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. message Sentiment { // Sentiment score between -1.0 (negative sentiment) and 1.0 (positive // sentiment).