Class 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.GeneratedMessageV3
    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:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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