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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > QuotaFailureImplements
QuotaFailureOrBuilderStatic Fields
VIOLATIONS_FIELD_NUMBER
public static final int VIOLATIONS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static QuotaFailure getDefaultInstance()
Type | Description |
QuotaFailure |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static QuotaFailure.Builder newBuilder()
Type | Description |
QuotaFailure.Builder |
newBuilder(QuotaFailure prototype)
public static QuotaFailure.Builder newBuilder(QuotaFailure prototype)
Name | Description |
prototype | QuotaFailure |
Type | Description |
QuotaFailure.Builder |
parseDelimitedFrom(InputStream input)
public static QuotaFailure parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
QuotaFailure |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotaFailure parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QuotaFailure |
Type | Description |
IOException |
parseFrom(byte[] data)
public static QuotaFailure parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
QuotaFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QuotaFailure parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QuotaFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static QuotaFailure parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
QuotaFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QuotaFailure parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QuotaFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static QuotaFailure parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
QuotaFailure |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotaFailure parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QuotaFailure |
Type | Description |
IOException |
parseFrom(InputStream input)
public static QuotaFailure parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
QuotaFailure |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotaFailure parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QuotaFailure |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static QuotaFailure parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
QuotaFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QuotaFailure parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QuotaFailure |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<QuotaFailure> parser()
Type | Description |
Parser<QuotaFailure> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public QuotaFailure getDefaultInstanceForType()
Type | Description |
QuotaFailure |
getParserForType()
public Parser<QuotaFailure> getParserForType()
Type | Description |
Parser<QuotaFailure> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
getViolations(int index)
public QuotaFailure.Violation getViolations(int index)
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Name | Description |
index | int |
Type | Description |
QuotaFailure.Violation |
getViolationsCount()
public int getViolationsCount()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Type | Description |
int |
getViolationsList()
public List<QuotaFailure.Violation> getViolationsList()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Type | Description |
List<Violation> |
getViolationsOrBuilder(int index)
public QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(int index)
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Name | Description |
index | int |
Type | Description |
QuotaFailure.ViolationOrBuilder |
getViolationsOrBuilderList()
public List<? extends QuotaFailure.ViolationOrBuilder> getViolationsOrBuilderList()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Type | Description |
List<? extends com.google.rpc.QuotaFailure.ViolationOrBuilder> |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public QuotaFailure.Builder newBuilderForType()
Type | Description |
QuotaFailure.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected QuotaFailure.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
QuotaFailure.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public QuotaFailure.Builder toBuilder()
Type | Description |
QuotaFailure.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |