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