Class GdataMedia
- 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.GdataMedia
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class GdataMedia extends com.google.api.client.json.GenericJsonA reference to data stored on the filesystem, on GFS or in blobstore.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 GdataMedia()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GdataMediaclone()byte[]decodeBigstoreObjectRef()Use object_id instead.byte[]decodeBlobRef()Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef.byte[]decodeCosmoBinaryReference()A binary data reference for a media download.byte[]decodeInline()Media data, set if reference_type is INLINEbyte[]decodeMd5Hash()Scotty-provided MD5 hash for an upload.byte[]decodeMediaId()Media id to forward to the operation GetMedia.byte[]decodeSha1Hash()Scotty-provided SHA1 hash for an upload.byte[]decodeSha256Hash()Scotty-provided SHA256 hash for an upload.GdataMediaencodeBigstoreObjectRef(byte[] bigstoreObjectRef)Use object_id instead.GdataMediaencodeBlobRef(byte[] blobRef)Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef.GdataMediaencodeCosmoBinaryReference(byte[] cosmoBinaryReference)A binary data reference for a media download.GdataMediaencodeInline(byte[] inline)Media data, set if reference_type is INLINEGdataMediaencodeMd5Hash(byte[] md5Hash)Scotty-provided MD5 hash for an upload.GdataMediaencodeMediaId(byte[] mediaId)Media id to forward to the operation GetMedia.GdataMediaencodeSha1Hash(byte[] sha1Hash)Scotty-provided SHA1 hash for an upload.GdataMediaencodeSha256Hash(byte[] sha256Hash)Scotty-provided SHA256 hash for an upload.java.lang.StringgetAlgorithm()Deprecated, use one of explicit hash type fields instead.java.lang.StringgetBigstoreObjectRef()Use object_id instead.java.lang.StringgetBlobRef()Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef.GdataBlobstore2InfogetBlobstore2Info()Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.java.util.List<GdataCompositeMedia>getCompositeMedia()A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA.java.lang.StringgetContentType()MIME type of the dataGdataContentTypeInfogetContentTypeInfo()Extended content type information provided for Scotty uploads.java.lang.StringgetCosmoBinaryReference()A binary data reference for a media download.java.lang.LonggetCrc32cHash()For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded.GdataDiffChecksumsResponsegetDiffChecksumsResponse()Set if reference_type is DIFF_CHECKSUMS_RESPONSE.GdataDiffDownloadResponsegetDiffDownloadResponse()Set if reference_type is DIFF_DOWNLOAD_RESPONSE.GdataDiffUploadRequestgetDiffUploadRequest()Set if reference_type is DIFF_UPLOAD_REQUEST.GdataDiffUploadResponsegetDiffUploadResponse()Set if reference_type is DIFF_UPLOAD_RESPONSE.GdataDiffVersionResponsegetDiffVersionResponse()Set if reference_type is DIFF_VERSION_RESPONSE.GdataDownloadParametersgetDownloadParameters()Parameters for a media download.java.lang.StringgetFilename()Original file namejava.lang.StringgetHash()Deprecated, use one of explicit hash type fields instead.java.lang.BooleangetHashVerified()For Scotty uploads only.java.lang.StringgetInline()Media data, set if reference_type is INLINEjava.lang.BooleangetIsPotentialRetry()|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before.java.lang.LonggetLength()Size of the data, in bytesjava.lang.StringgetMd5Hash()Scotty-provided MD5 hash for an upload.java.lang.StringgetMediaId()Media id to forward to the operation GetMedia.GdataObjectIdgetObjectId()Reference to a TI Blob, set if reference_type is BIGSTORE_REF.java.lang.StringgetPath()Path to the data, set if reference_type is PATHjava.lang.StringgetReferenceType()Describes what the field reference contains.java.lang.StringgetSha1Hash()Scotty-provided SHA1 hash for an upload.java.lang.StringgetSha256Hash()Scotty-provided SHA256 hash for an upload.java.math.BigIntegergetTimestamp()Time at which the media data was last updated, in milliseconds since UNIX epochjava.lang.StringgetToken()A unique fingerprint/version id for the media dataGdataMediaset(java.lang.String fieldName, java.lang.Object value)GdataMediasetAlgorithm(java.lang.String algorithm)Deprecated, use one of explicit hash type fields instead.GdataMediasetBigstoreObjectRef(java.lang.String bigstoreObjectRef)Use object_id instead.GdataMediasetBlobRef(java.lang.String blobRef)Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef.GdataMediasetBlobstore2Info(GdataBlobstore2Info blobstore2Info)Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.GdataMediasetCompositeMedia(java.util.List<GdataCompositeMedia> compositeMedia)A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA.GdataMediasetContentType(java.lang.String contentType)MIME type of the dataGdataMediasetContentTypeInfo(GdataContentTypeInfo contentTypeInfo)Extended content type information provided for Scotty uploads.GdataMediasetCosmoBinaryReference(java.lang.String cosmoBinaryReference)A binary data reference for a media download.GdataMediasetCrc32cHash(java.lang.Long crc32cHash)For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded.GdataMediasetDiffChecksumsResponse(GdataDiffChecksumsResponse diffChecksumsResponse)Set if reference_type is DIFF_CHECKSUMS_RESPONSE.GdataMediasetDiffDownloadResponse(GdataDiffDownloadResponse diffDownloadResponse)Set if reference_type is DIFF_DOWNLOAD_RESPONSE.GdataMediasetDiffUploadRequest(GdataDiffUploadRequest diffUploadRequest)Set if reference_type is DIFF_UPLOAD_REQUEST.GdataMediasetDiffUploadResponse(GdataDiffUploadResponse diffUploadResponse)Set if reference_type is DIFF_UPLOAD_RESPONSE.GdataMediasetDiffVersionResponse(GdataDiffVersionResponse diffVersionResponse)Set if reference_type is DIFF_VERSION_RESPONSE.GdataMediasetDownloadParameters(GdataDownloadParameters downloadParameters)Parameters for a media download.GdataMediasetFilename(java.lang.String filename)Original file nameGdataMediasetHash(java.lang.String hash)Deprecated, use one of explicit hash type fields instead.GdataMediasetHashVerified(java.lang.Boolean hashVerified)For Scotty uploads only.GdataMediasetInline(java.lang.String inline)Media data, set if reference_type is INLINEGdataMediasetIsPotentialRetry(java.lang.Boolean isPotentialRetry)|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before.GdataMediasetLength(java.lang.Long length)Size of the data, in bytesGdataMediasetMd5Hash(java.lang.String md5Hash)Scotty-provided MD5 hash for an upload.GdataMediasetMediaId(java.lang.String mediaId)Media id to forward to the operation GetMedia.GdataMediasetObjectId(GdataObjectId objectId)Reference to a TI Blob, set if reference_type is BIGSTORE_REF.GdataMediasetPath(java.lang.String path)Path to the data, set if reference_type is PATHGdataMediasetReferenceType(java.lang.String referenceType)Describes what the field reference contains.GdataMediasetSha1Hash(java.lang.String sha1Hash)Scotty-provided SHA1 hash for an upload.GdataMediasetSha256Hash(java.lang.String sha256Hash)Scotty-provided SHA256 hash for an upload.GdataMediasetTimestamp(java.math.BigInteger timestamp)Time at which the media data was last updated, in milliseconds since UNIX epochGdataMediasetToken(java.lang.String token)A unique fingerprint/version id for the media 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
-
getAlgorithm
public java.lang.String getAlgorithm()
Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any time.- Returns:
- value or
nullfor none
-
setAlgorithm
public GdataMedia setAlgorithm(java.lang.String algorithm)
Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any time.- Parameters:
algorithm- algorithm ornullfor none
-
getBigstoreObjectRef
public java.lang.String getBigstoreObjectRef()
Use object_id instead.- Returns:
- value or
nullfor none - See Also:
decodeBigstoreObjectRef()
-
decodeBigstoreObjectRef
public byte[] decodeBigstoreObjectRef()
Use object_id instead.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getBigstoreObjectRef()
-
setBigstoreObjectRef
public GdataMedia setBigstoreObjectRef(java.lang.String bigstoreObjectRef)
Use object_id instead.- Parameters:
bigstoreObjectRef- bigstoreObjectRef ornullfor none- See Also:
#encodeBigstoreObjectRef()
-
encodeBigstoreObjectRef
public GdataMedia encodeBigstoreObjectRef(byte[] bigstoreObjectRef)
Use object_id instead.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getBlobRef
public java.lang.String getBlobRef()
Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.- Returns:
- value or
nullfor none - See Also:
decodeBlobRef()
-
decodeBlobRef
public byte[] decodeBlobRef()
Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getBlobRef()
-
setBlobRef
public GdataMedia setBlobRef(java.lang.String blobRef)
Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.- Parameters:
blobRef- blobRef ornullfor none- See Also:
#encodeBlobRef()
-
encodeBlobRef
public GdataMedia encodeBlobRef(byte[] blobRef)
Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getBlobstore2Info
public GdataBlobstore2Info getBlobstore2Info()
Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.- Returns:
- value or
nullfor none
-
setBlobstore2Info
public GdataMedia setBlobstore2Info(GdataBlobstore2Info blobstore2Info)
Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.- Parameters:
blobstore2Info- blobstore2Info ornullfor none
-
getCompositeMedia
public java.util.List<GdataCompositeMedia> getCompositeMedia()
A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.- Returns:
- value or
nullfor none
-
setCompositeMedia
public GdataMedia setCompositeMedia(java.util.List<GdataCompositeMedia> compositeMedia)
A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.- Parameters:
compositeMedia- compositeMedia ornullfor none
-
getContentType
public java.lang.String getContentType()
MIME type of the data- Returns:
- value or
nullfor none
-
setContentType
public GdataMedia setContentType(java.lang.String contentType)
MIME type of the data- Parameters:
contentType- contentType ornullfor none
-
getContentTypeInfo
public GdataContentTypeInfo getContentTypeInfo()
Extended content type information provided for Scotty uploads.- Returns:
- value or
nullfor none
-
setContentTypeInfo
public GdataMedia setContentTypeInfo(GdataContentTypeInfo contentTypeInfo)
Extended content type information provided for Scotty uploads.- Parameters:
contentTypeInfo- contentTypeInfo ornullfor none
-
getCosmoBinaryReference
public java.lang.String getCosmoBinaryReference()
A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.- Returns:
- value or
nullfor none - See Also:
decodeCosmoBinaryReference()
-
decodeCosmoBinaryReference
public byte[] decodeCosmoBinaryReference()
A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getCosmoBinaryReference()
-
setCosmoBinaryReference
public GdataMedia setCosmoBinaryReference(java.lang.String cosmoBinaryReference)
A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.- Parameters:
cosmoBinaryReference- cosmoBinaryReference ornullfor none- See Also:
#encodeCosmoBinaryReference()
-
encodeCosmoBinaryReference
public GdataMedia encodeCosmoBinaryReference(byte[] cosmoBinaryReference)
A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getCrc32cHash
public java.lang.Long getCrc32cHash()
For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.- Returns:
- value or
nullfor none
-
setCrc32cHash
public GdataMedia setCrc32cHash(java.lang.Long crc32cHash)
For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.- Parameters:
crc32cHash- crc32cHash ornullfor none
-
getDiffChecksumsResponse
public GdataDiffChecksumsResponse getDiffChecksumsResponse()
Set if reference_type is DIFF_CHECKSUMS_RESPONSE.- Returns:
- value or
nullfor none
-
setDiffChecksumsResponse
public GdataMedia setDiffChecksumsResponse(GdataDiffChecksumsResponse diffChecksumsResponse)
Set if reference_type is DIFF_CHECKSUMS_RESPONSE.- Parameters:
diffChecksumsResponse- diffChecksumsResponse ornullfor none
-
getDiffDownloadResponse
public GdataDiffDownloadResponse getDiffDownloadResponse()
Set if reference_type is DIFF_DOWNLOAD_RESPONSE.- Returns:
- value or
nullfor none
-
setDiffDownloadResponse
public GdataMedia setDiffDownloadResponse(GdataDiffDownloadResponse diffDownloadResponse)
Set if reference_type is DIFF_DOWNLOAD_RESPONSE.- Parameters:
diffDownloadResponse- diffDownloadResponse ornullfor none
-
getDiffUploadRequest
public GdataDiffUploadRequest getDiffUploadRequest()
Set if reference_type is DIFF_UPLOAD_REQUEST.- Returns:
- value or
nullfor none
-
setDiffUploadRequest
public GdataMedia setDiffUploadRequest(GdataDiffUploadRequest diffUploadRequest)
Set if reference_type is DIFF_UPLOAD_REQUEST.- Parameters:
diffUploadRequest- diffUploadRequest ornullfor none
-
getDiffUploadResponse
public GdataDiffUploadResponse getDiffUploadResponse()
Set if reference_type is DIFF_UPLOAD_RESPONSE.- Returns:
- value or
nullfor none
-
setDiffUploadResponse
public GdataMedia setDiffUploadResponse(GdataDiffUploadResponse diffUploadResponse)
Set if reference_type is DIFF_UPLOAD_RESPONSE.- Parameters:
diffUploadResponse- diffUploadResponse ornullfor none
-
getDiffVersionResponse
public GdataDiffVersionResponse getDiffVersionResponse()
Set if reference_type is DIFF_VERSION_RESPONSE.- Returns:
- value or
nullfor none
-
setDiffVersionResponse
public GdataMedia setDiffVersionResponse(GdataDiffVersionResponse diffVersionResponse)
Set if reference_type is DIFF_VERSION_RESPONSE.- Parameters:
diffVersionResponse- diffVersionResponse ornullfor none
-
getDownloadParameters
public GdataDownloadParameters getDownloadParameters()
Parameters for a media download.- Returns:
- value or
nullfor none
-
setDownloadParameters
public GdataMedia setDownloadParameters(GdataDownloadParameters downloadParameters)
Parameters for a media download.- Parameters:
downloadParameters- downloadParameters ornullfor none
-
getFilename
public java.lang.String getFilename()
Original file name- Returns:
- value or
nullfor none
-
setFilename
public GdataMedia setFilename(java.lang.String filename)
Original file name- Parameters:
filename- filename ornullfor none
-
getHash
public java.lang.String getHash()
Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/uploader/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media.- Returns:
- value or
nullfor none
-
setHash
public GdataMedia setHash(java.lang.String hash)
Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/uploader/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media.- Parameters:
hash- hash ornullfor none
-
getHashVerified
public java.lang.Boolean getHashVerified()
For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification.- Returns:
- value or
nullfor none
-
setHashVerified
public GdataMedia setHashVerified(java.lang.Boolean hashVerified)
For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification.- Parameters:
hashVerified- hashVerified ornullfor none
-
getInline
public java.lang.String getInline()
Media data, set if reference_type is INLINE- Returns:
- value or
nullfor none - See Also:
decodeInline()
-
decodeInline
public byte[] decodeInline()
Media data, set if reference_type is INLINE- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getInline()
-
setInline
public GdataMedia setInline(java.lang.String inline)
Media data, set if reference_type is INLINE- Parameters:
inline- inline ornullfor none- See Also:
#encodeInline()
-
encodeInline
public GdataMedia encodeInline(byte[] inline)
Media data, set if reference_type is INLINE- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getIsPotentialRetry
public java.lang.Boolean getIsPotentialRetry()
|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.- Returns:
- value or
nullfor none
-
setIsPotentialRetry
public GdataMedia setIsPotentialRetry(java.lang.Boolean isPotentialRetry)
|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.- Parameters:
isPotentialRetry- isPotentialRetry ornullfor none
-
getLength
public java.lang.Long getLength()
Size of the data, in bytes- Returns:
- value or
nullfor none
-
setLength
public GdataMedia setLength(java.lang.Long length)
Size of the data, in bytes- Parameters:
length- length ornullfor none
-
getMd5Hash
public java.lang.String getMd5Hash()
Scotty-provided MD5 hash for an upload.- Returns:
- value or
nullfor none - See Also:
decodeMd5Hash()
-
decodeMd5Hash
public byte[] decodeMd5Hash()
Scotty-provided MD5 hash for an upload.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getMd5Hash()
-
setMd5Hash
public GdataMedia setMd5Hash(java.lang.String md5Hash)
Scotty-provided MD5 hash for an upload.- Parameters:
md5Hash- md5Hash ornullfor none- See Also:
#encodeMd5Hash()
-
encodeMd5Hash
public GdataMedia encodeMd5Hash(byte[] md5Hash)
Scotty-provided MD5 hash for an upload.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getMediaId
public java.lang.String getMediaId()
Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.- Returns:
- value or
nullfor none - See Also:
decodeMediaId()
-
decodeMediaId
public byte[] decodeMediaId()
Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getMediaId()
-
setMediaId
public GdataMedia setMediaId(java.lang.String mediaId)
Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.- Parameters:
mediaId- mediaId ornullfor none- See Also:
#encodeMediaId()
-
encodeMediaId
public GdataMedia encodeMediaId(byte[] mediaId)
Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getObjectId
public GdataObjectId getObjectId()
Reference to a TI Blob, set if reference_type is BIGSTORE_REF.- Returns:
- value or
nullfor none
-
setObjectId
public GdataMedia setObjectId(GdataObjectId objectId)
Reference to a TI Blob, set if reference_type is BIGSTORE_REF.- Parameters:
objectId- objectId ornullfor none
-
getPath
public java.lang.String getPath()
Path to the data, set if reference_type is PATH- Returns:
- value or
nullfor none
-
setPath
public GdataMedia setPath(java.lang.String path)
Path to the data, set if reference_type is PATH- Parameters:
path- path ornullfor none
-
getReferenceType
public java.lang.String getReferenceType()
Describes what the field reference contains.- Returns:
- value or
nullfor none
-
setReferenceType
public GdataMedia setReferenceType(java.lang.String referenceType)
Describes what the field reference contains.- Parameters:
referenceType- referenceType ornullfor none
-
getSha1Hash
public java.lang.String getSha1Hash()
Scotty-provided SHA1 hash for an upload.- Returns:
- value or
nullfor none - See Also:
decodeSha1Hash()
-
decodeSha1Hash
public byte[] decodeSha1Hash()
Scotty-provided SHA1 hash for an upload.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getSha1Hash()
-
setSha1Hash
public GdataMedia setSha1Hash(java.lang.String sha1Hash)
Scotty-provided SHA1 hash for an upload.- Parameters:
sha1Hash- sha1Hash ornullfor none- See Also:
#encodeSha1Hash()
-
encodeSha1Hash
public GdataMedia encodeSha1Hash(byte[] sha1Hash)
Scotty-provided SHA1 hash for an upload.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getSha256Hash
public java.lang.String getSha256Hash()
Scotty-provided SHA256 hash for an upload.- Returns:
- value or
nullfor none - See Also:
decodeSha256Hash()
-
decodeSha256Hash
public byte[] decodeSha256Hash()
Scotty-provided SHA256 hash for an upload.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getSha256Hash()
-
setSha256Hash
public GdataMedia setSha256Hash(java.lang.String sha256Hash)
Scotty-provided SHA256 hash for an upload.- Parameters:
sha256Hash- sha256Hash ornullfor none- See Also:
#encodeSha256Hash()
-
encodeSha256Hash
public GdataMedia encodeSha256Hash(byte[] sha256Hash)
Scotty-provided SHA256 hash for an upload.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getTimestamp
public java.math.BigInteger getTimestamp()
Time at which the media data was last updated, in milliseconds since UNIX epoch- Returns:
- value or
nullfor none
-
setTimestamp
public GdataMedia setTimestamp(java.math.BigInteger timestamp)
Time at which the media data was last updated, in milliseconds since UNIX epoch- Parameters:
timestamp- timestamp ornullfor none
-
getToken
public java.lang.String getToken()
A unique fingerprint/version id for the media data- Returns:
- value or
nullfor none
-
setToken
public GdataMedia setToken(java.lang.String token)
A unique fingerprint/version id for the media data- Parameters:
token- token ornullfor none
-
set
public GdataMedia set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public GdataMedia clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-