Class ResponseMessage.Builder (0.13.0)

public static final class ResponseMessage.Builder extends GeneratedMessageV3.Builder<ResponseMessage.Builder> implements ResponseMessageOrBuilder

Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows:

  • If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis.
  • If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design.
  • Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.

Protobuf type google.cloud.dialogflow.cx.v3beta1.ResponseMessage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResponseMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResponseMessage.Builder
Overrides

build()

public ResponseMessage build()
Returns
TypeDescription
ResponseMessage

buildPartial()

public ResponseMessage buildPartial()
Returns
TypeDescription
ResponseMessage

clear()

public ResponseMessage.Builder clear()
Returns
TypeDescription
ResponseMessage.Builder
Overrides

clearConversationSuccess()

public ResponseMessage.Builder clearConversationSuccess()

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Returns
TypeDescription
ResponseMessage.Builder

clearEndInteraction()

public ResponseMessage.Builder clearEndInteraction()

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.Builder

clearField(Descriptors.FieldDescriptor field)

public ResponseMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResponseMessage.Builder
Overrides

clearLiveAgentHandoff()

public ResponseMessage.Builder clearLiveAgentHandoff()

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Returns
TypeDescription
ResponseMessage.Builder

clearMessage()

public ResponseMessage.Builder clearMessage()
Returns
TypeDescription
ResponseMessage.Builder

clearMixedAudio()

public ResponseMessage.Builder clearMixedAudio()

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResponseMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResponseMessage.Builder
Overrides

clearOutputAudioText()

public ResponseMessage.Builder clearOutputAudioText()

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Returns
TypeDescription
ResponseMessage.Builder

clearPayload()

public ResponseMessage.Builder clearPayload()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
ResponseMessage.Builder

clearPlayAudio()

public ResponseMessage.Builder clearPlayAudio()

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Returns
TypeDescription
ResponseMessage.Builder

clearTelephonyTransferCall()

public ResponseMessage.Builder clearTelephonyTransferCall()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Returns
TypeDescription
ResponseMessage.Builder

clearText()

public ResponseMessage.Builder clearText()

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.Builder

clone()

public ResponseMessage.Builder clone()
Returns
TypeDescription
ResponseMessage.Builder
Overrides

getConversationSuccess()

public ResponseMessage.ConversationSuccess getConversationSuccess()

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Returns
TypeDescription
ResponseMessage.ConversationSuccess

The conversationSuccess.

getConversationSuccessBuilder()

public ResponseMessage.ConversationSuccess.Builder getConversationSuccessBuilder()

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Returns
TypeDescription
ResponseMessage.ConversationSuccess.Builder

getConversationSuccessOrBuilder()

public ResponseMessage.ConversationSuccessOrBuilder getConversationSuccessOrBuilder()

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Returns
TypeDescription
ResponseMessage.ConversationSuccessOrBuilder

getDefaultInstanceForType()

public ResponseMessage getDefaultInstanceForType()
Returns
TypeDescription
ResponseMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndInteraction()

public ResponseMessage.EndInteraction getEndInteraction()

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.EndInteraction

The endInteraction.

getEndInteractionBuilder()

public ResponseMessage.EndInteraction.Builder getEndInteractionBuilder()

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.EndInteraction.Builder

getEndInteractionOrBuilder()

public ResponseMessage.EndInteractionOrBuilder getEndInteractionOrBuilder()

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.EndInteractionOrBuilder

getLiveAgentHandoff()

public ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Returns
TypeDescription
ResponseMessage.LiveAgentHandoff

The liveAgentHandoff.

getLiveAgentHandoffBuilder()

public ResponseMessage.LiveAgentHandoff.Builder getLiveAgentHandoffBuilder()

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Returns
TypeDescription
ResponseMessage.LiveAgentHandoff.Builder

getLiveAgentHandoffOrBuilder()

public ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Returns
TypeDescription
ResponseMessage.LiveAgentHandoffOrBuilder

