Class QuotaFailure.Types.Violation (2.15.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()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Returns
Type Description
int

The number of bytes required to write this message to a coded output stream.

Clone()

public QuotaFailure.Types.Violation Clone()

Creates a deep clone of this object.

Returns
Type Description
QuotaFailureTypesViolation

A deep clone of this object.

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)

Merges the data from the specified coded input stream with the current message.

Parameter
Name Description
input CodedInputStream
Remarks

See the user guide for precise merge semantics.

MergeFrom(Violation)

public void MergeFrom(QuotaFailure.Types.Violation other)

Merges the given message into this one.

Parameter
Name Description
other QuotaFailureTypesViolation
Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()
Returns
Type Description
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Writes the data to the given coded output stream.

Parameter
Name Description
output CodedOutputStream

Coded output stream to write the data to. Must not be null.