Google Cloud Eventarc V1 Client - Class EventFilter (2.1.3)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class EventFilter.

Filters events based on exact matches on the CloudEvents attributes.

Generated from protobuf message google.cloud.eventarc.v1.EventFilter

Namespace

Google \ Cloud \ Eventarc \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ attribute 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. All triggers MUST provide a filter for the 'type' attribute.

↳ value string

Required. The value for the attribute.

↳ operator 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.

getAttribute

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.

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

Returns
Type Description
string

setAttribute

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.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Required. The value for the attribute.

Returns
Type Description
string

setValue

Required. The value for the attribute.

Parameter
Name Description
var string
Returns
Type Description
$this

getOperator

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
Type Description
string

setOperator

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.

Parameter
Name Description
var string
Returns
Type Description
$this