Class BadRequest.Types.FieldViolation
A message type used to describe a single bad request field.
Inheritance
System.Object
BadRequest.Types.FieldViolation
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class FieldViolation : IMessage<BadRequest.Types.FieldViolation>, IMessage, IEquatable<BadRequest.Types.FieldViolation>, IDeepCloneable<BadRequest.Types.FieldViolation>
Constructors
FieldViolation()
Declaration
FieldViolation(BadRequest.Types.FieldViolation)
Declaration
public FieldViolation(BadRequest.Types.FieldViolation other)
Parameters
Fields
DescriptionFieldNumber
Field number for the "description" field.
Declaration
public const int DescriptionFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
FieldFieldNumber
Field number for the "field" field.
Declaration
public const int FieldFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Description
A description of why the request element is bad.
Declaration
public string Description { get; set; }
Property Value
Type |
Description |
System.String |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Field
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.
Declaration
public string Field { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static MessageParser<BadRequest.Types.FieldViolation> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public BadRequest.Types.FieldViolation Clone()
Returns
Implements
Equals(BadRequest.Types.FieldViolation)
Declaration
public bool Equals(BadRequest.Types.FieldViolation other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(BadRequest.Types.FieldViolation)
Declaration
public void MergeFrom(BadRequest.Types.FieldViolation other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements