Optional. The operator used for matching the events with the value of the
filter. If not specified, only events that have an exact key-value pair
specified in the filter are matched. The only allowed value is
match-path-pattern.
[[["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\u003eThe \u003ccode\u003eEventFilter\u003c/code\u003e class in the Cloud Functions v2beta API allows filtering of events based on exact matches of CloudEvents attributes.\u003c/p\u003e\n"],["\u003cp\u003eIt 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, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEventFilter\u003c/code\u003e class includes properties like \u003ccode\u003eAttribute\u003c/code\u003e, \u003ccode\u003eOperator\u003c/code\u003e, and \u003ccode\u003eValue\u003c/code\u003e to define the filtering criteria, such as the name, the matching operator, and the value of a CloudEvents attribute.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructor methods available, a default constructor and one that accepts another \u003ccode\u003eEventFilter\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.Functions.V2Beta\u003c/code\u003e namespace and is located within the \u003ccode\u003eGoogle.Cloud.Functions.V2Beta.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2beta API - Class EventFilter (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.EventFilter)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/1.0.0-beta06/Google.Cloud.Functions.V2Beta.EventFilter) \n\n public sealed class EventFilter : IMessage\u003cEventFilter\u003e, IEquatable\u003cEventFilter\u003e, IDeepCloneable\u003cEventFilter\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v2beta API class EventFilter.\n\nFilters events based on exact matches on the CloudEvents attributes. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e EventFilter \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[EventFilter](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.EventFilter), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EventFilter](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.EventFilter), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EventFilter](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.EventFilter), [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.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Functions.V2Beta](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2Beta.dll\n\nConstructors\n------------\n\n### EventFilter()\n\n public EventFilter()\n\n### EventFilter(EventFilter)\n\n public EventFilter(EventFilter other)\n\nProperties\n----------\n\n### Attribute\n\n public string Attribute { get; set; }\n\nRequired. The name of a CloudEvents attribute.\n\n### Operator\n\n public string Operator { get; set; }\n\nOptional. The operator used for matching the events with the value of the\nfilter. If not specified, only events that have an exact key-value pair\nspecified in the filter are matched. The only allowed value is\n`match-path-pattern`.\n\n### Value\n\n public string Value { get; set; }\n\nRequired. The value for the attribute."]]