Class Intent.Message

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.Intent.Message
All Implemented Interfaces:
Intent.MessageOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Intent

public static final class Intent.Message extends com.google.protobuf.GeneratedMessage implements Intent.MessageOrBuilder
 A rich response message.
 Corresponds to the intent `Response` field in the Dialogflow console.
 For more information, see
 [Rich response
 messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
 
Protobuf type google.cloud.dialogflow.v2.Intent.Message
See Also:
  • Field Details

    • TEXT_FIELD_NUMBER

      public static final int TEXT_FIELD_NUMBER
      See Also:
    • IMAGE_FIELD_NUMBER

      public static final int IMAGE_FIELD_NUMBER
      See Also:
    • QUICK_REPLIES_FIELD_NUMBER

      public static final int QUICK_REPLIES_FIELD_NUMBER
      See Also:
    • CARD_FIELD_NUMBER

      public static final int CARD_FIELD_NUMBER
      See Also:
    • PAYLOAD_FIELD_NUMBER

      public static final int PAYLOAD_FIELD_NUMBER
      See Also:
    • SIMPLE_RESPONSES_FIELD_NUMBER

      public static final int SIMPLE_RESPONSES_FIELD_NUMBER
      See Also:
    • BASIC_CARD_FIELD_NUMBER

      public static final int BASIC_CARD_FIELD_NUMBER
      See Also:
    • SUGGESTIONS_FIELD_NUMBER

      public static final int SUGGESTIONS_FIELD_NUMBER
      See Also:
    • LIST_SELECT_FIELD_NUMBER

      public static final int LIST_SELECT_FIELD_NUMBER
      See Also:
    • TABLE_CARD_FIELD_NUMBER

      public static final int TABLE_CARD_FIELD_NUMBER
      See Also:
    • MEDIA_CONTENT_FIELD_NUMBER

      public static final int MEDIA_CONTENT_FIELD_NUMBER
      See Also:
    • PLATFORM_FIELD_NUMBER

      public static final int PLATFORM_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 Intent.Message.MessageCase getMessageCase()
      Specified by:
      getMessageCase in interface Intent.MessageOrBuilder
    • hasText

      public boolean hasText()
       The text response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
      Specified by:
      hasText in interface Intent.MessageOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public Intent.Message.Text getText()
       The text response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
      Specified by:
      getText in interface Intent.MessageOrBuilder
      Returns:
      The text.
    • getTextOrBuilder

      public Intent.Message.TextOrBuilder getTextOrBuilder()
       The text response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
      Specified by:
      getTextOrBuilder in interface Intent.MessageOrBuilder
    • hasImage

      public boolean hasImage()
       The image response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
      Specified by:
      hasImage in interface Intent.MessageOrBuilder
      Returns:
      Whether the image field is set.
    • getImage

      public Intent.Message.Image getImage()
       The image response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
      Specified by:
      getImage in interface Intent.MessageOrBuilder
      Returns:
      The image.
    • getImageOrBuilder

      public Intent.Message.ImageOrBuilder getImageOrBuilder()
       The image response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
      Specified by:
      getImageOrBuilder in interface Intent.MessageOrBuilder
    • hasQuickReplies

      public boolean hasQuickReplies()
       The quick replies response.
       
      .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
      Specified by:
      hasQuickReplies in interface Intent.MessageOrBuilder
      Returns:
      Whether the quickReplies field is set.
    • getQuickReplies

      public Intent.Message.QuickReplies getQuickReplies()
       The quick replies response.
       
      .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
      Specified by:
      getQuickReplies in interface Intent.MessageOrBuilder
      Returns:
      The quickReplies.
    • getQuickRepliesOrBuilder

      public Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder()
       The quick replies response.
       
      .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
      Specified by:
      getQuickRepliesOrBuilder in interface Intent.MessageOrBuilder
    • hasCard

      public boolean hasCard()
       The card response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
      Specified by:
      hasCard in interface Intent.MessageOrBuilder
      Returns:
      Whether the card field is set.
    • getCard

      public Intent.Message.Card getCard()
       The card response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
      Specified by:
      getCard in interface Intent.MessageOrBuilder
      Returns:
      The card.
    • getCardOrBuilder

      public Intent.Message.CardOrBuilder getCardOrBuilder()
       The card response.
       
      .google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
      Specified by:
      getCardOrBuilder in interface Intent.MessageOrBuilder
    • hasPayload

      public boolean hasPayload()
       A custom platform-specific response.
       
      .google.protobuf.Struct payload = 5;
      Specified by:
      hasPayload in interface Intent.MessageOrBuilder
      Returns:
      Whether the payload field is set.
    • getPayload

      public com.google.protobuf.Struct getPayload()
       A custom platform-specific response.
       
      .google.protobuf.Struct payload = 5;
      Specified by:
      getPayload in interface Intent.MessageOrBuilder
      Returns:
      The payload.
    • getPayloadOrBuilder

      public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
       A custom platform-specific response.
       
      .google.protobuf.Struct payload = 5;
      Specified by:
      getPayloadOrBuilder in interface Intent.MessageOrBuilder
    • hasSimpleResponses

      public boolean hasSimpleResponses()
       The voice and text-only responses for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
      Specified by:
      hasSimpleResponses in interface Intent.MessageOrBuilder
      Returns:
      Whether the simpleResponses field is set.
    • getSimpleResponses

      public Intent.Message.SimpleResponses getSimpleResponses()
       The voice and text-only responses for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
      Specified by:
      getSimpleResponses in interface Intent.MessageOrBuilder
      Returns:
      The simpleResponses.
    • getSimpleResponsesOrBuilder

      public Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder()
       The voice and text-only responses for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
      Specified by:
      getSimpleResponsesOrBuilder in interface Intent.MessageOrBuilder
    • hasBasicCard

      public boolean hasBasicCard()
       The basic card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
      Specified by:
      hasBasicCard in interface Intent.MessageOrBuilder
      Returns:
      Whether the basicCard field is set.
    • getBasicCard

      public Intent.Message.BasicCard getBasicCard()
       The basic card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
      Specified by:
      getBasicCard in interface Intent.MessageOrBuilder
      Returns:
      The basicCard.
    • getBasicCardOrBuilder

      public Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder()
       The basic card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
      Specified by:
      getBasicCardOrBuilder in interface Intent.MessageOrBuilder
    • hasSuggestions

      public boolean hasSuggestions()
       The suggestion chips for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
      Specified by:
      hasSuggestions in interface Intent.MessageOrBuilder
      Returns:
      Whether the suggestions field is set.
    • getSuggestions

      public Intent.Message.Suggestions getSuggestions()
       The suggestion chips for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
      Specified by:
      getSuggestions in interface Intent.MessageOrBuilder
      Returns:
      The suggestions.
    • getSuggestionsOrBuilder

      public Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder()
       The suggestion chips for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
      Specified by:
      getSuggestionsOrBuilder in interface Intent.MessageOrBuilder
    • hasLinkOutSuggestion

      public boolean hasLinkOutSuggestion()
       The link out suggestion chip for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
      Specified by:
      hasLinkOutSuggestion in interface Intent.MessageOrBuilder
      Returns:
      Whether the linkOutSuggestion field is set.
    • getLinkOutSuggestion

      public Intent.Message.LinkOutSuggestion getLinkOutSuggestion()
       The link out suggestion chip for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
      Specified by:
      getLinkOutSuggestion in interface Intent.MessageOrBuilder
      Returns:
      The linkOutSuggestion.
    • getLinkOutSuggestionOrBuilder

      public Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder()
       The link out suggestion chip for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
      Specified by:
      getLinkOutSuggestionOrBuilder in interface Intent.MessageOrBuilder
    • hasListSelect

      public boolean hasListSelect()
       The list card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
      Specified by:
      hasListSelect in interface Intent.MessageOrBuilder
      Returns:
      Whether the listSelect field is set.
    • getListSelect

      public Intent.Message.ListSelect getListSelect()
       The list card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
      Specified by:
      getListSelect in interface Intent.MessageOrBuilder
      Returns:
      The listSelect.
    • getListSelectOrBuilder

      public Intent.Message.ListSelectOrBuilder getListSelectOrBuilder()
       The list card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
      Specified by:
      getListSelectOrBuilder in interface Intent.MessageOrBuilder
    • hasCarouselSelect

      public boolean hasCarouselSelect()
       The carousel card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
      Specified by:
      hasCarouselSelect in interface Intent.MessageOrBuilder
      Returns:
      Whether the carouselSelect field is set.
    • getCarouselSelect

      public Intent.Message.CarouselSelect getCarouselSelect()
       The carousel card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
      Specified by:
      getCarouselSelect in interface Intent.MessageOrBuilder
      Returns:
      The carouselSelect.
    • getCarouselSelectOrBuilder

      public Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder()
       The carousel card response for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
      Specified by:
      getCarouselSelectOrBuilder in interface Intent.MessageOrBuilder
    • hasBrowseCarouselCard

      public boolean hasBrowseCarouselCard()
       Browse carousel card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
      Specified by:
      hasBrowseCarouselCard in interface Intent.MessageOrBuilder
      Returns:
      Whether the browseCarouselCard field is set.
    • getBrowseCarouselCard

      public Intent.Message.BrowseCarouselCard getBrowseCarouselCard()
       Browse carousel card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
      Specified by:
      getBrowseCarouselCard in interface Intent.MessageOrBuilder
      Returns:
      The browseCarouselCard.
    • getBrowseCarouselCardOrBuilder

      public Intent.Message.BrowseCarouselCardOrBuilder getBrowseCarouselCardOrBuilder()
       Browse carousel card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
      Specified by:
      getBrowseCarouselCardOrBuilder in interface Intent.MessageOrBuilder
    • hasTableCard

      public boolean hasTableCard()
       Table card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
      Specified by:
      hasTableCard in interface Intent.MessageOrBuilder
      Returns:
      Whether the tableCard field is set.
    • getTableCard

      public Intent.Message.TableCard getTableCard()
       Table card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
      Specified by:
      getTableCard in interface Intent.MessageOrBuilder
      Returns:
      The tableCard.
    • getTableCardOrBuilder

      public Intent.Message.TableCardOrBuilder getTableCardOrBuilder()
       Table card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
      Specified by:
      getTableCardOrBuilder in interface Intent.MessageOrBuilder
    • hasMediaContent

      public boolean hasMediaContent()
       The media content card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
      Specified by:
      hasMediaContent in interface Intent.MessageOrBuilder
      Returns:
      Whether the mediaContent field is set.
    • getMediaContent

      public Intent.Message.MediaContent getMediaContent()
       The media content card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
      Specified by:
      getMediaContent in interface Intent.MessageOrBuilder
      Returns:
      The mediaContent.
    • getMediaContentOrBuilder

      public Intent.Message.MediaContentOrBuilder getMediaContentOrBuilder()
       The media content card for Actions on Google.
       
      .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
      Specified by:
      getMediaContentOrBuilder in interface Intent.MessageOrBuilder
    • getPlatformValue

      public int getPlatformValue()
       Optional. The platform that this message is intended for.
       
      .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlatformValue in interface Intent.MessageOrBuilder
      Returns:
      The enum numeric value on the wire for platform.
    • getPlatform

      public Intent.Message.Platform getPlatform()
       Optional. The platform that this message is intended for.
       
      .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlatform in interface Intent.MessageOrBuilder
      Returns:
      The platform.
    • 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 Intent.Message parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Intent.Message parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Intent.Message parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Intent.Message.Builder newBuilder()
    • newBuilder

      public static Intent.Message.Builder newBuilder(Intent.Message prototype)
    • toBuilder

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

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

      public static Intent.Message getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Intent.Message> 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 Intent.Message getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder