Class ModelMonitoringAlertConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringAlertConfig.Builder>
com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.Builder
All Implemented Interfaces:
ModelMonitoringAlertConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ModelMonitoringAlertConfig

public static final class ModelMonitoringAlertConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringAlertConfig.Builder> implements ModelMonitoringAlertConfigOrBuilder
 The alert config for model monitoring.
 
Protobuf type google.cloud.aiplatform.v1.ModelMonitoringAlertConfig
  • 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<ModelMonitoringAlertConfig.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<ModelMonitoringAlertConfig.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<ModelMonitoringAlertConfig.Builder>
    • getDefaultInstanceForType

      public ModelMonitoringAlertConfig 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

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

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

      public ModelMonitoringAlertConfig.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<ModelMonitoringAlertConfig.Builder>
      Throws:
      IOException
    • getAlertCase

      public ModelMonitoringAlertConfig.AlertCase getAlertCase()
      Specified by:
      getAlertCase in interface ModelMonitoringAlertConfigOrBuilder
    • clearAlert

    • hasEmailAlertConfig

      public boolean hasEmailAlertConfig()
       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
      Specified by:
      hasEmailAlertConfig in interface ModelMonitoringAlertConfigOrBuilder
      Returns:
      Whether the emailAlertConfig field is set.
    • getEmailAlertConfig

      public ModelMonitoringAlertConfig.EmailAlertConfig getEmailAlertConfig()
       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
      Specified by:
      getEmailAlertConfig in interface ModelMonitoringAlertConfigOrBuilder
      Returns:
      The emailAlertConfig.
    • setEmailAlertConfig

       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
    • setEmailAlertConfig

       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
    • mergeEmailAlertConfig

       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
    • clearEmailAlertConfig

      public ModelMonitoringAlertConfig.Builder clearEmailAlertConfig()
       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
    • getEmailAlertConfigBuilder

      public ModelMonitoringAlertConfig.EmailAlertConfig.Builder getEmailAlertConfigBuilder()
       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
    • getEmailAlertConfigOrBuilder

      public ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder getEmailAlertConfigOrBuilder()
       Email alert config.
       
      .google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;
      Specified by:
      getEmailAlertConfigOrBuilder in interface ModelMonitoringAlertConfigOrBuilder
    • getEnableLogging

      public boolean getEnableLogging()
       Dump the anomalies to Cloud Logging. The anomalies will be put to json
       payload encoded from proto
       [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies].
       This can be further synced to Pub/Sub or any other services supported by
       Cloud Logging.
       
      bool enable_logging = 2;
      Specified by:
      getEnableLogging in interface ModelMonitoringAlertConfigOrBuilder
      Returns:
      The enableLogging.
    • setEnableLogging

      public ModelMonitoringAlertConfig.Builder setEnableLogging(boolean value)
       Dump the anomalies to Cloud Logging. The anomalies will be put to json
       payload encoded from proto
       [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies].
       This can be further synced to Pub/Sub or any other services supported by
       Cloud Logging.
       
      bool enable_logging = 2;
      Parameters:
      value - The enableLogging to set.
      Returns:
      This builder for chaining.
    • clearEnableLogging

      public ModelMonitoringAlertConfig.Builder clearEnableLogging()
       Dump the anomalies to Cloud Logging. The anomalies will be put to json
       payload encoded from proto
       [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies].
       This can be further synced to Pub/Sub or any other services supported by
       Cloud Logging.
       
      bool enable_logging = 2;
      Returns:
      This builder for chaining.
    • getNotificationChannelsList

      public com.google.protobuf.ProtocolStringList getNotificationChannelsList()
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNotificationChannelsList in interface ModelMonitoringAlertConfigOrBuilder
      Returns:
      A list containing the notificationChannels.
    • getNotificationChannelsCount

      public int getNotificationChannelsCount()
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNotificationChannelsCount in interface ModelMonitoringAlertConfigOrBuilder
      Returns:
      The count of notificationChannels.
    • getNotificationChannels

      public String getNotificationChannels(int index)
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNotificationChannels in interface ModelMonitoringAlertConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The notificationChannels at the given index.
    • getNotificationChannelsBytes

      public com.google.protobuf.ByteString getNotificationChannelsBytes(int index)
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNotificationChannelsBytes in interface ModelMonitoringAlertConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the notificationChannels at the given index.
    • setNotificationChannels

      public ModelMonitoringAlertConfig.Builder setNotificationChannels(int index, String value)
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The notificationChannels to set.
      Returns:
      This builder for chaining.
    • addNotificationChannels

      public ModelMonitoringAlertConfig.Builder addNotificationChannels(String value)
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The notificationChannels to add.
      Returns:
      This builder for chaining.
    • addAllNotificationChannels

      public ModelMonitoringAlertConfig.Builder addAllNotificationChannels(Iterable<String> values)
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The notificationChannels to add.
      Returns:
      This builder for chaining.
    • clearNotificationChannels

      public ModelMonitoringAlertConfig.Builder clearNotificationChannels()
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addNotificationChannelsBytes

      public ModelMonitoringAlertConfig.Builder addNotificationChannelsBytes(com.google.protobuf.ByteString value)
       Resource names of the NotificationChannels to send alert.
       Must be of the format
       `projects/<project_id_or_number>/notificationChannels/<channel_id>`
       
      repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the notificationChannels to add.
      Returns:
      This builder for chaining.