Class Media
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.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.GenericJsonA 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
-
-
Constructor Summary
Constructors Constructor Description Media()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mediaclone()ContentInfogetContentInfo()Information about a file, including the URL of the file and the URL of the file’s thumbnail.java.lang.StringgetFileName()The unique name of the file, returned by the RBM platform when the file was uploaded.java.lang.StringgetHeight()The height of the media within a rich card with a vertical layout.Mediaset(java.lang.String fieldName, java.lang.Object value)MediasetContentInfo(ContentInfo contentInfo)Information about a file, including the URL of the file and the URL of the file’s thumbnail.MediasetFileName(java.lang.String fileName)The unique name of the file, returned by the RBM platform when the file was uploaded.MediasetHeight(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
-
-
-
-
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
nullfor 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 ornullfor 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
nullfor 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 ornullfor 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
nullfor 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 ornullfor none
-
set
public Media set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public Media clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-