Class NotificationConfig.Filter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Filter.Builder>
com.google.container.v1.NotificationConfig.Filter.Builder
All Implemented Interfaces:
NotificationConfig.FilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NotificationConfig.Filter

public static final class NotificationConfig.Filter.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Filter.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Filter.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Filter.Builder>
    • getDefaultInstanceForType

      public NotificationConfig.Filter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public NotificationConfig.Filter build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NotificationConfig.Filter buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NotificationConfig.Filter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NotificationConfig.Filter.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Filter.Builder>
    • mergeFrom

      public NotificationConfig.Filter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NotificationConfig.Filter.Builder>
      Throws:
      IOException
    • getEventTypeList

      public List<NotificationConfig.EventType> getEventTypeList()
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Specified by:
      getEventTypeList in interface NotificationConfig.FilterOrBuilder
      Returns:
      A list containing the eventType.
    • getEventTypeCount

      public int getEventTypeCount()
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Specified by:
      getEventTypeCount in interface NotificationConfig.FilterOrBuilder
      Returns:
      The count of eventType.
    • getEventType

      public NotificationConfig.EventType getEventType(int index)
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Specified by:
      getEventType in interface NotificationConfig.FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The eventType at the given index.
    • setEventType

      public NotificationConfig.Filter.Builder setEventType(int index, NotificationConfig.EventType value)
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Parameters:
      index - The index to set the value at.
      value - The eventType to set.
      Returns:
      This builder for chaining.
    • addEventType

       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Parameters:
      value - The eventType to add.
      Returns:
      This builder for chaining.
    • addAllEventType

      public NotificationConfig.Filter.Builder addAllEventType(Iterable<? extends NotificationConfig.EventType> values)
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Parameters:
      values - The eventType to add.
      Returns:
      This builder for chaining.
    • clearEventType

      public NotificationConfig.Filter.Builder clearEventType()
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Returns:
      This builder for chaining.
    • getEventTypeValueList

      public List<Integer> getEventTypeValueList()
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Specified by:
      getEventTypeValueList in interface NotificationConfig.FilterOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for eventType.
    • getEventTypeValue

      public int getEventTypeValue(int index)
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Specified by:
      getEventTypeValue in interface NotificationConfig.FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of eventType at the given index.
    • setEventTypeValue

      public NotificationConfig.Filter.Builder setEventTypeValue(int index, int value)
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for eventType to set.
      Returns:
      This builder for chaining.
    • addEventTypeValue

      public NotificationConfig.Filter.Builder addEventTypeValue(int value)
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Parameters:
      value - The enum numeric value on the wire for eventType to add.
      Returns:
      This builder for chaining.
    • addAllEventTypeValue

      public NotificationConfig.Filter.Builder addAllEventTypeValue(Iterable<Integer> values)
       Event types to allowlist.
       
      repeated .google.container.v1.NotificationConfig.EventType event_type = 1;
      Parameters:
      values - The enum numeric values on the wire for eventType to add.
      Returns:
      This builder for chaining.