Class ContentInfo
- 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.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.GenericJsonMessage 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
-
-
Constructor Summary
Constructors Constructor Description ContentInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentInfoclone()java.lang.StringgetFileUrl()Publicly reachable URL of the file.java.lang.BooleangetForceRefresh()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.StringgetThumbnailUrl()(Optional, for image and video files only) Publicly reachable URL of the thumbnail.ContentInfoset(java.lang.String fieldName, java.lang.Object value)ContentInfosetFileUrl(java.lang.String fileUrl)Publicly reachable URL of the file.ContentInfosetForceRefresh(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).ContentInfosetThumbnailUrl(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
-
-
-
-
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
nullfor 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 ornullfor 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
nullfor 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 ornullfor 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
nullfor 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 ornullfor none
-
set
public ContentInfo set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public ContentInfo clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-