google.cloud.eventarc.v1.EventFilter */ class EventFilter extends \Google\Protobuf\Internal\Message { /** * 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](/eventarc/docs/list-providers#describe-provider). * All triggers MUST provide a filter for the 'type' attribute. * * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; */ protected $attribute = ''; /** * Required. The value for the attribute. * * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; */ protected $value = ''; /** * 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. * * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $operator = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $attribute * 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](/eventarc/docs/list-providers#describe-provider). * All triggers MUST provide a filter for the 'type' attribute. * @type string $value * Required. The value for the attribute. * @type string $operator * 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. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); parent::__construct($data); } /** * 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](/eventarc/docs/list-providers#describe-provider). * All triggers MUST provide a filter for the 'type' attribute. * * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getAttribute() { return $this->attribute; } /** * 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](/eventarc/docs/list-providers#describe-provider). * All triggers MUST provide a filter for the 'type' attribute. * * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ public function setAttribute($var) { GPBUtil::checkString($var, True); $this->attribute = $var; return $this; } /** * Required. The value for the attribute. * * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getValue() { return $this->value; } /** * Required. The value for the attribute. * * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ public function setValue($var) { GPBUtil::checkString($var, True); $this->value = $var; return $this; } /** * 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. * * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getOperator() { return $this->operator; } /** * 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. * * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ public function setOperator($var) { GPBUtil::checkString($var, True); $this->operator = $var; return $this; } }