public static class Storage.BlobListOption extends Option
| Modifier and Type | Method and Description |
|---|---|
static Storage.BlobListOption |
currentDirectory()
If specified, results are returned in a directory-like mode.
|
static Storage.BlobListOption |
fields(Storage.BlobField... fields)
Returns an option to specify the blob's fields to be returned by the RPC call.
|
static Storage.BlobListOption |
pageSize(long pageSize)
Returns an option to specify the maximum number of blobs returned per page.
|
static Storage.BlobListOption |
pageToken(String pageToken)
Returns an option to specify the page token from which to start listing blobs.
|
static Storage.BlobListOption |
prefix(String prefix)
Returns an option to set a prefix to filter results to blobs whose names begin with this
prefix.
|
static Storage.BlobListOption |
userProject(String userProject)
Returns an option to define the billing user project.
|
static Storage.BlobListOption |
versions(boolean versions)
If set to
true, lists all versions of a blob. |
public static Storage.BlobListOption pageSize(long pageSize)
public static Storage.BlobListOption pageToken(String pageToken)
public static Storage.BlobListOption prefix(String prefix)
public static Storage.BlobListOption currentDirectory()
prefix(String), do not contain the '/' delimiter are returned as is. Blobs
whose names, after a possible prefix(String), contain the '/' delimiter, will have
their name truncated after the delimiter and will be returned as Blob objects where
only BlobInfo.getBlobId(), BlobInfo.getSize() and BlobInfo.isDirectory() are set.
For such directory blobs, (BlobId.getGeneration() returns null), BlobInfo.getSize() returns 0 while BlobInfo.isDirectory() returns true.
Duplicate directory blobs are omitted.public static Storage.BlobListOption userProject(String userProject)
userProject - projectId of the billing user project.public static Storage.BlobListOption versions(boolean versions)
true, lists all versions of a blob. The default is false.public static Storage.BlobListOption fields(Storage.BlobField... fields)
BlobListOption.fields) can be used to
specify only the fields of interest. Blob name and bucket are always returned, even if not
specified.Copyright © 2019 Google LLC. All rights reserved.