Class QuotaFailure.Builder (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class QuotaFailure.Builder extends GeneratedMessageV3.Builder<QuotaFailure.Builder> implements QuotaFailureOrBuilder

Describes how a quota check failed. For example if a daily limit was exceeded for the calling project, a service could respond with a QuotaFailure detail containing the project id and the description of the quota limit that was exceeded. If the calling project hasn't enabled the service in the developer console, then a service could respond with the project id and set service_disabled to true. Also see RetryInfo and Help types for other details about handling a quota failure.

Protobuf type google.rpc.QuotaFailure

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllViolations(Iterable<? extends QuotaFailure.Violation> values)

public QuotaFailure.Builder addAllViolations(Iterable<? extends QuotaFailure.Violation> values)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.rpc.QuotaFailure.Violation>
Returns
TypeDescription
QuotaFailure.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QuotaFailure.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QuotaFailure.Builder
Overrides

addViolations(QuotaFailure.Violation value)

public QuotaFailure.Builder addViolations(QuotaFailure.Violation value)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameter
NameDescription
valueQuotaFailure.Violation
Returns
TypeDescription
QuotaFailure.Builder

addViolations(QuotaFailure.Violation.Builder builderForValue)

public QuotaFailure.Builder addViolations(QuotaFailure.Violation.Builder builderForValue)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameter
NameDescription
builderForValueQuotaFailure.Violation.Builder
Returns
TypeDescription
QuotaFailure.Builder

addViolations(int index, QuotaFailure.Violation value)

public QuotaFailure.Builder addViolations(int index, QuotaFailure.Violation value)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameters
NameDescription
indexint
valueQuotaFailure.Violation
Returns
TypeDescription
QuotaFailure.Builder

addViolations(int index, QuotaFailure.Violation.Builder builderForValue)

public QuotaFailure.Builder addViolations(int index, QuotaFailure.Violation.Builder builderForValue)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameters
NameDescription
indexint
builderForValueQuotaFailure.Violation.Builder
Returns
TypeDescription
QuotaFailure.Builder

addViolationsBuilder()

public QuotaFailure.Violation.Builder addViolationsBuilder()

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Returns
TypeDescription
QuotaFailure.Violation.Builder

addViolationsBuilder(int index)

public QuotaFailure.Violation.Builder addViolationsBuilder(int index)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaFailure.Violation.Builder

build()

public QuotaFailure build()
Returns
TypeDescription
QuotaFailure

buildPartial()

public QuotaFailure buildPartial()
Returns
TypeDescription
QuotaFailure

clear()

public QuotaFailure.Builder clear()
Returns
TypeDescription
QuotaFailure.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QuotaFailure.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QuotaFailure.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaFailure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QuotaFailure.Builder
Overrides

clearViolations()

public QuotaFailure.Builder clearViolations()

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Returns
TypeDescription
QuotaFailure.Builder

clone()

public QuotaFailure.Builder clone()
Returns
TypeDescription
QuotaFailure.Builder
Overrides

getDefaultInstanceForType()

public QuotaFailure getDefaultInstanceForType()
Returns
TypeDescription
QuotaFailure

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getViolations(int index)

public QuotaFailure.Violation getViolations(int index)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaFailure.Violation

getViolationsBuilder(int index)

public QuotaFailure.Violation.Builder getViolationsBuilder(int index)

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaFailure.Violation.Builder

getViolationsBuilderList()

public List<QuotaFailure.Violation.Builder> getViolationsBuilderList()

Describes all quota violations.

repeated .google.rpc.QuotaFailure.Violation violations = 1;

Returns
TypeDescription
List<Builder>
</