Class ResponseMessage

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2beta1.ResponseMessage
All Implemented Interfaces:
ResponseMessageOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ResponseMessage extends com.google.protobuf.GeneratedMessage implements ResponseMessageOrBuilder
 Response messages from an automated agent.
 
Protobuf type google.cloud.dialogflow.v2beta1.ResponseMessage
See Also:
  • Field Details

    • TEXT_FIELD_NUMBER

      public static final int TEXT_FIELD_NUMBER
      See Also:
    • PAYLOAD_FIELD_NUMBER

      public static final int PAYLOAD_FIELD_NUMBER
      See Also:
    • LIVE_AGENT_HANDOFF_FIELD_NUMBER

      public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER
      See Also:
    • END_INTERACTION_FIELD_NUMBER

      public static final int END_INTERACTION_FIELD_NUMBER
      See Also:
    • MIXED_AUDIO_FIELD_NUMBER

      public static final int MIXED_AUDIO_FIELD_NUMBER
      See Also:
    • TELEPHONY_TRANSFER_CALL_FIELD_NUMBER

      public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getMessageCase

      public ResponseMessage.MessageCase getMessageCase()
      Specified by:
      getMessageCase in interface ResponseMessageOrBuilder
    • hasText

      public boolean hasText()
       Returns a text response.
       
      .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
      Specified by:
      hasText in interface ResponseMessageOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public ResponseMessage.Text getText()
       Returns a text response.
       
      .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
      Specified by:
      getText in interface ResponseMessageOrBuilder
      Returns:
      The text.
    • getTextOrBuilder

      public ResponseMessage.TextOrBuilder getTextOrBuilder()
       Returns a text response.
       
      .google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
      Specified by:
      getTextOrBuilder in interface ResponseMessageOrBuilder
    • hasPayload

      public boolean hasPayload()
       Returns a response containing a custom, platform-specific payload.
       
      .google.protobuf.Struct payload = 2;
      Specified by:
      hasPayload in interface ResponseMessageOrBuilder
      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:
      getPayload in interface ResponseMessageOrBuilder
      Returns:
      The payload.
    • getPayloadOrBuilder

      public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
       Returns a response containing a custom, platform-specific payload.
       
      .google.protobuf.Struct payload = 2;
      Specified by:
      getPayloadOrBuilder in interface ResponseMessageOrBuilder
    • hasLiveAgentHandoff

      public boolean hasLiveAgentHandoff()
       Hands off conversation to a live agent.
       
      .google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
      Specified by:
      hasLiveAgentHandoff in interface ResponseMessageOrBuilder
      Returns:
      Whether the liveAgentHandoff field is set.
    • getLiveAgentHandoff

      public ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()
       Hands off conversation to a live agent.
       
      .google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
      Specified by:
      getLiveAgentHandoff in interface ResponseMessageOrBuilder
      Returns:
      The liveAgentHandoff.
    • getLiveAgentHandoffOrBuilder

      public ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()
       Hands off conversation to a live agent.
       
      .google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
      Specified by:
      getLiveAgentHandoffOrBuilder in interface ResponseMessageOrBuilder
    • 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:
      hasEndInteraction in interface ResponseMessageOrBuilder
      Returns:
      Whether the endInteraction field is set.
    • 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;
      Specified by:
      getEndInteraction in interface ResponseMessageOrBuilder
      Returns:
      The endInteraction.
    • 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;
      Specified by:
      getEndInteractionOrBuilder in interface ResponseMessageOrBuilder
    • 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:
      hasMixedAudio in interface ResponseMessageOrBuilder
      Returns:
      Whether the mixedAudio field is set.
    • getMixedAudio

      public ResponseMessage.MixedAudio 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:
      getMixedAudio in interface ResponseMessageOrBuilder
      Returns:
      The mixedAudio.
    • getMixedAudioOrBuilder

      public ResponseMessage.MixedAudioOrBuilder 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:
      getMixedAudioOrBuilder in interface ResponseMessageOrBuilder
    • 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:
      hasTelephonyTransferCall in interface ResponseMessageOrBuilder
      Returns:
      Whether the telephonyTransferCall field is set.
    • 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;
      Specified by:
      getTelephonyTransferCall in interface ResponseMessageOrBuilder
      Returns:
      The telephonyTransferCall.
    • 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;
      Specified by:
      getTelephonyTransferCallOrBuilder in interface ResponseMessageOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ResponseMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResponseMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResponseMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResponseMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResponseMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResponseMessage parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResponseMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResponseMessage parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResponseMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResponseMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResponseMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ResponseMessage.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ResponseMessage.Builder newBuilder()
    • newBuilder

      public static ResponseMessage.Builder newBuilder(ResponseMessage prototype)
    • toBuilder

      public ResponseMessage.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ResponseMessage.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ResponseMessage getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ResponseMessage> parser()
    • getParserForType

      public com.google.protobuf.Parser<ResponseMessage> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ResponseMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder