Class NotificationConfig.Filter.Builder (2.5.2)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
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
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)

public NotificationConfig.Filter.Builder addAllEventTypeValue(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)

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

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)

public NotificationConfig.Filter.Builder addEventTypeValue(int value)

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)

public NotificationConfig.Filter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

build()

public NotificationConfig.Filter build()
Returns
TypeDescription
NotificationConfig.Filter

buildPartial()

public NotificationConfig.Filter buildPartial()
Returns
TypeDescription
NotificationConfig.Filter

clear()

public NotificationConfig.Filter.Builder clear()
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

clearEventType()

public NotificationConfig.Filter.Builder clearEventType()

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)

public NotificationConfig.Filter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationConfig.Filter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

clone()

public NotificationConfig.Filter.Builder clone()
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

getDefaultInstanceForType()

public NotificationConfig.Filter getDefaultInstanceForType()
Returns
TypeDescription
NotificationConfig.Filter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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()

public List<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()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NotificationConfig.Filter other)

public NotificationConfig.Filter.Builder mergeFrom(NotificationConfig.Filter other)
Parameter
NameDescription
otherNotificationConfig.Filter
Returns
TypeDescription
NotificationConfig.Filter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationConfig.Filter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NotificationConfig.Filter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationConfig.Filter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
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)

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

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)

public NotificationConfig.Filter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationConfig.Filter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationConfig.Filter.Builder
Overrides