Class GdataBlobstore2Info
- 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.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.GenericJsonInformation 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
-
-
Constructor Summary
Constructors Constructor Description GdataBlobstore2Info()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GdataBlobstore2Infoclone()byte[]decodeDownloadReadHandle()Read handle passed from Bigstore -> Scotty for a GCS download.byte[]decodeUploadMetadataContainer()Metadata passed from Blobstore -> Scotty for a new GCS upload.GdataBlobstore2InfoencodeDownloadReadHandle(byte[] downloadReadHandle)Read handle passed from Bigstore -> Scotty for a GCS download.GdataBlobstore2InfoencodeUploadMetadataContainer(byte[] uploadMetadataContainer)Metadata passed from Blobstore -> Scotty for a new GCS upload.java.lang.LonggetBlobGeneration()The blob generation id.java.lang.StringgetBlobId()The blob id, e.g., /blobstore/prod/playground/scottyjava.lang.StringgetDownloadReadHandle()Read handle passed from Bigstore -> Scotty for a GCS download.java.lang.StringgetReadToken()The blob read token.java.lang.StringgetUploadMetadataContainer()Metadata passed from Blobstore -> Scotty for a new GCS upload.GdataBlobstore2Infoset(java.lang.String fieldName, java.lang.Object value)GdataBlobstore2InfosetBlobGeneration(java.lang.Long blobGeneration)The blob generation id.GdataBlobstore2InfosetBlobId(java.lang.String blobId)The blob id, e.g., /blobstore/prod/playground/scottyGdataBlobstore2InfosetDownloadReadHandle(java.lang.String downloadReadHandle)Read handle passed from Bigstore -> Scotty for a GCS download.GdataBlobstore2InfosetReadToken(java.lang.String readToken)The blob read token.GdataBlobstore2InfosetUploadMetadataContainer(java.lang.String uploadMetadataContainer)Metadata passed from Blobstore -> Scotty for a new GCS upload.-
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
-
getBlobGeneration
public java.lang.Long getBlobGeneration()
The blob generation id.- Returns:
- value or
nullfor none
-
setBlobGeneration
public GdataBlobstore2Info setBlobGeneration(java.lang.Long blobGeneration)
The blob generation id.- Parameters:
blobGeneration- blobGeneration ornullfor none
-
getBlobId
public java.lang.String getBlobId()
The blob id, e.g., /blobstore/prod/playground/scotty- Returns:
- value or
nullfor none
-
setBlobId
public GdataBlobstore2Info setBlobId(java.lang.String blobId)
The blob id, e.g., /blobstore/prod/playground/scotty- Parameters:
blobId- blobId ornullfor 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
nullfor 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
nullfor 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 ornullfor 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
nullfor 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 ornullfor 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
nullfor 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
nullfor 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 ornullfor 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:
setin classcom.google.api.client.json.GenericJson
-
clone
public GdataBlobstore2Info clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-