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()
Violation(Violation)
public Violation(QuotaFailure.Types.Violation other)
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; }
Parser
public static MessageParser<QuotaFailure.Types.Violation> Parser { get; }
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()
Equals(Violation)
public bool Equals(QuotaFailure.Types.Violation other)
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
public void MergeFrom(CodedInputStream input)
MergeFrom(Violation)
public void MergeFrom(QuotaFailure.Types.Violation other)
ToString()
public override string ToString()
Returns |
Type |
Description |
string |
|
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)