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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
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
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
Returns
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NotificationConfig.Filter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public NotificationConfig.Filter build()
Returns
buildPartial()
public NotificationConfig.Filter buildPartial()
Returns
clear()
public NotificationConfig.Filter.Builder clear()
Returns
Overrides
clearEventType()
public NotificationConfig.Filter.Builder clearEventType()
Event types to allowlist.
repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public NotificationConfig.Filter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public NotificationConfig.Filter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public NotificationConfig.Filter.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public NotificationConfig.Filter getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(NotificationConfig.Filter other)
public NotificationConfig.Filter.Builder mergeFrom(NotificationConfig.Filter other)
Parameter
Returns
public NotificationConfig.Filter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public NotificationConfig.Filter.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NotificationConfig.Filter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public NotificationConfig.Filter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NotificationConfig.Filter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NotificationConfig.Filter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides