Class QuotaFailure.Violation (2.29.0)

public static final class QuotaFailure.Violation extends GeneratedMessageV3 implements QuotaFailure.ViolationOrBuilder

A message type used to describe a single quota violation. For example, a daily quota or a custom quota that was exceeded.

Protobuf type google.rpc.QuotaFailure.Violation

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static QuotaFailure.Violation getDefaultInstance()
Returns
TypeDescription
QuotaFailure.Violation

getDescriptor()

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

newBuilder()

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

newBuilder(QuotaFailure.Violation prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public QuotaFailure.Violation getDefaultInstanceForType()
Returns
TypeDescription
QuotaFailure.Violation

getDescription()

public String getDescription()

A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console.

For example: "Service disabled" or "Daily Limit for read operations exceeded".

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console.

For example: "Service disabled" or "Daily Limit for read operations exceeded".

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubject()

public String getSubject()

The subject on which the quota check failed. For example, "clientip:<ip address of client>" or "project:<Google developer project id>".

string subject = 1;

Returns
TypeDescription
String

The subject.

getSubjectBytes()

public ByteString getSubjectBytes()

The subject on which the quota check failed. For example, "clientip:<ip address of client>" or "project:<Google developer project id>".

string subject = 1;

Returns
TypeDescription
ByteString

The bytes for subject.

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.Violation.Builder newBuilderForType()
Returns
TypeDescription
QuotaFailure.Violation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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