getMessageCase()

public ResponseMessage.MessageCase getMessageCase()
Returns
TypeDescription
ResponseMessage.MessageCase

getMixedAudio()

public ResponseMessage.MixedAudio getMixedAudio()

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.MixedAudio

The mixedAudio.

getMixedAudioBuilder()

public ResponseMessage.MixedAudio.Builder getMixedAudioBuilder()

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.MixedAudio.Builder

getMixedAudioOrBuilder()

public ResponseMessage.MixedAudioOrBuilder getMixedAudioOrBuilder()

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResponseMessage.MixedAudioOrBuilder

getOutputAudioText()

public ResponseMessage.OutputAudioText getOutputAudioText()

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Returns
TypeDescription
ResponseMessage.OutputAudioText

The outputAudioText.

getOutputAudioTextBuilder()

public ResponseMessage.OutputAudioText.Builder getOutputAudioTextBuilder()

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Returns
TypeDescription
ResponseMessage.OutputAudioText.Builder

getOutputAudioTextOrBuilder()

public ResponseMessage.OutputAudioTextOrBuilder getOutputAudioTextOrBuilder()

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Returns
TypeDescription
ResponseMessage.OutputAudioTextOrBuilder

getPayload()

public Struct getPayload()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
Struct

The payload.

getPayloadBuilder()

public Struct.Builder getPayloadBuilder()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
Builder

getPayloadOrBuilder()

public StructOrBuilder getPayloadOrBuilder()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
StructOrBuilder

getPlayAudio()

public ResponseMessage.PlayAudio getPlayAudio()

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Returns
TypeDescription
ResponseMessage.PlayAudio

The playAudio.

getPlayAudioBuilder()

public ResponseMessage.PlayAudio.Builder getPlayAudioBuilder()

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Returns
TypeDescription
ResponseMessage.PlayAudio.Builder

getPlayAudioOrBuilder()

public ResponseMessage.PlayAudioOrBuilder getPlayAudioOrBuilder()

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Returns
TypeDescription
ResponseMessage.PlayAudioOrBuilder

getTelephonyTransferCall()

public ResponseMessage.TelephonyTransferCall getTelephonyTransferCall()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Returns
TypeDescription
ResponseMessage.TelephonyTransferCall

The telephonyTransferCall.

getTelephonyTransferCallBuilder()

public ResponseMessage.TelephonyTransferCall.Builder getTelephonyTransferCallBuilder()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Returns
TypeDescription
ResponseMessage.TelephonyTransferCall.Builder

getTelephonyTransferCallOrBuilder()

public ResponseMessage.TelephonyTransferCallOrBuilder getTelephonyTransferCallOrBuilder()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Returns
TypeDescription
ResponseMessage.TelephonyTransferCallOrBuilder

getText()

public ResponseMessage.Text getText()

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.Text

The text.

getTextBuilder()

public ResponseMessage.Text.Builder getTextBuilder()

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.Text.Builder

getTextOrBuilder()

public ResponseMessage.TextOrBuilder getTextOrBuilder()

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.TextOrBuilder

hasConversationSuccess()

public boolean hasConversationSuccess()

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Returns
TypeDescription
boolean

Whether the conversationSuccess field is set.

hasEndInteraction()

public boolean hasEndInteraction()

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endInteraction field is set.

hasLiveAgentHandoff()

public boolean hasLiveAgentHandoff()

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Returns
TypeDescription
boolean

Whether the liveAgentHandoff field is set.

hasMixedAudio()

public boolean hasMixedAudio()

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the mixedAudio field is set.

hasOutputAudioText()

public boolean hasOutputAudioText()

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Returns
TypeDescription
boolean

Whether the outputAudioText field is set.

hasPayload()

public boolean hasPayload()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
boolean

Whether the payload field is set.

hasPlayAudio()

public boolean hasPlayAudio()

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Returns
TypeDescription
boolean

Whether the playAudio field is set.

hasTelephonyTransferCall()

public boolean hasTelephonyTransferCall()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Returns
TypeDescription
boolean

Whether the telephonyTransferCall field is set.

hasText()

public boolean hasText()

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConversationSuccess(ResponseMessage.ConversationSuccess value)

public ResponseMessage.Builder mergeConversationSuccess(ResponseMessage.ConversationSuccess value)

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Parameter
NameDescription
valueResponseMessage.ConversationSuccess
Returns
TypeDescription
ResponseMessage.Builder

mergeEndInteraction(ResponseMessage.EndInteraction value)

public ResponseMessage.Builder mergeEndInteraction(ResponseMessage.EndInteraction value)

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueResponseMessage.EndInteraction
Returns
TypeDescription
ResponseMessage.Builder

mergeFrom(ResponseMessage other)

public ResponseMessage.Builder mergeFrom(ResponseMessage other)
Parameter
NameDescription
otherResponseMessage
Returns
TypeDescription
ResponseMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResponseMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMessage.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResponseMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResponseMessage.Builder
Overrides

mergeLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

public ResponseMessage.Builder mergeLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Parameter
NameDescription
valueResponseMessage.LiveAgentHandoff
Returns
TypeDescription
ResponseMessage.Builder

mergeMixedAudio(ResponseMessage.MixedAudio value)

public ResponseMessage.Builder mergeMixedAudio(ResponseMessage.MixedAudio value)

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueResponseMessage.MixedAudio
Returns
TypeDescription
ResponseMessage.Builder

mergeOutputAudioText(ResponseMessage.OutputAudioText value)

public ResponseMessage.Builder mergeOutputAudioText(ResponseMessage.OutputAudioText value)

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Parameter
NameDescription
valueResponseMessage.OutputAudioText
Returns
TypeDescription
ResponseMessage.Builder

mergePayload(Struct value)

public ResponseMessage.Builder mergePayload(Struct value)

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResponseMessage.Builder

mergePlayAudio(ResponseMessage.PlayAudio value)

public ResponseMessage.Builder mergePlayAudio(ResponseMessage.PlayAudio value)

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Parameter
NameDescription
valueResponseMessage.PlayAudio
Returns
TypeDescription
ResponseMessage.Builder

mergeTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

public ResponseMessage.Builder mergeTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Parameter
NameDescription
valueResponseMessage.TelephonyTransferCall
Returns
TypeDescription
ResponseMessage.Builder

mergeText(ResponseMessage.Text value)

public ResponseMessage.Builder mergeText(ResponseMessage.Text value)

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Parameter
NameDescription
valueResponseMessage.Text
Returns
TypeDescription
ResponseMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResponseMessage.Builder
Overrides

setConversationSuccess(ResponseMessage.ConversationSuccess value)

public ResponseMessage.Builder setConversationSuccess(ResponseMessage.ConversationSuccess value)

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Parameter
NameDescription
valueResponseMessage.ConversationSuccess
Returns
TypeDescription
ResponseMessage.Builder

setConversationSuccess(ResponseMessage.ConversationSuccess.Builder builderForValue)

public ResponseMessage.Builder setConversationSuccess(ResponseMessage.ConversationSuccess.Builder builderForValue)

Indicates that the conversation succeeded.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9;

Parameter
NameDescription
builderForValueResponseMessage.ConversationSuccess.Builder
Returns
TypeDescription
ResponseMessage.Builder

setEndInteraction(ResponseMessage.EndInteraction value)

public ResponseMessage.Builder setEndInteraction(ResponseMessage.EndInteraction value)

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueResponseMessage.EndInteraction
Returns
TypeDescription
ResponseMessage.Builder

setEndInteraction(ResponseMessage.EndInteraction.Builder builderForValue)

