Class QuotaFailure.Types.Violation (2.2.0)

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

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

public Violation(QuotaFailure.Types.Violation other)
Parameter
NameDescription
otherQuotaFailure.Types.Violation

Fields

DescriptionFieldNumber

public const int DescriptionFieldNumber = 2

Field number for the "description" field.

Field Value
TypeDescription
Int32

SubjectFieldNumber

public const int SubjectFieldNumber = 1

Field number for the "subject" field.

Field Value
TypeDescription
Int32

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
TypeDescription
String

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
Protobuf.Reflection.MessageDescriptor

Parser

public static Protobuf.MessageParser<QuotaFailure.Types.Violation> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<QuotaFailure.Types.Violation>

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
TypeDescription
String

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public QuotaFailure.Types.Violation Clone()
Returns
TypeDescription
QuotaFailure.Types.Violation

Equals(QuotaFailure.Types.Violation)

public bool Equals(QuotaFailure.Types.Violation other)
Parameter
NameDescription
otherQuotaFailure.Types.Violation
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
NameDescription
inputProtobuf.CodedInputStream

MergeFrom(QuotaFailure.Types.Violation)

public void MergeFrom(QuotaFailure.Types.Violation other)
Parameter
NameDescription
otherQuotaFailure.Types.Violation

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
NameDescription
outputProtobuf.CodedOutputStream