Send feedback
  
   
 
  
    
      Class NotificationConfig.Filter.Builder (2.81.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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 ()  
  
  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  
      
        valuesIterable <? extends com.google.container.v1.NotificationConfig.EventType >The eventType to add.
 
     
  
  
  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  
      
        valuesIterable <Integer >The enum numeric values on the wire for eventType to add.
 
     
  
  
  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;
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  
      
        valueint The enum numeric value on the wire for eventType to add.
 
     
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   NotificationConfig . Filter . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   NotificationConfig . Filter   build ()  
  
  buildPartial() 
  
    
public   NotificationConfig . Filter   buildPartial ()  
  
  clear() 
  
    
public   NotificationConfig . Filter . Builder   clear ()  
  
  Overrides 
  
  clearEventType() 
  
    
public   NotificationConfig . Filter . Builder   clearEventType ()  
   Event types to allowlist.
 repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   NotificationConfig . Filter . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   NotificationConfig . Filter . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   NotificationConfig . Filter . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   NotificationConfig . Filter   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  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  
      
        indexint The index of the element to return.
 
     
  
  
  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  
      
        indexint 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 ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(NotificationConfig.Filter other) 
  
    
public   NotificationConfig . Filter . Builder   mergeFrom ( NotificationConfig . Filter   other )  
  
  
  
    
public   NotificationConfig . Filter . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   NotificationConfig . Filter . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   NotificationConfig . Filter . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  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;
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  
      
        indexint The index to set the value at.
 
      
        valueint The enum numeric value on the wire for eventType to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   NotificationConfig . Filter . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   NotificationConfig . Filter . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   NotificationConfig . Filter . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]