Class NotificationConfig.Filter.Builder (2.63.0)

publicstaticfinalclassNotificationConfig.Filter.BuilderextendsGeneratedMessageV3.Builder<NotificationConfig.Filter.Builder>implementsNotificationConfig.FilterOrBuilder

Allows filtering to one or more specific event types. If event types are present, those and only those event types will be transmitted to the cluster. Other types will be skipped. If no filter is specified, or no event types are present, all event types will be sent

Protobuf type google.container.v1.NotificationConfig.Filter

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllEventType(Iterable<? extends NotificationConfig.EventType> values)

publicNotificationConfig.Filter.BuilderaddAllEventType(Iterable<?extendsNotificationConfig.EventType>values)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.NotificationConfig.EventType>

The eventType to add.

Returns
TypeDescription
NotificationConfig.Filter.Builder

This builder for chaining.

addAllEventTypeValue(Iterable<Integer> values)

publicNotificationConfig.Filter.BuilderaddAllEventTypeValue(Iterable<Integer>values)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for eventType to add.

Returns
TypeDescription
NotificationConfig.Filter.Builder

This builder for chaining.

addEventType(NotificationConfig.EventType value)

publicNotificationConfig.Filter.BuilderaddEventType(NotificationConfig.EventTypevalue)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameter
NameDescription
valueNotificationConfig.EventType

The eventType to add.

Returns
TypeDescription
NotificationConfig.Filter.Builder

This builder for chaining.

addEventTypeValue(int value)

publicNotificationConfig.Filter.BuilderaddEventTypeValue(intvalue)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for eventType to add.

Returns
TypeDescription
NotificationConfig.Filter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicNotificationConfig.Filter.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

build()

publicNotificationConfig.Filterbuild()
Returns
TypeDescription
NotificationConfig.Filter

buildPartial()

publicNotificationConfig.FilterbuildPartial()
Returns
TypeDescription
NotificationConfig.Filter

clear()

publicNotificationConfig.Filter.Builderclear()
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

clearEventType()

publicNotificationConfig.Filter.BuilderclearEventType()

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Returns
TypeDescription
NotificationConfig.Filter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicNotificationConfig.Filter.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicNotificationConfig.Filter.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

clone()

publicNotificationConfig.Filter.Builderclone()
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

getDefaultInstanceForType()

publicNotificationConfig.FiltergetDefaultInstanceForType()
Returns
TypeDescription
NotificationConfig.Filter

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventType(int index)

publicNotificationConfig.EventTypegetEventType(intindex)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
NotificationConfig.EventType

The eventType at the given index.

getEventTypeCount()

publicintgetEventTypeCount()

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Returns
TypeDescription
int

The count of eventType.

getEventTypeList()

publicList<NotificationConfig.EventType>getEventTypeList()

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Returns
TypeDescription
List<EventType>

A list containing the eventType.

getEventTypeValue(int index)

publicintgetEventTypeValue(intindex)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of eventType at the given index.

getEventTypeValueList()

publicList<Integer>getEventTypeValueList()

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for eventType.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NotificationConfig.Filter other)

publicNotificationConfig.Filter.BuildermergeFrom(NotificationConfig.Filterother)
Parameter
NameDescription
otherNotificationConfig.Filter
Returns
TypeDescription
NotificationConfig.Filter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicNotificationConfig.Filter.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

publicNotificationConfig.Filter.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalNotificationConfig.Filter.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

setEventType(int index, NotificationConfig.EventType value)

publicNotificationConfig.Filter.BuildersetEventType(intindex,NotificationConfig.EventTypevalue)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueNotificationConfig.EventType

The eventType to set.

Returns
TypeDescription
NotificationConfig.Filter.Builder

This builder for chaining.

setEventTypeValue(int index, int value)

publicNotificationConfig.Filter.BuildersetEventTypeValue(intindex,intvalue)

Event types to allowlist.

repeated .google.container.v1.NotificationConfig.EventType event_type = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for eventType to set.

Returns
TypeDescription
NotificationConfig.Filter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicNotificationConfig.Filter.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

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

publicNotificationConfig.Filter.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalNotificationConfig.Filter.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides