com.google.cloud.dialogflow.v2.AnalyzeContentResponse Maven / Gradle / Ivy
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/v2/participant.proto
package com.google.cloud.dialogflow.v2;
/**
*
*
*
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private AnalyzeContentResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
replyText_ = s;
break;
}
case 18:
{
com.google.cloud.dialogflow.v2.OutputAudio.Builder subBuilder = null;
if (replyAudio_ != null) {
subBuilder = replyAudio_.toBuilder();
}
replyAudio_ =
input.readMessage(
com.google.cloud.dialogflow.v2.OutputAudio.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(replyAudio_);
replyAudio_ = subBuilder.buildPartial();
}
break;
}
case 26:
{
com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder subBuilder = null;
if (automatedAgentReply_ != null) {
subBuilder = automatedAgentReply_.toBuilder();
}
automatedAgentReply_ =
input.readMessage(
com.google.cloud.dialogflow.v2.AutomatedAgentReply.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(automatedAgentReply_);
automatedAgentReply_ = subBuilder.buildPartial();
}
break;
}
case 42:
{
com.google.cloud.dialogflow.v2.Message.Builder subBuilder = null;
if (message_ != null) {
subBuilder = message_.toBuilder();
}
message_ =
input.readMessage(
com.google.cloud.dialogflow.v2.Message.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(message_);
message_ = subBuilder.buildPartial();
}
break;
}
case 50:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
humanAgentSuggestionResults_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
humanAgentSuggestionResults_.add(
input.readMessage(
com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry));
break;
}
case 58:
{
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
endUserSuggestionResults_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
endUserSuggestionResults_.add(
input.readMessage(
com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry));
break;
}
case 74:
{
com.google.cloud.dialogflow.v2.DtmfParameters.Builder subBuilder = null;
if (dtmfParameters_ != null) {
subBuilder = dtmfParameters_.toBuilder();
}
dtmfParameters_ =
input.readMessage(
com.google.cloud.dialogflow.v2.DtmfParameters.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dtmfParameters_);
dtmfParameters_ = subBuilder.buildPartial();
}
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
humanAgentSuggestionResults_ =
java.util.Collections.unmodifiableList(humanAgentSuggestionResults_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
endUserSuggestionResults_ =
java.util.Collections.unmodifiableList(endUserSuggestionResults_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.v2.ParticipantProto
.internal_static_google_cloud_dialogflow_v2_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);
}
public static final int REPLY_TEXT_FIELD_NUMBER = 1;
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 replyAudio_ != null;
}
/**
*
*
*
* 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 getReplyAudio();
}
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 automatedAgentReply_ != null;
}
/**
*
*
*
* 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 getAutomatedAgentReply();
}
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 message_ != null;
}
/**
*
*
*
* 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 getMessage();
}
public static final int HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER = 6;
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].
*
*
* 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].
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>
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].
*
*
* 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].
*
*
* 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].
*
*
* 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;
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].
*
*
* 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].
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>
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].
*
*
* 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].
*
*
* 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].
*
*
* 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 dtmfParameters_ != null;
}
/**
*
*
*
* 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 getDtmfParameters();
}
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 (!getReplyTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replyText_);
}
if (replyAudio_ != null) {
output.writeMessage(2, getReplyAudio());
}
if (automatedAgentReply_ != null) {
output.writeMessage(3, getAutomatedAgentReply());
}
if (message_ != null) {
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 (dtmfParameters_ != null) {
output.writeMessage(9, getDtmfParameters());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getReplyTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replyText_);
}
if (replyAudio_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReplyAudio());
}
if (automatedAgentReply_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutomatedAgentReply());
}
if (message_ != null) {
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 (dtmfParameters_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDtmfParameters());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + unknownFields.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) {
getHumanAgentSuggestionResultsFieldBuilder();
getEndUserSuggestionResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
replyText_ = "";
if (replyAudioBuilder_ == null) {
replyAudio_ = null;
} else {
replyAudio_ = null;
replyAudioBuilder_ = null;
}
if (automatedAgentReplyBuilder_ == null) {
automatedAgentReply_ = null;
} else {
automatedAgentReply_ = null;
automatedAgentReplyBuilder_ = null;
}
if (messageBuilder_ == null) {
message_ = null;
} else {
message_ = null;
messageBuilder_ = null;
}
if (humanAgentSuggestionResultsBuilder_ == null) {
humanAgentSuggestionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
humanAgentSuggestionResultsBuilder_.clear();
}
if (endUserSuggestionResultsBuilder_ == null) {
endUserSuggestionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
endUserSuggestionResultsBuilder_.clear();
}
if (dtmfParametersBuilder_ == null) {
dtmfParameters_ = null;
} else {
dtmfParameters_ = null;
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);
int from_bitField0_ = bitField0_;
result.replyText_ = replyText_;
if (replyAudioBuilder_ == null) {
result.replyAudio_ = replyAudio_;
} else {
result.replyAudio_ = replyAudioBuilder_.build();
}
if (automatedAgentReplyBuilder_ == null) {
result.automatedAgentReply_ = automatedAgentReply_;
} else {
result.automatedAgentReply_ = automatedAgentReplyBuilder_.build();
}
if (messageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = messageBuilder_.build();
}
if (humanAgentSuggestionResultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
humanAgentSuggestionResults_ =
java.util.Collections.unmodifiableList(humanAgentSuggestionResults_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.humanAgentSuggestionResults_ = humanAgentSuggestionResults_;
} else {
result.humanAgentSuggestionResults_ = humanAgentSuggestionResultsBuilder_.build();
}
if (endUserSuggestionResultsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
endUserSuggestionResults_ =
java.util.Collections.unmodifiableList(endUserSuggestionResults_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.endUserSuggestionResults_ = endUserSuggestionResults_;
} else {
result.endUserSuggestionResults_ = endUserSuggestionResultsBuilder_.build();
}
if (dtmfParametersBuilder_ == null) {
result.dtmfParameters_ = dtmfParameters_;
} else {
result.dtmfParameters_ = dtmfParametersBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dialogflow.v2.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_;
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_ & ~0x00000001);
} else {
ensureHumanAgentSuggestionResultsIsMutable();
humanAgentSuggestionResults_.addAll(other.humanAgentSuggestionResults_);
}
onChanged();
}
} else {
if (!other.humanAgentSuggestionResults_.isEmpty()) {
if (humanAgentSuggestionResultsBuilder_.isEmpty()) {
humanAgentSuggestionResultsBuilder_.dispose();
humanAgentSuggestionResultsBuilder_ = null;
humanAgentSuggestionResults_ = other.humanAgentSuggestionResults_;
bitField0_ = (bitField0_ & ~0x00000001);
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_ & ~0x00000002);
} else {
ensureEndUserSuggestionResultsIsMutable();
endUserSuggestionResults_.addAll(other.endUserSuggestionResults_);
}
onChanged();
}
} else {
if (!other.endUserSuggestionResults_.isEmpty()) {
if (endUserSuggestionResultsBuilder_.isEmpty()) {
endUserSuggestionResultsBuilder_.dispose();
endUserSuggestionResultsBuilder_ = null;
endUserSuggestionResults_ = other.endUserSuggestionResults_;
bitField0_ = (bitField0_ & ~0x00000002);
endUserSuggestionResultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getEndUserSuggestionResultsFieldBuilder()
: null;
} else {
endUserSuggestionResultsBuilder_.addAllMessages(other.endUserSuggestionResults_);
}
}
}
if (other.hasDtmfParameters()) {
mergeDtmfParameters(other.getDtmfParameters());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.dialogflow.v2.AnalyzeContentResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(com.google.cloud.dialogflow.v2.AnalyzeContentResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
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();
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;
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 replyAudioBuilder_ != null || replyAudio_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
replyAudioBuilder_.setMessage(value);
}
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();
onChanged();
} else {
replyAudioBuilder_.setMessage(builderForValue.build());
}
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 (replyAudio_ != null) {
replyAudio_ =
com.google.cloud.dialogflow.v2.OutputAudio.newBuilder(replyAudio_)
.mergeFrom(value)
.buildPartial();
} else {
replyAudio_ = value;
}
onChanged();
} else {
replyAudioBuilder_.mergeFrom(value);
}
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() {
if (replyAudioBuilder_ == null) {
replyAudio_ = null;
onChanged();
} else {
replyAudio_ = null;
replyAudioBuilder_ = null;
}
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() {
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 automatedAgentReplyBuilder_ != null || automatedAgentReply_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
automatedAgentReplyBuilder_.setMessage(value);
}
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();
onChanged();
} else {
automatedAgentReplyBuilder_.setMessage(builderForValue.build());
}
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 (automatedAgentReply_ != null) {
automatedAgentReply_ =
com.google.cloud.dialogflow.v2.AutomatedAgentReply.newBuilder(automatedAgentReply_)
.mergeFrom(value)
.buildPartial();
} else {
automatedAgentReply_ = value;
}
onChanged();
} else {
automatedAgentReplyBuilder_.mergeFrom(value);
}
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() {
if (automatedAgentReplyBuilder_ == null) {
automatedAgentReply_ = null;
onChanged();
} else {
automatedAgentReply_ = null;
automatedAgentReplyBuilder_ = null;
}
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() {
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 messageBuilder_ != null || message_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
messageBuilder_.setMessage(value);
}
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();
onChanged();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
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 (message_ != null) {
message_ =
com.google.cloud.dialogflow.v2.Message.newBuilder(message_)
.mergeFrom(value)
.buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
messageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Message analyzed by CCAI.
*
*
* .google.cloud.dialogflow.v2.Message message = 5;
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
message_ = null;
onChanged();
} else {
message_ = null;
messageBuilder_ = null;
}
return this;
}
/**
*
*
*
* Message analyzed by CCAI.
*
*
* .google.cloud.dialogflow.v2.Message message = 5;
*/
public com.google.cloud.dialogflow.v2.Message.Builder getMessageBuilder() {
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_ & 0x00000001) != 0)) {
humanAgentSuggestionResults_ =
new java.util.ArrayList(
humanAgentSuggestionResults_);
bitField0_ |= 0x00000001;
}
}
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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
*
*/
public Builder addAllHumanAgentSuggestionResults(
java.lang.Iterable extends com.google.cloud.dialogflow.v2.SuggestionResult> 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].
*
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
*
*/
public Builder clearHumanAgentSuggestionResults() {
if (humanAgentSuggestionResultsBuilder_ == null) {
humanAgentSuggestionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
*
*/
public java.util.List extends com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>
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].
*
*
*
* 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].
*
*
*
* 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].
*
*
*
* 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_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
humanAgentSuggestionResults_ = null;
}
return humanAgentSuggestionResultsBuilder_;
}
private java.util.List
endUserSuggestionResults_ = java.util.Collections.emptyList();
private void ensureEndUserSuggestionResultsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
endUserSuggestionResults_ =
new java.util.ArrayList(
endUserSuggestionResults_);
bitField0_ |= 0x00000002;
}
}
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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
*
*/
public Builder addAllEndUserSuggestionResults(
java.lang.Iterable extends com.google.cloud.dialogflow.v2.SuggestionResult> 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].
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
*
*/
public Builder clearEndUserSuggestionResults() {
if (endUserSuggestionResultsBuilder_ == null) {
endUserSuggestionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
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].
*
*
* 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].
*
*
* 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].
*
*
* 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].
*
*
* repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
*
*/
public java.util.List extends com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>
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].
*
*
* 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].
*
*
* 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].
*
*
* 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_ & 0x00000002) != 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 dtmfParametersBuilder_ != null || dtmfParameters_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
dtmfParametersBuilder_.setMessage(value);
}
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();
onChanged();
} else {
dtmfParametersBuilder_.setMessage(builderForValue.build());
}
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 (dtmfParameters_ != null) {
dtmfParameters_ =
com.google.cloud.dialogflow.v2.DtmfParameters.newBuilder(dtmfParameters_)
.mergeFrom(value)
.buildPartial();
} else {
dtmfParameters_ = value;
}
onChanged();
} else {
dtmfParametersBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* Indicates the parameters of DTMF.
*
*
* .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9;
*/
public Builder clearDtmfParameters() {
if (dtmfParametersBuilder_ == null) {
dtmfParameters_ = null;
onChanged();
} else {
dtmfParameters_ = null;
dtmfParametersBuilder_ = null;
}
return this;
}
/**
*
*
*
* Indicates the parameters of DTMF.
*
*
* .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9;
*/
public com.google.cloud.dialogflow.v2.DtmfParameters.Builder getDtmfParametersBuilder() {
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 {
return new AnalyzeContentResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dialogflow.v2.AnalyzeContentResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy