Class BadRequest.Types.FieldViolation (2.2.0)

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

A message type used to describe a single bad request field.

Inheritance

Object > BadRequest.Types.FieldViolation

Namespace

Google.Rpc

Assembly

Google.Api.CommonProtos.dll

Constructors

FieldViolation()

public FieldViolation()

FieldViolation(BadRequest.Types.FieldViolation)

public FieldViolation(BadRequest.Types.FieldViolation other)
Parameter
NameDescription
otherBadRequest.Types.FieldViolation

Fields

DescriptionFieldNumber

public const int DescriptionFieldNumber = 2

Field number for the "description" field.

Field Value
TypeDescription
Int32

FieldFieldNumber

public const int FieldFieldNumber = 1

Field number for the "field" field.

Field Value
TypeDescription
Int32

Properties

Description

public string Description { get; set; }

A description of why the request element is bad.

Property Value
TypeDescription
String

Descriptor

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

Field

public string Field { get; set; }

A path leading to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. E.g., "field_violations.field" would identify this field.

Property Value
TypeDescription
String

Parser

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

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public BadRequest.Types.FieldViolation Clone()
Returns
TypeDescription
BadRequest.Types.FieldViolation

Equals(BadRequest.Types.FieldViolation)

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

public void MergeFrom(BadRequest.Types.FieldViolation other)
Parameter
NameDescription
otherBadRequest.Types.FieldViolation

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

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