# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::EventFilter (v1.5.1)

1.5.1 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::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.

### #attribute=

    def attribute=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of a CloudEvents attribute.
**Returns**

- (::String) --- Required. The name of a CloudEvents 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 only allowed value is `match-path-pattern`.

### #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 only allowed value is `match-path-pattern`.
**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 only allowed value is `match-path-pattern`.

### #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.