Class CreateFileRequest
- 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.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.GenericJsonRequest 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
-
-
Constructor Summary
Constructors Constructor Description CreateFileRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateFileRequestclone()GdataMediagetBlob()Blob file reference.java.lang.StringgetContentDescription()Optional.java.lang.StringgetFileUrl()Optional.MediaRequestInfogetMediaRequestInfo()Media request info populated by Scotty server.java.lang.StringgetThumbnailUrl()Optional.CreateFileRequestset(java.lang.String fieldName, java.lang.Object value)CreateFileRequestsetBlob(GdataMedia blob)Blob file reference.CreateFileRequestsetContentDescription(java.lang.String contentDescription)Optional.CreateFileRequestsetFileUrl(java.lang.String fileUrl)Optional.CreateFileRequestsetMediaRequestInfo(MediaRequestInfo mediaRequestInfo)Media request info populated by Scotty server.CreateFileRequestsetThumbnailUrl(java.lang.String thumbnailUrl)Optional.-
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
-
getBlob
public GdataMedia getBlob()
Blob file reference. This will be propagated by scotty agent automatically.- Returns:
- value or
nullfor none
-
setBlob
public CreateFileRequest setBlob(GdataMedia blob)
Blob file reference. This will be propagated by scotty agent automatically.- Parameters:
blob- blob ornullfor 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
nullfor 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 ornullfor 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
nullfor 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 ornullfor none
-
getMediaRequestInfo
public MediaRequestInfo getMediaRequestInfo()
Media request info populated by Scotty server. This will be propagated by scotty agent automatically.- Returns:
- value or
nullfor 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 ornullfor 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
nullfor 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 ornullfor none
-
set
public CreateFileRequest set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public CreateFileRequest clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-