All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.v2.AnalyzeContentResponse Maven / Gradle / Ivy

There is a newer version: 4.59.0
Show newest version
/*
 * Copyright 2024 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

// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.v2;

/**
 *
 *
 * 
 * The response message for
 * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
 * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentResponse} */ public final class AnalyzeContentResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AnalyzeContentResponse) AnalyzeContentResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AnalyzeContentResponse.newBuilder() to construct. private AnalyzeContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AnalyzeContentResponse() { replyText_ = ""; humanAgentSuggestionResults_ = java.util.Collections.emptyList(); endUserSuggestionResults_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalyzeContentResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.ParticipantProto .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.ParticipantProto .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, com.google.cloud.dialogflow.v2.AnalyzeContentResponse.Builder.class); } private int bitField0_; public static final int REPLY_TEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object replyText_ = ""; /** * * *
   * The output text content.
   * This field is set if the automated agent responded with text to show to
   * the user.
   * 
* * string reply_text = 1; * * @return The replyText. */ @java.lang.Override public java.lang.String getReplyText() { java.lang.Object ref = replyText_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replyText_ = s; return s; } } /** * * *
   * The output text content.
   * This field is set if the automated agent responded with text to show to
   * the user.
   * 
* * string reply_text = 1; * * @return The bytes for replyText. */ @java.lang.Override public com.google.protobuf.ByteString getReplyTextBytes() { java.lang.Object ref = replyText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replyText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLY_AUDIO_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.OutputAudio replyAudio_; /** * * *
   * The audio data bytes encoded as specified in the request.
   * This field is set if:
   *
   *  - `reply_audio_config` was specified in the request, or
   *  - The automated agent responded with audio to play to the user. In such
   *    case, `reply_audio.config` contains settings used to synthesize the
   *    speech.
   *
   * In some scenarios, multiple output audio fields may be present in the
   * response structure. In these cases, only the top-most-level audio output
   * has content.
   * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; * * @return Whether the replyAudio field is set. */ @java.lang.Override public boolean hasReplyAudio() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The audio data bytes encoded as specified in the request.
   * This field is set if:
   *
   *  - `reply_audio_config` was specified in the request, or
   *  - The automated agent responded with audio to play to the user. In such
   *    case, `reply_audio.config` contains settings used to synthesize the
   *    speech.
   *
   * In some scenarios, multiple output audio fields may be present in the
   * response structure. In these cases, only the top-most-level audio output
   * has content.
   * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; * * @return The replyAudio. */ @java.lang.Override public com.google.cloud.dialogflow.v2.OutputAudio getReplyAudio() { return replyAudio_ == null ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() : replyAudio_; } /** * * *
   * The audio data bytes encoded as specified in the request.
   * This field is set if:
   *
   *  - `reply_audio_config` was specified in the request, or
   *  - The automated agent responded with audio to play to the user. In such
   *    case, `reply_audio.config` contains settings used to synthesize the
   *    speech.
   *
   * In some scenarios, multiple output audio fields may be present in the
   * response structure. In these cases, only the top-most-level audio output
   * has content.
   * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ @java.lang.Override public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilder() { return replyAudio_ == null ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() : replyAudio_; } public static final int AUTOMATED_AGENT_REPLY_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.v2.AutomatedAgentReply automatedAgentReply_; /** * * *
   * 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.
   * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; * * @return Whether the automatedAgentReply field is set. */ @java.lang.Override public boolean hasAutomatedAgentReply() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * 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.
   * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; * * @return The automatedAgentReply. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply() { return automatedAgentReply_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() : automatedAgentReply_; } /** * * *
   * 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.
   * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ @java.lang.Override public com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder() { return automatedAgentReply_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() : automatedAgentReply_; } public static final int MESSAGE_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.v2.Message message_; /** * * *
   * Message analyzed by CCAI.
   * 
* * .google.cloud.dialogflow.v2.Message message = 5; * * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Message analyzed by CCAI.
   * 
* * .google.cloud.dialogflow.v2.Message message = 5; * * @return The message. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Message getMessage() { return message_ == null ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() : message_; } /** * * *
   * Message analyzed by CCAI.
   * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ @java.lang.Override public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { return message_ == null ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() : message_; } public static final int HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List humanAgentSuggestionResults_; /** * * *
   * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
   *
   * Note that any failure of Agent Assist features will not lead to the overall
   * failure of an AnalyzeContent API call. Instead, the features will
   * fail silently with the error field set in the corresponding
   * SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ @java.lang.Override public java.util.List getHumanAgentSuggestionResultsList() { return humanAgentSuggestionResults_; } /** * * *
   * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
   *
   * Note that any failure of Agent Assist features will not lead to the overall
   * failure of an AnalyzeContent API call. Instead, the features will
   * fail silently with the error field set in the corresponding
   * SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ @java.lang.Override public java.util.List getHumanAgentSuggestionResultsOrBuilderList() { return humanAgentSuggestionResults_; } /** * * *
   * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
   *
   * Note that any failure of Agent Assist features will not lead to the overall
   * failure of an AnalyzeContent API call. Instead, the features will
   * fail silently with the error field set in the corresponding
   * SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ @java.lang.Override public int getHumanAgentSuggestionResultsCount() { return humanAgentSuggestionResults_.size(); } /** * * *
   * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
   *
   * Note that any failure of Agent Assist features will not lead to the overall
   * failure of an AnalyzeContent API call. Instead, the features will
   * fail silently with the error field set in the corresponding
   * SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionResults(int index) { return humanAgentSuggestionResults_.get(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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
   *
   * Note that any failure of Agent Assist features will not lead to the overall
   * failure of an AnalyzeContent API call. Instead, the features will
   * fail silently with the error field set in the corresponding
   * SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder(int index) { return humanAgentSuggestionResults_.get(index); } public static final int END_USER_SUGGESTION_RESULTS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List endUserSuggestionResults_; /** * * *
   * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
   *
   * Same as human_agent_suggestion_results, any failure of Agent Assist
   * features will not lead to the overall failure of an AnalyzeContent API
   * call. Instead, the features will fail silently with the error field set in
   * the corresponding SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ @java.lang.Override public java.util.List getEndUserSuggestionResultsList() { return endUserSuggestionResults_; } /** * * *
   * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
   *
   * Same as human_agent_suggestion_results, any failure of Agent Assist
   * features will not lead to the overall failure of an AnalyzeContent API
   * call. Instead, the features will fail silently with the error field set in
   * the corresponding SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ @java.lang.Override public java.util.List getEndUserSuggestionResultsOrBuilderList() { return endUserSuggestionResults_; } /** * * *
   * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
   *
   * Same as human_agent_suggestion_results, any failure of Agent Assist
   * features will not lead to the overall failure of an AnalyzeContent API
   * call. Instead, the features will fail silently with the error field set in
   * the corresponding SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ @java.lang.Override public int getEndUserSuggestionResultsCount() { return endUserSuggestionResults_.size(); } /** * * *
   * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
   *
   * Same as human_agent_suggestion_results, any failure of Agent Assist
   * features will not lead to the overall failure of an AnalyzeContent API
   * call. Instead, the features will fail silently with the error field set in
   * the corresponding SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResults(int index) { return endUserSuggestionResults_.get(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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
   *
   * Same as human_agent_suggestion_results, any failure of Agent Assist
   * features will not lead to the overall failure of an AnalyzeContent API
   * call. Instead, the features will fail silently with the error field set in
   * the corresponding SuggestionResult.
   * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder(int index) { return endUserSuggestionResults_.get(index); } public static final int DTMF_PARAMETERS_FIELD_NUMBER = 9; private com.google.cloud.dialogflow.v2.DtmfParameters dtmfParameters_; /** * * *
   * Indicates the parameters of DTMF.
   * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; * * @return Whether the dtmfParameters field is set. */ @java.lang.Override public boolean hasDtmfParameters() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Indicates the parameters of DTMF.
   * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; * * @return The dtmfParameters. */ @java.lang.Override public com.google.cloud.dialogflow.v2.DtmfParameters getDtmfParameters() { return dtmfParameters_ == null ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() : dtmfParameters_; } /** * * *
   * Indicates the parameters of DTMF.
   * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ @java.lang.Override public com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder getDtmfParametersOrBuilder() { return dtmfParameters_ == null ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() : dtmfParameters_; } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replyText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replyText_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getReplyAudio()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getAutomatedAgentReply()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getMessage()); } for (int i = 0; i < humanAgentSuggestionResults_.size(); i++) { output.writeMessage(6, humanAgentSuggestionResults_.get(i)); } for (int i = 0; i < endUserSuggestionResults_.size(); i++) { output.writeMessage(7, endUserSuggestionResults_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(9, getDtmfParameters()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replyText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replyText_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReplyAudio()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutomatedAgentReply()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMessage()); } for (int i = 0; i < humanAgentSuggestionResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, humanAgentSuggestionResults_.get(i)); } for (int i = 0; i < endUserSuggestionResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 7, endUserSuggestionResults_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDtmfParameters()); } size += getUnknownFields().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.AnalyzeContentResponse)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.AnalyzeContentResponse other = (com.google.cloud.dialogflow.v2.AnalyzeContentResponse) obj; if (!getReplyText().equals(other.getReplyText())) return false; if (hasReplyAudio() != other.hasReplyAudio()) return false; if (hasReplyAudio()) { if (!getReplyAudio().equals(other.getReplyAudio())) return false; } if (hasAutomatedAgentReply() != other.hasAutomatedAgentReply()) return false; if (hasAutomatedAgentReply()) { if (!getAutomatedAgentReply().equals(other.getAutomatedAgentReply())) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage().equals(other.getMessage())) return false; } if (!getHumanAgentSuggestionResultsList().equals(other.getHumanAgentSuggestionResultsList())) return false; if (!getEndUserSuggestionResultsList().equals(other.getEndUserSuggestionResultsList())) return false; if (hasDtmfParameters() != other.hasDtmfParameters()) return false; if (hasDtmfParameters()) { if (!getDtmfParameters().equals(other.getDtmfParameters())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REPLY_TEXT_FIELD_NUMBER; hash = (53 * hash) + getReplyText().hashCode(); if (hasReplyAudio()) { hash = (37 * hash) + REPLY_AUDIO_FIELD_NUMBER; hash = (53 * hash) + getReplyAudio().hashCode(); } if (hasAutomatedAgentReply()) { hash = (37 * hash) + AUTOMATED_AGENT_REPLY_FIELD_NUMBER; hash = (53 * hash) + getAutomatedAgentReply().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (getHumanAgentSuggestionResultsCount() > 0) { hash = (37 * hash) + HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getHumanAgentSuggestionResultsList().hashCode(); } if (getEndUserSuggestionResultsCount() > 0) { hash = (37 * hash) + END_USER_SUGGESTION_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getEndUserSuggestionResultsList().hashCode(); } if (hasDtmfParameters()) { hash = (37 * hash) + DTMF_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getDtmfParameters().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse 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.AnalyzeContentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse 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.AnalyzeContentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse 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.AnalyzeContentResponse parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse 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.AnalyzeContentResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse 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.AnalyzeContentResponse 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.AnalyzeContentResponse 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.AnalyzeContentResponse 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; } /** * * *
   * The response message for
   * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AnalyzeContentResponse) com.google.cloud.dialogflow.v2.AnalyzeContentResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.ParticipantProto .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.ParticipantProto .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, com.google.cloud.dialogflow.v2.AnalyzeContentResponse.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AnalyzeContentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReplyAudioFieldBuilder(); getAutomatedAgentReplyFieldBuilder(); getMessageFieldBuilder(); getHumanAgentSuggestionResultsFieldBuilder(); getEndUserSuggestionResultsFieldBuilder(); getDtmfParametersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; replyText_ = ""; replyAudio_ = null; if (replyAudioBuilder_ != null) { replyAudioBuilder_.dispose(); replyAudioBuilder_ = null; } automatedAgentReply_ = null; if (automatedAgentReplyBuilder_ != null) { automatedAgentReplyBuilder_.dispose(); automatedAgentReplyBuilder_ = null; } message_ = null; if (messageBuilder_ != null) { messageBuilder_.dispose(); messageBuilder_ = null; } if (humanAgentSuggestionResultsBuilder_ == null) { humanAgentSuggestionResults_ = java.util.Collections.emptyList(); } else { humanAgentSuggestionResults_ = null; humanAgentSuggestionResultsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (endUserSuggestionResultsBuilder_ == null) { endUserSuggestionResults_ = java.util.Collections.emptyList(); } else { endUserSuggestionResults_ = null; endUserSuggestionResultsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); dtmfParameters_ = null; if (dtmfParametersBuilder_ != null) { dtmfParametersBuilder_.dispose(); dtmfParametersBuilder_ = null; } 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_AnalyzeContentResponse_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.AnalyzeContentResponse getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.AnalyzeContentResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.AnalyzeContentResponse build() { com.google.cloud.dialogflow.v2.AnalyzeContentResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.AnalyzeContentResponse buildPartial() { com.google.cloud.dialogflow.v2.AnalyzeContentResponse result = new com.google.cloud.dialogflow.v2.AnalyzeContentResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.v2.AnalyzeContentResponse result) { if (humanAgentSuggestionResultsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { humanAgentSuggestionResults_ = java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); bitField0_ = (bitField0_ & ~0x00000010); } result.humanAgentSuggestionResults_ = humanAgentSuggestionResults_; } else { result.humanAgentSuggestionResults_ = humanAgentSuggestionResultsBuilder_.build(); } if (endUserSuggestionResultsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { endUserSuggestionResults_ = java.util.Collections.unmodifiableList(endUserSuggestionResults_); bitField0_ = (bitField0_ & ~0x00000020); } result.endUserSuggestionResults_ = endUserSuggestionResults_; } else { result.endUserSuggestionResults_ = endUserSuggestionResultsBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.v2.AnalyzeContentResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.replyText_ = replyText_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.replyAudio_ = replyAudioBuilder_ == null ? replyAudio_ : replyAudioBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.automatedAgentReply_ = automatedAgentReplyBuilder_ == null ? automatedAgentReply_ : automatedAgentReplyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.dtmfParameters_ = dtmfParametersBuilder_ == null ? dtmfParameters_ : dtmfParametersBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @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.AnalyzeContentResponse) { return mergeFrom((com.google.cloud.dialogflow.v2.AnalyzeContentResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnalyzeContentResponse other) { if (other == com.google.cloud.dialogflow.v2.AnalyzeContentResponse.getDefaultInstance()) return this; if (!other.getReplyText().isEmpty()) { replyText_ = other.replyText_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasReplyAudio()) { mergeReplyAudio(other.getReplyAudio()); } if (other.hasAutomatedAgentReply()) { mergeAutomatedAgentReply(other.getAutomatedAgentReply()); } if (other.hasMessage()) { mergeMessage(other.getMessage()); } if (humanAgentSuggestionResultsBuilder_ == null) { if (!other.humanAgentSuggestionResults_.isEmpty()) { if (humanAgentSuggestionResults_.isEmpty()) { humanAgentSuggestionResults_ = other.humanAgentSuggestionResults_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.addAll(other.humanAgentSuggestionResults_); } onChanged(); } } else { if (!other.humanAgentSuggestionResults_.isEmpty()) { if (humanAgentSuggestionResultsBuilder_.isEmpty()) { humanAgentSuggestionResultsBuilder_.dispose(); humanAgentSuggestionResultsBuilder_ = null; humanAgentSuggestionResults_ = other.humanAgentSuggestionResults_; bitField0_ = (bitField0_ & ~0x00000010); humanAgentSuggestionResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHumanAgentSuggestionResultsFieldBuilder() : null; } else { humanAgentSuggestionResultsBuilder_.addAllMessages(other.humanAgentSuggestionResults_); } } } if (endUserSuggestionResultsBuilder_ == null) { if (!other.endUserSuggestionResults_.isEmpty()) { if (endUserSuggestionResults_.isEmpty()) { endUserSuggestionResults_ = other.endUserSuggestionResults_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.addAll(other.endUserSuggestionResults_); } onChanged(); } } else { if (!other.endUserSuggestionResults_.isEmpty()) { if (endUserSuggestionResultsBuilder_.isEmpty()) { endUserSuggestionResultsBuilder_.dispose(); endUserSuggestionResultsBuilder_ = null; endUserSuggestionResults_ = other.endUserSuggestionResults_; bitField0_ = (bitField0_ & ~0x00000020); endUserSuggestionResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndUserSuggestionResultsFieldBuilder() : null; } else { endUserSuggestionResultsBuilder_.addAllMessages(other.endUserSuggestionResults_); } } } if (other.hasDtmfParameters()) { mergeDtmfParameters(other.getDtmfParameters()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { replyText_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getReplyAudioFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getAutomatedAgentReplyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 case 50: { com.google.cloud.dialogflow.v2.SuggestionResult m = input.readMessage( com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry); if (humanAgentSuggestionResultsBuilder_ == null) { ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.add(m); } else { humanAgentSuggestionResultsBuilder_.addMessage(m); } break; } // case 50 case 58: { com.google.cloud.dialogflow.v2.SuggestionResult m = input.readMessage( com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry); if (endUserSuggestionResultsBuilder_ == null) { ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.add(m); } else { endUserSuggestionResultsBuilder_.addMessage(m); } break; } // case 58 case 74: { input.readMessage(getDtmfParametersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object replyText_ = ""; /** * * *
     * The output text content.
     * This field is set if the automated agent responded with text to show to
     * the user.
     * 
* * string reply_text = 1; * * @return The replyText. */ public java.lang.String getReplyText() { java.lang.Object ref = replyText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replyText_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The output text content.
     * This field is set if the automated agent responded with text to show to
     * the user.
     * 
* * string reply_text = 1; * * @return The bytes for replyText. */ public com.google.protobuf.ByteString getReplyTextBytes() { java.lang.Object ref = replyText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replyText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The output text content.
     * This field is set if the automated agent responded with text to show to
     * the user.
     * 
* * string reply_text = 1; * * @param value The replyText to set. * @return This builder for chaining. */ public Builder setReplyText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } replyText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The output text content.
     * This field is set if the automated agent responded with text to show to
     * the user.
     * 
* * string reply_text = 1; * * @return This builder for chaining. */ public Builder clearReplyText() { replyText_ = getDefaultInstance().getReplyText(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The output text content.
     * This field is set if the automated agent responded with text to show to
     * the user.
     * 
* * string reply_text = 1; * * @param value The bytes for replyText to set. * @return This builder for chaining. */ public Builder setReplyTextBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replyText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.cloud.dialogflow.v2.OutputAudio replyAudio_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.OutputAudio, com.google.cloud.dialogflow.v2.OutputAudio.Builder, com.google.cloud.dialogflow.v2.OutputAudioOrBuilder> replyAudioBuilder_; /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; * * @return Whether the replyAudio field is set. */ public boolean hasReplyAudio() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; * * @return The replyAudio. */ public com.google.cloud.dialogflow.v2.OutputAudio getReplyAudio() { if (replyAudioBuilder_ == null) { return replyAudio_ == null ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() : replyAudio_; } else { return replyAudioBuilder_.getMessage(); } } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ public Builder setReplyAudio(com.google.cloud.dialogflow.v2.OutputAudio value) { if (replyAudioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } replyAudio_ = value; } else { replyAudioBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ public Builder setReplyAudio( com.google.cloud.dialogflow.v2.OutputAudio.Builder builderForValue) { if (replyAudioBuilder_ == null) { replyAudio_ = builderForValue.build(); } else { replyAudioBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ public Builder mergeReplyAudio(com.google.cloud.dialogflow.v2.OutputAudio value) { if (replyAudioBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && replyAudio_ != null && replyAudio_ != com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance()) { getReplyAudioBuilder().mergeFrom(value); } else { replyAudio_ = value; } } else { replyAudioBuilder_.mergeFrom(value); } if (replyAudio_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ public Builder clearReplyAudio() { bitField0_ = (bitField0_ & ~0x00000002); replyAudio_ = null; if (replyAudioBuilder_ != null) { replyAudioBuilder_.dispose(); replyAudioBuilder_ = null; } onChanged(); return this; } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ public com.google.cloud.dialogflow.v2.OutputAudio.Builder getReplyAudioBuilder() { bitField0_ |= 0x00000002; onChanged(); return getReplyAudioFieldBuilder().getBuilder(); } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilder() { if (replyAudioBuilder_ != null) { return replyAudioBuilder_.getMessageOrBuilder(); } else { return replyAudio_ == null ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() : replyAudio_; } } /** * * *
     * The audio data bytes encoded as specified in the request.
     * This field is set if:
     *
     *  - `reply_audio_config` was specified in the request, or
     *  - The automated agent responded with audio to play to the user. In such
     *    case, `reply_audio.config` contains settings used to synthesize the
     *    speech.
     *
     * In some scenarios, multiple output audio fields may be present in the
     * response structure. In these cases, only the top-most-level audio output
     * has content.
     * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.OutputAudio, com.google.cloud.dialogflow.v2.OutputAudio.Builder, com.google.cloud.dialogflow.v2.OutputAudioOrBuilder> getReplyAudioFieldBuilder() { if (replyAudioBuilder_ == null) { replyAudioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.OutputAudio, com.google.cloud.dialogflow.v2.OutputAudio.Builder, com.google.cloud.dialogflow.v2.OutputAudioOrBuilder>( getReplyAudio(), getParentForChildren(), isClean()); replyAudio_ = null; } return replyAudioBuilder_; } private com.google.cloud.dialogflow.v2.AutomatedAgentReply automatedAgentReply_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AutomatedAgentReply, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder> automatedAgentReplyBuilder_; /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; * * @return Whether the automatedAgentReply field is set. */ public boolean hasAutomatedAgentReply() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; * * @return The automatedAgentReply. */ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply() { if (automatedAgentReplyBuilder_ == null) { return automatedAgentReply_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() : automatedAgentReply_; } else { return automatedAgentReplyBuilder_.getMessage(); } } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ public Builder setAutomatedAgentReply( com.google.cloud.dialogflow.v2.AutomatedAgentReply value) { if (automatedAgentReplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } automatedAgentReply_ = value; } else { automatedAgentReplyBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ public Builder setAutomatedAgentReply( com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder builderForValue) { if (automatedAgentReplyBuilder_ == null) { automatedAgentReply_ = builderForValue.build(); } else { automatedAgentReplyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ public Builder mergeAutomatedAgentReply( com.google.cloud.dialogflow.v2.AutomatedAgentReply value) { if (automatedAgentReplyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && automatedAgentReply_ != null && automatedAgentReply_ != com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance()) { getAutomatedAgentReplyBuilder().mergeFrom(value); } else { automatedAgentReply_ = value; } } else { automatedAgentReplyBuilder_.mergeFrom(value); } if (automatedAgentReply_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ public Builder clearAutomatedAgentReply() { bitField0_ = (bitField0_ & ~0x00000004); automatedAgentReply_ = null; if (automatedAgentReplyBuilder_ != null) { automatedAgentReplyBuilder_.dispose(); automatedAgentReplyBuilder_ = null; } onChanged(); return this; } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ public com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder getAutomatedAgentReplyBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAutomatedAgentReplyFieldBuilder().getBuilder(); } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ public com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder() { if (automatedAgentReplyBuilder_ != null) { return automatedAgentReplyBuilder_.getMessageOrBuilder(); } else { return automatedAgentReply_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() : automatedAgentReply_; } } /** * * *
     * 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.
     * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AutomatedAgentReply, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder> getAutomatedAgentReplyFieldBuilder() { if (automatedAgentReplyBuilder_ == null) { automatedAgentReplyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AutomatedAgentReply, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder>( getAutomatedAgentReply(), getParentForChildren(), isClean()); automatedAgentReply_ = null; } return automatedAgentReplyBuilder_; } private com.google.cloud.dialogflow.v2.Message message_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder> messageBuilder_; /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; * * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; * * @return The message. */ public com.google.cloud.dialogflow.v2.Message getMessage() { if (messageBuilder_ == null) { return message_ == null ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ public Builder setMessage(com.google.cloud.dialogflow.v2.Message value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; } else { messageBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ public Builder setMessage(com.google.cloud.dialogflow.v2.Message.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); } else { messageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ public Builder mergeMessage(com.google.cloud.dialogflow.v2.Message value) { if (messageBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && message_ != null && message_ != com.google.cloud.dialogflow.v2.Message.getDefaultInstance()) { getMessageBuilder().mergeFrom(value); } else { message_ = value; } } else { messageBuilder_.mergeFrom(value); } if (message_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000008); message_ = null; if (messageBuilder_ != null) { messageBuilder_.dispose(); messageBuilder_ = null; } onChanged(); return this; } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ public com.google.cloud.dialogflow.v2.Message.Builder getMessageBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMessageFieldBuilder().getBuilder(); } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { return message_ == null ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() : message_; } } /** * * *
     * Message analyzed by CCAI.
     * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder>( getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } private java.util.List humanAgentSuggestionResults_ = java.util.Collections.emptyList(); private void ensureHumanAgentSuggestionResultsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { humanAgentSuggestionResults_ = new java.util.ArrayList( humanAgentSuggestionResults_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> humanAgentSuggestionResultsBuilder_; /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public java.util.List getHumanAgentSuggestionResultsList() { if (humanAgentSuggestionResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); } else { return humanAgentSuggestionResultsBuilder_.getMessageList(); } } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public int getHumanAgentSuggestionResultsCount() { if (humanAgentSuggestionResultsBuilder_ == null) { return humanAgentSuggestionResults_.size(); } else { return humanAgentSuggestionResultsBuilder_.getCount(); } } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionResults( int index) { if (humanAgentSuggestionResultsBuilder_ == null) { return humanAgentSuggestionResults_.get(index); } else { return humanAgentSuggestionResultsBuilder_.getMessage(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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder setHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { if (humanAgentSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.set(index, value); onChanged(); } else { humanAgentSuggestionResultsBuilder_.setMessage(index, value); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder setHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { if (humanAgentSuggestionResultsBuilder_ == null) { ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.set(index, builderForValue.build()); onChanged(); } else { humanAgentSuggestionResultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder addHumanAgentSuggestionResults( com.google.cloud.dialogflow.v2.SuggestionResult value) { if (humanAgentSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.add(value); onChanged(); } else { humanAgentSuggestionResultsBuilder_.addMessage(value); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder addHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { if (humanAgentSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.add(index, value); onChanged(); } else { humanAgentSuggestionResultsBuilder_.addMessage(index, value); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder addHumanAgentSuggestionResults( com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { if (humanAgentSuggestionResultsBuilder_ == null) { ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.add(builderForValue.build()); onChanged(); } else { humanAgentSuggestionResultsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder addHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { if (humanAgentSuggestionResultsBuilder_ == null) { ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.add(index, builderForValue.build()); onChanged(); } else { humanAgentSuggestionResultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder addAllHumanAgentSuggestionResults( java.lang.Iterable values) { if (humanAgentSuggestionResultsBuilder_ == null) { ensureHumanAgentSuggestionResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, humanAgentSuggestionResults_); onChanged(); } else { humanAgentSuggestionResultsBuilder_.addAllMessages(values); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder clearHumanAgentSuggestionResults() { if (humanAgentSuggestionResultsBuilder_ == null) { humanAgentSuggestionResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { humanAgentSuggestionResultsBuilder_.clear(); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public Builder removeHumanAgentSuggestionResults(int index) { if (humanAgentSuggestionResultsBuilder_ == null) { ensureHumanAgentSuggestionResultsIsMutable(); humanAgentSuggestionResults_.remove(index); onChanged(); } else { humanAgentSuggestionResultsBuilder_.remove(index); } return this; } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder getHumanAgentSuggestionResultsBuilder(int index) { return getHumanAgentSuggestionResultsFieldBuilder().getBuilder(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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder(int index) { if (humanAgentSuggestionResultsBuilder_ == null) { return humanAgentSuggestionResults_.get(index); } else { return humanAgentSuggestionResultsBuilder_.getMessageOrBuilder(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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public java.util.List getHumanAgentSuggestionResultsOrBuilderList() { if (humanAgentSuggestionResultsBuilder_ != null) { return humanAgentSuggestionResultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); } } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addHumanAgentSuggestionResultsBuilder() { return getHumanAgentSuggestionResultsFieldBuilder() .addBuilder(com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addHumanAgentSuggestionResultsBuilder(int index) { return getHumanAgentSuggestionResultsFieldBuilder() .addBuilder(index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** * * *
     * 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.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
     *
     * Note that any failure of Agent Assist features will not lead to the overall
     * failure of an AnalyzeContent API call. Instead, the features will
     * fail silently with the error field set in the corresponding
     * SuggestionResult.
     * 
* * * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; * */ public java.util.List getHumanAgentSuggestionResultsBuilderList() { return getHumanAgentSuggestionResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> getHumanAgentSuggestionResultsFieldBuilder() { if (humanAgentSuggestionResultsBuilder_ == null) { humanAgentSuggestionResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( humanAgentSuggestionResults_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); humanAgentSuggestionResults_ = null; } return humanAgentSuggestionResultsBuilder_; } private java.util.List endUserSuggestionResults_ = java.util.Collections.emptyList(); private void ensureEndUserSuggestionResultsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { endUserSuggestionResults_ = new java.util.ArrayList( endUserSuggestionResults_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> endUserSuggestionResultsBuilder_; /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public java.util.List getEndUserSuggestionResultsList() { if (endUserSuggestionResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(endUserSuggestionResults_); } else { return endUserSuggestionResultsBuilder_.getMessageList(); } } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public int getEndUserSuggestionResultsCount() { if (endUserSuggestionResultsBuilder_ == null) { return endUserSuggestionResults_.size(); } else { return endUserSuggestionResultsBuilder_.getCount(); } } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResults(int index) { if (endUserSuggestionResultsBuilder_ == null) { return endUserSuggestionResults_.get(index); } else { return endUserSuggestionResultsBuilder_.getMessage(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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder setEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { if (endUserSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.set(index, value); onChanged(); } else { endUserSuggestionResultsBuilder_.setMessage(index, value); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder setEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { if (endUserSuggestionResultsBuilder_ == null) { ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.set(index, builderForValue.build()); onChanged(); } else { endUserSuggestionResultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder addEndUserSuggestionResults( com.google.cloud.dialogflow.v2.SuggestionResult value) { if (endUserSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.add(value); onChanged(); } else { endUserSuggestionResultsBuilder_.addMessage(value); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder addEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { if (endUserSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.add(index, value); onChanged(); } else { endUserSuggestionResultsBuilder_.addMessage(index, value); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder addEndUserSuggestionResults( com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { if (endUserSuggestionResultsBuilder_ == null) { ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.add(builderForValue.build()); onChanged(); } else { endUserSuggestionResultsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder addEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { if (endUserSuggestionResultsBuilder_ == null) { ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.add(index, builderForValue.build()); onChanged(); } else { endUserSuggestionResultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder addAllEndUserSuggestionResults( java.lang.Iterable values) { if (endUserSuggestionResultsBuilder_ == null) { ensureEndUserSuggestionResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endUserSuggestionResults_); onChanged(); } else { endUserSuggestionResultsBuilder_.addAllMessages(values); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder clearEndUserSuggestionResults() { if (endUserSuggestionResultsBuilder_ == null) { endUserSuggestionResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { endUserSuggestionResultsBuilder_.clear(); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public Builder removeEndUserSuggestionResults(int index) { if (endUserSuggestionResultsBuilder_ == null) { ensureEndUserSuggestionResultsIsMutable(); endUserSuggestionResults_.remove(index); onChanged(); } else { endUserSuggestionResultsBuilder_.remove(index); } return this; } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder getEndUserSuggestionResultsBuilder(int index) { return getEndUserSuggestionResultsFieldBuilder().getBuilder(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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder(int index) { if (endUserSuggestionResultsBuilder_ == null) { return endUserSuggestionResults_.get(index); } else { return endUserSuggestionResultsBuilder_.getMessageOrBuilder(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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public java.util.List getEndUserSuggestionResultsOrBuilderList() { if (endUserSuggestionResultsBuilder_ != null) { return endUserSuggestionResultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(endUserSuggestionResults_); } } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addEndUserSuggestionResultsBuilder() { return getEndUserSuggestionResultsFieldBuilder() .addBuilder(com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addEndUserSuggestionResultsBuilder(int index) { return getEndUserSuggestionResultsFieldBuilder() .addBuilder(index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** * * *
     * 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.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
     *
     * Same as human_agent_suggestion_results, any failure of Agent Assist
     * features will not lead to the overall failure of an AnalyzeContent API
     * call. Instead, the features will fail silently with the error field set in
     * the corresponding SuggestionResult.
     * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; * */ public java.util.List getEndUserSuggestionResultsBuilderList() { return getEndUserSuggestionResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> getEndUserSuggestionResultsFieldBuilder() { if (endUserSuggestionResultsBuilder_ == null) { endUserSuggestionResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( endUserSuggestionResults_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); endUserSuggestionResults_ = null; } return endUserSuggestionResultsBuilder_; } private com.google.cloud.dialogflow.v2.DtmfParameters dtmfParameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.DtmfParameters, com.google.cloud.dialogflow.v2.DtmfParameters.Builder, com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder> dtmfParametersBuilder_; /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; * * @return Whether the dtmfParameters field is set. */ public boolean hasDtmfParameters() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; * * @return The dtmfParameters. */ public com.google.cloud.dialogflow.v2.DtmfParameters getDtmfParameters() { if (dtmfParametersBuilder_ == null) { return dtmfParameters_ == null ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() : dtmfParameters_; } else { return dtmfParametersBuilder_.getMessage(); } } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ public Builder setDtmfParameters(com.google.cloud.dialogflow.v2.DtmfParameters value) { if (dtmfParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dtmfParameters_ = value; } else { dtmfParametersBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ public Builder setDtmfParameters( com.google.cloud.dialogflow.v2.DtmfParameters.Builder builderForValue) { if (dtmfParametersBuilder_ == null) { dtmfParameters_ = builderForValue.build(); } else { dtmfParametersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ public Builder mergeDtmfParameters(com.google.cloud.dialogflow.v2.DtmfParameters value) { if (dtmfParametersBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && dtmfParameters_ != null && dtmfParameters_ != com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance()) { getDtmfParametersBuilder().mergeFrom(value); } else { dtmfParameters_ = value; } } else { dtmfParametersBuilder_.mergeFrom(value); } if (dtmfParameters_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ public Builder clearDtmfParameters() { bitField0_ = (bitField0_ & ~0x00000040); dtmfParameters_ = null; if (dtmfParametersBuilder_ != null) { dtmfParametersBuilder_.dispose(); dtmfParametersBuilder_ = null; } onChanged(); return this; } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ public com.google.cloud.dialogflow.v2.DtmfParameters.Builder getDtmfParametersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDtmfParametersFieldBuilder().getBuilder(); } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ public com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder getDtmfParametersOrBuilder() { if (dtmfParametersBuilder_ != null) { return dtmfParametersBuilder_.getMessageOrBuilder(); } else { return dtmfParameters_ == null ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() : dtmfParameters_; } } /** * * *
     * Indicates the parameters of DTMF.
     * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.DtmfParameters, com.google.cloud.dialogflow.v2.DtmfParameters.Builder, com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder> getDtmfParametersFieldBuilder() { if (dtmfParametersBuilder_ == null) { dtmfParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.DtmfParameters, com.google.cloud.dialogflow.v2.DtmfParameters.Builder, com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder>( getDtmfParameters(), getParentForChildren(), isClean()); dtmfParameters_ = null; } return dtmfParametersBuilder_; } @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.AnalyzeContentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AnalyzeContentResponse) private static final com.google.cloud.dialogflow.v2.AnalyzeContentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AnalyzeContentResponse(); } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AnalyzeContentResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.AnalyzeContentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy