Class QuotaFailure (2.38.0)

public final class QuotaFailure extends GeneratedMessageV3 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 Fields

VIOLATIONS_FIELD_NUMBER

public static final int VIOLATIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QuotaFailure getDefaultInstance()
Returns
Type Description
QuotaFailure

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static QuotaFailure.Builder newBuilder()
Returns
Type Description
QuotaFailure.Builder

newBuilder(QuotaFailure prototype)

public static QuotaFailure.Builder newBuilder(QuotaFailure prototype)
Parameter
Name Description
prototype QuotaFailure
Returns
Type Description
QuotaFailure.Builder

parseDelimitedFrom(InputStream input)

public static QuotaFailure parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotaFailure
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaFailure
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static QuotaFailure parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
QuotaFailure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaFailure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QuotaFailure parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QuotaFailure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaFailure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QuotaFailure parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QuotaFailure
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaFailure
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static QuotaFailure parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotaFailure
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaFailure
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static QuotaFailure parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QuotaFailure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaFailure
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<QuotaFailure> parser()
Returns
Type Description
Parser<QuotaFailure>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public QuotaFailure getDefaultInstanceForType()
Returns
Type Description
QuotaFailure

getParserForType()

public Parser<QuotaFailure> getParserForType()
Returns
Type Description
Parser<QuotaFailure>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getViolations(int index)

public QuotaFailure.Violation getViolations(int index)

Describes all quota violations.

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

Parameter
Name Description
index int
Returns
Type Description
QuotaFailure.Violation

getViolationsCount()

public int getViolationsCount()

Describes all quota violations.

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

Returns
Type Description
int

getViolationsList()

public List<QuotaFailure.Violation> getViolationsList()

Describes all quota violations.

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

Returns
Type Description
List<Violation>

getViolationsOrBuilder(int index)

public QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(int index)

Describes all quota violations.

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

Parameter
Name Description
index int
Returns
Type Description
QuotaFailure.ViolationOrBuilder

getViolationsOrBuilderList()

public List<? extends QuotaFailure.ViolationOrBuilder> getViolationsOrBuilderList()

Describes all quota violations.

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

Returns
Type Description
List<? extends com.google.rpc.QuotaFailure.ViolationOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public QuotaFailure.Builder newBuilderForType()
Returns
Type Description
QuotaFailure.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QuotaFailure.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QuotaFailure.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public QuotaFailure.Builder toBuilder()
Returns
Type Description
QuotaFailure.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException