Class EventFilter (2.62.0)

publicfinalclassEventFilterextendsGeneratedMessageV3implementsEventFilterOrBuilder

Filters events based on exact matches on the CloudEvents attributes.

Protobuf type google.cloud.functions.v2alpha.EventFilter

Static Fields

ATTRIBUTE_FIELD_NUMBER

publicstaticfinalintATTRIBUTE_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATOR_FIELD_NUMBER

publicstaticfinalintOPERATOR_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

publicstaticfinalintVALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticEventFiltergetDefaultInstance()
Returns
TypeDescription
EventFilter

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticEventFilter.BuildernewBuilder()
Returns
TypeDescription
EventFilter.Builder

newBuilder(EventFilter prototype)

publicstaticEventFilter.BuildernewBuilder(EventFilterprototype)
Parameter
NameDescription
prototypeEventFilter
Returns
TypeDescription
EventFilter.Builder

parseDelimitedFrom(InputStream input)

publicstaticEventFilterparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEventFilterparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticEventFilterparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticEventFilterparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticEventFilterparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticEventFilterparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticEventFilterparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEventFilterparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticEventFilterparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEventFilterparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticEventFilterparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticEventFilterparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<EventFilter>parser()
Returns
TypeDescription
Parser<EventFilter>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAttribute()

publicStringgetAttribute()

Required. The name of a CloudEvents attribute.

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

Returns
TypeDescription
String

The attribute.

getAttributeBytes()

publicByteStringgetAttributeBytes()

Required. The name of a CloudEvents attribute.

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

Returns
TypeDescription
ByteString

The bytes for attribute.

getDefaultInstanceForType()

publicEventFiltergetDefaultInstanceForType()
Returns
TypeDescription
EventFilter

getOperator()

publicStringgetOperator()

Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.

string operator = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The operator.

getOperatorBytes()

publicByteStringgetOperatorBytes()

Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.

string operator = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for operator.

getParserForType()

publicParser<EventFilter>getParserForType()
Returns
TypeDescription
Parser<EventFilter>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getValue()

publicStringgetValue()

Required. The value for the attribute.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The value.

getValueBytes()

publicByteStringgetValueBytes()

Required. The value for the attribute.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for value.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicEventFilter.BuildernewBuilderForType()
Returns
TypeDescription
EventFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedEventFilter.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EventFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicEventFilter.BuildertoBuilder()
Returns
TypeDescription
EventFilter.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException