Class NotificationConfig.PubSub.Builder

    • 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.PubSub.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.PubSub.Builder>
      • getDefaultInstanceForType

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

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

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

        public NotificationConfig.PubSub.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.PubSub.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.PubSub.Builder>
      • mergeFrom

        public NotificationConfig.PubSub.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.PubSub.Builder>
        Throws:
        IOException
      • setEnabled

        public NotificationConfig.PubSub.Builder setEnabled​(boolean value)
         Enable notifications for Pub/Sub.
         
        bool enabled = 1;
        Parameters:
        value - The enabled to set.
        Returns:
        This builder for chaining.
      • getTopic

        public String getTopic()
         The desired Pub/Sub topic to which notifications will be
         sent by GKE. Format is `projects/{project}/topics/{topic}`.
         
        string topic = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTopic in interface NotificationConfig.PubSubOrBuilder
        Returns:
        The topic.
      • getTopicBytes

        public com.google.protobuf.ByteString getTopicBytes()
         The desired Pub/Sub topic to which notifications will be
         sent by GKE. Format is `projects/{project}/topics/{topic}`.
         
        string topic = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTopicBytes in interface NotificationConfig.PubSubOrBuilder
        Returns:
        The bytes for topic.
      • setTopic

        public NotificationConfig.PubSub.Builder setTopic​(String value)
         The desired Pub/Sub topic to which notifications will be
         sent by GKE. Format is `projects/{project}/topics/{topic}`.
         
        string topic = 2 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The topic to set.
        Returns:
        This builder for chaining.
      • clearTopic

        public NotificationConfig.PubSub.Builder clearTopic()
         The desired Pub/Sub topic to which notifications will be
         sent by GKE. Format is `projects/{project}/topics/{topic}`.
         
        string topic = 2 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTopicBytes

        public NotificationConfig.PubSub.Builder setTopicBytes​(com.google.protobuf.ByteString value)
         The desired Pub/Sub topic to which notifications will be
         sent by GKE. Format is `projects/{project}/topics/{topic}`.
         
        string topic = 2 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for topic to set.
        Returns:
        This builder for chaining.
      • hasFilter

        public boolean hasFilter()
         Allows filtering to one or more specific event types. If no filter is
         specified, or if a filter is specified with no event types, all event
         types will be sent
         
        .google.container.v1.NotificationConfig.Filter filter = 3;
        Specified by:
        hasFilter in interface NotificationConfig.PubSubOrBuilder
        Returns:
        Whether the filter field is set.
      • getFilter

        public NotificationConfig.Filter getFilter()
         Allows filtering to one or more specific event types. If no filter is
         specified, or if a filter is specified with no event types, all event
         types will be sent
         
        .google.container.v1.NotificationConfig.Filter filter = 3;
        Specified by:
        getFilter in interface NotificationConfig.PubSubOrBuilder
        Returns:
        The filter.
      • setFilter

        public NotificationConfig.PubSub.Builder setFilter​(NotificationConfig.Filter value)
         Allows filtering to one or more specific event types. If no filter is
         specified, or if a filter is specified with no event types, all event
         types will be sent
         
        .google.container.v1.NotificationConfig.Filter filter = 3;
      • setFilter

        public NotificationConfig.PubSub.Builder setFilter​(NotificationConfig.Filter.Builder builderForValue)
         Allows filtering to one or more specific event types. If no filter is
         specified, or if a filter is specified with no event types, all event
         types will be sent
         
        .google.container.v1.NotificationConfig.Filter filter = 3;
      • mergeFilter

        public NotificationConfig.PubSub.Builder mergeFilter​(NotificationConfig.Filter value)
         Allows filtering to one or more specific event types. If no filter is
         specified, or if a filter is specified with no event types, all event
         types will be sent
         
        .google.container.v1.NotificationConfig.Filter filter = 3;
      • clearFilter

        public NotificationConfig.PubSub.Builder clearFilter()
         Allows filtering to one or more specific event types. If no filter is
         specified, or if a filter is specified with no event types, all event
         types will be sent
         
        .google.container.v1.NotificationConfig.Filter filter = 3;
      • getFilterBuilder

        public NotificationConfig.Filter.Builder getFilterBuilder()
         Allows filtering to one or more specific event types. If no filter is
         specified, or if a filter is specified with no event types, all event
         types will be sent
         
        .google.container.v1.NotificationConfig.Filter filter = 3;
      • setUnknownFields

        public final NotificationConfig.PubSub.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.PubSub.Builder>
      • mergeUnknownFields

        public final NotificationConfig.PubSub.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.PubSub.Builder>