Class AlertPolicy.AlertStrategy.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<AlertPolicy.AlertStrategy.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<AlertPolicy.AlertStrategy.Builder>
      • getDefaultInstanceForType

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

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

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

        public AlertPolicy.AlertStrategy.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<AlertPolicy.AlertStrategy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.Builder>
      • mergeFrom

        public AlertPolicy.AlertStrategy.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<AlertPolicy.AlertStrategy.Builder>
        Throws:
        IOException
      • hasNotificationRateLimit

        public boolean hasNotificationRateLimit()
         Required for alert policies with a `LogMatch` condition.
        
         This limit is not implemented for alert policies that are not log-based.
         
        .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
        Specified by:
        hasNotificationRateLimit in interface AlertPolicy.AlertStrategyOrBuilder
        Returns:
        Whether the notificationRateLimit field is set.
      • clearNotificationRateLimit

        public AlertPolicy.AlertStrategy.Builder clearNotificationRateLimit()
         Required for alert policies with a `LogMatch` condition.
        
         This limit is not implemented for alert policies that are not log-based.
         
        .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
      • getNotificationRateLimitBuilder

        public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder getNotificationRateLimitBuilder()
         Required for alert policies with a `LogMatch` condition.
        
         This limit is not implemented for alert policies that are not log-based.
         
        .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
      • hasAutoClose

        public boolean hasAutoClose()
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
        Specified by:
        hasAutoClose in interface AlertPolicy.AlertStrategyOrBuilder
        Returns:
        Whether the autoClose field is set.
      • getAutoClose

        public com.google.protobuf.Duration getAutoClose()
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
        Specified by:
        getAutoClose in interface AlertPolicy.AlertStrategyOrBuilder
        Returns:
        The autoClose.
      • setAutoClose

        public AlertPolicy.AlertStrategy.Builder setAutoClose​(com.google.protobuf.Duration value)
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
      • setAutoClose

        public AlertPolicy.AlertStrategy.Builder setAutoClose​(com.google.protobuf.Duration.Builder builderForValue)
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
      • mergeAutoClose

        public AlertPolicy.AlertStrategy.Builder mergeAutoClose​(com.google.protobuf.Duration value)
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
      • clearAutoClose

        public AlertPolicy.AlertStrategy.Builder clearAutoClose()
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
      • getAutoCloseBuilder

        public com.google.protobuf.Duration.Builder getAutoCloseBuilder()
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
      • getAutoCloseOrBuilder

        public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder()
         If an alert policy that was active has no data for this long, any open
         incidents will close
         
        .google.protobuf.Duration auto_close = 3;
        Specified by:
        getAutoCloseOrBuilder in interface AlertPolicy.AlertStrategyOrBuilder
      • getNotificationChannelStrategyCount

        public int getNotificationChannelStrategyCount()
         Control how notifications will be sent out, on a per-channel basis.
         
        repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
        Specified by:
        getNotificationChannelStrategyCount in interface AlertPolicy.AlertStrategyOrBuilder
      • clearNotificationChannelStrategy

        public AlertPolicy.AlertStrategy.Builder clearNotificationChannelStrategy()
         Control how notifications will be sent out, on a per-channel basis.
         
        repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
      • removeNotificationChannelStrategy

        public AlertPolicy.AlertStrategy.Builder removeNotificationChannelStrategy​(int index)
         Control how notifications will be sent out, on a per-channel basis.
         
        repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
      • getNotificationChannelStrategyBuilder

        public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder getNotificationChannelStrategyBuilder​(int index)
         Control how notifications will be sent out, on a per-channel basis.
         
        repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
      • addNotificationChannelStrategyBuilder

        public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder()
         Control how notifications will be sent out, on a per-channel basis.
         
        repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
      • addNotificationChannelStrategyBuilder

        public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder​(int index)
         Control how notifications will be sent out, on a per-channel basis.
         
        repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
      • getNotificationChannelStrategyBuilderList

        public List<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder> getNotificationChannelStrategyBuilderList()
         Control how notifications will be sent out, on a per-channel basis.
         
        repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
      • setUnknownFields

        public final AlertPolicy.AlertStrategy.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<AlertPolicy.AlertStrategy.Builder>
      • mergeUnknownFields

        public final AlertPolicy.AlertStrategy.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<AlertPolicy.AlertStrategy.Builder>