public final class BlobId extends Object implements Serializable
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.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBucket()
Returns the name of the bucket containing the blob.
|
Long |
getGeneration()
Returns blob's data generation.
|
String |
getName()
Returns the name of the blob.
|
int |
hashCode() |
static BlobId |
of(String bucket,
String name)
Creates a blob identifier.
|
static BlobId |
of(String bucket,
String name,
Long generation)
Creates a
BlobId object. |
String |
toString() |
public String getBucket()
public String getName()
public Long getGeneration()
public static BlobId of(String bucket, String name)
null
.bucket
- the name of the bucket that contains the blobname
- the name of the blobCopyright © 2019 Google LLC. All rights reserved.