Class FilteringAttribute.Builder (1.45.0)

public static final class FilteringAttribute.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FilteringAttribute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FilteringAttribute.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public FilteringAttribute.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FilteringAttribute.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FilteringAttribute.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FilteringAttribute.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FilteringAttribute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public FilteringAttribute.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FilteringAttribute.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FilteringAttribute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FilteringAttribute.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final FilteringAttribute.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FilteringAttribute.Builder
Overrides