Class FilteringAttribute.Builder (1.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FilteringAttribute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FilteringAttribute.Builder
Overrides

build()

public FilteringAttribute build()
Returns
TypeDescription
FilteringAttribute

buildPartial()

public FilteringAttribute buildPartial()
Returns
TypeDescription
FilteringAttribute

clear()

public FilteringAttribute.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
FilteringAttribute.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public FilteringAttribute.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FilteringAttribute.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FilteringAttribute.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
FilteringAttribute.Builder

This builder for chaining.

clone()

public FilteringAttribute.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for attribute.

getDefaultInstanceForType()

public FilteringAttribute getDefaultInstanceForType()
Returns
TypeDescription
FilteringAttribute

getDescription()

public String getDescription()

Output only. Description of the purpose of the attribute.

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

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The required.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FilteringAttribute other)

public FilteringAttribute.Builder mergeFrom(FilteringAttribute other)
Parameter
NameDescription
otherFilteringAttribute
Returns
TypeDescription
FilteringAttribute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FilteringAttribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilteringAttribute.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FilteringAttribute.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FilteringAttribute.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FilteringAttribute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The attribute to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for attribute to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
FilteringAttribute.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public FilteringAttribute.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The pathPatternSupported to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The required to set.

Returns
TypeDescription
FilteringAttribute.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final FilteringAttribute.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FilteringAttribute.Builder
Overrides