public static class Storage.BlobGetOption extends Option
Modifier and Type | Method and Description |
---|---|
static Storage.BlobGetOption |
fields(Storage.BlobField... fields)
Returns an option to specify the blob's fields to be returned by the RPC call.
|
static Storage.BlobGetOption |
generationMatch()
Returns an option for blob's data generation match.
|
static Storage.BlobGetOption |
generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Storage.BlobGetOption |
generationNotMatch()
Returns an option for blob's data generation mismatch.
|
static Storage.BlobGetOption |
generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
static Storage.BlobGetOption |
metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Storage.BlobGetOption |
metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobGetOption |
userProject(String userProject)
Returns an option for blob's billing user project.
|
public static Storage.BlobGetOption generationMatch()
BlobId
object. When this option is passed to
a Storage
method and BlobId.getGeneration()
is null
or no BlobId
is provided an exception is thrown.public static Storage.BlobGetOption generationMatch(long generation)
public static Storage.BlobGetOption generationNotMatch()
BlobId
object. When this option is passed to
a Storage
method and BlobId.getGeneration()
is null
or no BlobId
is provided an exception is thrown.public static Storage.BlobGetOption generationNotMatch(long generation)
public static Storage.BlobGetOption metagenerationMatch(long metageneration)
public static Storage.BlobGetOption metagenerationNotMatch(long metageneration)
public static Storage.BlobGetOption fields(Storage.BlobField... fields)
BlobGetOption.fields
) can be used to
specify only the fields of interest. Blob name and bucket are always returned, even if not
specified.public static Storage.BlobGetOption userProject(String userProject)
Copyright © 2019 Google LLC. All rights reserved.