Class 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.GenericJson
    A 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
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Detail

      • GdataCompositeMedia

        public GdataCompositeMedia()
    • 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 null for 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 null for 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 or null for 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 null for 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 or null for 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 null for 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 null for 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 or null for 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 null for none
      • setCrc32cHash

        public GdataCompositeMedia setCrc32cHash​(java.lang.Long crc32cHash)
        crc32.c hash for the payload.
        Parameters:
        crc32cHash - crc32cHash or null for none
      • getInline

        public java.lang.String getInline()
        Media data, set if reference_type is INLINE
        Returns:
        value or null for none
        See Also:
        decodeInline()
      • decodeInline

        public byte[] decodeInline()
        Media data, set if reference_type is INLINE
        Returns:
        Base64 decoded value or null for 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 or null for 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 null for none
      • setLength

        public GdataCompositeMedia setLength​(java.lang.Long length)
        Size of the data, in bytes
        Parameters:
        length - length or null for none
      • getMd5Hash

        public java.lang.String getMd5Hash()
        MD5 hash for the payload.
        Returns:
        value or null for none
        See Also:
        decodeMd5Hash()
      • decodeMd5Hash

        public byte[] decodeMd5Hash()
        MD5 hash for the payload.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getMd5Hash()
      • setMd5Hash

        public GdataCompositeMedia setMd5Hash​(java.lang.String md5Hash)
        MD5 hash for the payload.
        Parameters:
        md5Hash - md5Hash or null for 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 null for none
      • setObjectId

        public GdataCompositeMedia setObjectId​(GdataObjectId objectId)
        Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
        Parameters:
        objectId - objectId or null for none
      • getPath

        public java.lang.String getPath()
        Path to the data, set if reference_type is PATH
        Returns:
        value or null for none
      • setPath

        public GdataCompositeMedia setPath​(java.lang.String path)
        Path to the data, set if reference_type is PATH
        Parameters:
        path - path or null for none
      • getReferenceType

        public java.lang.String getReferenceType()
        Describes what the field reference contains.
        Returns:
        value or null for none
      • setReferenceType

        public GdataCompositeMedia setReferenceType​(java.lang.String referenceType)
        Describes what the field reference contains.
        Parameters:
        referenceType - referenceType or null for none
      • getSha1Hash

        public java.lang.String getSha1Hash()
        SHA-1 hash for the payload.
        Returns:
        value or null for none
        See Also:
        decodeSha1Hash()
      • decodeSha1Hash

        public byte[] decodeSha1Hash()
        SHA-1 hash for the payload.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getSha1Hash()
      • setSha1Hash

        public GdataCompositeMedia setSha1Hash​(java.lang.String sha1Hash)
        SHA-1 hash for the payload.
        Parameters:
        sha1Hash - sha1Hash or null for 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:
        set in class com.google.api.client.json.GenericJson
      • clone

        public GdataCompositeMedia clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson