Class GdataCompositeMedia
- 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.GdataCompositeMedia
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class GdataCompositeMedia extends com.google.api.client.json.GenericJsonA sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.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 GdataCompositeMedia()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GdataCompositeMediaclone()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()MD5 hash for the payload.byte[]decodeSha1Hash()SHA-1 hash for the payload.GdataCompositeMediaencodeBlobRef(byte[] blobRef)Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef.GdataCompositeMediaencodeCosmoBinaryReference(byte[] cosmoBinaryReference)A binary data reference for a media download.GdataCompositeMediaencodeInline(byte[] inline)Media data, set if reference_type is INLINEGdataCompositeMediaencodeMd5Hash(byte[] md5Hash)MD5 hash for the payload.GdataCompositeMediaencodeSha1Hash(byte[] sha1Hash)SHA-1 hash for the payload.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.lang.StringgetCosmoBinaryReference()A binary data reference for a media download.java.lang.LonggetCrc32cHash()crc32.c hash for the payload.java.lang.StringgetInline()Media data, set if reference_type is INLINEjava.lang.LonggetLength()Size of the data, in bytesjava.lang.StringgetMd5Hash()MD5 hash for the payload.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()SHA-1 hash for the payload.GdataCompositeMediaset(java.lang.String fieldName, java.lang.Object value)GdataCompositeMediasetBlobRef(java.lang.String blobRef)Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef.GdataCompositeMediasetBlobstore2Info(GdataBlobstore2Info blobstore2Info)Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.GdataCompositeMediasetCosmoBinaryReference(java.lang.String cosmoBinaryReference)A binary data reference for a media download.GdataCompositeMediasetCrc32cHash(java.lang.Long crc32cHash)crc32.c hash for the payload.GdataCompositeMediasetInline(java.lang.String inline)Media data, set if reference_type is INLINEGdataCompositeMediasetLength(java.lang.Long length)Size of the data, in bytesGdataCompositeMediasetMd5Hash(java.lang.String md5Hash)MD5 hash for the payload.GdataCompositeMediasetObjectId(GdataObjectId objectId)Reference to a TI Blob, set if reference_type is BIGSTORE_REF.GdataCompositeMediasetPath(java.lang.String path)Path to the data, set if reference_type is PATHGdataCompositeMediasetReferenceType(java.lang.String referenceType)Describes what the field reference contains.GdataCompositeMediasetSha1Hash(java.lang.String sha1Hash)SHA-1 hash for the payload.-
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
-
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 GdataCompositeMedia 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 GdataCompositeMedia 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 GdataCompositeMedia 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
-
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 GdataCompositeMedia 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 GdataCompositeMedia 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()
crc32.c hash for the payload.- Returns:
- value or
nullfor none
-
setCrc32cHash
public GdataCompositeMedia setCrc32cHash(java.lang.Long crc32cHash)
crc32.c hash for the payload.- Parameters:
crc32cHash- crc32cHash 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 GdataCompositeMedia setInline(java.lang.String inline)
Media data, set if reference_type is INLINE- Parameters:
inline- inline ornullfor none- See Also:
#encodeInline()
-
encodeInline
public GdataCompositeMedia encodeInline(byte[] inline)
Media data, set if reference_type is INLINE- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
getLength
public java.lang.Long getLength()
Size of the data, in bytes- Returns:
- value or
nullfor none
-
setLength
public GdataCompositeMedia setLength(java.lang.Long length)
Size of the data, in bytes- Parameters:
length- length ornullfor none
-
getMd5Hash
public java.lang.String getMd5Hash()
MD5 hash for the payload.- Returns:
- value or
nullfor none - See Also:
decodeMd5Hash()
-
decodeMd5Hash
public byte[] decodeMd5Hash()
MD5 hash for the payload.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getMd5Hash()
-
setMd5Hash
public GdataCompositeMedia setMd5Hash(java.lang.String md5Hash)
MD5 hash for the payload.- Parameters:
md5Hash- md5Hash ornullfor none- See Also:
#encodeMd5Hash()
-
encodeMd5Hash
public GdataCompositeMedia encodeMd5Hash(byte[] md5Hash)
MD5 hash for the payload.- 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 GdataCompositeMedia 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 GdataCompositeMedia 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 GdataCompositeMedia setReferenceType(java.lang.String referenceType)
Describes what the field reference contains.- Parameters:
referenceType- referenceType ornullfor none
-
getSha1Hash
public java.lang.String getSha1Hash()
SHA-1 hash for the payload.- Returns:
- value or
nullfor none - See Also:
decodeSha1Hash()
-
decodeSha1Hash
public byte[] decodeSha1Hash()
SHA-1 hash for the payload.- Returns:
- Base64 decoded value or
nullfor none - Since:
- 1.14
- See Also:
getSha1Hash()
-
setSha1Hash
public GdataCompositeMedia setSha1Hash(java.lang.String sha1Hash)
SHA-1 hash for the payload.- Parameters:
sha1Hash- sha1Hash ornullfor none- See Also:
#encodeSha1Hash()
-
encodeSha1Hash
public GdataCompositeMedia encodeSha1Hash(byte[] sha1Hash)
SHA-1 hash for the payload.- Since:
- 1.14
- See Also:
The value is encoded Base64 or for none.
-
set
public GdataCompositeMedia set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public GdataCompositeMedia clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-