Class FilteringAttribute (1.43.0)

public final class FilteringAttribute extends GeneratedMessageV3 implements FilteringAttributeOrBuilder

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

Protobuf type google.cloud.eventarc.v1.FilteringAttribute

Static Fields

ATTRIBUTE_FIELD_NUMBER

public static final int ATTRIBUTE_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

PATH_PATTERN_SUPPORTED_FIELD_NUMBER

public static final int PATH_PATTERN_SUPPORTED_FIELD_NUMBER
Field Value
Type Description
int

REQUIRED_FIELD_NUMBER

public static final int REQUIRED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FilteringAttribute getDefaultInstance()
Returns
Type Description
FilteringAttribute

getDescriptor()

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

newBuilder()

public static FilteringAttribute.Builder newBuilder()
Returns
Type Description
FilteringAttribute.Builder

newBuilder(FilteringAttribute prototype)

public static FilteringAttribute.Builder newBuilder(FilteringAttribute prototype)
Parameter
Name Description
prototype FilteringAttribute
Returns
Type Description
FilteringAttribute.Builder

parseDelimitedFrom(InputStream input)

public static FilteringAttribute parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FilteringAttribute parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FilteringAttribute parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FilteringAttribute parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FilteringAttribute parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FilteringAttribute parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilteringAttribute
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FilteringAttribute> parser()
Returns
Type Description
Parser<FilteringAttribute>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

getParserForType()

public Parser<FilteringAttribute> getParserForType()
Returns
Type Description
Parser<FilteringAttribute>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FilteringAttribute.Builder newBuilderForType()
Returns
Type Description
FilteringAttribute.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FilteringAttribute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FilteringAttribute.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FilteringAttribute.Builder toBuilder()
Returns
Type Description
FilteringAttribute.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException