Class ResponseMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResponseMessage.Builder>
com.google.cloud.dialogflow.v2beta1.ResponseMessage.Builder
- All Implemented Interfaces:
ResponseMessageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResponseMessage
public static final class ResponseMessage.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResponseMessage.Builder>
implements ResponseMessageOrBuilder
Response messages from an automated agent.Protobuf type
google.cloud.dialogflow.v2beta1.ResponseMessage-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A signal that indicates the interaction with the Dialogflow agent has ended.Hands off conversation to a live agent.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.Returns a response containing a custom, platform-specific payload.A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.Returns a text response.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA signal that indicates the interaction with the Dialogflow agent has ended.A signal that indicates the interaction with the Dialogflow agent has ended.A signal that indicates the interaction with the Dialogflow agent has ended.Hands off conversation to a live agent.Hands off conversation to a live agent.Hands off conversation to a live agent.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.com.google.protobuf.StructReturns a response containing a custom, platform-specific payload.com.google.protobuf.Struct.BuilderReturns a response containing a custom, platform-specific payload.com.google.protobuf.StructOrBuilderReturns a response containing a custom, platform-specific payload.A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.getText()Returns a text response.Returns a text response.Returns a text response.booleanA signal that indicates the interaction with the Dialogflow agent has ended.booleanHands off conversation to a live agent.booleanAn audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.booleanReturns a response containing a custom, platform-specific payload.booleanA signal that the client should transfer the phone call connected to this agent to a third-party endpoint.booleanhasText()Returns a text response.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanA signal that indicates the interaction with the Dialogflow agent has ended.mergeFrom(ResponseMessage other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Hands off conversation to a live agent.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.mergePayload(com.google.protobuf.Struct value) Returns a response containing a custom, platform-specific payload.A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.mergeText(ResponseMessage.Text value) Returns a text response.A signal that indicates the interaction with the Dialogflow agent has ended.setEndInteraction(ResponseMessage.EndInteraction.Builder builderForValue) A signal that indicates the interaction with the Dialogflow agent has ended.Hands off conversation to a live agent.setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff.Builder builderForValue) Hands off conversation to a live agent.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.setMixedAudio(ResponseMessage.MixedAudio.Builder builderForValue) An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.setPayload(com.google.protobuf.Struct value) Returns a response containing a custom, platform-specific payload.setPayload(com.google.protobuf.Struct.Builder builderForValue) Returns a response containing a custom, platform-specific payload.A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall.Builder builderForValue) A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.setText(ResponseMessage.Text value) Returns a text response.setText(ResponseMessage.Text.Builder builderForValue) Returns a text response.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResponseMessage.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResponseMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ResponseMessage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResponseMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResponseMessage.Builder>
-
mergeFrom
public ResponseMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResponseMessage.Builder>- Throws:
IOException
-
getMessageCase
- Specified by:
getMessageCasein interfaceResponseMessageOrBuilder
-
clearMessage
-
hasText
public boolean hasText()Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;- Specified by:
hasTextin interfaceResponseMessageOrBuilder- Returns:
- Whether the text field is set.
-
getText
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;- Specified by:
getTextin interfaceResponseMessageOrBuilder- Returns:
- The text.
-
setText
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; -
setText
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; -
mergeText
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; -
clearText
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; -
getTextBuilder
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1; -
getTextOrBuilder
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;- Specified by:
getTextOrBuilderin interfaceResponseMessageOrBuilder
-
hasPayload
public boolean hasPayload()Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;- Specified by:
hasPayloadin interfaceResponseMessageOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.Struct getPayload()Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;- Specified by:
getPayloadin interfaceResponseMessageOrBuilder- Returns:
- The payload.
-
setPayload
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2; -
setPayload
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2; -
mergePayload
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2; -
clearPayload
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2; -
getPayloadBuilder
public com.google.protobuf.Struct.Builder getPayloadBuilder()Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2; -
getPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;- Specified by:
getPayloadOrBuilderin interfaceResponseMessageOrBuilder
-
hasLiveAgentHandoff
public boolean hasLiveAgentHandoff()Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;- Specified by:
hasLiveAgentHandoffin interfaceResponseMessageOrBuilder- Returns:
- Whether the liveAgentHandoff field is set.
-
getLiveAgentHandoff
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;- Specified by:
getLiveAgentHandoffin interfaceResponseMessageOrBuilder- Returns:
- The liveAgentHandoff.
-
setLiveAgentHandoff
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; -
setLiveAgentHandoff
public ResponseMessage.Builder setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff.Builder builderForValue) Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; -
mergeLiveAgentHandoff
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; -
clearLiveAgentHandoff
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; -
getLiveAgentHandoffBuilder
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3; -
getLiveAgentHandoffOrBuilder
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;- Specified by:
getLiveAgentHandoffOrBuilderin interfaceResponseMessageOrBuilder
-
hasEndInteraction
public boolean hasEndInteraction()A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;- Specified by:
hasEndInteractionin interfaceResponseMessageOrBuilder- Returns:
- Whether the endInteraction field is set.
-
getEndInteraction
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;- Specified by:
getEndInteractionin interfaceResponseMessageOrBuilder- Returns:
- The endInteraction.
-
setEndInteraction
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4; -
setEndInteraction
public ResponseMessage.Builder setEndInteraction(ResponseMessage.EndInteraction.Builder builderForValue) A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4; -
mergeEndInteraction
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4; -
clearEndInteraction
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4; -
getEndInteractionBuilder
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4; -
getEndInteractionOrBuilder
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;- Specified by:
getEndInteractionOrBuilderin interfaceResponseMessageOrBuilder
-
hasMixedAudio
public boolean hasMixedAudio()An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5;- Specified by:
hasMixedAudioin interfaceResponseMessageOrBuilder- Returns:
- Whether the mixedAudio field is set.
-
getMixedAudio
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5;- Specified by:
getMixedAudioin interfaceResponseMessageOrBuilder- Returns:
- The mixedAudio.
-
setMixedAudio
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; -
setMixedAudio
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; -
mergeMixedAudio
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; -
clearMixedAudio
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; -
getMixedAudioBuilder
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5; -
getMixedAudioOrBuilder
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5;- Specified by:
getMixedAudioOrBuilderin interfaceResponseMessageOrBuilder
-
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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;- Specified by:
hasTelephonyTransferCallin interfaceResponseMessageOrBuilder- Returns:
- Whether the telephonyTransferCall field is set.
-
getTelephonyTransferCall
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;- Specified by:
getTelephonyTransferCallin interfaceResponseMessageOrBuilder- Returns:
- The telephonyTransferCall.
-
setTelephonyTransferCall
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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; -
setTelephonyTransferCall
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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; -
mergeTelephonyTransferCall
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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; -
clearTelephonyTransferCall
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; -
getTelephonyTransferCallBuilder
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6; -
getTelephonyTransferCallOrBuilder
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;- Specified by:
getTelephonyTransferCallOrBuilderin interfaceResponseMessageOrBuilder
-