Class QuotaFailure (2.9.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static QuotaFailure getDefaultInstance()
Returns
TypeDescription
QuotaFailure

getDescriptor()

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

newBuilder()

public static QuotaFailure.Builder newBuilder()
Returns
TypeDescription
QuotaFailure.Builder

newBuilder(QuotaFailure prototype)

public static QuotaFailure.Builder newBuilder(QuotaFailure prototype)
Parameter
NameDescription
prototypeQuotaFailure
Returns
TypeDescription
QuotaFailure.Builder

parseDelimitedFrom(InputStream input)

public static QuotaFailure parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QuotaFailure parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QuotaFailure parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QuotaFailure parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QuotaFailure parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QuotaFailure parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QuotaFailure parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaFailure
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QuotaFailure> parser()
Returns
TypeDescription
Parser<QuotaFailure>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public QuotaFailure getDefaultInstanceForType()
Returns
TypeDescription
QuotaFailure

getParserForType()

public Parser<QuotaFailure> getParserForType()
Returns
TypeDescription
Parser<QuotaFailure>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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

getViolationsCount()

public int getViolationsCount()

Describes all quota violations.

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

Returns
TypeDescription
int

getViolationsList()

public List<QuotaFailure.Violation> getViolationsList()

Describes all quota violations.

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

Returns
TypeDescription
List<Violation>

getViolationsOrBuilder(int index)

public QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(int index)

Describes all quota violations.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaFailure.ViolationOrBuilder

getViolationsOrBuilderList()

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

Describes all quota violations.

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

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public QuotaFailure.Builder newBuilderForType()
Returns
TypeDescription
QuotaFailure.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QuotaFailure.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QuotaFailure.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public QuotaFailure.Builder toBuilder()
Returns
TypeDescription
QuotaFailure.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException