diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java index ae105de56..5d5e5a1df 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java +++ b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java @@ -752,6 +752,7 @@ public final AnalyzeContentResponse analyzeContent(String participant, TextInput * .toString()) * .setReplyAudioConfig(OutputAudioConfig.newBuilder().build()) * .setQueryParams(QueryParameters.newBuilder().build()) + * .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * AnalyzeContentResponse response = participantsClient.analyzeContent(request); @@ -785,6 +786,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * .toString()) * .setReplyAudioConfig(OutputAudioConfig.newBuilder().build()) * .setQueryParams(QueryParameters.newBuilder().build()) + * .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = @@ -872,6 +874,7 @@ public final SuggestArticlesResponse suggestArticles(String parent) { * "[PROJECT]", "[CONVERSATION]", "[MESSAGE]") * .toString()) * .setContextSize(1116903569) + * .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) * .build(); * SuggestArticlesResponse response = participantsClient.suggestArticles(request); * } @@ -903,6 +906,7 @@ public final SuggestArticlesResponse suggestArticles(SuggestArticlesRequest requ * "[PROJECT]", "[CONVERSATION]", "[MESSAGE]") * .toString()) * .setContextSize(1116903569) + * .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) * .build(); * ApiFuture future = * participantsClient.suggestArticlesCallable().futureCall(request); @@ -990,6 +994,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(String parent) { * "[PROJECT]", "[CONVERSATION]", "[MESSAGE]") * .toString()) * .setContextSize(1116903569) + * .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) * .build(); * SuggestFaqAnswersResponse response = participantsClient.suggestFaqAnswers(request); * } @@ -1021,6 +1026,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(SuggestFaqAnswersReques * "[PROJECT]", "[CONVERSATION]", "[MESSAGE]") * .toString()) * .setContextSize(1116903569) + * .setAssistQueryParams(AssistQueryParameters.newBuilder().build()) * .build(); * ApiFuture future = * participantsClient.suggestFaqAnswersCallable().futureCall(request); diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java index b1cfdd7e8..ff981bc79 100644 --- a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java +++ b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java @@ -32,6 +32,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import javax.annotation.Generated; @@ -89,6 +90,7 @@ public void createParticipantTest() throws Exception { "[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]") .toString()) .setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873") + .putAllDocumentsMetadataFilters(new HashMap()) .build(); mockParticipants.addResponse(expectedResponse); @@ -136,6 +138,7 @@ public void createParticipantTest2() throws Exception { "[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]") .toString()) .setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873") + .putAllDocumentsMetadataFilters(new HashMap()) .build(); mockParticipants.addResponse(expectedResponse); @@ -181,6 +184,7 @@ public void getParticipantTest() throws Exception { "[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]") .toString()) .setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873") + .putAllDocumentsMetadataFilters(new HashMap()) .build(); mockParticipants.addResponse(expectedResponse); @@ -227,6 +231,7 @@ public void getParticipantTest2() throws Exception { "[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]") .toString()) .setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873") + .putAllDocumentsMetadataFilters(new HashMap()) .build(); mockParticipants.addResponse(expectedResponse); @@ -359,6 +364,7 @@ public void updateParticipantTest() throws Exception { "[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]") .toString()) .setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873") + .putAllDocumentsMetadataFilters(new HashMap()) .build(); mockParticipants.addResponse(expectedResponse); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java index e549aa2a3..b3f884623 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
+ * The request message for
+ * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentRequest} @@ -147,6 +148,23 @@ private AnalyzeContentRequest( java.lang.String s = input.readStringRequireUtf8(); requestId_ = s; + break; + } + case 114: + { + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder subBuilder = null; + if (assistQueryParams_ != null) { + subBuilder = assistQueryParams_.toBuilder(); + } + assistQueryParams_ = + input.readMessage( + com.google.cloud.dialogflow.v2.AssistQueryParameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(assistQueryParams_); + assistQueryParams_ = subBuilder.buildPartial(); + } + break; } default: @@ -497,6 +515,55 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB return getQueryParams(); } + public static final int ASSIST_QUERY_PARAMS_FIELD_NUMBER = 14; + private com.google.cloud.dialogflow.v2.AssistQueryParameters assistQueryParams_; + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + * + * @return Whether the assistQueryParams field is set. + */ + @java.lang.Override + public boolean hasAssistQueryParams() { + return assistQueryParams_ != null; + } + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + * + * @return The assistQueryParams. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams() { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder + getAssistQueryParamsOrBuilder() { + return getAssistQueryParams(); + } + public static final int REQUEST_ID_FIELD_NUMBER = 11; private volatile java.lang.Object requestId_; /** @@ -582,6 +649,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, requestId_); } + if (assistQueryParams_ != null) { + output.writeMessage(14, getAssistQueryParams()); + } unknownFields.writeTo(output); } @@ -613,6 +683,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, requestId_); } + if (assistQueryParams_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getAssistQueryParams()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -638,6 +711,10 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryParams()) { if (!getQueryParams().equals(other.getQueryParams())) return false; } + if (hasAssistQueryParams() != other.hasAssistQueryParams()) return false; + if (hasAssistQueryParams()) { + if (!getAssistQueryParams().equals(other.getAssistQueryParams())) return false; + } if (!getRequestId().equals(other.getRequestId())) return false; if (!getInputCase().equals(other.getInputCase())) return false; switch (inputCase_) { @@ -671,6 +748,10 @@ public int hashCode() { hash = (37 * hash) + QUERY_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getQueryParams().hashCode(); } + if (hasAssistQueryParams()) { + hash = (37 * hash) + ASSIST_QUERY_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAssistQueryParams().hashCode(); + } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); switch (inputCase_) { @@ -789,7 +870,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
+   * The request message for
+   * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentRequest} @@ -844,6 +926,12 @@ public Builder clear() { queryParams_ = null; queryParamsBuilder_ = null; } + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = null; + } else { + assistQueryParams_ = null; + assistQueryParamsBuilder_ = null; + } requestId_ = ""; inputCase_ = 0; @@ -900,6 +988,11 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentRequest buildPartial() { } else { result.queryParams_ = queryParamsBuilder_.build(); } + if (assistQueryParamsBuilder_ == null) { + result.assistQueryParams_ = assistQueryParams_; + } else { + result.assistQueryParams_ = assistQueryParamsBuilder_.build(); + } result.requestId_ = requestId_; result.inputCase_ = inputCase_; onBuilt(); @@ -962,6 +1055,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnalyzeContentRequest ot if (other.hasQueryParams()) { mergeQueryParams(other.getQueryParams()); } + if (other.hasAssistQueryParams()) { + mergeAssistQueryParams(other.getAssistQueryParams()); + } if (!other.getRequestId().isEmpty()) { requestId_ = other.requestId_; onChanged(); @@ -1978,6 +2074,196 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB return queryParamsBuilder_; } + private com.google.cloud.dialogflow.v2.AssistQueryParameters assistQueryParams_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder> + assistQueryParamsBuilder_; + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + * + * @return Whether the assistQueryParams field is set. + */ + public boolean hasAssistQueryParams() { + return assistQueryParamsBuilder_ != null || assistQueryParams_ != null; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + * + * @return The assistQueryParams. + */ + public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams() { + if (assistQueryParamsBuilder_ == null) { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } else { + return assistQueryParamsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + public Builder setAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters value) { + if (assistQueryParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistQueryParams_ = value; + onChanged(); + } else { + assistQueryParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + public Builder setAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder builderForValue) { + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = builderForValue.build(); + onChanged(); + } else { + assistQueryParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + public Builder mergeAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters value) { + if (assistQueryParamsBuilder_ == null) { + if (assistQueryParams_ != null) { + assistQueryParams_ = + com.google.cloud.dialogflow.v2.AssistQueryParameters.newBuilder(assistQueryParams_) + .mergeFrom(value) + .buildPartial(); + } else { + assistQueryParams_ = value; + } + onChanged(); + } else { + assistQueryParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + public Builder clearAssistQueryParams() { + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = null; + onChanged(); + } else { + assistQueryParams_ = null; + assistQueryParamsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + public com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder + getAssistQueryParamsBuilder() { + + onChanged(); + return getAssistQueryParamsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + public com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder + getAssistQueryParamsOrBuilder() { + if (assistQueryParamsBuilder_ != null) { + return assistQueryParamsBuilder_.getMessageOrBuilder(); + } else { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder> + getAssistQueryParamsFieldBuilder() { + if (assistQueryParamsBuilder_ == null) { + assistQueryParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder>( + getAssistQueryParams(), getParentForChildren(), isClean()); + assistQueryParams_ = null; + } + return assistQueryParamsBuilder_; + } + private java.lang.Object requestId_ = ""; /** * diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java index 680131bd3..4054b595e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java @@ -208,6 +208,41 @@ public interface AnalyzeContentRequestOrBuilder */ com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrBuilder(); + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + * + * @return Whether the assistQueryParams field is set. + */ + boolean hasAssistQueryParams(); + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + * + * @return The assistQueryParams. + */ + com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams(); + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 14; + */ + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder getAssistQueryParamsOrBuilder(); + /** * * diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java index b17a9b27d..bb484ab71 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
+ * The response message for
+ * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentResponse} @@ -345,7 +346,9 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -363,7 +366,9 @@ public boolean hasAutomatedAgentReply() { * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -383,7 +388,9 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -450,7 +457,8 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -467,7 +475,8 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -484,7 +493,8 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -500,7 +510,8 @@ public int getHumanAgentSuggestionResultsCount() { * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -516,7 +527,8 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionRe * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -536,7 +548,8 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionRe * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -553,7 +566,8 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionRe * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -570,7 +584,8 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionRe * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -586,7 +601,8 @@ public int getEndUserSuggestionResultsCount() { * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -602,7 +618,8 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResul * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -911,7 +928,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
+   * The response message for
+   * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentResponse} @@ -1601,7 +1619,9 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1618,7 +1638,9 @@ public boolean hasAutomatedAgentReply() { * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1641,7 +1663,9 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1667,7 +1691,9 @@ public Builder setAutomatedAgentReply( * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1690,7 +1716,9 @@ public Builder setAutomatedAgentReply( * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1720,7 +1748,9 @@ public Builder mergeAutomatedAgentReply( * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1743,7 +1773,9 @@ public Builder clearAutomatedAgentReply() { * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1761,7 +1793,9 @@ public Builder clearAutomatedAgentReply() { * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -1783,7 +1817,9 @@ public Builder clearAutomatedAgentReply() { * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -2013,7 +2049,8 @@ private void ensureHumanAgentSuggestionResultsIsMutable() { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2034,7 +2071,8 @@ private void ensureHumanAgentSuggestionResultsIsMutable() { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2054,7 +2092,8 @@ public int getHumanAgentSuggestionResultsCount() { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2075,7 +2114,8 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionRe * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2102,7 +2142,8 @@ public Builder setHumanAgentSuggestionResults( * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2126,7 +2167,8 @@ public Builder setHumanAgentSuggestionResults( * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2153,7 +2195,8 @@ public Builder addHumanAgentSuggestionResults( * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2180,7 +2223,8 @@ public Builder addHumanAgentSuggestionResults( * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2204,7 +2248,8 @@ public Builder addHumanAgentSuggestionResults( * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2228,7 +2273,8 @@ public Builder addHumanAgentSuggestionResults( * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2253,7 +2299,8 @@ public Builder addAllHumanAgentSuggestionResults( * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2276,7 +2323,8 @@ public Builder clearHumanAgentSuggestionResults() { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2299,7 +2347,8 @@ public Builder removeHumanAgentSuggestionResults(int index) { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2316,7 +2365,8 @@ public Builder removeHumanAgentSuggestionResults(int index) { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2337,7 +2387,8 @@ public Builder removeHumanAgentSuggestionResults(int index) { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2358,7 +2409,8 @@ public Builder removeHumanAgentSuggestionResults(int index) { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2376,7 +2428,8 @@ public Builder removeHumanAgentSuggestionResults(int index) { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2394,7 +2447,8 @@ public Builder removeHumanAgentSuggestionResults(int index) { * *
      * The suggestions for most recent human agent. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* @@ -2450,7 +2504,8 @@ private void ensureEndUserSuggestionResultsIsMutable() { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2470,7 +2525,8 @@ private void ensureEndUserSuggestionResultsIsMutable() { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2489,7 +2545,8 @@ public int getEndUserSuggestionResultsCount() { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2508,7 +2565,8 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResul * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2534,7 +2592,8 @@ public Builder setEndUserSuggestionResults( * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2557,7 +2616,8 @@ public Builder setEndUserSuggestionResults( * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2583,7 +2643,8 @@ public Builder addEndUserSuggestionResults( * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2609,7 +2670,8 @@ public Builder addEndUserSuggestionResults( * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2632,7 +2694,8 @@ public Builder addEndUserSuggestionResults( * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2655,7 +2718,8 @@ public Builder addEndUserSuggestionResults( * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2678,7 +2742,8 @@ public Builder addAllEndUserSuggestionResults( * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2700,7 +2765,8 @@ public Builder clearEndUserSuggestionResults() { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2722,7 +2788,8 @@ public Builder removeEndUserSuggestionResults(int index) { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2738,7 +2805,8 @@ public Builder removeEndUserSuggestionResults(int index) { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2758,7 +2826,8 @@ public Builder removeEndUserSuggestionResults(int index) { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2778,7 +2847,8 @@ public Builder removeEndUserSuggestionResults(int index) { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2795,7 +2865,8 @@ public Builder removeEndUserSuggestionResults(int index) { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* @@ -2812,7 +2883,8 @@ public Builder removeEndUserSuggestionResults(int index) { * *
      * The suggestions for end user. The order is the same as
-     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+     * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+     * of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java index cd38d619f..d9d173436 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java @@ -118,7 +118,9 @@ public interface AnalyzeContentResponseOrBuilder * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -133,7 +135,9 @@ public interface AnalyzeContentResponseOrBuilder * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -148,7 +152,9 @@ public interface AnalyzeContentResponseOrBuilder * Only set if a Dialogflow automated agent has responded. * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] * and [AutomatedAgentReply.detect_intent_response.output_audio_config][] - * are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + * are always empty, use + * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] + * instead. * * * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; @@ -195,7 +201,8 @@ public interface AnalyzeContentResponseOrBuilder * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -209,7 +216,8 @@ public interface AnalyzeContentResponseOrBuilder * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -222,7 +230,8 @@ public interface AnalyzeContentResponseOrBuilder * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -235,7 +244,8 @@ public interface AnalyzeContentResponseOrBuilder * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -249,7 +259,8 @@ public interface AnalyzeContentResponseOrBuilder * *
    * The suggestions for most recent human agent. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* @@ -264,7 +275,8 @@ com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestion * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -277,7 +289,8 @@ com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestion * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -290,7 +303,8 @@ com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestion * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -303,7 +317,8 @@ com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestion * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* @@ -317,7 +332,8 @@ com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestion * *
    * The suggestions for end user. The order is the same as
-   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
+   * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs]
+   * of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AssistQueryParameters.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AssistQueryParameters.java new file mode 100644 index 000000000..85b1d6809 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AssistQueryParameters.java @@ -0,0 +1,960 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/participant.proto + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
+ * Represents the parameters of human assist query.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.AssistQueryParameters} + */ +public final class AssistQueryParameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AssistQueryParameters) + AssistQueryParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use AssistQueryParameters.newBuilder() to construct. + private AssistQueryParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AssistQueryParameters() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssistQueryParameters(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AssistQueryParameters( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + documentsMetadataFilters_ = + com.google.protobuf.MapField.newMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + documentsMetadataFilters__ = + input.readMessage( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + documentsMetadataFilters_ + .getMutableMap() + .put(documentsMetadataFilters__.getKey(), documentsMetadataFilters__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetDocumentsMetadataFilters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.AssistQueryParameters.class, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder.class); + } + + public static final int DOCUMENTS_METADATA_FILTERS_FIELD_NUMBER = 1; + + private static final class DocumentsMetadataFiltersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField + documentsMetadataFilters_; + + private com.google.protobuf.MapField + internalGetDocumentsMetadataFilters() { + if (documentsMetadataFilters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + } + return documentsMetadataFilters_; + } + + public int getDocumentsMetadataFiltersCount() { + return internalGetDocumentsMetadataFilters().getMap().size(); + } + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public boolean containsDocumentsMetadataFilters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetDocumentsMetadataFilters().getMap().containsKey(key); + } + /** Use {@link #getDocumentsMetadataFiltersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDocumentsMetadataFilters() { + return getDocumentsMetadataFiltersMap(); + } + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public java.util.Map getDocumentsMetadataFiltersMap() { + return internalGetDocumentsMetadataFilters().getMap(); + } + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetDocumentsMetadataFilters(), + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetDocumentsMetadataFilters().getMap().entrySet()) { + com.google.protobuf.MapEntry documentsMetadataFilters__ = + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentsMetadataFilters__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.AssistQueryParameters)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.AssistQueryParameters other = + (com.google.cloud.dialogflow.v2.AssistQueryParameters) obj; + + if (!internalGetDocumentsMetadataFilters().equals(other.internalGetDocumentsMetadataFilters())) + return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetDocumentsMetadataFilters().getMap().isEmpty()) { + hash = (37 * hash) + DOCUMENTS_METADATA_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDocumentsMetadataFilters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2.AssistQueryParameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents the parameters of human assist query.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.AssistQueryParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AssistQueryParameters) + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetDocumentsMetadataFilters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableDocumentsMetadataFilters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.AssistQueryParameters.class, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.AssistQueryParameters.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableDocumentsMetadataFilters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParameters getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParameters build() { + com.google.cloud.dialogflow.v2.AssistQueryParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParameters buildPartial() { + com.google.cloud.dialogflow.v2.AssistQueryParameters result = + new com.google.cloud.dialogflow.v2.AssistQueryParameters(this); + int from_bitField0_ = bitField0_; + result.documentsMetadataFilters_ = internalGetDocumentsMetadataFilters(); + result.documentsMetadataFilters_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.AssistQueryParameters) { + return mergeFrom((com.google.cloud.dialogflow.v2.AssistQueryParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.AssistQueryParameters other) { + if (other == com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance()) + return this; + internalGetMutableDocumentsMetadataFilters() + .mergeFrom(other.internalGetDocumentsMetadataFilters()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2.AssistQueryParameters parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2.AssistQueryParameters) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField + documentsMetadataFilters_; + + private com.google.protobuf.MapField + internalGetDocumentsMetadataFilters() { + if (documentsMetadataFilters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + } + return documentsMetadataFilters_; + } + + private com.google.protobuf.MapField + internalGetMutableDocumentsMetadataFilters() { + onChanged(); + ; + if (documentsMetadataFilters_ == null) { + documentsMetadataFilters_ = + com.google.protobuf.MapField.newMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + } + if (!documentsMetadataFilters_.isMutable()) { + documentsMetadataFilters_ = documentsMetadataFilters_.copy(); + } + return documentsMetadataFilters_; + } + + public int getDocumentsMetadataFiltersCount() { + return internalGetDocumentsMetadataFilters().getMap().size(); + } + /** + * + * + *
+     * Key-value filters on the metadata of documents returned by article
+     * suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public boolean containsDocumentsMetadataFilters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetDocumentsMetadataFilters().getMap().containsKey(key); + } + /** Use {@link #getDocumentsMetadataFiltersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDocumentsMetadataFilters() { + return getDocumentsMetadataFiltersMap(); + } + /** + * + * + *
+     * Key-value filters on the metadata of documents returned by article
+     * suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public java.util.Map getDocumentsMetadataFiltersMap() { + return internalGetDocumentsMetadataFilters().getMap(); + } + /** + * + * + *
+     * Key-value filters on the metadata of documents returned by article
+     * suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Key-value filters on the metadata of documents returned by article
+     * suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDocumentsMetadataFilters() { + internalGetMutableDocumentsMetadataFilters().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Key-value filters on the metadata of documents returned by article
+     * suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + public Builder removeDocumentsMetadataFilters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableDocumentsMetadataFilters().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDocumentsMetadataFilters() { + return internalGetMutableDocumentsMetadataFilters().getMutableMap(); + } + /** + * + * + *
+     * Key-value filters on the metadata of documents returned by article
+     * suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + public Builder putDocumentsMetadataFilters(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableDocumentsMetadataFilters().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Key-value filters on the metadata of documents returned by article
+     * suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + public Builder putAllDocumentsMetadataFilters( + java.util.Map values) { + internalGetMutableDocumentsMetadataFilters().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AssistQueryParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AssistQueryParameters) + private static final com.google.cloud.dialogflow.v2.AssistQueryParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AssistQueryParameters(); + } + + public static com.google.cloud.dialogflow.v2.AssistQueryParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistQueryParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssistQueryParameters(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AssistQueryParametersOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AssistQueryParametersOrBuilder.java new file mode 100644 index 000000000..9d7d98b33 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AssistQueryParametersOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/participant.proto + +package com.google.cloud.dialogflow.v2; + +public interface AssistQueryParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AssistQueryParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + int getDocumentsMetadataFiltersCount(); + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + boolean containsDocumentsMetadataFilters(java.lang.String key); + /** Use {@link #getDocumentsMetadataFiltersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDocumentsMetadataFilters(); + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + java.util.Map getDocumentsMetadataFiltersMap(); + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + java.lang.String getDocumentsMetadataFiltersOrDefault( + java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Key-value filters on the metadata of documents returned by article
+   * suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * 
+ * + * map<string, string> documents_metadata_filters = 1; + */ + java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java index 49b63ca26..7acdb6410 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java @@ -305,7 +305,9 @@ private AutomatedAgentReplyType(int value) { * * *
-   * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+   * Response of the Dialogflow
+   * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+   * call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -320,7 +322,9 @@ public boolean hasDetectIntentResponse() { * * *
-   * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+   * Response of the Dialogflow
+   * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+   * call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -337,7 +341,9 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse getDetectIntentRespon * * *
-   * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+   * Response of the Dialogflow
+   * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+   * call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -789,7 +795,9 @@ public Builder mergeFrom( * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -803,7 +811,9 @@ public boolean hasDetectIntentResponse() { * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -823,7 +833,9 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse getDetectIntentRespon * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -846,7 +858,9 @@ public Builder setDetectIntentResponse( * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -866,7 +880,9 @@ public Builder setDetectIntentResponse( * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -893,7 +909,9 @@ public Builder mergeDetectIntentResponse( * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -913,7 +931,9 @@ public Builder clearDetectIntentResponse() { * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -928,7 +948,9 @@ public Builder clearDetectIntentResponse() { * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -947,7 +969,9 @@ public Builder clearDetectIntentResponse() { * * *
-     * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+     * Response of the Dialogflow
+     * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+     * call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java index 04e651f2c..a686874fe 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java @@ -27,7 +27,9 @@ public interface AutomatedAgentReplyOrBuilder * * *
-   * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+   * Response of the Dialogflow
+   * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+   * call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -39,7 +41,9 @@ public interface AutomatedAgentReplyOrBuilder * * *
-   * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+   * Response of the Dialogflow
+   * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+   * call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; @@ -51,7 +55,9 @@ public interface AutomatedAgentReplyOrBuilder * * *
-   * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
+   * Response of the Dialogflow
+   * [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
+   * call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java index 5e9ae4ade..b3f23990b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java @@ -273,62 +273,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ormat\"D\n\rMessageFormat\022\036\n\032MESSAGE_FORMAT" + "_UNSPECIFIED\020\000\022\t\n\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rL" + "oggingConfig\022\"\n\032enable_stackdriver_loggi" - + "ng\030\003 \001(\010\"\224\001\n\021SuggestionFeature\022@\n\004type\030\001" + + "ng\030\003 \001(\010\"\245\001\n\021SuggestionFeature\022@\n\004type\030\001" + " \001(\01622.google.cloud.dialogflow.v2.Sugges" - + "tionFeature.Type\"=\n\004Type\022\024\n\020TYPE_UNSPECI" - + "FIED\020\000\022\026\n\022ARTICLE_SUGGESTION\020\001\022\007\n\003FAQ\020\0022" - + "\325\014\n\024ConversationProfiles\022\220\002\n\030ListConvers" - + "ationProfiles\022;.google.cloud.dialogflow." - + "v2.ListConversationProfilesRequest\032<.goo" - + "gle.cloud.dialogflow.v2.ListConversation" - + "ProfilesResponse\"y\202\323\344\223\002j\022,/v2/{parent=pr" - + "ojects/*}/conversationProfilesZ:\0228/v2/{p" - + "arent=projects/*/locations/*}/conversati" - + "onProfiles\332A\006parent\022\375\001\n\026GetConversationP" - + "rofile\0229.google.cloud.dialogflow.v2.GetC" - + "onversationProfileRequest\032/.google.cloud" - + ".dialogflow.v2.ConversationProfile\"w\202\323\344\223" - + "\002j\022,/v2/{name=projects/*/conversationPro" - + "files/*}Z:\0228/v2/{name=projects/*/locatio" - + "ns/*/conversationProfiles/*}\332A\004name\022\310\002\n\031" - + "CreateConversationProfile\022<.google.cloud" - + ".dialogflow.v2.CreateConversationProfile" - + "Request\032/.google.cloud.dialogflow.v2.Con" - + "versationProfile\"\273\001\202\323\344\223\002\226\001\",/v2/{parent=" - + "projects/*}/conversationProfiles:\024conver" - + "sation_profileZP\"8/v2/{parent=projects/*" - + "/locations/*}/conversationProfiles:\024conv" - + "ersation_profile\332A\033parent,conversation_p" - + "rofile\022\367\002\n\031UpdateConversationProfile\022<.g" - + "oogle.cloud.dialogflow.v2.UpdateConversa" - + "tionProfileRequest\032/.google.cloud.dialog" - + "flow.v2.ConversationProfile\"\352\001\202\323\344\223\002\300\0012A/" - + "v2/{conversation_profile.name=projects/*" + + "tionFeature.Type\"N\n\004Type\022\024\n\020TYPE_UNSPECI" + + "FIED\020\000\022\026\n\022ARTICLE_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022" + + "\017\n\013SMART_REPLY\020\0032\325\014\n\024ConversationProfile" + + "s\022\220\002\n\030ListConversationProfiles\022;.google." + + "cloud.dialogflow.v2.ListConversationProf" + + "ilesRequest\032<.google.cloud.dialogflow.v2" + + ".ListConversationProfilesResponse\"y\202\323\344\223\002" + + "j\022,/v2/{parent=projects/*}/conversationP" + + "rofilesZ:\0228/v2/{parent=projects/*/locati" + + "ons/*}/conversationProfiles\332A\006parent\022\375\001\n" + + "\026GetConversationProfile\0229.google.cloud.d" + + "ialogflow.v2.GetConversationProfileReque" + + "st\032/.google.cloud.dialogflow.v2.Conversa" + + "tionProfile\"w\202\323\344\223\002j\022,/v2/{name=projects/" + + "*/conversationProfiles/*}Z:\0228/v2/{name=p" + + "rojects/*/locations/*/conversationProfil" + + "es/*}\332A\004name\022\310\002\n\031CreateConversationProfi" + + "le\022<.google.cloud.dialogflow.v2.CreateCo" + + "nversationProfileRequest\032/.google.cloud." + + "dialogflow.v2.ConversationProfile\"\273\001\202\323\344\223" + + "\002\226\001\",/v2/{parent=projects/*}/conversatio" + + "nProfiles:\024conversation_profileZP\"8/v2/{" + + "parent=projects/*/locations/*}/conversat" + + "ionProfiles:\024conversation_profile\332A\033pare" + + "nt,conversation_profile\022\367\002\n\031UpdateConver" + + "sationProfile\022<.google.cloud.dialogflow." + + "v2.UpdateConversationProfileRequest\032/.go" + + "ogle.cloud.dialogflow.v2.ConversationPro" + + "file\"\352\001\202\323\344\223\002\300\0012A/v2/{conversation_profil" + + "e.name=projects/*/conversationProfiles/*" + + "}:\024conversation_profileZe2M/v2/{conversa" + + "tion_profile.name=projects/*/locations/*" + "/conversationProfiles/*}:\024conversation_p" - + "rofileZe2M/v2/{conversation_profile.name" - + "=projects/*/locations/*/conversationProf" - + "iles/*}:\024conversation_profile\332A conversa" - + "tion_profile,update_mask\022\352\001\n\031DeleteConve" - + "rsationProfile\022<.google.cloud.dialogflow" - + ".v2.DeleteConversationProfileRequest\032\026.g" - + "oogle.protobuf.Empty\"w\202\323\344\223\002j*,/v2/{name=" - + "projects/*/conversationProfiles/*}Z:*8/v" - + "2/{name=projects/*/locations/*/conversat" - + "ionProfiles/*}\332A\004name\032x\312A\031dialogflow.goo" - + "gleapis.com\322AYhttps://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/dialogflowB\247\003\n\036com.google.c" - + "loud.dialogflow.v2B\030ConversationProfileP" - + "rotoP\001ZDgoogle.golang.org/genproto/googl" - + "eapis/cloud/dialogflow/v2;dialogflow\370\001\001\242" - + "\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A|\n,di" - + "alogflow.googleapis.com/CXSecuritySettin" - + "gs\022Lprojects/{project}/locations/{locati" - + "on}/securitySettings/{security_settings}" - + "\352A~\n+dialogflow.googleapis.com/Conversat" - + "ionModel\022Oprojects/{project}/locations/{" - + "location}/conversationModels/{conversati" - + "on_model}b\006proto3" + + "rofile\332A conversation_profile,update_mas" + + "k\022\352\001\n\031DeleteConversationProfile\022<.google" + + ".cloud.dialogflow.v2.DeleteConversationP" + + "rofileRequest\032\026.google.protobuf.Empty\"w\202" + + "\323\344\223\002j*,/v2/{name=projects/*/conversation" + + "Profiles/*}Z:*8/v2/{name=projects/*/loca" + + "tions/*/conversationProfiles/*}\332A\004name\032x" + + "\312A\031dialogflow.googleapis.com\322AYhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/dialogflow" + + "B\247\003\n\036com.google.cloud.dialogflow.v2B\030Con" + + "versationProfileProtoP\001ZDgoogle.golang.o" + + "rg/genproto/googleapis/cloud/dialogflow/" + + "v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dia" + + "logflow.V2\352A|\n,dialogflow.googleapis.com" + + "/CXSecuritySettings\022Lprojects/{project}/" + + "locations/{location}/securitySettings/{s" + + "ecurity_settings}\352A~\n+dialogflow.googlea" + + "pis.com/ConversationModel\022Oprojects/{pro" + + "ject}/locations/{location}/conversationM" + + "odels/{conversation_model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java index c5dec0acf..e96a3f4f4 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
+ * The request message for
+ * [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateParticipantRequest} @@ -416,7 +417,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
+   * The request message for
+   * [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateParticipantRequest} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java index 882a87f39..33f6154fb 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
+ * The request message for
+ * [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetParticipantRequest} @@ -331,7 +332,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
+   * The request message for
+   * [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetParticipantRequest} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsRequest.java index 1bfa830ce..ab17d5826 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
+ * The request message for
+ * [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ListParticipantsRequest} @@ -431,7 +432,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
+   * The request message for
+   * [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ListParticipantsRequest} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsResponse.java index fab7e6bc8..fbfc9beb2 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
+ * The response message for
+ * [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ListParticipantsResponse} @@ -428,7 +429,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
+   * The response message for
+   * [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ListParticipantsResponse} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java index 0b1845e71..e063567c7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java @@ -62,6 +62,7 @@ private Participant( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -93,6 +94,25 @@ private Participant( sipRecordingMediaLabel_ = s; break; } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + documentsMetadataFilters_ = + com.google.protobuf.MapField.newMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + documentsMetadataFilters__ = + input.readMessage( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + documentsMetadataFilters_ + .getMutableMap() + .put(documentsMetadataFilters__.getKey(), documentsMetadataFilters__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -117,6 +137,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dialogflow_v2_Participant_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + return internalGetDocumentsMetadataFilters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -367,8 +398,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Immutable. The role this participant plays in the conversation. This field must be set
-   * during participant creation and is then immutable.
+   * Immutable. The role this participant plays in the conversation. This field
+   * must be set during participant creation and is then immutable.
    * 
* * @@ -385,8 +416,8 @@ public int getRoleValue() { * * *
-   * Immutable. The role this participant plays in the conversation. This field must be set
-   * during participant creation and is then immutable.
+   * Immutable. The role this participant plays in the conversation. This field
+   * must be set during participant creation and is then immutable.
    * 
* * @@ -456,6 +487,182 @@ public com.google.protobuf.ByteString getSipRecordingMediaLabelBytes() { } } + public static final int DOCUMENTS_METADATA_FILTERS_FIELD_NUMBER = 8; + + private static final class DocumentsMetadataFiltersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_Participant_DocumentsMetadataFiltersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField + documentsMetadataFilters_; + + private com.google.protobuf.MapField + internalGetDocumentsMetadataFilters() { + if (documentsMetadataFilters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + } + return documentsMetadataFilters_; + } + + public int getDocumentsMetadataFiltersCount() { + return internalGetDocumentsMetadataFilters().getMap().size(); + } + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDocumentsMetadataFilters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetDocumentsMetadataFilters().getMap().containsKey(key); + } + /** Use {@link #getDocumentsMetadataFiltersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDocumentsMetadataFilters() { + return getDocumentsMetadataFiltersMap(); + } + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getDocumentsMetadataFiltersMap() { + return internalGetDocumentsMetadataFilters().getMap(); + } + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -479,6 +686,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sipRecordingMediaLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sipRecordingMediaLabel_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetDocumentsMetadataFilters(), + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry, + 8); unknownFields.writeTo(output); } @@ -497,6 +709,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sipRecordingMediaLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sipRecordingMediaLabel_); } + for (java.util.Map.Entry entry : + internalGetDocumentsMetadataFilters().getMap().entrySet()) { + com.google.protobuf.MapEntry documentsMetadataFilters__ = + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, documentsMetadataFilters__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -516,6 +739,8 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (role_ != other.role_) return false; if (!getSipRecordingMediaLabel().equals(other.getSipRecordingMediaLabel())) return false; + if (!internalGetDocumentsMetadataFilters().equals(other.internalGetDocumentsMetadataFilters())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -533,6 +758,10 @@ public int hashCode() { hash = (53 * hash) + role_; hash = (37 * hash) + SIP_RECORDING_MEDIA_LABEL_FIELD_NUMBER; hash = (53 * hash) + getSipRecordingMediaLabel().hashCode(); + if (!internalGetDocumentsMetadataFilters().getMap().isEmpty()) { + hash = (37 * hash) + DOCUMENTS_METADATA_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDocumentsMetadataFilters().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -651,6 +880,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dialogflow_v2_Participant_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + return internalGetDocumentsMetadataFilters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 8: + return internalGetMutableDocumentsMetadataFilters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -684,6 +933,7 @@ public Builder clear() { sipRecordingMediaLabel_ = ""; + internalGetMutableDocumentsMetadataFilters().clear(); return this; } @@ -711,9 +961,12 @@ public com.google.cloud.dialogflow.v2.Participant build() { public com.google.cloud.dialogflow.v2.Participant buildPartial() { com.google.cloud.dialogflow.v2.Participant result = new com.google.cloud.dialogflow.v2.Participant(this); + int from_bitField0_ = bitField0_; result.name_ = name_; result.role_ = role_; result.sipRecordingMediaLabel_ = sipRecordingMediaLabel_; + result.documentsMetadataFilters_ = internalGetDocumentsMetadataFilters(); + result.documentsMetadataFilters_.makeImmutable(); onBuilt(); return result; } @@ -774,6 +1027,8 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Participant other) { sipRecordingMediaLabel_ = other.sipRecordingMediaLabel_; onChanged(); } + internalGetMutableDocumentsMetadataFilters() + .mergeFrom(other.internalGetDocumentsMetadataFilters()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -803,6 +1058,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -924,8 +1181,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. The role this participant plays in the conversation. This field must be set
-     * during participant creation and is then immutable.
+     * Immutable. The role this participant plays in the conversation. This field
+     * must be set during participant creation and is then immutable.
      * 
* * @@ -942,8 +1199,8 @@ public int getRoleValue() { * * *
-     * Immutable. The role this participant plays in the conversation. This field must be set
-     * during participant creation and is then immutable.
+     * Immutable. The role this participant plays in the conversation. This field
+     * must be set during participant creation and is then immutable.
      * 
* * @@ -963,8 +1220,8 @@ public Builder setRoleValue(int value) { * * *
-     * Immutable. The role this participant plays in the conversation. This field must be set
-     * during participant creation and is then immutable.
+     * Immutable. The role this participant plays in the conversation. This field
+     * must be set during participant creation and is then immutable.
      * 
* * @@ -984,8 +1241,8 @@ public com.google.cloud.dialogflow.v2.Participant.Role getRole() { * * *
-     * Immutable. The role this participant plays in the conversation. This field must be set
-     * during participant creation and is then immutable.
+     * Immutable. The role this participant plays in the conversation. This field
+     * must be set during participant creation and is then immutable.
      * 
* * @@ -1008,8 +1265,8 @@ public Builder setRole(com.google.cloud.dialogflow.v2.Participant.Role value) { * * *
-     * Immutable. The role this participant plays in the conversation. This field must be set
-     * during participant creation and is then immutable.
+     * Immutable. The role this participant plays in the conversation. This field
+     * must be set during participant creation and is then immutable.
      * 
* * @@ -1141,6 +1398,297 @@ public Builder setSipRecordingMediaLabelBytes(com.google.protobuf.ByteString val return this; } + private com.google.protobuf.MapField + documentsMetadataFilters_; + + private com.google.protobuf.MapField + internalGetDocumentsMetadataFilters() { + if (documentsMetadataFilters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + } + return documentsMetadataFilters_; + } + + private com.google.protobuf.MapField + internalGetMutableDocumentsMetadataFilters() { + onChanged(); + ; + if (documentsMetadataFilters_ == null) { + documentsMetadataFilters_ = + com.google.protobuf.MapField.newMapField( + DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry); + } + if (!documentsMetadataFilters_.isMutable()) { + documentsMetadataFilters_ = documentsMetadataFilters_.copy(); + } + return documentsMetadataFilters_; + } + + public int getDocumentsMetadataFiltersCount() { + return internalGetDocumentsMetadataFilters().getMap().size(); + } + /** + * + * + *
+     * Optional. Key-value filters on the metadata of documents returned by
+     * article suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * ```
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * ```
+     * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDocumentsMetadataFilters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetDocumentsMetadataFilters().getMap().containsKey(key); + } + /** Use {@link #getDocumentsMetadataFiltersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDocumentsMetadataFilters() { + return getDocumentsMetadataFiltersMap(); + } + /** + * + * + *
+     * Optional. Key-value filters on the metadata of documents returned by
+     * article suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * ```
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * ```
+     * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getDocumentsMetadataFiltersMap() { + return internalGetDocumentsMetadataFilters().getMap(); + } + /** + * + * + *
+     * Optional. Key-value filters on the metadata of documents returned by
+     * article suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * ```
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * ```
+     * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Key-value filters on the metadata of documents returned by
+     * article suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * ```
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * ```
+     * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDocumentsMetadataFilters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDocumentsMetadataFilters() { + internalGetMutableDocumentsMetadataFilters().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Key-value filters on the metadata of documents returned by
+     * article suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * ```
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * ```
+     * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDocumentsMetadataFilters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableDocumentsMetadataFilters().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDocumentsMetadataFilters() { + return internalGetMutableDocumentsMetadataFilters().getMutableMap(); + } + /** + * + * + *
+     * Optional. Key-value filters on the metadata of documents returned by
+     * article suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * ```
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * ```
+     * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putDocumentsMetadataFilters(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableDocumentsMetadataFilters().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional. Key-value filters on the metadata of documents returned by
+     * article suggestion. If specified, article suggestion only returns suggested
+     * documents that match all filters in their
+     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+     * values for a metadata key should be concatenated by comma. For example,
+     * filters to match all documents that have 'US' or 'CA' in their market
+     * metadata values and 'agent' in their user metadata values will be
+     * ```
+     * documents_metadata_filters {
+     *   key: "market"
+     *   value: "US,CA"
+     * }
+     * documents_metadata_filters {
+     *   key: "user"
+     *   value: "agent"
+     * }
+     * ```
+     * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllDocumentsMetadataFilters( + java.util.Map values) { + internalGetMutableDocumentsMetadataFilters().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java index f1d6bd634..f44d90836 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java @@ -56,8 +56,8 @@ public interface ParticipantOrBuilder * * *
-   * Immutable. The role this participant plays in the conversation. This field must be set
-   * during participant creation and is then immutable.
+   * Immutable. The role this participant plays in the conversation. This field
+   * must be set during participant creation and is then immutable.
    * 
* * @@ -71,8 +71,8 @@ public interface ParticipantOrBuilder * * *
-   * Immutable. The role this participant plays in the conversation. This field must be set
-   * during participant creation and is then immutable.
+   * Immutable. The role this participant plays in the conversation. This field
+   * must be set during participant creation and is then immutable.
    * 
* * @@ -111,4 +111,149 @@ public interface ParticipantOrBuilder * @return The bytes for sipRecordingMediaLabel. */ com.google.protobuf.ByteString getSipRecordingMediaLabelBytes(); + + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDocumentsMetadataFiltersCount(); + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsDocumentsMetadataFilters(java.lang.String key); + /** Use {@link #getDocumentsMetadataFiltersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDocumentsMetadataFilters(); + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getDocumentsMetadataFiltersMap(); + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getDocumentsMetadataFiltersOrDefault( + java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Key-value filters on the metadata of documents returned by
+   * article suggestion. If specified, article suggestion only returns suggested
+   * documents that match all filters in their
+   * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
+   * values for a metadata key should be concatenated by comma. For example,
+   * filters to match all documents that have 'US' or 'CA' in their market
+   * metadata values and 'agent' in their user metadata values will be
+   * ```
+   * documents_metadata_filters {
+   *   key: "market"
+   *   value: "US,CA"
+   * }
+   * documents_metadata_filters {
+   *   key: "user"
+   *   value: "agent"
+   * }
+   * ```
+   * 
+ * + * + * map<string, string> documents_metadata_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java index 5b1247027..2d93352b6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java @@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_Participant_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_Participant_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Participant_DocumentsMetadataFiltersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Participant_DocumentsMetadataFiltersEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_Message_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -119,6 +123,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_MessageAnnotation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_MessageAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -139,182 +151,198 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uf/duration.proto\032 google/protobuf/field" + "_mask.proto\032\034google/protobuf/struct.prot" + "o\032\037google/protobuf/timestamp.proto\032\027goog" - + "le/rpc/status.proto\"\266\003\n\013Participant\022\021\n\004n" + + "le/rpc/status.proto\"\347\004\n\013Participant\022\021\n\004n" + "ame\030\001 \001(\tB\003\340A\001\022?\n\004role\030\002 \001(\0162,.google.cl" + "oud.dialogflow.v2.Participant.RoleB\003\340A\005\022" - + "&\n\031sip_recording_media_label\030\006 \001(\tB\003\340A\001\"" - + "P\n\004Role\022\024\n\020ROLE_UNSPECIFIED\020\000\022\017\n\013HUMAN_A" - + "GENT\020\001\022\023\n\017AUTOMATED_AGENT\020\002\022\014\n\010END_USER\020" - + "\003:\330\001\352A\324\001\n%dialogflow.googleapis.com/Part" - + "icipant\022Jprojects/{project}/conversation" - + "s/{conversation}/participants/{participa" - + "nt}\022_projects/{project}/locations/{locat" - + "ion}/conversations/{conversation}/partic" - + "ipants/{participant}\"\375\003\n\007Message\022\014\n\004name" - + "\030\001 \001(\t\022\024\n\007content\030\002 \001(\tB\003\340A\002\022\032\n\rlanguage" - + "_code\030\003 \001(\tB\003\340A\001\022\030\n\013participant\030\004 \001(\tB\003\340" - + "A\003\022K\n\020participant_role\030\005 \001(\0162,.google.cl" - + "oud.dialogflow.v2.Participant.RoleB\003\340A\003\022" - + "4\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022N\n\022message_annotation\030\007 \001(" - + "\0132-.google.cloud.dialogflow.v2.MessageAn" - + "notationB\003\340A\003:\304\001\352A\300\001\n!dialogflow.googlea" - + "pis.com/Message\022Bprojects/{project}/conv" - + "ersations/{conversation}/messages/{messa" - + "ge}\022Wprojects/{project}/locations/{locat" - + "ion}/conversations/{conversation}/messag" - + "es/{message}\"\234\001\n\030CreateParticipantReques" - + "t\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.go" - + "ogleapis.com/Participant\022A\n\013participant\030" - + "\002 \001(\0132\'.google.cloud.dialogflow.v2.Parti" - + "cipantB\003\340A\002\"T\n\025GetParticipantRequest\022;\n\004" - + "name\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapi" - + "s.com/Participant\"\211\001\n\027ListParticipantsRe" - + "quest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflo" - + "w.googleapis.com/Participant\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"r\n" - + "\030ListParticipantsResponse\022=\n\014participant" - + "s\030\001 \003(\0132\'.google.cloud.dialogflow.v2.Par" - + "ticipant\022\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030Up" - + "dateParticipantRequest\022A\n\013participant\030\001 " - + "\001(\0132\'.google.cloud.dialogflow.v2.Partici" - + "pantB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"\202\003\n\025AnalyzeConte" - + "ntRequest\022B\n\013participant\030\001 \001(\tB-\340A\002\372A\'\n%" - + "dialogflow.googleapis.com/Participant\022;\n" - + "\ntext_input\030\006 \001(\0132%.google.cloud.dialogf" - + "low.v2.TextInputH\000\022=\n\013event_input\030\010 \001(\0132" - + "&.google.cloud.dialogflow.v2.EventInputH" - + "\000\022I\n\022reply_audio_config\030\005 \001(\0132-.google.c" - + "loud.dialogflow.v2.OutputAudioConfig\022A\n\014" - + "query_params\030\t \001(\0132+.google.cloud.dialog" - + "flow.v2.QueryParameters\022\022\n\nrequest_id\030\013 " - + "\001(\tB\007\n\005input\",\n\016DtmfParameters\022\032\n\022accept" - + "s_dtmf_input\030\001 \001(\010\"\336\003\n\026AnalyzeContentRes" - + "ponse\022\022\n\nreply_text\030\001 \001(\t\022<\n\013reply_audio" - + "\030\002 \001(\0132\'.google.cloud.dialogflow.v2.Outp" - + "utAudio\022N\n\025automated_agent_reply\030\003 \001(\0132/" - + ".google.cloud.dialogflow.v2.AutomatedAge" - + "ntReply\0224\n\007message\030\005 \001(\0132#.google.cloud." - + "dialogflow.v2.Message\022T\n\036human_agent_sug" - + "gestion_results\030\006 \003(\0132,.google.cloud.dia" - + "logflow.v2.SuggestionResult\022Q\n\033end_user_" - + "suggestion_results\030\007 \003(\0132,.google.cloud." - + "dialogflow.v2.SuggestionResult\022C\n\017dtmf_p" - + "arameters\030\t \001(\0132*.google.cloud.dialogflo" - + "w.v2.DtmfParameters\"\255\001\n\026SuggestArticlesR" - + "equest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%dialogfl" - + "ow.googleapis.com/Participant\022>\n\016latest_" - + "message\030\002 \001(\tB&\372A#\n!dialogflow.googleapi" - + "s.com/Message\022\024\n\014context_size\030\003 \001(\005\"\213\001\n\027" - + "SuggestArticlesResponse\022B\n\017article_answe" - + "rs\030\001 \003(\0132).google.cloud.dialogflow.v2.Ar" - + "ticleAnswer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014c" - + "ontext_size\030\003 \001(\005\"\257\001\n\030SuggestFaqAnswersR" - + "equest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%dialogfl" - + "ow.googleapis.com/Participant\022>\n\016latest_" - + "message\030\002 \001(\tB&\372A#\n!dialogflow.googleapi" - + "s.com/Message\022\024\n\014context_size\030\003 \001(\005\"\205\001\n\031" - + "SuggestFaqAnswersResponse\022:\n\013faq_answers" - + "\030\001 \003(\0132%.google.cloud.dialogflow.v2.FaqA" - + "nswer\022\026\n\016latest_message\030\002 \001(\t\022\024\n\014context" - + "_size\030\003 \001(\005\"[\n\013OutputAudio\022=\n\006config\030\001 \001" - + "(\0132-.google.cloud.dialogflow.v2.OutputAu" - + "dioConfig\022\r\n\005audio\030\002 \001(\014\"\317\002\n\023AutomatedAg" - + "entReply\022P\n\026detect_intent_response\030\001 \001(\013" - + "20.google.cloud.dialogflow.v2.DetectInte" - + "ntResponse\022k\n\032automated_agent_reply_type" - + "\030\007 \001(\0162G.google.cloud.dialogflow.v2.Auto" - + "matedAgentReply.AutomatedAgentReplyType\022" - + "\032\n\022allow_cancellation\030\010 \001(\010\"]\n\027Automated" - + "AgentReplyType\022*\n&AUTOMATED_AGENT_REPLY_" - + "TYPE_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\003u" - + "ri\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." - + "dialogflow.v2.ArticleAnswer.MetadataEntr" - + "y\022\025\n\ranswer_record\030\006 \001(\t\032/\n\rMetadataEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\340\001\n\tFa" - + "qAnswer\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.dialogflo" - + "w.v2.FaqAnswer.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\"\207\002\n\020SuggestionResul" - + "t\022#\n\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022X" - + "\n\031suggest_articles_response\030\002 \001(\01323.goog" + + "&\n\031sip_recording_media_label\030\006 \001(\tB\003\340A\001\022" + + "n\n\032documents_metadata_filters\030\010 \003(\0132E.go" + + "ogle.cloud.dialogflow.v2.Participant.Doc" + + "umentsMetadataFiltersEntryB\003\340A\001\032?\n\035Docum" + + "entsMetadataFiltersEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"P\n\004Role\022\024\n\020ROLE_UNSPECI" + + "FIED\020\000\022\017\n\013HUMAN_AGENT\020\001\022\023\n\017AUTOMATED_AGE" + + "NT\020\002\022\014\n\010END_USER\020\003:\330\001\352A\324\001\n%dialogflow.go" + + "ogleapis.com/Participant\022Jprojects/{proj" + + "ect}/conversations/{conversation}/partic" + + "ipants/{participant}\022_projects/{project}" + + "/locations/{location}/conversations/{con" + + "versation}/participants/{participant}\"\375\003" + + "\n\007Message\022\014\n\004name\030\001 \001(\t\022\024\n\007content\030\002 \001(\t" + + "B\003\340A\002\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\001\022\030\n\013par" + + "ticipant\030\004 \001(\tB\003\340A\003\022K\n\020participant_role\030" + + "\005 \001(\0162,.google.cloud.dialogflow.v2.Parti" + + "cipant.RoleB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022N\n\022messag" + + "e_annotation\030\007 \001(\0132-.google.cloud.dialog" + + "flow.v2.MessageAnnotationB\003\340A\003:\304\001\352A\300\001\n!d" + + "ialogflow.googleapis.com/Message\022Bprojec" + + "ts/{project}/conversations/{conversation" + + "}/messages/{message}\022Wprojects/{project}" + + "/locations/{location}/conversations/{con" + + "versation}/messages/{message}\"\234\001\n\030Create" + + "ParticipantRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372" + + "A\'\022%dialogflow.googleapis.com/Participan" + + "t\022A\n\013participant\030\002 \001(\0132\'.google.cloud.di" + + "alogflow.v2.ParticipantB\003\340A\002\"T\n\025GetParti" + + "cipantRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dia" + + "logflow.googleapis.com/Participant\"\211\001\n\027L" + + "istParticipantsRequest\022=\n\006parent\030\001 \001(\tB-" + + "\340A\002\372A\'\022%dialogflow.googleapis.com/Partic" + + "ipant\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"r\n\030ListParticipantsRespon" + + "se\022=\n\014participants\030\001 \003(\0132\'.google.cloud." + + "dialogflow.v2.Participant\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\223\001\n\030UpdateParticipantRequest\022" + + "A\n\013participant\030\001 \001(\0132\'.google.cloud.dial" + + "ogflow.v2.ParticipantB\003\340A\002\0224\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" + + "\"\322\003\n\025AnalyzeContentRequest\022B\n\013participan" + + "t\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.c" + + "om/Participant\022;\n\ntext_input\030\006 \001(\0132%.goo" + + "gle.cloud.dialogflow.v2.TextInputH\000\022=\n\013e" + + "vent_input\030\010 \001(\0132&.google.cloud.dialogfl" + + "ow.v2.EventInputH\000\022I\n\022reply_audio_config" + + "\030\005 \001(\0132-.google.cloud.dialogflow.v2.Outp" + + "utAudioConfig\022A\n\014query_params\030\t \001(\0132+.go" + + "ogle.cloud.dialogflow.v2.QueryParameters" + + "\022N\n\023assist_query_params\030\016 \001(\01321.google.c" + + "loud.dialogflow.v2.AssistQueryParameters" + + "\022\022\n\nrequest_id\030\013 \001(\tB\007\n\005input\",\n\016DtmfPar" + + "ameters\022\032\n\022accepts_dtmf_input\030\001 \001(\010\"\336\003\n\026" + + "AnalyzeContentResponse\022\022\n\nreply_text\030\001 \001" + + "(\t\022<\n\013reply_audio\030\002 \001(\0132\'.google.cloud.d" + + "ialogflow.v2.OutputAudio\022N\n\025automated_ag" + + "ent_reply\030\003 \001(\0132/.google.cloud.dialogflo" + + "w.v2.AutomatedAgentReply\0224\n\007message\030\005 \001(" + + "\0132#.google.cloud.dialogflow.v2.Message\022T" + + "\n\036human_agent_suggestion_results\030\006 \003(\0132," + + ".google.cloud.dialogflow.v2.SuggestionRe" + + "sult\022Q\n\033end_user_suggestion_results\030\007 \003(" + + "\0132,.google.cloud.dialogflow.v2.Suggestio" + + "nResult\022C\n\017dtmf_parameters\030\t \001(\0132*.googl" + + "e.cloud.dialogflow.v2.DtmfParameters\"\375\001\n" + + "\026SuggestArticlesRequest\022=\n\006parent\030\001 \001(\tB" + + "-\340A\002\372A\'\n%dialogflow.googleapis.com/Parti" + + "cipant\022>\n\016latest_message\030\002 \001(\tB&\372A#\n!dia" + + "logflow.googleapis.com/Message\022\024\n\014contex" + + "t_size\030\003 \001(\005\022N\n\023assist_query_params\030\004 \001(" + + "\01321.google.cloud.dialogflow.v2.AssistQue" + + "ryParameters\"\213\001\n\027SuggestArticlesResponse" + + "\022B\n\017article_answers\030\001 \003(\0132).google.cloud" + + ".dialogflow.v2.ArticleAnswer\022\026\n\016latest_m" + + "essage\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005\"\377\001\n\030S" + + "uggestFaqAnswersRequest\022=\n\006parent\030\001 \001(\tB" + + "-\340A\002\372A\'\n%dialogflow.googleapis.com/Parti" + + "cipant\022>\n\016latest_message\030\002 \001(\tB&\372A#\n!dia" + + "logflow.googleapis.com/Message\022\024\n\014contex" + + "t_size\030\003 \001(\005\022N\n\023assist_query_params\030\004 \001(" + + "\01321.google.cloud.dialogflow.v2.AssistQue" + + "ryParameters\"\205\001\n\031SuggestFaqAnswersRespon" + + "se\022:\n\013faq_answers\030\001 \003(\0132%.google.cloud.d" + + "ialogflow.v2.FaqAnswer\022\026\n\016latest_message" + + "\030\002 \001(\t\022\024\n\014context_size\030\003 \001(\005\"[\n\013OutputAu" + + "dio\022=\n\006config\030\001 \001(\0132-.google.cloud.dialo" + + "gflow.v2.OutputAudioConfig\022\r\n\005audio\030\002 \001(" + + "\014\"\317\002\n\023AutomatedAgentReply\022P\n\026detect_inte" + + "nt_response\030\001 \001(\01320.google.cloud.dialogf" + + "low.v2.DetectIntentResponse\022k\n\032automated" + + "_agent_reply_type\030\007 \001(\0162G.google.cloud.d" + + "ialogflow.v2.AutomatedAgentReply.Automat" + + "edAgentReplyType\022\032\n\022allow_cancellation\030\010" + + " \001(\010\"]\n\027AutomatedAgentReplyType\022*\n&AUTOM" + + "ATED_AGENT_REPLY_TYPE_UNSPECIFIED\020\000\022\013\n\007P" + + "ARTIAL\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.dialogflow.v2.ArticleAn" + + "swer.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\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.googl" + + "e.cloud.dialogflow.v2.FaqAnswer.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\"\207\002" + + "\n\020SuggestionResult\022#\n\005error\030\001 \001(\0132\022.goog" + + "le.rpc.StatusH\000\022X\n\031suggest_articles_resp" + + "onse\030\002 \001(\01323.google.cloud.dialogflow.v2." + + "SuggestArticlesResponseH\000\022]\n\034suggest_faq" + + "_answers_response\030\003 \001(\01325.google.cloud.d" + + "ialogflow.v2.SuggestFaqAnswersResponseH\000" + + "B\025\n\023suggestion_response\"j\n\024AnnotatedMess" + + "agePart\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.pro" + + "tobuf.Value\"n\n\021MessageAnnotation\022?\n\005part" + + "s\030\001 \003(\01320.google.cloud.dialogflow.v2.Ann" + + "otatedMessagePart\022\030\n\020contain_entities\030\002 " + + "\001(\010\"\315\001\n\025AssistQueryParameters\022s\n\032documen" + + "ts_metadata_filters\030\001 \003(\0132O.google.cloud" + + ".dialogflow.v2.AssistQueryParameters.Doc" + + "umentsMetadataFiltersEntry\032?\n\035DocumentsM" + + "etadataFiltersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\0012\377\021\n\014Participants\022\245\002\n\021CreateP" + + "articipant\0224.google.cloud.dialogflow.v2." + + "CreateParticipantRequest\032\'.google.cloud." + + "dialogflow.v2.Participant\"\260\001\202\323\344\223\002\224\001\"4/v2" + + "/{parent=projects/*/conversations/*}/par" + + "ticipants:\013participantZO\"@/v2/{parent=pr" + + "ojects/*/locations/*/conversations/*}/pa" + + "rticipants:\013participant\332A\022parent,partici" + + "pant\022\366\001\n\016GetParticipant\0221.google.cloud.d" + + "ialogflow.v2.GetParticipantRequest\032\'.goo" + + "gle.cloud.dialogflow.v2.Participant\"\207\001\202\323" + + "\344\223\002z\0224/v2/{name=projects/*/conversations" + + "/*/participants/*}ZB\022@/v2/{name=projects" + + "/*/locations/*/conversations/*/participa" + + "nts/*}\332A\004name\022\211\002\n\020ListParticipants\0223.goo" + + "gle.cloud.dialogflow.v2.ListParticipants" + + "Request\0324.google.cloud.dialogflow.v2.Lis" + + "tParticipantsResponse\"\211\001\202\323\344\223\002z\0224/v2/{par" + + "ent=projects/*/conversations/*}/particip" + + "antsZB\022@/v2/{parent=projects/*/locations" + + "/*/conversations/*}/participants\332A\006paren" + + "t\022\302\002\n\021UpdateParticipant\0224.google.cloud.d" + + "ialogflow.v2.UpdateParticipantRequest\032\'." + + "google.cloud.dialogflow.v2.Participant\"\315" + + "\001\202\323\344\223\002\254\0012@/v2/{participant.name=projects" + + "/*/conversations/*/participants/*}:\013part" + + "icipantZ[2L/v2/{participant.name=project" + + "s/*/locations/*/conversations/*/particip" + + "ants/*}:\013participant\332A\027participant,updat" + + "e_mask\022\340\002\n\016AnalyzeContent\0221.google.cloud" + + ".dialogflow.v2.AnalyzeContentRequest\0322.g" + + "oogle.cloud.dialogflow.v2.AnalyzeContent" + + "Response\"\346\001\202\323\344\223\002\254\001\"J/v2/{participant=pro" + + "jects/*/conversations/*/participants/*}:" + + "analyzeContent:\001*Z[\"V/v2/{participant=pr" + + "ojects/*/locations/*/conversations/*/par" + + "ticipants/*}:analyzeContent:\001*\332A\026partici" + + "pant,text_input\332A\027participant,event_inpu" + + "t\022\311\002\n\017SuggestArticles\0222.google.cloud.dia" + + "logflow.v2.SuggestArticlesRequest\0323.goog" + "le.cloud.dialogflow.v2.SuggestArticlesRe" - + "sponseH\000\022]\n\034suggest_faq_answers_response" - + "\030\003 \001(\01325.google.cloud.dialogflow.v2.Sugg" - + "estFaqAnswersResponseH\000B\025\n\023suggestion_re" - + "sponse\"j\n\024AnnotatedMessagePart\022\014\n\004text\030\001" - + " \001(\t\022\023\n\013entity_type\030\002 \001(\t\022/\n\017formatted_v" - + "alue\030\003 \001(\0132\026.google.protobuf.Value\"n\n\021Me" - + "ssageAnnotation\022?\n\005parts\030\001 \003(\01320.google." - + "cloud.dialogflow.v2.AnnotatedMessagePart" - + "\022\030\n\020contain_entities\030\002 \001(\0102\377\021\n\014Participa" - + "nts\022\245\002\n\021CreateParticipant\0224.google.cloud" - + ".dialogflow.v2.CreateParticipantRequest\032" - + "\'.google.cloud.dialogflow.v2.Participant" - + "\"\260\001\202\323\344\223\002\224\001\"4/v2/{parent=projects/*/conve" - + "rsations/*}/participants:\013participantZO\"" - + "@/v2/{parent=projects/*/locations/*/conv" - + "ersations/*}/participants:\013participant\332A" - + "\022parent,participant\022\366\001\n\016GetParticipant\0221" - + ".google.cloud.dialogflow.v2.GetParticipa" - + "ntRequest\032\'.google.cloud.dialogflow.v2.P" - + "articipant\"\207\001\202\323\344\223\002z\0224/v2/{name=projects/" - + "*/conversations/*/participants/*}ZB\022@/v2" - + "/{name=projects/*/locations/*/conversati" - + "ons/*/participants/*}\332A\004name\022\211\002\n\020ListPar" - + "ticipants\0223.google.cloud.dialogflow.v2.L" - + "istParticipantsRequest\0324.google.cloud.di" - + "alogflow.v2.ListParticipantsResponse\"\211\001\202" - + "\323\344\223\002z\0224/v2/{parent=projects/*/conversati" - + "ons/*}/participantsZB\022@/v2/{parent=proje" - + "cts/*/locations/*/conversations/*}/parti" - + "cipants\332A\006parent\022\302\002\n\021UpdateParticipant\0224" - + ".google.cloud.dialogflow.v2.UpdatePartic" - + "ipantRequest\032\'.google.cloud.dialogflow.v" - + "2.Participant\"\315\001\202\323\344\223\002\254\0012@/v2/{participan" - + "t.name=projects/*/conversations/*/partic" - + "ipants/*}:\013participantZ[2L/v2/{participa" - + "nt.name=projects/*/locations/*/conversat" - + "ions/*/participants/*}:\013participant\332A\027pa" - + "rticipant,update_mask\022\340\002\n\016AnalyzeContent" - + "\0221.google.cloud.dialogflow.v2.AnalyzeCon" - + "tentRequest\0322.google.cloud.dialogflow.v2" - + ".AnalyzeContentResponse\"\346\001\202\323\344\223\002\254\001\"J/v2/{" - + "participant=projects/*/conversations/*/p" - + "articipants/*}:analyzeContent:\001*Z[\"V/v2/" - + "{participant=projects/*/locations/*/conv" - + "ersations/*/participants/*}:analyzeConte" - + "nt:\001*\332A\026participant,text_input\332A\027partici" - + "pant,event_input\022\311\002\n\017SuggestArticles\0222.g" - + "oogle.cloud.dialogflow.v2.SuggestArticle" - + "sRequest\0323.google.cloud.dialogflow.v2.Su" - + "ggestArticlesResponse\"\314\001\202\323\344\223\002\274\001\"R/v2/{pa" - + "rent=projects/*/conversations/*/particip" - + "ants/*}/suggestions:suggestArticles:\001*Zc" - + "\"^/v2/{parent=projects/*/locations/*/con" - + "versations/*/participants/*}/suggestions" - + ":suggestArticles:\001*\332A\006parent\022\323\002\n\021Suggest" - + "FaqAnswers\0224.google.cloud.dialogflow.v2." - + "SuggestFaqAnswersRequest\0325.google.cloud." - + "dialogflow.v2.SuggestFaqAnswersResponse\"" - + "\320\001\202\323\344\223\002\300\001\"T/v2/{parent=projects/*/conver" - + "sations/*/participants/*}/suggestions:su" - + "ggestFaqAnswers:\001*Ze\"`/v2/{parent=projec" - + "ts/*/locations/*/conversations/*/partici" - + "pants/*}/suggestions:suggestFaqAnswers:\001" - + "*\332A\006parent\032x\312A\031dialogflow.googleapis.com" - + "\322AYhttps://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/dialogflowB\237\001\n\036com.google.cloud.dialog" - + "flow.v2B\020ParticipantProtoP\001ZDgoogle.gola" - + "ng.org/genproto/googleapis/cloud/dialogf" - + "low/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud" - + ".Dialogflow.V2b\006proto3" + + "sponse\"\314\001\202\323\344\223\002\274\001\"R/v2/{parent=projects/*" + + "/conversations/*/participants/*}/suggest" + + "ions:suggestArticles:\001*Zc\"^/v2/{parent=p" + + "rojects/*/locations/*/conversations/*/pa" + + "rticipants/*}/suggestions:suggestArticle" + + "s:\001*\332A\006parent\022\323\002\n\021SuggestFaqAnswers\0224.go" + + "ogle.cloud.dialogflow.v2.SuggestFaqAnswe" + + "rsRequest\0325.google.cloud.dialogflow.v2.S" + + "uggestFaqAnswersResponse\"\320\001\202\323\344\223\002\300\001\"T/v2/" + + "{parent=projects/*/conversations/*/parti" + + "cipants/*}/suggestions:suggestFaqAnswers" + + ":\001*Ze\"`/v2/{parent=projects/*/locations/" + + "*/conversations/*/participants/*}/sugges" + + "tions:suggestFaqAnswers:\001*\332A\006parent\032x\312A\031" + + "dialogflow.googleapis.com\322AYhttps://www." + + "googleapis.com/auth/cloud-platform,https" + + "://www.googleapis.com/auth/dialogflowB\237\001" + + "\n\036com.google.cloud.dialogflow.v2B\020Partic" + + "ipantProtoP\001ZDgoogle.golang.org/genproto" + + "/googleapis/cloud/dialogflow/v2;dialogfl" + + "ow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -339,7 +367,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_Participant_descriptor, new java.lang.String[] { - "Name", "Role", "SipRecordingMediaLabel", + "Name", "Role", "SipRecordingMediaLabel", "DocumentsMetadataFilters", + }); + internal_static_google_cloud_dialogflow_v2_Participant_DocumentsMetadataFiltersEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Participant_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_Participant_DocumentsMetadataFiltersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Participant_DocumentsMetadataFiltersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_cloud_dialogflow_v2_Message_descriptor = getDescriptor().getMessageTypes().get(1); @@ -406,6 +442,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventInput", "ReplyAudioConfig", "QueryParams", + "AssistQueryParams", "RequestId", "Input", }); @@ -437,7 +474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestArticlesRequest_descriptor, new java.lang.String[] { - "Parent", "LatestMessage", "ContextSize", + "Parent", "LatestMessage", "ContextSize", "AssistQueryParams", }); internal_static_google_cloud_dialogflow_v2_SuggestArticlesResponse_descriptor = getDescriptor().getMessageTypes().get(11); @@ -453,7 +490,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestFaqAnswersRequest_descriptor, new java.lang.String[] { - "Parent", "LatestMessage", "ContextSize", + "Parent", "LatestMessage", "ContextSize", "AssistQueryParams", }); internal_static_google_cloud_dialogflow_v2_SuggestFaqAnswersResponse_descriptor = getDescriptor().getMessageTypes().get(13); @@ -535,6 +572,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parts", "ContainEntities", }); + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_descriptor, + new java.lang.String[] { + "DocumentsMetadataFilters", + }); + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AssistQueryParameters_DocumentsMetadataFiltersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequest.java index deb94f9d3..b25938920 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
+ * The request message for
+ * [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestArticlesRequest} @@ -88,6 +89,23 @@ private SuggestArticlesRequest( case 24: { contextSize_ = input.readInt32(); + break; + } + case 34: + { + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder subBuilder = null; + if (assistQueryParams_ != null) { + subBuilder = assistQueryParams_.toBuilder(); + } + assistQueryParams_ = + input.readMessage( + com.google.cloud.dialogflow.v2.AssistQueryParameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(assistQueryParams_); + assistQueryParams_ = subBuilder.buildPartial(); + } + break; } default: @@ -243,8 +261,9 @@ public com.google.protobuf.ByteString getLatestMessageBytes() { * *
    * Max number of messages prior to and including
-   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context
-   * when compiling the suggestion. By default 20 and at most 50.
+   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message]
+   * to use as context when compiling the suggestion. By default 20 and at
+   * most 50.
    * 
* * int32 context_size = 3; @@ -256,6 +275,55 @@ public int getContextSize() { return contextSize_; } + public static final int ASSIST_QUERY_PARAMS_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.AssistQueryParameters assistQueryParams_; + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return Whether the assistQueryParams field is set. + */ + @java.lang.Override + public boolean hasAssistQueryParams() { + return assistQueryParams_ != null; + } + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return The assistQueryParams. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams() { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder + getAssistQueryParamsOrBuilder() { + return getAssistQueryParams(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -279,6 +347,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextSize_ != 0) { output.writeInt32(3, contextSize_); } + if (assistQueryParams_ != null) { + output.writeMessage(4, getAssistQueryParams()); + } unknownFields.writeTo(output); } @@ -297,6 +368,9 @@ public int getSerializedSize() { if (contextSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, contextSize_); } + if (assistQueryParams_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAssistQueryParams()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -316,6 +390,10 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getLatestMessage().equals(other.getLatestMessage())) return false; if (getContextSize() != other.getContextSize()) return false; + if (hasAssistQueryParams() != other.hasAssistQueryParams()) return false; + if (hasAssistQueryParams()) { + if (!getAssistQueryParams().equals(other.getAssistQueryParams())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,6 +411,10 @@ public int hashCode() { hash = (53 * hash) + getLatestMessage().hashCode(); hash = (37 * hash) + CONTEXT_SIZE_FIELD_NUMBER; hash = (53 * hash) + getContextSize(); + if (hasAssistQueryParams()) { + hash = (37 * hash) + ASSIST_QUERY_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAssistQueryParams().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -438,7 +520,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
+   * The request message for
+   * [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestArticlesRequest} @@ -485,6 +568,12 @@ public Builder clear() { contextSize_ = 0; + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = null; + } else { + assistQueryParams_ = null; + assistQueryParamsBuilder_ = null; + } return this; } @@ -515,6 +604,11 @@ public com.google.cloud.dialogflow.v2.SuggestArticlesRequest buildPartial() { result.parent_ = parent_; result.latestMessage_ = latestMessage_; result.contextSize_ = contextSize_; + if (assistQueryParamsBuilder_ == null) { + result.assistQueryParams_ = assistQueryParams_; + } else { + result.assistQueryParams_ = assistQueryParamsBuilder_.build(); + } onBuilt(); return result; } @@ -576,6 +670,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SuggestArticlesRequest o if (other.getContextSize() != 0) { setContextSize(other.getContextSize()); } + if (other.hasAssistQueryParams()) { + mergeAssistQueryParams(other.getAssistQueryParams()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -859,8 +956,9 @@ public Builder setLatestMessageBytes(com.google.protobuf.ByteString value) { * *
      * Max number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context
-     * when compiling the suggestion. By default 20 and at most 50.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message]
+     * to use as context when compiling the suggestion. By default 20 and at
+     * most 50.
      * 
* * int32 context_size = 3; @@ -876,8 +974,9 @@ public int getContextSize() { * *
      * Max number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context
-     * when compiling the suggestion. By default 20 and at most 50.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message]
+     * to use as context when compiling the suggestion. By default 20 and at
+     * most 50.
      * 
* * int32 context_size = 3; @@ -896,8 +995,9 @@ public Builder setContextSize(int value) { * *
      * Max number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context
-     * when compiling the suggestion. By default 20 and at most 50.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message]
+     * to use as context when compiling the suggestion. By default 20 and at
+     * most 50.
      * 
* * int32 context_size = 3; @@ -911,6 +1011,196 @@ public Builder clearContextSize() { return this; } + private com.google.cloud.dialogflow.v2.AssistQueryParameters assistQueryParams_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder> + assistQueryParamsBuilder_; + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return Whether the assistQueryParams field is set. + */ + public boolean hasAssistQueryParams() { + return assistQueryParamsBuilder_ != null || assistQueryParams_ != null; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return The assistQueryParams. + */ + public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams() { + if (assistQueryParamsBuilder_ == null) { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } else { + return assistQueryParamsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder setAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters value) { + if (assistQueryParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistQueryParams_ = value; + onChanged(); + } else { + assistQueryParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder setAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder builderForValue) { + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = builderForValue.build(); + onChanged(); + } else { + assistQueryParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder mergeAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters value) { + if (assistQueryParamsBuilder_ == null) { + if (assistQueryParams_ != null) { + assistQueryParams_ = + com.google.cloud.dialogflow.v2.AssistQueryParameters.newBuilder(assistQueryParams_) + .mergeFrom(value) + .buildPartial(); + } else { + assistQueryParams_ = value; + } + onChanged(); + } else { + assistQueryParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder clearAssistQueryParams() { + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = null; + onChanged(); + } else { + assistQueryParams_ = null; + assistQueryParamsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder + getAssistQueryParamsBuilder() { + + onChanged(); + return getAssistQueryParamsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder + getAssistQueryParamsOrBuilder() { + if (assistQueryParamsBuilder_ != null) { + return assistQueryParamsBuilder_.getMessageOrBuilder(); + } else { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder> + getAssistQueryParamsFieldBuilder() { + if (assistQueryParamsBuilder_ == null) { + assistQueryParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder>( + getAssistQueryParams(), getParentForChildren(), isClean()); + assistQueryParams_ = null; + } + return assistQueryParamsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequestOrBuilder.java index ec4d994b0..2d0b151a0 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequestOrBuilder.java @@ -92,8 +92,9 @@ public interface SuggestArticlesRequestOrBuilder * *
    * Max number of messages prior to and including
-   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context
-   * when compiling the suggestion. By default 20 and at most 50.
+   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message]
+   * to use as context when compiling the suggestion. By default 20 and at
+   * most 50.
    * 
* * int32 context_size = 3; @@ -101,4 +102,39 @@ public interface SuggestArticlesRequestOrBuilder * @return The contextSize. */ int getContextSize(); + + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return Whether the assistQueryParams field is set. + */ + boolean hasAssistQueryParams(); + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return The assistQueryParams. + */ + com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams(); + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder getAssistQueryParamsOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponse.java index 41741be66..e57a235e1 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
+ * The response message for
+ * [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestArticlesResponse} @@ -265,10 +266,11 @@ public com.google.protobuf.ByteString getLatestMessageBytes() { * *
    * Number of messages prior to and including
-   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the
-   * suggestion. It may be smaller than the
-   * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there
-   * aren't that many messages in the conversation.
+   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message]
+   * to compile the suggestion. It may be smaller than the
+   * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size]
+   * field in the request if there aren't that many messages in the
+   * conversation.
    * 
* * int32 context_size = 3; @@ -464,7 +466,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
+   * The response message for
+   * [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestArticlesResponse} @@ -1158,10 +1161,11 @@ public Builder setLatestMessageBytes(com.google.protobuf.ByteString value) { * *
      * Number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the
-     * suggestion. It may be smaller than the
-     * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there
-     * aren't that many messages in the conversation.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message]
+     * to compile the suggestion. It may be smaller than the
+     * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size]
+     * field in the request if there aren't that many messages in the
+     * conversation.
      * 
* * int32 context_size = 3; @@ -1177,10 +1181,11 @@ public int getContextSize() { * *
      * Number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the
-     * suggestion. It may be smaller than the
-     * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there
-     * aren't that many messages in the conversation.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message]
+     * to compile the suggestion. It may be smaller than the
+     * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size]
+     * field in the request if there aren't that many messages in the
+     * conversation.
      * 
* * int32 context_size = 3; @@ -1199,10 +1204,11 @@ public Builder setContextSize(int value) { * *
      * Number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the
-     * suggestion. It may be smaller than the
-     * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there
-     * aren't that many messages in the conversation.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message]
+     * to compile the suggestion. It may be smaller than the
+     * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size]
+     * field in the request if there aren't that many messages in the
+     * conversation.
      * 
* * int32 context_size = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponseOrBuilder.java index 7e75f0e72..4c87d2897 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponseOrBuilder.java @@ -111,10 +111,11 @@ public interface SuggestArticlesResponseOrBuilder * *
    * Number of messages prior to and including
-   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the
-   * suggestion. It may be smaller than the
-   * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there
-   * aren't that many messages in the conversation.
+   * [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message]
+   * to compile the suggestion. It may be smaller than the
+   * [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size]
+   * field in the request if there aren't that many messages in the
+   * conversation.
    * 
* * int32 context_size = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequest.java index c523dd4ca..020472089 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
+ * The request message for
+ * [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestFaqAnswersRequest} @@ -88,6 +89,23 @@ private SuggestFaqAnswersRequest( case 24: { contextSize_ = input.readInt32(); + break; + } + case 34: + { + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder subBuilder = null; + if (assistQueryParams_ != null) { + subBuilder = assistQueryParams_.toBuilder(); + } + assistQueryParams_ = + input.readMessage( + com.google.cloud.dialogflow.v2.AssistQueryParameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(assistQueryParams_); + assistQueryParams_ = subBuilder.buildPartial(); + } + break; } default: @@ -256,6 +274,55 @@ public int getContextSize() { return contextSize_; } + public static final int ASSIST_QUERY_PARAMS_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.AssistQueryParameters assistQueryParams_; + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return Whether the assistQueryParams field is set. + */ + @java.lang.Override + public boolean hasAssistQueryParams() { + return assistQueryParams_ != null; + } + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return The assistQueryParams. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams() { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder + getAssistQueryParamsOrBuilder() { + return getAssistQueryParams(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -279,6 +346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextSize_ != 0) { output.writeInt32(3, contextSize_); } + if (assistQueryParams_ != null) { + output.writeMessage(4, getAssistQueryParams()); + } unknownFields.writeTo(output); } @@ -297,6 +367,9 @@ public int getSerializedSize() { if (contextSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, contextSize_); } + if (assistQueryParams_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAssistQueryParams()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -316,6 +389,10 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getLatestMessage().equals(other.getLatestMessage())) return false; if (getContextSize() != other.getContextSize()) return false; + if (hasAssistQueryParams() != other.hasAssistQueryParams()) return false; + if (hasAssistQueryParams()) { + if (!getAssistQueryParams().equals(other.getAssistQueryParams())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,6 +410,10 @@ public int hashCode() { hash = (53 * hash) + getLatestMessage().hashCode(); hash = (37 * hash) + CONTEXT_SIZE_FIELD_NUMBER; hash = (53 * hash) + getContextSize(); + if (hasAssistQueryParams()) { + hash = (37 * hash) + ASSIST_QUERY_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAssistQueryParams().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -438,7 +519,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
+   * The request message for
+   * [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestFaqAnswersRequest} @@ -485,6 +567,12 @@ public Builder clear() { contextSize_ = 0; + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = null; + } else { + assistQueryParams_ = null; + assistQueryParamsBuilder_ = null; + } return this; } @@ -515,6 +603,11 @@ public com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest buildPartial() { result.parent_ = parent_; result.latestMessage_ = latestMessage_; result.contextSize_ = contextSize_; + if (assistQueryParamsBuilder_ == null) { + result.assistQueryParams_ = assistQueryParams_; + } else { + result.assistQueryParams_ = assistQueryParamsBuilder_.build(); + } onBuilt(); return result; } @@ -576,6 +669,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest if (other.getContextSize() != 0) { setContextSize(other.getContextSize()); } + if (other.hasAssistQueryParams()) { + mergeAssistQueryParams(other.getAssistQueryParams()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -911,6 +1007,196 @@ public Builder clearContextSize() { return this; } + private com.google.cloud.dialogflow.v2.AssistQueryParameters assistQueryParams_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder> + assistQueryParamsBuilder_; + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return Whether the assistQueryParams field is set. + */ + public boolean hasAssistQueryParams() { + return assistQueryParamsBuilder_ != null || assistQueryParams_ != null; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return The assistQueryParams. + */ + public com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams() { + if (assistQueryParamsBuilder_ == null) { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } else { + return assistQueryParamsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder setAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters value) { + if (assistQueryParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistQueryParams_ = value; + onChanged(); + } else { + assistQueryParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder setAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder builderForValue) { + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = builderForValue.build(); + onChanged(); + } else { + assistQueryParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder mergeAssistQueryParams( + com.google.cloud.dialogflow.v2.AssistQueryParameters value) { + if (assistQueryParamsBuilder_ == null) { + if (assistQueryParams_ != null) { + assistQueryParams_ = + com.google.cloud.dialogflow.v2.AssistQueryParameters.newBuilder(assistQueryParams_) + .mergeFrom(value) + .buildPartial(); + } else { + assistQueryParams_ = value; + } + onChanged(); + } else { + assistQueryParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public Builder clearAssistQueryParams() { + if (assistQueryParamsBuilder_ == null) { + assistQueryParams_ = null; + onChanged(); + } else { + assistQueryParams_ = null; + assistQueryParamsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder + getAssistQueryParamsBuilder() { + + onChanged(); + return getAssistQueryParamsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + public com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder + getAssistQueryParamsOrBuilder() { + if (assistQueryParamsBuilder_ != null) { + return assistQueryParamsBuilder_.getMessageOrBuilder(); + } else { + return assistQueryParams_ == null + ? com.google.cloud.dialogflow.v2.AssistQueryParameters.getDefaultInstance() + : assistQueryParams_; + } + } + /** + * + * + *
+     * Parameters for a human assist query.
+     * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder> + getAssistQueryParamsFieldBuilder() { + if (assistQueryParamsBuilder_ == null) { + assistQueryParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AssistQueryParameters, + com.google.cloud.dialogflow.v2.AssistQueryParameters.Builder, + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder>( + getAssistQueryParams(), getParentForChildren(), isClean()); + assistQueryParams_ = null; + } + return assistQueryParamsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequestOrBuilder.java index 54eec0cc7..5e860c10b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequestOrBuilder.java @@ -101,4 +101,39 @@ public interface SuggestFaqAnswersRequestOrBuilder * @return The contextSize. */ int getContextSize(); + + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return Whether the assistQueryParams field is set. + */ + boolean hasAssistQueryParams(); + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + * + * @return The assistQueryParams. + */ + com.google.cloud.dialogflow.v2.AssistQueryParameters getAssistQueryParams(); + /** + * + * + *
+   * Parameters for a human assist query.
+   * 
+ * + * .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 4; + */ + com.google.cloud.dialogflow.v2.AssistQueryParametersOrBuilder getAssistQueryParamsOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponse.java index 6ace67285..3195ce8cc 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponse.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
+ * The request message for
+ * [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestFaqAnswersResponse} @@ -263,10 +264,11 @@ public com.google.protobuf.ByteString getLatestMessageBytes() { * *
    * Number of messages prior to and including
-   * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the
-   * suggestion. It may be smaller than the
-   * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there
-   * aren't that many messages in the conversation.
+   * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message]
+   * to compile the suggestion. It may be smaller than the
+   * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size]
+   * field in the request if there aren't that many messages in the
+   * conversation.
    * 
* * int32 context_size = 3; @@ -462,7 +464,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
+   * The request message for
+   * [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestFaqAnswersResponse} @@ -1147,10 +1150,11 @@ public Builder setLatestMessageBytes(com.google.protobuf.ByteString value) { * *
      * Number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the
-     * suggestion. It may be smaller than the
-     * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there
-     * aren't that many messages in the conversation.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message]
+     * to compile the suggestion. It may be smaller than the
+     * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size]
+     * field in the request if there aren't that many messages in the
+     * conversation.
      * 
* * int32 context_size = 3; @@ -1166,10 +1170,11 @@ public int getContextSize() { * *
      * Number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the
-     * suggestion. It may be smaller than the
-     * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there
-     * aren't that many messages in the conversation.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message]
+     * to compile the suggestion. It may be smaller than the
+     * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size]
+     * field in the request if there aren't that many messages in the
+     * conversation.
      * 
* * int32 context_size = 3; @@ -1188,10 +1193,11 @@ public Builder setContextSize(int value) { * *
      * Number of messages prior to and including
-     * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the
-     * suggestion. It may be smaller than the
-     * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there
-     * aren't that many messages in the conversation.
+     * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message]
+     * to compile the suggestion. It may be smaller than the
+     * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size]
+     * field in the request if there aren't that many messages in the
+     * conversation.
      * 
* * int32 context_size = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponseOrBuilder.java index ffc55e1d8..ac0087f7e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponseOrBuilder.java @@ -111,10 +111,11 @@ public interface SuggestFaqAnswersResponseOrBuilder * *
    * Number of messages prior to and including
-   * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the
-   * suggestion. It may be smaller than the
-   * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there
-   * aren't that many messages in the conversation.
+   * [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message]
+   * to compile the suggestion. It may be smaller than the
+   * [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size]
+   * field in the request if there aren't that many messages in the
+   * conversation.
    * 
* * int32 context_size = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionFeature.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionFeature.java index f7bd6564f..e647fc3b8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionFeature.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionFeature.java @@ -153,6 +153,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * FAQ = 2; */ FAQ(2), + /** + * + * + *
+     * Run smart reply model.
+     * 
+ * + * SMART_REPLY = 3; + */ + SMART_REPLY(3), UNRECOGNIZED(-1), ; @@ -186,6 +196,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * FAQ = 2; */ public static final int FAQ_VALUE = 2; + /** + * + * + *
+     * Run smart reply model.
+     * 
+ * + * SMART_REPLY = 3; + */ + public static final int SMART_REPLY_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -217,6 +237,8 @@ public static Type forNumber(int value) { return ARTICLE_SUGGESTION; case 2: return FAQ; + case 3: + return SMART_REPLY; default: return null; } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionResult.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionResult.java index cc5b54e5f..60d12cb4c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionResult.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestionResult.java @@ -23,8 +23,12 @@ * *
  * One response of different type of suggestion response which is used in
- * the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
- * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent].
+ * the response of
+ * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
+ * and
+ * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent],
+ * as well as
+ * [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestionResult} @@ -579,8 +583,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * One response of different type of suggestion response which is used in
-   * the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
-   * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent].
+   * the response of
+   * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
+   * and
+   * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent],
+   * as well as
+   * [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.SuggestionResult} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateParticipantRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateParticipantRequest.java index b6774744d..3422e12eb 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateParticipantRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateParticipantRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant].
+ * The request message for
+ * [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.UpdateParticipantRequest} @@ -419,7 +420,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant].
+   * The request message for
+   * [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.UpdateParticipantRequest} diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index b27e86104..232b222a4 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -30,6 +30,36 @@ option java_outer_classname = "AudioConfigProto"; option java_package = "com.google.cloud.dialogflow.v2"; option objc_class_prefix = "DF"; +// Hints for the speech recognizer to help with recognition in a specific +// conversation state. +message SpeechContext { + // Optional. A list of strings containing words and phrases that the speech + // recognizer should recognize with higher likelihood. + // + // This list can be used to: + // + // * improve accuracy for words and phrases you expect the user to say, + // e.g. typical commands for your Dialogflow agent + // * add additional words to the speech recognizer vocabulary + // * ... + // + // See the [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/quotas) for usage + // limits. + repeated string phrases = 1; + + // Optional. Boost for this context compared to other contexts: + // + // * If the boost is positive, Dialogflow will increase the probability that + // the phrases in this context are recognized over similar sounding phrases. + // * If the boost is unspecified or non-positive, Dialogflow will not apply + // any boost. + // + // Dialogflow recommends that you use boosts in the range (0, 20] and that you + // find a value that fits your use case with binary search. + float boost = 2; +} + // Audio encoding of the audio content sent in the conversational query request. // Refer to the // [Cloud Speech API @@ -79,36 +109,6 @@ enum AudioEncoding { AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; } -// Hints for the speech recognizer to help with recognition in a specific -// conversation state. -message SpeechContext { - // Optional. A list of strings containing words and phrases that the speech - // recognizer should recognize with higher likelihood. - // - // This list can be used to: - // - // * improve accuracy for words and phrases you expect the user to say, - // e.g. typical commands for your Dialogflow agent - // * add additional words to the speech recognizer vocabulary - // * ... - // - // See the [Cloud Speech - // documentation](https://cloud.google.com/speech-to-text/quotas) for usage - // limits. - repeated string phrases = 1; - - // Optional. Boost for this context compared to other contexts: - // - // * If the boost is positive, Dialogflow will increase the probability that - // the phrases in this context are recognized over similar sounding phrases. - // * If the boost is unspecified or non-positive, Dialogflow will not apply - // any boost. - // - // Dialogflow recommends that you use boosts in the range (0, 20] and that you - // find a value that fits your use case with binary search. - float boost = 2; -} - // Information for a word recognized by the speech recognizer. message SpeechWordInfo { // The word this info is for. diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto index 38563059f..8eab78fb5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto @@ -606,6 +606,9 @@ message SuggestionFeature { // Run FAQ model. FAQ = 2; + + // Run smart reply model. + SMART_REPLY = 3; } // Type of Human Agent Assistant API feature to request. diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto index f815d8196..390eff7ba 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto @@ -69,7 +69,8 @@ service Participants { } // Returns the list of all participants in the specified conversation. - rpc ListParticipants(ListParticipantsRequest) returns (ListParticipantsResponse) { + rpc ListParticipants(ListParticipantsRequest) + returns (ListParticipantsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/conversations/*}/participants" additional_bindings { @@ -113,7 +114,8 @@ service Participants { // Gets suggested articles for a participant based on specific historical // messages. - rpc SuggestArticles(SuggestArticlesRequest) returns (SuggestArticlesResponse) { + rpc SuggestArticles(SuggestArticlesRequest) + returns (SuggestArticlesResponse) { option (google.api.http) = { post: "/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestArticles" body: "*" @@ -127,7 +129,8 @@ service Participants { // Gets suggested faq answers for a participant based on specific historical // messages. - rpc SuggestFaqAnswers(SuggestFaqAnswersRequest) returns (SuggestFaqAnswersResponse) { + rpc SuggestFaqAnswers(SuggestFaqAnswersRequest) + returns (SuggestFaqAnswersResponse) { option (google.api.http) = { post: "/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers" body: "*" @@ -169,14 +172,34 @@ message Participant { // ID>/conversations//participants/`. string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // Immutable. The role this participant plays in the conversation. This field must be set - // during participant creation and is then immutable. + // Immutable. The role this participant plays in the conversation. This field + // must be set during participant creation and is then immutable. Role role = 2 [(google.api.field_behavior) = IMMUTABLE]; // Optional. Label applied to streams representing this participant in SIPREC // XML metadata and SDP. This is used to assign transcriptions from that // media stream to this participant. This field can be updated. string sip_recording_media_label = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Key-value filters on the metadata of documents returned by + // article suggestion. If specified, article suggestion only returns suggested + // documents that match all filters in their + // [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + // values for a metadata key should be concatenated by comma. For example, + // filters to match all documents that have 'US' or 'CA' in their market + // metadata values and 'agent' in their user metadata values will be + // ``` + // documents_metadata_filters { + // key: "market" + // value: "US,CA" + // } + // documents_metadata_filters { + // key: "user" + // value: "agent" + // } + // ``` + map documents_metadata_filters = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Represents a message posted into a conversation. @@ -204,16 +227,20 @@ message Message { string participant = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The role of the participant. - Participant.Role participant_role = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + Participant.Role participant_role = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the message was created. - google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The annotation for the message. - MessageAnnotation message_annotation = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + MessageAnnotation message_annotation = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } -// The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant]. +// The request message for +// [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant]. message CreateParticipantRequest { // Required. Resource identifier of the conversation adding the participant. // Format: `projects//locations//locations//conversations//locations//locations//locations//locations//conversations//messages/`. string latest_message = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Message" - }]; + type: "dialogflow.googleapis.com/Message" + }]; // Max number of messages prior to and including - // [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context - // when compiling the suggestion. By default 20 and at most 50. + // [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] + // to use as context when compiling the suggestion. By default 20 and at + // most 50. int32 context_size = 3; + + // Parameters for a human assist query. + AssistQueryParameters assist_query_params = 4; } -// The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. +// The response message for +// [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. message SuggestArticlesResponse { // Articles ordered by score in descending order. repeated ArticleAnswer article_answers = 1; @@ -408,14 +455,16 @@ message SuggestArticlesResponse { string latest_message = 2; // Number of messages prior to and including - // [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the - // suggestion. It may be smaller than the - // [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there - // aren't that many messages in the conversation. + // [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] + // to compile the suggestion. It may be smaller than the + // [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] + // field in the request if there aren't that many messages in the + // conversation. int32 context_size = 3; } -// The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. +// The request message for +// [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. message SuggestFaqAnswersRequest { // Required. The name of the participant to fetch suggestion for. // Format: `projects//locations//locations//conversations//messages/`. string latest_message = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Message" - }]; + type: "dialogflow.googleapis.com/Message" + }]; // Max number of messages prior to and including // [latest_message] to use as context when compiling the // suggestion. By default 20 and at most 50. int32 context_size = 3; + + // Parameters for a human assist query. + AssistQueryParameters assist_query_params = 4; } -// The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. +// The request message for +// [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. message SuggestFaqAnswersResponse { // Answers extracted from FAQ documents. repeated FaqAnswer faq_answers = 1; @@ -455,10 +508,11 @@ message SuggestFaqAnswersResponse { string latest_message = 2; // Number of messages prior to and including - // [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the - // suggestion. It may be smaller than the - // [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there - // aren't that many messages in the conversation. + // [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] + // to compile the suggestion. It may be smaller than the + // [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] + // field in the request if there aren't that many messages in the + // conversation. int32 context_size = 3; } @@ -488,7 +542,9 @@ message AutomatedAgentReply { FINAL = 2; } - // Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call. + // Response of the Dialogflow + // [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] + // call. DetectIntentResponse detect_intent_response = 1; // AutomatedAgentReply type. @@ -557,8 +613,12 @@ message FaqAnswer { } // One response of different type of suggestion response which is used in -// the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and -// [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent]. +// the response of +// [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] +// and +// [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], +// as well as +// [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent]. message SuggestionResult { // Different type of suggestion response. oneof suggestion_response { @@ -609,3 +669,23 @@ message MessageAnnotation { // Indicates whether the text message contains entities. bool contain_entities = 2; } + +// Represents the parameters of human assist query. +message AssistQueryParameters { + // Key-value filters on the metadata of documents returned by article + // suggestion. If specified, article suggestion only returns suggested + // documents that match all filters in their + // [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple + // values for a metadata key should be concatenated by comma. For example, + // filters to match all documents that have 'US' or 'CA' in their market + // metadata values and 'agent' in their user metadata values will be + // documents_metadata_filters { + // key: "market" + // value: "US,CA" + // } + // documents_metadata_filters { + // key: "user" + // value: "agent" + // } + map documents_metadata_filters = 1; +}