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
     Corresponds to the `Response` field in the Dialogflow console.
     
    Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message
    See Also:
    Serialized Form
    • Field Detail

      • QUICK_REPLIES_FIELD_NUMBER

        public static final int QUICK_REPLIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SIMPLE_RESPONSES_FIELD_NUMBER

        public static final int SIMPLE_RESPONSES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BASIC_CARD_FIELD_NUMBER

        public static final int BASIC_CARD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUGGESTIONS_FIELD_NUMBER

        public static final int SUGGESTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LINK_OUT_SUGGESTION_FIELD_NUMBER

        public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LIST_SELECT_FIELD_NUMBER

        public static final int LIST_SELECT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CAROUSEL_SELECT_FIELD_NUMBER

        public static final int CAROUSEL_SELECT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TELEPHONY_PLAY_AUDIO_FIELD_NUMBER

        public static final int TELEPHONY_PLAY_AUDIO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER

        public static final int TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TELEPHONY_TRANSFER_CALL_FIELD_NUMBER

        public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RBM_STANDALONE_RICH_CARD_FIELD_NUMBER

        public static final int RBM_STANDALONE_RICH_CARD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RBM_CAROUSEL_RICH_CARD_FIELD_NUMBER

        public static final int RBM_CAROUSEL_RICH_CARD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BROWSE_CAROUSEL_CARD_FIELD_NUMBER

        public static final int BROWSE_CAROUSEL_CARD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TABLE_CARD_FIELD_NUMBER

        public static final int TABLE_CARD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MEDIA_CONTENT_FIELD_NUMBER

        public static final int MEDIA_CONTENT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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()
         Returns a text response.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
        Specified by:
        hasText in interface Intent.MessageOrBuilder
        Returns:
        Whether the text field is set.
      • hasImage

        public boolean hasImage()
         Displays an image.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
        Specified by:
        hasImage in interface Intent.MessageOrBuilder
        Returns:
        Whether the image field is set.
      • hasQuickReplies

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

        public boolean hasCard()
         Displays a card.
         
        .google.cloud.dialogflow.v2beta1.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()
         Returns a voice or text-only response for Actions on Google.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
        Specified by:
        hasSimpleResponses in interface Intent.MessageOrBuilder
        Returns:
        Whether the simpleResponses field is set.
      • hasBasicCard

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

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

        public boolean hasLinkOutSuggestion()
         Displays a link out suggestion chip for Actions on Google.
         
        .google.cloud.dialogflow.v2beta1.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()
         Displays a list card for Actions on Google.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
        Specified by:
        hasListSelect in interface Intent.MessageOrBuilder
        Returns:
        Whether the listSelect field is set.
      • hasCarouselSelect

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

        public boolean hasTelephonyPlayAudio()
         Plays audio from a file in Telephony Gateway.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
        Specified by:
        hasTelephonyPlayAudio in interface Intent.MessageOrBuilder
        Returns:
        Whether the telephonyPlayAudio field is set.
      • hasTelephonySynthesizeSpeech

        public boolean hasTelephonySynthesizeSpeech()
         Synthesizes speech in Telephony Gateway.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
        Specified by:
        hasTelephonySynthesizeSpeech in interface Intent.MessageOrBuilder
        Returns:
        Whether the telephonySynthesizeSpeech field is set.
      • hasTelephonyTransferCall

        public boolean hasTelephonyTransferCall()
         Transfers the call in Telephony Gateway.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
        Specified by:
        hasTelephonyTransferCall in interface Intent.MessageOrBuilder
        Returns:
        Whether the telephonyTransferCall field is set.
      • hasRbmText

        public boolean hasRbmText()
         Rich Business Messaging (RBM) text response.
        
         RBM allows businesses to send enriched and branded versions of SMS. See
         https://jibe.google.com/business-messaging.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
        Specified by:
        hasRbmText in interface Intent.MessageOrBuilder
        Returns:
        Whether the rbmText field is set.
      • getRbmText

        public Intent.Message.RbmText getRbmText()
         Rich Business Messaging (RBM) text response.
        
         RBM allows businesses to send enriched and branded versions of SMS. See
         https://jibe.google.com/business-messaging.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
        Specified by:
        getRbmText in interface Intent.MessageOrBuilder
        Returns:
        The rbmText.
      • getRbmTextOrBuilder

        public Intent.Message.RbmTextOrBuilder getRbmTextOrBuilder()
         Rich Business Messaging (RBM) text response.
        
         RBM allows businesses to send enriched and branded versions of SMS. See
         https://jibe.google.com/business-messaging.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.RbmText rbm_text = 18;
        Specified by:
        getRbmTextOrBuilder in interface Intent.MessageOrBuilder
      • hasRbmStandaloneRichCard

        public boolean hasRbmStandaloneRichCard()
         Standalone Rich Business Messaging (RBM) rich card response.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard rbm_standalone_rich_card = 19;
        Specified by:
        hasRbmStandaloneRichCard in interface Intent.MessageOrBuilder
        Returns:
        Whether the rbmStandaloneRichCard field is set.
      • hasRbmCarouselRichCard

        public boolean hasRbmCarouselRichCard()
         Rich Business Messaging (RBM) carousel rich card response.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard rbm_carousel_rich_card = 20;
        Specified by:
        hasRbmCarouselRichCard in interface Intent.MessageOrBuilder
        Returns:
        Whether the rbmCarouselRichCard field is set.
      • hasBrowseCarouselCard

        public boolean hasBrowseCarouselCard()
         Browse carousel card for Actions on Google.
         
        .google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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