Class PreconditionFailure (2.10.0)

public sealed class PreconditionFailure : IMessage<PreconditionFailure>, IEquatable<PreconditionFailure>, IDeepCloneable<PreconditionFailure>, IBufferMessage, IMessage

Describes what preconditions have failed.

For example, if an RPC failed because it required the Terms of Service to be acknowledged, it could list the terms of service violation in the PreconditionFailure message.

Inheritance

object > PreconditionFailure

Namespace

Google.Rpc

Assembly

Google.Api.CommonProtos.dll

Constructors

PreconditionFailure()

public PreconditionFailure()

PreconditionFailure(PreconditionFailure)

public PreconditionFailure(PreconditionFailure other)
Parameter
Name Description
other PreconditionFailure

Fields

ViolationsFieldNumber

public const int ViolationsFieldNumber = 1

Field number for the "violations" field.

Field Value
Type Description
int

Properties

Descriptor

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

Parser

public static MessageParser<PreconditionFailure> Parser { get; }
Property Value
Type Description
MessageParserPreconditionFailure

Violations

public RepeatedField<PreconditionFailure.Types.Violation> Violations { get; }

Describes all precondition violations.

Property Value
Type Description
RepeatedFieldPreconditionFailureTypesViolation

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
int

Clone()

public PreconditionFailure Clone()
Returns
Type Description
PreconditionFailure

Equals(PreconditionFailure)

public bool Equals(PreconditionFailure other)
Parameter
Name Description
other PreconditionFailure
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)
Parameter
Name Description
input CodedInputStream

MergeFrom(PreconditionFailure)

public void MergeFrom(PreconditionFailure other)
Parameter
Name Description
other PreconditionFailure

ToString()

public override string ToString()
Returns
Type Description
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream