public final class ResponseMessage extends GeneratedMessageV3 implements ResponseMessageOrBuilder
Response messages from an automated agent.
Protobuf type google.cloud.dialogflow.v2beta1.ResponseMessage
Static Fields
END_INTERACTION_FIELD_NUMBER
public static final int END_INTERACTION_FIELD_NUMBER
Field Value
LIVE_AGENT_HANDOFF_FIELD_NUMBER
public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER
Field Value
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
Field Value
TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
Field Value
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ResponseMessage getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ResponseMessage.Builder newBuilder()
Returns
newBuilder(ResponseMessage prototype)
public static ResponseMessage.Builder newBuilder(ResponseMessage prototype)
Parameter
Returns
public static ResponseMessage parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResponseMessage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ResponseMessage parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResponseMessage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ResponseMessage parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResponseMessage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResponseMessage parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ResponseMessage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResponseMessage parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResponseMessage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ResponseMessage parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResponseMessage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ResponseMessage> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ResponseMessage getDefaultInstanceForType()
Returns
getEndInteraction()
public ResponseMessage.EndInteraction getEndInteraction()
A signal that indicates the interaction with the Dialogflow agent has
ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;
Returns
getEndInteractionOrBuilder()
public ResponseMessage.EndInteractionOrBuilder getEndInteractionOrBuilder()
A signal that indicates the interaction with the Dialogflow agent has
ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;
Returns
getLiveAgentHandoff()
public ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
Returns
getLiveAgentHandoffOrBuilder()
public ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
Returns
getMessageCase()
public ResponseMessage.MessageCase getMessageCase()
Returns
getParserForType()
public Parser<ResponseMessage> getParserForType()
Returns
Overrides
getPayload()
public Struct getPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;
Returns
Type | Description |
Struct | The payload.
|
getPayloadOrBuilder()
public StructOrBuilder getPayloadOrBuilder()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;
Returns
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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;
Returns
getText()
public ResponseMessage.Text getText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
Returns
getTextOrBuilder()
public ResponseMessage.TextOrBuilder getTextOrBuilder()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
Type | Description |
boolean | Whether the endInteraction field is set.
|
hasLiveAgentHandoff()
public boolean hasLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
Returns
Type | Description |
boolean | Whether the liveAgentHandoff field is set.
|
hasPayload()
public boolean hasPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;
Returns
Type | Description |
boolean | Whether the payload 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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;
Returns
Type | Description |
boolean | Whether the telephonyTransferCall field is set.
|
hasText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
Returns
Type | Description |
boolean | Whether the text field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ResponseMessage.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResponseMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ResponseMessage.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions