Class QuotaError (1.43.0)

publicfinalclass QuotaErrorextendsGeneratedMessageV3implementsQuotaErrorOrBuilder

Represents error information for QuotaOperation.

Protobuf type google.api.servicecontrol.v1.QuotaError

Implements

QuotaErrorOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CODE_FIELD_NUMBER

publicstaticfinalintCODE_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

publicstaticfinalintDESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

publicstaticfinalintSTATUS_FIELD_NUMBER
Field Value
Type Description
int

SUBJECT_FIELD_NUMBER

publicstaticfinalintSUBJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticQuotaErrorgetDefaultInstance()
Returns
Type Description
QuotaError

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticQuotaError.BuildernewBuilder()
Returns
Type Description
QuotaError.Builder

newBuilder(QuotaError prototype)

publicstaticQuotaError.BuildernewBuilder(QuotaErrorprototype)
Parameter
Name Description
prototype QuotaError
Returns
Type Description
QuotaError.Builder

parseDelimitedFrom(InputStream input)

publicstaticQuotaErrorparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotaError
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticQuotaErrorparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaError
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticQuotaErrorparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
QuotaError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticQuotaErrorparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticQuotaErrorparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
QuotaError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticQuotaErrorparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticQuotaErrorparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QuotaError
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticQuotaErrorparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaError
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticQuotaErrorparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotaError
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticQuotaErrorparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaError
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticQuotaErrorparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QuotaError
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticQuotaErrorparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaError
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<QuotaError>parser()
Returns
Type Description
Parser<QuotaError>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCode()

publicQuotaError.CodegetCode()

Error code.

.google.api.servicecontrol.v1.QuotaError.Code code = 1;

Returns
Type Description
QuotaError.Code

The code.

getCodeValue()

publicintgetCodeValue()

Error code.

.google.api.servicecontrol.v1.QuotaError.Code code = 1;

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

publicQuotaErrorgetDefaultInstanceForType()
Returns
Type Description
QuotaError

getDescription()

publicStringgetDescription()

Free-form text that provides details on the cause of the error.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

publicByteStringgetDescriptionBytes()

Free-form text that provides details on the cause of the error.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getParserForType()

publicParser<QuotaError>getParserForType()
Returns
Type Description
Parser<QuotaError>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getStatus()

publicStatusgetStatus()

Contains additional information about the quota error. If available, status.code will be non zero.

.google.rpc.Status status = 4;

Returns
Type Description
com.google.rpc.Status

The status.

getStatusOrBuilder()

publicStatusOrBuildergetStatusOrBuilder()

Contains additional information about the quota error. If available, status.code will be non zero.

.google.rpc.Status status = 4;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getSubject()

publicStringgetSubject()

Subject to whom this error applies. See the specific enum for more details on this field. For example, "clientip:<ip address of client>" or "project:<Google developer project id>".

string subject = 2;

Returns
Type Description
String

The subject.

getSubjectBytes()

publicByteStringgetSubjectBytes()

Subject to whom this error applies. See the specific enum for more details on this field. For example, "clientip:<ip address of client>" or "project:<Google developer project id>".

string subject = 2;

Returns
Type Description
ByteString

The bytes for subject.

hasStatus()

publicbooleanhasStatus()

Contains additional information about the quota error. If available, status.code will be non zero.

.google.rpc.Status status = 4;

Returns
Type Description
boolean

Whether the status field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicQuotaError.BuildernewBuilderForType()
Returns
Type Description
QuotaError.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedQuotaError.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QuotaError.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicQuotaError.BuildertoBuilder()
Returns
Type Description
QuotaError.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.