Class 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.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.v1beta1.NotificationConfig.Filter
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public NotificationConfig.Filter.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Filter.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • getEventTypeCount

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

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

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

        public List<Integer> getEventTypeValueList()
         Event types to allowlist.
         
        repeated .google.container.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.NotificationConfig.EventType event_type = 1;
        Parameters:
        values - The enum numeric values on the wire for eventType to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NotificationConfig.Filter.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Filter.Builder>
      • mergeUnknownFields

        public final NotificationConfig.Filter.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Filter.Builder>