Class GdataBlobstore2Info

  • All Implemented Interfaces:
    java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public final class GdataBlobstore2Info
    extends com.google.api.client.json.GenericJson
    Information to read/write to blobstore2.

    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

      • GdataBlobstore2Info

        public GdataBlobstore2Info()
    • Method Detail

      • getBlobGeneration

        public java.lang.Long getBlobGeneration()
        The blob generation id.
        Returns:
        value or null for none
      • setBlobGeneration

        public GdataBlobstore2Info setBlobGeneration​(java.lang.Long blobGeneration)
        The blob generation id.
        Parameters:
        blobGeneration - blobGeneration or null for none
      • getBlobId

        public java.lang.String getBlobId()
        The blob id, e.g., /blobstore/prod/playground/scotty
        Returns:
        value or null for none
      • setBlobId

        public GdataBlobstore2Info setBlobId​(java.lang.String blobId)
        The blob id, e.g., /blobstore/prod/playground/scotty
        Parameters:
        blobId - blobId or null for none
      • getDownloadReadHandle

        public java.lang.String getDownloadReadHandle()
        Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
        Returns:
        value or null for none
        See Also:
        decodeDownloadReadHandle()
      • decodeDownloadReadHandle

        public byte[] decodeDownloadReadHandle()
        Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getDownloadReadHandle()
      • setDownloadReadHandle

        public GdataBlobstore2Info setDownloadReadHandle​(java.lang.String downloadReadHandle)
        Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
        Parameters:
        downloadReadHandle - downloadReadHandle or null for none
        See Also:
        #encodeDownloadReadHandle()
      • encodeDownloadReadHandle

        public GdataBlobstore2Info encodeDownloadReadHandle​(byte[] downloadReadHandle)
        Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
        Since:
        1.14
        See Also:
        The value is encoded Base64 or for none.
      • getReadToken

        public java.lang.String getReadToken()
        The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
        Returns:
        value or null for none
      • setReadToken

        public GdataBlobstore2Info setReadToken​(java.lang.String readToken)
        The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
        Parameters:
        readToken - readToken or null for none
      • getUploadMetadataContainer

        public java.lang.String getUploadMetadataContainer()
        Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
        Returns:
        value or null for none
        See Also:
        decodeUploadMetadataContainer()
      • decodeUploadMetadataContainer

        public byte[] decodeUploadMetadataContainer()
        Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getUploadMetadataContainer()
      • setUploadMetadataContainer

        public GdataBlobstore2Info setUploadMetadataContainer​(java.lang.String uploadMetadataContainer)
        Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
        Parameters:
        uploadMetadataContainer - uploadMetadataContainer or null for none
        See Also:
        #encodeUploadMetadataContainer()
      • encodeUploadMetadataContainer

        public GdataBlobstore2Info encodeUploadMetadataContainer​(byte[] uploadMetadataContainer)
        Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
        Since:
        1.14
        See Also:
        The value is encoded Base64 or for none.
      • set

        public GdataBlobstore2Info set​(java.lang.String fieldName,
                                       java.lang.Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

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