public abstract static class QuotaResponse.Aggregated extends Object
Constructor and Description |
---|
Aggregated() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<QuotaResponse> |
all() |
OptionalLong |
availableTokens() |
static QuotaResponse.Aggregated |
create(Collection<QuotaResponse> responses) |
com.google.common.collect.ImmutableList<QuotaResponse> |
error() |
String |
errorMessage() |
boolean |
hasError() |
com.google.common.collect.ImmutableList<QuotaResponse> |
ok() |
protected abstract com.google.common.collect.ImmutableList<QuotaResponse> |
responses() |
void |
throwOnError() |
public static QuotaResponse.Aggregated create(Collection<QuotaResponse> responses)
protected abstract com.google.common.collect.ImmutableList<QuotaResponse> responses()
public boolean hasError()
public com.google.common.collect.ImmutableList<QuotaResponse> all()
public com.google.common.collect.ImmutableList<QuotaResponse> ok()
public OptionalLong availableTokens()
public com.google.common.collect.ImmutableList<QuotaResponse> error()
public String errorMessage()
public void throwOnError() throws QuotaException
QuotaException