Class MediaRequestInfo
- 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.MediaRequestInfo
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class MediaRequestInfo extends com.google.api.client.json.GenericJsonExtra information added to operations that support Scotty media requests.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 MediaRequestInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaRequestInfoclone()java.lang.LonggetCurrentBytes()The number of current bytes uploaded or downloaded.java.lang.StringgetCustomData()Data to be copied to backend requests.java.lang.StringgetDiffObjectVersion()Set if the http request info is diff encoded.java.lang.IntegergetFinalStatus()java.lang.StringgetNotificationType()The type of notification received from Scotty.java.lang.StringgetRequestId()The Scotty request ID.java.lang.LonggetTotalBytes()The total size of the file.java.lang.BooleangetTotalBytesIsEstimated()Whether the total bytes field contains an estimated data.MediaRequestInfoset(java.lang.String fieldName, java.lang.Object value)MediaRequestInfosetCurrentBytes(java.lang.Long currentBytes)The number of current bytes uploaded or downloaded.MediaRequestInfosetCustomData(java.lang.String customData)Data to be copied to backend requests.MediaRequestInfosetDiffObjectVersion(java.lang.String diffObjectVersion)Set if the http request info is diff encoded.MediaRequestInfosetFinalStatus(java.lang.Integer finalStatus)MediaRequestInfosetNotificationType(java.lang.String notificationType)The type of notification received from Scotty.MediaRequestInfosetRequestId(java.lang.String requestId)The Scotty request ID.MediaRequestInfosetTotalBytes(java.lang.Long totalBytes)The total size of the file.MediaRequestInfosetTotalBytesIsEstimated(java.lang.Boolean totalBytesIsEstimated)Whether the total bytes field contains an estimated data.-
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
-
getCurrentBytes
public java.lang.Long getCurrentBytes()
The number of current bytes uploaded or downloaded.- Returns:
- value or
nullfor none
-
setCurrentBytes
public MediaRequestInfo setCurrentBytes(java.lang.Long currentBytes)
The number of current bytes uploaded or downloaded.- Parameters:
currentBytes- currentBytes ornullfor none
-
getCustomData
public java.lang.String getCustomData()
Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.- Returns:
- value or
nullfor none
-
setCustomData
public MediaRequestInfo setCustomData(java.lang.String customData)
Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.- Parameters:
customData- customData ornullfor none
-
getDiffObjectVersion
public java.lang.String getDiffObjectVersion()
Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information.- Returns:
- value or
nullfor none
-
setDiffObjectVersion
public MediaRequestInfo setDiffObjectVersion(java.lang.String diffObjectVersion)
Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information.- Parameters:
diffObjectVersion- diffObjectVersion ornullfor none
-
getFinalStatus
public java.lang.Integer getFinalStatus()
- Returns:
- value or
nullfor none
-
setFinalStatus
public MediaRequestInfo setFinalStatus(java.lang.Integer finalStatus)
- Parameters:
finalStatus- finalStatus ornullfor none
-
getNotificationType
public java.lang.String getNotificationType()
The type of notification received from Scotty.- Returns:
- value or
nullfor none
-
setNotificationType
public MediaRequestInfo setNotificationType(java.lang.String notificationType)
The type of notification received from Scotty.- Parameters:
notificationType- notificationType ornullfor none
-
getRequestId
public java.lang.String getRequestId()
The Scotty request ID.- Returns:
- value or
nullfor none
-
setRequestId
public MediaRequestInfo setRequestId(java.lang.String requestId)
The Scotty request ID.- Parameters:
requestId- requestId ornullfor none
-
getTotalBytes
public java.lang.Long getTotalBytes()
The total size of the file.- Returns:
- value or
nullfor none
-
setTotalBytes
public MediaRequestInfo setTotalBytes(java.lang.Long totalBytes)
The total size of the file.- Parameters:
totalBytes- totalBytes ornullfor none
-
getTotalBytesIsEstimated
public java.lang.Boolean getTotalBytesIsEstimated()
Whether the total bytes field contains an estimated data.- Returns:
- value or
nullfor none
-
setTotalBytesIsEstimated
public MediaRequestInfo setTotalBytesIsEstimated(java.lang.Boolean totalBytesIsEstimated)
Whether the total bytes field contains an estimated data.- Parameters:
totalBytesIsEstimated- totalBytesIsEstimated ornullfor none
-
set
public MediaRequestInfo set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public MediaRequestInfo clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-