public static class Storage.BlobListOption extends Object
| Modifier and Type | Method and Description |
|---|---|
static Storage.BlobListOption |
currentDirectory()
If specified, results are returned in a directory-like mode.
|
boolean |
equals(Object obj) |
static Storage.BlobListOption |
fields(Storage.BlobField... fields)
Returns an option to specify the blob's fields to be returned by the RPC call.
|
int |
hashCode() |
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.
|
String |
toString() |
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.blobId(), BlobInfo.size() and BlobInfo.isDirectory() are set. For
such directory blobs, (BlobId.generation() returns null), BlobInfo.size()
returns 0 while BlobInfo.isDirectory() returns true. Duplicate directory
blobs are omitted.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 © 2016 Google. All rights reserved.