Class QuotaFailure.Types.Violation (2.10.0)

public sealed class QuotaFailure.Types.Violation : IMessage<QuotaFailure.Types.Violation>, IEquatable<QuotaFailure.Types.Violation>, IDeepCloneable<QuotaFailure.Types.Violation>, IBufferMessage, IMessage

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

Inheritance

object > QuotaFailure.Types.Violation

Namespace

Google.Rpc

Assembly

Google.Api.CommonProtos.dll

Constructors

Violation()

public Violation()

Violation(Violation)

public Violation(QuotaFailure.Types.Violation other)
Parameter
Name Description
other QuotaFailureTypesViolation

Fields

DescriptionFieldNumber

public const int DescriptionFieldNumber = 2

Field number for the "description" field.

Field Value
Type Description
int

SubjectFieldNumber

public const int SubjectFieldNumber = 1

Field number for the "subject" field.

Field Value
Type Description
int

Properties

Description

public string Description { get; set; }

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".

Property Value
Type Description
string

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

public static MessageParser<QuotaFailure.Types.Violation> Parser { get; }
Property Value
Type Description
MessageParserQuotaFailureTypesViolation

Subject

public string Subject { get; set; }

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

Property Value
Type Description
string

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
int

Clone()

public QuotaFailure.Types.Violation Clone()
Returns
Type Description
QuotaFailureTypesViolation

Equals(Violation)

public bool Equals(QuotaFailure.Types.Violation other)
Parameter
Name Description
other QuotaFailureTypesViolation
Returns
Type Description
bool

Equals(object)

public override bool Equals(object other)
Parameter
Name Description
other object
Returns
Type Description
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
Type Description
int
Overrides

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream

MergeFrom(Violation)

public void MergeFrom(QuotaFailure.Types.Violation other)
Parameter
Name Description
other QuotaFailureTypesViolation

ToString()

public override string ToString()
Returns
Type Description
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream