Class NotificationConfig.Filter.Builder (2.55.0)

public static final class NotificationConfig.Filter.Builder extends GeneratedMessageV3.Builder<NotificationConfig.Filter.Builder> implements NotificationConfig.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()

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

Methods

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

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

Event types to allowlist.

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

Parameter
Name Description
values Iterable<? extends com.google.container.v1.NotificationConfig.EventType>

The eventType to add.

Returns
Type Description
NotificationConfig.Filter.Builder

This builder for chaining.

addAllEventTypeValue(Iterable<Integer> values)

public NotificationConfig.Filter.Builder addAllEventTypeValue(Iterable<Integer> values)

Event types to allowlist.

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

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
NotificationConfig.Filter.Builder

This builder for chaining.

addEventType(NotificationConfig.EventType value)

public NotificationConfig.Filter.Builder addEventType(NotificationConfig.EventType value)

Event types to allowlist.

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

Parameter
Name Description
value NotificationConfig.EventType

The eventType to add.

Returns
Type Description
NotificationConfig.Filter.Builder

This builder for chaining.

addEventTypeValue(int value)

public NotificationConfig.Filter.Builder addEventTypeValue(int value)

Event types to allowlist.

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

Parameter
Name Description
value int

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

Returns
Type Description
NotificationConfig.Filter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationConfig.Filter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

build()

public NotificationConfig.Filter build()
Returns
Type Description
NotificationConfig.Filter

buildPartial()

public NotificationConfig.Filter buildPartial()
Returns
Type Description
NotificationConfig.Filter

clear()

public NotificationConfig.Filter.Builder clear()
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

clearEventType()

public NotificationConfig.Filter.Builder clearEventType()

Event types to allowlist.

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

Returns
Type Description
NotificationConfig.Filter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NotificationConfig.Filter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationConfig.Filter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

clone()

public NotificationConfig.Filter.Builder clone()
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

getDefaultInstanceForType()

public NotificationConfig.Filter getDefaultInstanceForType()
Returns
Type Description
NotificationConfig.Filter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEventType(int index)

public NotificationConfig.EventType getEventType(int index)

Event types to allowlist.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
NotificationConfig.EventType

The eventType at the given index.

getEventTypeCount()

public int getEventTypeCount()

Event types to allowlist.

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

Returns
Type Description
int

The count of eventType.

getEventTypeList()

public List<NotificationConfig.EventType> getEventTypeList()

Event types to allowlist.

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

Returns
Type Description
List<EventType>

A list containing the eventType.

getEventTypeValue(int index)

public int getEventTypeValue(int index)

Event types to allowlist.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

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

getEventTypeValueList()

public List<Integer> getEventTypeValueList()

Event types to allowlist.

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

Returns
Type Description
List<Integer>

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NotificationConfig.Filter other)

public NotificationConfig.Filter.Builder mergeFrom(NotificationConfig.Filter other)
Parameter
Name Description
other NotificationConfig.Filter
Returns
Type Description
NotificationConfig.Filter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationConfig.Filter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NotificationConfig.Filter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationConfig.Filter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

setEventType(int index, NotificationConfig.EventType value)

public NotificationConfig.Filter.Builder setEventType(int index, NotificationConfig.EventType value)

Event types to allowlist.

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

Parameters
Name Description
index int

The index to set the value at.

value NotificationConfig.EventType

The eventType to set.

Returns
Type Description
NotificationConfig.Filter.Builder

This builder for chaining.

setEventTypeValue(int index, int value)

public NotificationConfig.Filter.Builder setEventTypeValue(int index, int value)

Event types to allowlist.

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

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
NotificationConfig.Filter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationConfig.Filter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

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

public NotificationConfig.Filter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationConfig.Filter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationConfig.Filter.Builder
Overrides