public final class CompositeMedia
extends com.google.api.client.json.GenericJson
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 Google Wallet API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CompositeMedia() |
Modifier and Type | Method and Description |
---|---|
CompositeMedia |
clone() |
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 INLINE
|
byte[] |
decodeMd5Hash()
MD5 hash for the payload.
|
byte[] |
decodeSha1Hash()
SHA-1 hash for the payload.
|
CompositeMedia |
encodeBlobRef(byte[] blobRef)
Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte
representation of a blobstore.BlobRef.
|
CompositeMedia |
encodeCosmoBinaryReference(byte[] cosmoBinaryReference)
A binary data reference for a media download.
|
CompositeMedia |
encodeInline(byte[] inline)
Media data, set if reference_type is INLINE
|
CompositeMedia |
encodeMd5Hash(byte[] md5Hash)
MD5 hash for the payload.
|
CompositeMedia |
encodeSha1Hash(byte[] sha1Hash)
SHA-1 hash for the payload.
|
String |
getBlobRef()
Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte
representation of a blobstore.BlobRef.
|
Blobstore2Info |
getBlobstore2Info()
Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
|
String |
getCosmoBinaryReference()
A binary data reference for a media download.
|
Long |
getCrc32cHash()
crc32.c hash for the payload.
|
String |
getInline()
Media data, set if reference_type is INLINE
|
Long |
getLength()
Size of the data, in bytes
|
String |
getMd5Hash()
MD5 hash for the payload.
|
ObjectId |
getObjectId()
Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
|
String |
getPath()
Path to the data, set if reference_type is PATH
|
String |
getReferenceType()
Describes what the field reference contains.
|
String |
getSha1Hash()
SHA-1 hash for the payload.
|
CompositeMedia |
set(String fieldName,
Object value) |
CompositeMedia |
setBlobRef(String blobRef)
Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte
representation of a blobstore.BlobRef.
|
CompositeMedia |
setBlobstore2Info(Blobstore2Info blobstore2Info)
Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
|
CompositeMedia |
setCosmoBinaryReference(String cosmoBinaryReference)
A binary data reference for a media download.
|
CompositeMedia |
setCrc32cHash(Long crc32cHash)
crc32.c hash for the payload.
|
CompositeMedia |
setInline(String inline)
Media data, set if reference_type is INLINE
|
CompositeMedia |
setLength(Long length)
Size of the data, in bytes
|
CompositeMedia |
setMd5Hash(String md5Hash)
MD5 hash for the payload.
|
CompositeMedia |
setObjectId(ObjectId objectId)
Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
|
CompositeMedia |
setPath(String path)
Path to the data, set if reference_type is PATH
|
CompositeMedia |
setReferenceType(String referenceType)
Describes what the field reference contains.
|
CompositeMedia |
setSha1Hash(String sha1Hash)
SHA-1 hash for the payload.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getBlobRef()
null
for nonedecodeBlobRef()
public byte[] decodeBlobRef()
null
for nonegetBlobRef()
public CompositeMedia setBlobRef(String blobRef)
blobRef
- blobRef or null
for none#encodeBlobRef()
public CompositeMedia encodeBlobRef(byte[] blobRef)
The value is encoded Base64 or {@code null} for none.
public Blobstore2Info getBlobstore2Info()
null
for nonepublic CompositeMedia setBlobstore2Info(Blobstore2Info blobstore2Info)
blobstore2Info
- blobstore2Info or null
for nonepublic String getCosmoBinaryReference()
null
for nonedecodeCosmoBinaryReference()
public byte[] decodeCosmoBinaryReference()
null
for nonegetCosmoBinaryReference()
public CompositeMedia setCosmoBinaryReference(String cosmoBinaryReference)
cosmoBinaryReference
- cosmoBinaryReference or null
for none#encodeCosmoBinaryReference()
public CompositeMedia encodeCosmoBinaryReference(byte[] cosmoBinaryReference)
The value is encoded Base64 or {@code null} for none.
public Long getCrc32cHash()
null
for nonepublic CompositeMedia setCrc32cHash(Long crc32cHash)
crc32cHash
- crc32cHash or null
for nonepublic String getInline()
null
for nonedecodeInline()
public byte[] decodeInline()
null
for nonegetInline()
public CompositeMedia setInline(String inline)
inline
- inline or null
for none#encodeInline()
public CompositeMedia encodeInline(byte[] inline)
The value is encoded Base64 or {@code null} for none.
public Long getLength()
null
for nonepublic CompositeMedia setLength(Long length)
length
- length or null
for nonepublic String getMd5Hash()
null
for nonedecodeMd5Hash()
public byte[] decodeMd5Hash()
null
for nonegetMd5Hash()
public CompositeMedia setMd5Hash(String md5Hash)
md5Hash
- md5Hash or null
for none#encodeMd5Hash()
public CompositeMedia encodeMd5Hash(byte[] md5Hash)
The value is encoded Base64 or {@code null} for none.
public ObjectId getObjectId()
null
for nonepublic CompositeMedia setObjectId(ObjectId objectId)
objectId
- objectId or null
for nonepublic String getPath()
null
for nonepublic CompositeMedia setPath(String path)
path
- path or null
for nonepublic String getReferenceType()
null
for nonepublic CompositeMedia setReferenceType(String referenceType)
referenceType
- referenceType or null
for nonepublic String getSha1Hash()
null
for nonedecodeSha1Hash()
public byte[] decodeSha1Hash()
null
for nonegetSha1Hash()
public CompositeMedia setSha1Hash(String sha1Hash)
sha1Hash
- sha1Hash or null
for none#encodeSha1Hash()
public CompositeMedia encodeSha1Hash(byte[] sha1Hash)
The value is encoded Base64 or {@code null} for none.
public CompositeMedia set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public CompositeMedia clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.