Class ModelMonitoringAlertConfig.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<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.GeneratedMessageV3.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

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

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

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

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

        public boolean getEnableLogging()
         Dump the anomalies to Cloud Logging. The anomalies will be put to json
         payload encoded from proto
         [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][].
         This can be further sinked 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
         [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][].
         This can be further sinked 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
         [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][].
         This can be further sinked 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.
      • setUnknownFields

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

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