Google Cloud Functions V2 Client - Class EventFilter (1.0.3)

Reference documentation and code samples for the Google Cloud Functions V2 Client class EventFilter.

Filters events based on exact matches on the CloudEvents attributes.

Generated from protobuf message google.cloud.functions.v2.EventFilter

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attribute string

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

getAttribute

Required. The name of a CloudEvents attribute.

Returns
TypeDescription
string

setAttribute

Required. The name of a CloudEvents attribute.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

Required. The value for the attribute.

Returns
TypeDescription
string

setValue

Required. The value for the attribute.

Parameter
NameDescription
var string
Returns
TypeDescription
$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 only allowed value is match-path-pattern.

Returns
TypeDescription
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 only allowed value is match-path-pattern.

Parameter
NameDescription
var string
Returns
TypeDescription
$this