Interface EventFilterOrBuilder (1.54.0)

public interface EventFilterOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAttribute()

public abstract String 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.

string attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The attribute.

getAttributeBytes()

public abstract ByteString getAttributeBytes()

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.

string attribute = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for attribute.

getOperator()

public abstract String 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.

string operator = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The operator.

getOperatorBytes()

public abstract ByteString getOperatorBytes()

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.

string operator = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for operator.

getValue()

public abstract String getValue()

Required. The value for the attribute.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The value.

getValueBytes()

public abstract ByteString getValueBytes()

Required. The value for the attribute.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for value.