Class AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder
All Implemented Interfaces:
AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AlertPolicy.AlertStrategy.NotificationChannelStrategy

public static final class AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder> implements AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
 Control over how the notification channels in `notification_channels`
 are notified when this alert fires, on a per-channel basis.
 
Protobuf type google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy
  • 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<AlertPolicy.AlertStrategy.NotificationChannelStrategy.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<AlertPolicy.AlertStrategy.NotificationChannelStrategy.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<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public com.google.protobuf.ProtocolStringList getNotificationChannelNamesList()
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Specified by:
      getNotificationChannelNamesList in interface AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
      Returns:
      A list containing the notificationChannelNames.
    • getNotificationChannelNamesCount

      public int getNotificationChannelNamesCount()
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Specified by:
      getNotificationChannelNamesCount in interface AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
      Returns:
      The count of notificationChannelNames.
    • getNotificationChannelNames

      public String getNotificationChannelNames(int index)
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Specified by:
      getNotificationChannelNames in interface AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The notificationChannelNames at the given index.
    • getNotificationChannelNamesBytes

      public com.google.protobuf.ByteString getNotificationChannelNamesBytes(int index)
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Specified by:
      getNotificationChannelNamesBytes in interface AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the notificationChannelNames at the given index.
    • setNotificationChannelNames

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setNotificationChannelNames(int index, String value)
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Parameters:
      index - The index to set the value at.
      value - The notificationChannelNames to set.
      Returns:
      This builder for chaining.
    • addNotificationChannelNames

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelNames(String value)
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Parameters:
      value - The notificationChannelNames to add.
      Returns:
      This builder for chaining.
    • addAllNotificationChannelNames

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addAllNotificationChannelNames(Iterable<String> values)
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Parameters:
      values - The notificationChannelNames to add.
      Returns:
      This builder for chaining.
    • clearNotificationChannelNames

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder clearNotificationChannelNames()
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Returns:
      This builder for chaining.
    • addNotificationChannelNamesBytes

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelNamesBytes(com.google.protobuf.ByteString value)
       The full REST resource name for the notification channels that these
       settings apply to. Each of these correspond to the name field in one
       of the NotificationChannel objects referenced in the
       notification_channels field of this AlertPolicy.
       The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
       
      repeated string notification_channel_names = 1;
      Parameters:
      value - The bytes of the notificationChannelNames to add.
      Returns:
      This builder for chaining.
    • hasRenotifyInterval

      public boolean hasRenotifyInterval()
       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
      Specified by:
      hasRenotifyInterval in interface AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
      Returns:
      Whether the renotifyInterval field is set.
    • getRenotifyInterval

      public com.google.protobuf.Duration getRenotifyInterval()
       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
      Specified by:
      getRenotifyInterval in interface AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder
      Returns:
      The renotifyInterval.
    • setRenotifyInterval

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setRenotifyInterval(com.google.protobuf.Duration value)
       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
    • setRenotifyInterval

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder setRenotifyInterval(com.google.protobuf.Duration.Builder builderForValue)
       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
    • mergeRenotifyInterval

      public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder mergeRenotifyInterval(com.google.protobuf.Duration value)
       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
    • clearRenotifyInterval

       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
    • getRenotifyIntervalBuilder

      public com.google.protobuf.Duration.Builder getRenotifyIntervalBuilder()
       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
    • getRenotifyIntervalOrBuilder

      public com.google.protobuf.DurationOrBuilder getRenotifyIntervalOrBuilder()
       The frequency at which to send reminder notifications for open
       incidents.
       
      .google.protobuf.Duration renotify_interval = 2;
      Specified by:
      getRenotifyIntervalOrBuilder in interface AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder