Class BlobId (2.22.3)

public final class BlobId implements Serializable

Google Storage Object identifier. A BlobId object includes the name of the containing bucket, the blob's name and possibly the blob's generation. If #getGeneration() is null the identifier refers to the latest blob's generation.

Inheritance

Object > BlobId

Implements

Serializable

Static Methods

fromGsUtilUri(String gsUtilUri)

public static BlobId fromGsUtilUri(String gsUtilUri)

Creates a BlobId object.

Parameter
NameDescription
gsUtilUriString

the Storage url to create the blob from

Returns
TypeDescription
BlobId

of(String bucket, String name)

public static BlobId of(String bucket, String name)

Creates a blob identifier. Generation is set to null.

Parameters
NameDescription
bucketString

the name of the bucket that contains the blob

nameString

the name of the blob

Returns
TypeDescription
BlobId

of(String bucket, String name, Long generation)

public static BlobId of(String bucket, String name, Long generation)

Creates a BlobId object.

Parameters
NameDescription
bucketString

name of the containing bucket