public ResponseMessage.Builder setEndInteraction(ResponseMessage.EndInteraction.Builder builderForValue)

Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches END_SESSION page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueResponseMessage.EndInteraction.Builder
Returns
TypeDescription
ResponseMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResponseMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResponseMessage.Builder
Overrides

setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

public ResponseMessage.Builder setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Parameter
NameDescription
valueResponseMessage.LiveAgentHandoff
Returns
TypeDescription
ResponseMessage.Builder

setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff.Builder builderForValue)

public ResponseMessage.Builder setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff.Builder builderForValue)

Hands off conversation to a human agent.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;

Parameter
NameDescription
builderForValueResponseMessage.LiveAgentHandoff.Builder
Returns
TypeDescription
ResponseMessage.Builder

setMixedAudio(ResponseMessage.MixedAudio value)

public ResponseMessage.Builder setMixedAudio(ResponseMessage.MixedAudio value)

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueResponseMessage.MixedAudio
Returns
TypeDescription
ResponseMessage.Builder

setMixedAudio(ResponseMessage.MixedAudio.Builder builderForValue)

public ResponseMessage.Builder setMixedAudio(ResponseMessage.MixedAudio.Builder builderForValue)

Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueResponseMessage.MixedAudio.Builder
Returns
TypeDescription
ResponseMessage.Builder

setOutputAudioText(ResponseMessage.OutputAudioText value)

public ResponseMessage.Builder setOutputAudioText(ResponseMessage.OutputAudioText value)

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Parameter
NameDescription
valueResponseMessage.OutputAudioText
Returns
TypeDescription
ResponseMessage.Builder

setOutputAudioText(ResponseMessage.OutputAudioText.Builder builderForValue)

public ResponseMessage.Builder setOutputAudioText(ResponseMessage.OutputAudioText.Builder builderForValue)

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText output_audio_text = 8;

Parameter
NameDescription
builderForValueResponseMessage.OutputAudioText.Builder
Returns
TypeDescription
ResponseMessage.Builder

setPayload(Struct value)

public ResponseMessage.Builder setPayload(Struct value)

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResponseMessage.Builder

setPayload(Struct.Builder builderForValue)

public ResponseMessage.Builder setPayload(Struct.Builder builderForValue)

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResponseMessage.Builder

setPlayAudio(ResponseMessage.PlayAudio value)

public ResponseMessage.Builder setPlayAudio(ResponseMessage.PlayAudio value)

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Parameter
NameDescription
valueResponseMessage.PlayAudio
Returns
TypeDescription
ResponseMessage.Builder

setPlayAudio(ResponseMessage.PlayAudio.Builder builderForValue)

public ResponseMessage.Builder setPlayAudio(ResponseMessage.PlayAudio.Builder builderForValue)

Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio play_audio = 12;

Parameter
NameDescription
builderForValueResponseMessage.PlayAudio.Builder
Returns
TypeDescription
ResponseMessage.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResponseMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResponseMessage.Builder
Overrides

setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

public ResponseMessage.Builder setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Parameter
NameDescription
valueResponseMessage.TelephonyTransferCall
Returns
TypeDescription
ResponseMessage.Builder

setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall.Builder builderForValue)

public ResponseMessage.Builder setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall.Builder builderForValue)

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;

Parameter
NameDescription
builderForValueResponseMessage.TelephonyTransferCall.Builder
Returns
TypeDescription
ResponseMessage.Builder

setText(ResponseMessage.Text value)

public ResponseMessage.Builder setText(ResponseMessage.Text value)

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Parameter
NameDescription
valueResponseMessage.Text
Returns
TypeDescription
ResponseMessage.Builder

setText(ResponseMessage.Text.Builder builderForValue)

public ResponseMessage.Builder setText(ResponseMessage.Text.Builder builderForValue)

Returns a text response.

.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1;

Parameter
NameDescription
builderForValueResponseMessage.Text.Builder
Returns
TypeDescription
ResponseMessage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResponseMessage.Builder
Overrides