[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eBadRequest\u003c/code\u003e is a class that describes violations found within a client request, focusing on the syntactic aspects of that request.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering features like deep cloning and equality checks.\u003c/p\u003e\n"],["\u003cp\u003eIt contains properties such as \u003ccode\u003eDescriptor\u003c/code\u003e, \u003ccode\u003eFieldViolations\u003c/code\u003e, and \u003ccode\u003eParser\u003c/code\u003e, and includes a constant \u003ccode\u003eFieldViolationsFieldNumber\u003c/code\u003e for field number management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBadRequest\u003c/code\u003e class has methods for size calculation, cloning, equality comparison, hash code generation, merging data from input streams, and writing data to output streams.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides constructors for creating new \u003ccode\u003eBadRequest\u003c/code\u003e objects, either as default instances or by copying from existing \u003ccode\u003eBadRequest\u003c/code\u003e instances.\u003c/p\u003e\n"]]],[],null,["# Class BadRequest (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.BadRequest)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Rpc.BadRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Rpc.BadRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Rpc.BadRequest) \n\n public sealed class BadRequest : IMessage\u003cBadRequest\u003e, IEquatable\u003cBadRequest\u003e, IDeepCloneable\u003cBadRequest\u003e, IBufferMessage, IMessage\n\nDescribes violations in a client request. This error type focuses on the\nsyntactic aspects of the request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BadRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BadRequest](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.BadRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BadRequest](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.BadRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BadRequest](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.BadRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Rpc](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### BadRequest()\n\n public BadRequest()\n\n### BadRequest(BadRequest)\n\n public BadRequest(BadRequest other)\n\nFields\n------\n\n### FieldViolationsFieldNumber\n\n public const int FieldViolationsFieldNumber = 1\n\nField number for the \"field_violations\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### FieldViolations\n\n public RepeatedField\u003cBadRequest.Types.FieldViolation\u003e FieldViolations { get; }\n\nDescribes all violations in a client request.\n\n### Parser\n\n public static MessageParser\u003cBadRequest\u003e Parser { get; }\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public BadRequest Clone()\n\n### Equals(BadRequest)\n\n public bool Equals(BadRequest other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### MergeFrom(BadRequest)\n\n public void MergeFrom(BadRequest other)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]