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
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
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
Violation(QuotaFailure.Types.Violation)
Declaration
public Violation(QuotaFailure.Types.Violation other)
Parameters
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
Parser
Declaration
public static MessageParser<QuotaFailure.Types.Violation> Parser { get; }
Property Value
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
Clone()
Declaration
public QuotaFailure.Types.Violation Clone()
Returns
Implements
Equals(QuotaFailure.Types.Violation)
Declaration
public bool Equals(QuotaFailure.Types.Violation other)
Parameters
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()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(QuotaFailure.Types.Violation)
Declaration
public void MergeFrom(QuotaFailure.Types.Violation other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements