Class CreateFileRequest

  • All Implemented Interfaces:
    java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public final class CreateFileRequest
    extends com.google.api.client.json.GenericJson
    Request for creating file.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.api.client.util.GenericData

        com.google.api.client.util.GenericData.Flags
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Detail

      • CreateFileRequest

        public CreateFileRequest()
    • Method Detail

      • getBlob

        public GdataMedia getBlob()
        Blob file reference. This will be propagated by scotty agent automatically.
        Returns:
        value or null for none
      • setBlob

        public CreateFileRequest setBlob​(GdataMedia blob)
        Blob file reference. This will be propagated by scotty agent automatically.
        Parameters:
        blob - blob or null for none
      • getContentDescription

        public java.lang.String getContentDescription()
        Optional. Text description of the file's content. Screen readers use this description to help users with disabilities understand what the file contains.
        Returns:
        value or null for none
      • setContentDescription

        public CreateFileRequest setContentDescription​(java.lang.String contentDescription)
        Optional. Text description of the file's content. Screen readers use this description to help users with disabilities understand what the file contains.
        Parameters:
        contentDescription - contentDescription or null for none
      • getFileUrl

        public java.lang.String getFileUrl()
        Optional. Publicly available URL of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when fetching the file. Supported image content types: image/jpeg, image/jpg, image/gif, image/png. Supported video content types: video/h263, video/m4v, video/mp4, video/mpeg, video/mpeg4, video/webm.
        Returns:
        value or null for none
      • setFileUrl

        public CreateFileRequest setFileUrl​(java.lang.String fileUrl)
        Optional. Publicly available URL of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when fetching the file. Supported image content types: image/jpeg, image/jpg, image/gif, image/png. Supported video content types: video/h263, video/m4v, video/mp4, video/mpeg, video/mpeg4, video/webm.
        Parameters:
        fileUrl - fileUrl or null for none
      • getMediaRequestInfo

        public MediaRequestInfo getMediaRequestInfo()
        Media request info populated by Scotty server. This will be propagated by scotty agent automatically.
        Returns:
        value or null for none
      • setMediaRequestInfo

        public CreateFileRequest setMediaRequestInfo​(MediaRequestInfo mediaRequestInfo)
        Media request info populated by Scotty server. This will be propagated by scotty agent automatically.
        Parameters:
        mediaRequestInfo - mediaRequestInfo or null for none
      • getThumbnailUrl

        public java.lang.String getThumbnailUrl()
        Optional. Publicly available URL of the thumbnail corresponding to the file. If this field is not set, then the RBM platform automatically generates a thumbnail from the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when fetching the file. Supported image content types: image/jpeg, image/jpg, image/gif, image/png.
        Returns:
        value or null for none
      • setThumbnailUrl

        public CreateFileRequest setThumbnailUrl​(java.lang.String thumbnailUrl)
        Optional. Publicly available URL of the thumbnail corresponding to the file. If this field is not set, then the RBM platform automatically generates a thumbnail from the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when fetching the file. Supported image content types: image/jpeg, image/jpg, image/gif, image/png.
        Parameters:
        thumbnailUrl - thumbnailUrl or null for none
      • set

        public CreateFileRequest set​(java.lang.String fieldName,
                                     java.lang.Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public CreateFileRequest clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson