public static class Storage.BlobListOption extends Option<com.google.cloud.storage.UnifiedOpts.ObjectListOpt>
| Modifier and Type | Method and Description |
|---|---|
static Storage.BlobListOption |
currentDirectory()
If specified, results are returned in a directory-like mode.
|
static Storage.BlobListOption |
delimiter(@NonNull String delimiter)
Returns an option to set a delimiter.
|
static Storage.BlobListOption |
endOffset(@NonNull String endOffset)
Returns an option to set a endOffset to filter results to objects whose names are
lexicographically before endOffset.
|
boolean |
equals(Object o)
Deprecated.
|
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()
Deprecated.
|
static Storage.BlobListOption |
pageSize(long pageSize)
Returns an option to specify the maximum number of blobs returned per page.
|
static Storage.BlobListOption |
pageToken(@NonNull String pageToken)
Returns an option to specify the page token from which to start listing blobs.
|
static Storage.BlobListOption |
prefix(@NonNull String prefix)
Returns an option to set a prefix to filter results to blobs whose names begin with this
prefix.
|
static Storage.BlobListOption |
startOffset(@NonNull String startOffset)
Returns an option to set a startOffset to filter results to objects whose names are
lexicographically equal to or after startOffset.
|
String |
toString()
Deprecated.
|
static Storage.BlobListOption |
userProject(@NonNull 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. |
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption pageSize(long pageSize)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption pageToken(@NonNull String pageToken)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption prefix(@NonNull String prefix)
@TransportCompatibility(value={HTTP,GRPC}) 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.@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption delimiter(@NonNull String delimiter)
delimiter - generally '/' is the one used most often, but you can used other delimiters
as well.@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption startOffset(@NonNull String startOffset)
startOffset - startOffset to filter the results@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption endOffset(@NonNull String endOffset)
endOffset - endOffset to filter the results@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption userProject(@NonNull String userProject)
userProject - projectId of the billing user project.@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobListOption versions(boolean versions)
true, lists all versions of a blob. The default is false.@TransportCompatibility(value={HTTP,GRPC}) 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 © 2023 Google LLC. All rights reserved.