public class ListStatusContext extends OperationContext<ListStatusPOptions.Builder,ListStatusContext>
ListStatusPOptions
.Modifier and Type | Method and Description |
---|---|
static ListStatusContext |
create(ListStatusPartialPOptions.Builder optionsBuilder) |
static ListStatusContext |
create(ListStatusPOptions.Builder optionsBuilder) |
static ListStatusContext |
defaults() |
boolean |
donePartialListing() |
Optional<ListStatusPartialPOptions.Builder> |
getPartialOptions() |
long |
getTotalListings()
Get the value set by setTotalListing.
|
boolean |
isDoneListing() |
boolean |
isPartialListing() |
boolean |
isTruncated() |
boolean |
listedItem()
Called each time an item is listed.
|
static ListStatusContext |
mergeFrom(ListStatusPartialPOptions.Builder optionsBuilder)
Merges and embeds the given
ListStatusPartialPOptions with the corresponding
master options. |
static ListStatusContext |
mergeFrom(ListStatusPOptions.Builder optionsBuilder)
Merges and embeds the given
ListStatusPOptions with the corresponding master options. |
void |
setTotalListings(long count)
Set the total number of listings in this call,
this should be -1 if a recursive listing.
|
String |
toString() |
getCancelledTrackers, getOperationId, getOptions, withTracker
public Optional<ListStatusPartialPOptions.Builder> getPartialOptions()
public void setTotalListings(long count)
count
- the number of listingspublic long getTotalListings()
public static ListStatusContext create(ListStatusPOptions.Builder optionsBuilder)
optionsBuilder
- Builder for proto ListStatusPOptions
ListStatusContext
with the given optionspublic static ListStatusContext create(ListStatusPartialPOptions.Builder optionsBuilder)
optionsBuilder
- Builder for proto ListStatusPOptions
ListStatusContext
with the given optionspublic static ListStatusContext mergeFrom(ListStatusPOptions.Builder optionsBuilder)
ListStatusPOptions
with the corresponding master options.optionsBuilder
- Builder for proto ListStatusPOptions
to merge with defaultsListStatusContext
with default values for masterpublic static ListStatusContext mergeFrom(ListStatusPartialPOptions.Builder optionsBuilder)
ListStatusPartialPOptions
with the corresponding
master options.optionsBuilder
- Builder for proto ListStatusPartialPOptions
to merge with
defaultsListStatusContext
with default values for masterpublic static ListStatusContext defaults()
ListStatusContext
with default values for masterpublic boolean listedItem()
public boolean isDoneListing()
public boolean isPartialListing()
public boolean donePartialListing()
public boolean isTruncated()
Copyright © 2023. All Rights Reserved.