Class BadRequest (2.2.0)

public sealed class BadRequest : Protobuf.IMessage<BadRequest>, Protobuf.IBufferMessage

Describes violations in a client request. This error type focuses on the syntactic aspects of the request.

Inheritance

Object > BadRequest

Namespace

Google.Rpc

Assembly

Google.Api.CommonProtos.dll

Constructors

BadRequest()

public BadRequest()

BadRequest(BadRequest)

public BadRequest(BadRequest other)
Parameter
NameDescription
otherBadRequest

Fields

FieldViolationsFieldNumber

public const int FieldViolationsFieldNumber = 1

Field number for the "field_violations" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

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

FieldViolations

public Protobuf.Collections.RepeatedField<BadRequest.Types.FieldViolation> FieldViolations { get; }

Describes all violations in a client request.

Property Value
TypeDescription
Protobuf.Collections.RepeatedField<BadRequest.Types.FieldViolation>

Parser

public static Protobuf.MessageParser<BadRequest> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<BadRequest>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public BadRequest Clone()
Returns
TypeDescription
BadRequest

Equals(BadRequest)

public bool Equals(BadRequest other)
Parameter
NameDescription
otherBadRequest
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(BadRequest)

public void MergeFrom(BadRequest other)
Parameter
NameDescription
otherBadRequest

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

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