public sealed class CustomHttpPattern : IMessage<CustomHttpPattern>, IEquatable<CustomHttpPattern>, IDeepCloneable<CustomHttpPattern>, IBufferMessage, IMessage
A custom pattern is used for defining custom HTTP verb.
[[["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\u003eCustomHttpPattern\u003c/code\u003e is a class used for defining custom HTTP verbs within the \u003ccode\u003eGoogle.Api\u003c/code\u003e namespace, found in the \u003ccode\u003eGoogle.Api.CommonProtos.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eCustomHttpPattern\u003c/code\u003e is 2.15.0, with previous versions 2.10.0 and 2.2.0 also documented.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomHttpPattern\u003c/code\u003e has two key fields, \u003ccode\u003eKindFieldNumber\u003c/code\u003e and \u003ccode\u003ePathFieldNumber\u003c/code\u003e, representing the custom HTTP verb's name and its path, respectively.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes several methods such as \u003ccode\u003eClone()\u003c/code\u003e, \u003ccode\u003eEquals()\u003c/code\u003e, \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eMergeFrom()\u003c/code\u003e, \u003ccode\u003eToString()\u003c/code\u003e, \u003ccode\u003eCalculateSize()\u003c/code\u003e and \u003ccode\u003eWriteTo()\u003c/code\u003e, that are used to manipulate and interact with instances of \u003ccode\u003eCustomHttpPattern\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class CustomHttpPattern (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CustomHttpPattern)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.CustomHttpPattern)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.CustomHttpPattern)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.CustomHttpPattern) \n\n public sealed class CustomHttpPattern : IMessage\u003cCustomHttpPattern\u003e, IEquatable\u003cCustomHttpPattern\u003e, IDeepCloneable\u003cCustomHttpPattern\u003e, IBufferMessage, IMessage\n\nA custom pattern is used for defining custom HTTP verb. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CustomHttpPattern \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CustomHttpPattern](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CustomHttpPattern), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomHttpPattern](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CustomHttpPattern), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CustomHttpPattern](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CustomHttpPattern), [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.Api](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### CustomHttpPattern()\n\n public CustomHttpPattern()\n\n### CustomHttpPattern(CustomHttpPattern)\n\n public CustomHttpPattern(CustomHttpPattern other)\n\nFields\n------\n\n### KindFieldNumber\n\n public const int KindFieldNumber = 1\n\nField number for the \"kind\" field.\n\n### PathFieldNumber\n\n public const int PathFieldNumber = 2\n\nField number for the \"path\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Kind\n\n public string Kind { get; set; }\n\nThe name of this custom HTTP verb.\n\n### Parser\n\n public static MessageParser\u003cCustomHttpPattern\u003e Parser { get; }\n\n### Path\n\n public string Path { get; set; }\n\nThe path matched by this custom verb.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public CustomHttpPattern Clone()\n\n### Equals(CustomHttpPattern)\n\n public bool Equals(CustomHttpPattern 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(CustomHttpPattern)\n\n public void MergeFrom(CustomHttpPattern other)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\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)"]]