Class Media

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

    public final class Media
    extends com.google.api.client.json.GenericJson
    A media file within a rich card.

    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
      Media()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Media clone()  
      ContentInfo getContentInfo()
      Information about a file, including the URL of the file and the URL of the file’s thumbnail.
      java.lang.String getFileName()
      The unique name of the file, returned by the RBM platform when the file was uploaded.
      java.lang.String getHeight()
      The height of the media within a rich card with a vertical layout.
      Media set​(java.lang.String fieldName, java.lang.Object value)  
      Media setContentInfo​(ContentInfo contentInfo)
      Information about a file, including the URL of the file and the URL of the file’s thumbnail.
      Media setFileName​(java.lang.String fileName)
      The unique name of the file, returned by the RBM platform when the file was uploaded.
      Media setHeight​(java.lang.String height)
      The height of the media within a rich card with a vertical layout.
      • 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

      • Media

        public Media()
    • Method Detail

      • getContentInfo

        public ContentInfo getContentInfo()
        Information about a file, including the URL of the file and the URL of the file’s thumbnail. The RBM platform serves content from a cache, but an agent can force the RBM platform to fetch a new version of the content and refresh the cache.
        Returns:
        value or null for none
      • setContentInfo

        public Media setContentInfo​(ContentInfo contentInfo)
        Information about a file, including the URL of the file and the URL of the file’s thumbnail. The RBM platform serves content from a cache, but an agent can force the RBM platform to fetch a new version of the content and refresh the cache.
        Parameters:
        contentInfo - contentInfo or null for none
      • getFileName

        public java.lang.String getFileName()
        The unique name of the file, returned by the RBM platform when the file was uploaded.
        Returns:
        value or null for none
      • setFileName

        public Media setFileName​(java.lang.String fileName)
        The unique name of the file, returned by the RBM platform when the file was uploaded.
        Parameters:
        fileName - fileName or null for none
      • getHeight

        public java.lang.String getHeight()
        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.
        Returns:
        value or null for none
      • setHeight

        public Media setHeight​(java.lang.String height)
        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.
        Parameters:
        height - height or null for none
      • set

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

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