Class FilteringAttribute.Builder (1.83.0)

public static final class FilteringAttribute.Builder extends GeneratedMessage.Builder<FilteringAttribute.Builder> implements FilteringAttributeOrBuilder

A representation of the FilteringAttribute resource. Filtering attributes are per event type.

Protobuf type google.cloud.eventarc.v1.FilteringAttribute

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FilteringAttribute build()
Returns
Type Description
FilteringAttribute

buildPartial()

public FilteringAttribute buildPartial()
Returns
Type Description
FilteringAttribute

clear()

public FilteringAttribute.Builder clear()
Returns
Type Description
FilteringAttribute.Builder
Overrides

clearAttribute()

public FilteringAttribute.Builder clearAttribute()

Output only. Attribute used for filtering the event type.

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

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

clearDescription()

public FilteringAttribute.Builder clearDescription()

Output only. Description of the purpose of the attribute.

string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

clearPathPatternSupported()

public FilteringAttribute.Builder clearPathPatternSupported()

Output only. If true, the attribute accepts matching expressions in the Eventarc PathPattern format.

bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

clearRequired()

public FilteringAttribute.Builder clearRequired()

Output only. If true, the triggers for this provider should always specify a filter on these attributes. Trigger creation will fail otherwise.

bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

getAttribute()

public String getAttribute()

Output only. Attribute used for filtering the event type.

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

Returns
Type Description
String

The attribute.

getAttributeBytes()

public ByteString getAttributeBytes()

Output only. Attribute used for filtering the event type.

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

Returns
Type Description
ByteString

The bytes for attribute.

getDefaultInstanceForType()

public FilteringAttribute getDefaultInstanceForType()
Returns
Type Description
FilteringAttribute

getDescription()

public String getDescription()

Output only. Description of the purpose of the attribute.

string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. Description of the purpose of the attribute.

string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPathPatternSupported()

public boolean getPathPatternSupported()

Output only. If true, the attribute accepts matching expressions in the Eventarc PathPattern format.

bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The pathPatternSupported.

getRequired()

public boolean getRequired()

Output only. If true, the triggers for this provider should always specify a filter on these attributes. Trigger creation will fail otherwise.

bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The required.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FilteringAttribute other)

public FilteringAttribute.Builder mergeFrom(FilteringAttribute other)
Parameter
Name Description
other FilteringAttribute
Returns
Type Description
FilteringAttribute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FilteringAttribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilteringAttribute.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FilteringAttribute.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FilteringAttribute.Builder
Overrides

setAttribute(String value)

public FilteringAttribute.Builder setAttribute(String value)

Output only. Attribute used for filtering the event type.

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

Parameter
Name Description
value String

The attribute to set.

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

setAttributeBytes(ByteString value)

public FilteringAttribute.Builder setAttributeBytes(ByteString value)

Output only. Attribute used for filtering the event type.

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

Parameter
Name Description
value ByteString

The bytes for attribute to set.

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

setDescription(String value)

public FilteringAttribute.Builder setDescription(String value)

Output only. Description of the purpose of the attribute.

string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public FilteringAttribute.Builder setDescriptionBytes(ByteString value)

Output only. Description of the purpose of the attribute.

string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

setPathPatternSupported(boolean value)

public FilteringAttribute.Builder setPathPatternSupported(boolean value)

Output only. If true, the attribute accepts matching expressions in the Eventarc PathPattern format.

bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The pathPatternSupported to set.

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.

setRequired(boolean value)

public FilteringAttribute.Builder setRequired(boolean value)

Output only. If true, the triggers for this provider should always specify a filter on these attributes. Trigger creation will fail otherwise.

bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The required to set.

Returns
Type Description
FilteringAttribute.Builder

This builder for chaining.