Class ContentInfo

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

    public final class ContentInfo
    extends com.google.api.client.json.GenericJson
    Message containing the content information.

    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 Summary

      Constructors 
      Constructor Description
      ContentInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ContentInfo clone()  
      java.lang.String getFileUrl()
      Publicly reachable URL of the file.
      java.lang.Boolean getForceRefresh()
      If set, the RBM platform fetches the file and thumbnail from the specified URLs, even if the platform has cached copies of the file (and/or of the thumbnail).
      java.lang.String getThumbnailUrl()
      (Optional, for image and video files only) Publicly reachable URL of the thumbnail.
      ContentInfo set​(java.lang.String fieldName, java.lang.Object value)  
      ContentInfo setFileUrl​(java.lang.String fileUrl)
      Publicly reachable URL of the file.
      ContentInfo setForceRefresh​(java.lang.Boolean forceRefresh)
      If set, the RBM platform fetches the file and thumbnail from the specified URLs, even if the platform has cached copies of the file (and/or of the thumbnail).
      ContentInfo setThumbnailUrl​(java.lang.String thumbnailUrl)
      (Optional, for image and video files only) Publicly reachable URL of the thumbnail.
      • Methods inherited from class com.google.api.client.json.GenericJson

        getFactory, setFactory, toPrettyString, toString
      • Methods inherited from class com.google.api.client.util.GenericData

        entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
      • Methods inherited from class java.util.AbstractMap

        clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • ContentInfo

        public ContentInfo()
    • Method Detail

      • getFileUrl

        public java.lang.String getFileUrl()
        Publicly reachable URL 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. Recommended maximum file size of 100 MB.
        Returns:
        value or null for none
      • setFileUrl

        public ContentInfo setFileUrl​(java.lang.String fileUrl)
        Publicly reachable URL 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. Recommended maximum file size of 100 MB.
        Parameters:
        fileUrl - fileUrl or null for none
      • getForceRefresh

        public java.lang.Boolean getForceRefresh()
        If set, the RBM platform fetches the file and thumbnail from the specified URLs, even if the platform has cached copies of the file (and/or of the thumbnail).
        Returns:
        value or null for none
      • setForceRefresh

        public ContentInfo setForceRefresh​(java.lang.Boolean forceRefresh)
        If set, the RBM platform fetches the file and thumbnail from the specified URLs, even if the platform has cached copies of the file (and/or of the thumbnail).
        Parameters:
        forceRefresh - forceRefresh or null for none
      • getThumbnailUrl

        public java.lang.String getThumbnailUrl()
        (Optional, for image and video files only) Publicly reachable URL of the thumbnail. Maximum size of 100 kB. If you don't provide a thumbnail URL, 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.
        Returns:
        value or null for none
      • setThumbnailUrl

        public ContentInfo setThumbnailUrl​(java.lang.String thumbnailUrl)
        (Optional, for image and video files only) Publicly reachable URL of the thumbnail. Maximum size of 100 kB. If you don't provide a thumbnail URL, 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.
        Parameters:
        thumbnailUrl - thumbnailUrl or null for none
      • set

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

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