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 allowed values are path_pattern
and match-path-pattern. path_pattern is only allowed for GCFv1
triggers.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eEventFilter\u003c/code\u003e class in the Google Cloud Eventarc v1 API allows for filtering events based on exact matches of CloudEvents attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eEventFilter\u003c/code\u003e class is 2.6.0, and there are 10 prior versions available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEventFilter\u003c/code\u003e 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, providing functionalities for message handling, equality comparisons, deep cloning, and buffer message operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes three properties: \u003ccode\u003eAttribute\u003c/code\u003e, \u003ccode\u003eOperator\u003c/code\u003e, and \u003ccode\u003eValue\u003c/code\u003e, which are used to define the specific attribute, the matching operator, and the attribute value for filtering.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttribute\u003c/code\u003e property is required for filtering and, at minimum, a trigger must provide a filter for the \u003ccode\u003etype\u003c/code\u003e attribute, and \u003ccode\u003eOperator\u003c/code\u003e is optional and defaults to an exact key-value pair match, while \u003ccode\u003eValue\u003c/code\u003e is also required and it represents the value of the attribute.\u003c/p\u003e\n"]]],[],null,["# Eventarc v1 API - Class EventFilter (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.EventFilter)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.5.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.4.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.3.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.2.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.1.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.0.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.3.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.2.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.1.0/Google.Cloud.Eventarc.V1.EventFilter)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.0.0/Google.Cloud.Eventarc.V1.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 Eventarc v1 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.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.EventFilter), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EventFilter](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.EventFilter), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EventFilter](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.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.Eventarc.V1](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Eventarc.V1.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. Currently, only a subset of\nattributes are supported for filtering. You can [retrieve a specific\nprovider's supported event\ntypes](/eventarc/docs/list-providers#describe-provider).\n\nAll triggers MUST provide a filter for the 'type' 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 allowed values are `path_pattern`\nand `match-path-pattern`. `path_pattern` is only allowed for GCFv1\ntriggers.\n\n### Value\n\n public string Value { get; set; }\n\nRequired. The value for the attribute."]]