Show / Hide Table of Contents

Class QuotaFailure.Types.Violation

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

Inheritance
System.Object
QuotaFailure.Types.Violation
Implements
IMessage<QuotaFailure.Types.Violation>
IMessage
System.IEquatable<QuotaFailure.Types.Violation>
IDeepCloneable<QuotaFailure.Types.Violation>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Rpc
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class Violation : IMessage<QuotaFailure.Types.Violation>, IMessage, IEquatable<QuotaFailure.Types.Violation>, IDeepCloneable<QuotaFailure.Types.Violation>

Constructors

Violation()

Declaration
public Violation()

Violation(QuotaFailure.Types.Violation)

Declaration
public Violation(QuotaFailure.Types.Violation other)
Parameters
Type Name Description
QuotaFailure.Types.Violation other

Fields

DescriptionFieldNumber

Field number for the "description" field.

Declaration
public const int DescriptionFieldNumber = 2
Field Value
Type Description
System.Int32

SubjectFieldNumber

Field number for the "subject" field.

Declaration
public const int SubjectFieldNumber = 1
Field Value
Type Description
System.Int32

Properties

Description

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

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

Descriptor

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

Parser

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

Subject

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

Declaration
public string Subject { get; set; }
Property Value
Type Description
System.String

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public QuotaFailure.Types.Violation Clone()
Returns
Type Description
QuotaFailure.Types.Violation
Implements
IDeepCloneable<T>.Clone()

Equals(QuotaFailure.Types.Violation)

Declaration
public bool Equals(QuotaFailure.Types.Violation other)
Parameters
Type Name Description
QuotaFailure.Types.Violation other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(QuotaFailure.Types.Violation)

Declaration
public void MergeFrom(QuotaFailure.Types.Violation other)
Parameters
Type Name Description
QuotaFailure.Types.Violation other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top