Class Intent.Message.RbmCardContent.RbmMedia

  • All Implemented Interfaces:
    Intent.Message.RbmCardContent.RbmMediaOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    Intent.Message.RbmCardContent

    public static final class Intent.Message.RbmCardContent.RbmMedia
    extends com.google.protobuf.GeneratedMessageV3
    implements Intent.Message.RbmCardContent.RbmMediaOrBuilder
     Rich Business Messaging (RBM) Media displayed in Cards
     The following media-types are currently supported:
    
     Image Types
    
     * image/jpeg
     * image/jpg'
     * image/gif
     * image/png
    
     Video Types
    
     * video/h263
     * video/m4v
     * video/mp4
     * video/mpeg
     * video/mpeg4
     * video/webm
     
    Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
    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
      • getFileUri

        public String getFileUri()
         Required. Publicly reachable URI of the file. The RBM platform
         determines the MIME type of the file from the content-type field in
         the HTTP headers when the platform fetches the file. The content-type
         field must be present and accurate in the HTTP response from the URL.
         
        string file_uri = 1;
        Specified by:
        getFileUri in interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
        Returns:
        The fileUri.
      • getFileUriBytes

        public com.google.protobuf.ByteString getFileUriBytes()
         Required. Publicly reachable URI of the file. The RBM platform
         determines the MIME type of the file from the content-type field in
         the HTTP headers when the platform fetches the file. The content-type
         field must be present and accurate in the HTTP response from the URL.
         
        string file_uri = 1;
        Specified by:
        getFileUriBytes in interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
        Returns:
        The bytes for fileUri.
      • getThumbnailUri

        public String getThumbnailUri()
         Optional. Publicly reachable URI of the thumbnail.If you don't
         provide a thumbnail URI, the RBM platform displays a blank
         placeholder thumbnail until the user's device downloads the file.
         Depending on the user's setting, the file may not download
         automatically and may require the user to tap a download button.
         
        string thumbnail_uri = 2;
        Specified by:
        getThumbnailUri in interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
        Returns:
        The thumbnailUri.
      • getThumbnailUriBytes

        public com.google.protobuf.ByteString getThumbnailUriBytes()
         Optional. Publicly reachable URI of the thumbnail.If you don't
         provide a thumbnail URI, the RBM platform displays a blank
         placeholder thumbnail until the user's device downloads the file.
         Depending on the user's setting, the file may not download
         automatically and may require the user to tap a download button.
         
        string thumbnail_uri = 2;
        Specified by:
        getThumbnailUriBytes in interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
        Returns:
        The bytes for thumbnailUri.
      • getHeightValue

        public int getHeightValue()
         Required for cards with vertical orientation. The height of the media
         within a rich card with a vertical layout.
         For a standalone card with horizontal layout, height is not
         customizable, and this field is ignored.
         
        .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;
        Specified by:
        getHeightValue in interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
        Returns:
        The enum numeric value on the wire for height.
      • 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.RbmCardContent.RbmMedia parseFrom​(ByteBuffer data,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static Intent.Message.RbmCardContent.RbmMedia 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.RbmCardContent.RbmMedia parseFrom​(byte[] data)
                                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        protected Intent.Message.RbmCardContent.RbmMedia.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

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