# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::EventFilter (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::EventFilter.

Filters events based on exact matches on the CloudEvents attributes.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attribute

    def attribute() -> ::String

**Returns**

- (::String) --- Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. You can [retrieve a specific
  provider's supported event
  types](https://docs.cloud.google.com/eventarc/docs/list-providers#describe-provider).


  All triggers MUST provide a filter for the 'type' attribute.

### #attribute=

    def attribute=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. You can [retrieve a specific
  provider's supported event
  types](https://docs.cloud.google.com/eventarc/docs/list-providers#describe-provider).


  All triggers MUST provide a filter for the 'type' attribute.
**Returns**

- (::String) --- Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. You can [retrieve a specific
  provider's supported event
  types](https://docs.cloud.google.com/eventarc/docs/list-providers#describe-provider).


  All triggers MUST provide a filter for the 'type' attribute.

### #operator

    def operator() -> ::String

**Returns**

- (::String) --- 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.

### #operator=

    def operator=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #value

    def value() -> ::String

**Returns**

- (::String) --- Required. The value for the attribute.

### #value=

    def value=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The value for the attribute.
**Returns**

- (::String) --- Required. The value for the attribute.