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
Name Description
other BadRequest.Types.FieldViolation

Fields

DescriptionFieldNumber

public const int DescriptionFieldNumber = 2

Field number for the "description" field.

Field Value
Type Description
Int32

FieldFieldNumber

public const int FieldFieldNumber = 1

Field number for the "field" field.

Field Value
Type Description
Int32

Properties

Description

public string Description { get; set; }

A description of why the request element is bad.

Property Value
Type Description
String

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type Description
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
Type Description
String

Parser

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

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
Int32

Clone()

public BadRequest.Types.FieldViolation Clone()
Returns
Type Description
BadRequest.Types.FieldViolation

Equals(BadRequest.Types.FieldViolation)

public bool Equals(BadRequest.Types.FieldViolation other)
Parameter
Name Description
other BadRequest.Types.FieldViolation
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
Name Description
input Protobuf.CodedInputStream

MergeFrom(BadRequest.Types.FieldViolation)

public void MergeFrom(BadRequest.Types.FieldViolation other)
Parameter
Name Description
other BadRequest.Types.FieldViolation

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(Protobuf.CodedOutputStream)

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