Class FilteringAttribute (1.31.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
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_PATTERN_SUPPORTED_FIELD_NUMBER

public static final int PATH_PATTERN_SUPPORTED_FIELD_NUMBER
Field Value
TypeDescription
int

REQUIRED_FIELD_NUMBER

public static final int REQUIRED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FilteringAttribute getDefaultInstance()
Returns
TypeDescription
FilteringAttribute

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FilteringAttribute.Builder newBuilder()
Returns
TypeDescription
FilteringAttribute.Builder

newBuilder(FilteringAttribute prototype)

public static FilteringAttribute.Builder newBuilder(FilteringAttribute prototype)
Parameter
NameDescription
prototypeFilteringAttribute
Returns
TypeDescription
FilteringAttribute.Builder

parseDelimitedFrom(InputStream input)

public static FilteringAttribute parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FilteringAttribute parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FilteringAttribute parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FilteringAttribute parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FilteringAttribute parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FilteringAttribute parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FilteringAttribute parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilteringAttribute
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FilteringAttribute> parser()
Returns
TypeDescription
Parser<FilteringAttribute>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FilteringAttribute.Builder newBuilderForType()
Returns
TypeDescription
FilteringAttribute.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FilteringAttribute.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FilteringAttribute.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FilteringAttribute.Builder toBuilder()
Returns
TypeDescription
FilteringAttribute.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException