Class ModelMonitoringAlertConfig.Builder (3.55.0)

public static final class ModelMonitoringAlertConfig.Builder extends GeneratedMessageV3.Builder<ModelMonitoringAlertConfig.Builder> implements ModelMonitoringAlertConfigOrBuilder

The alert config for model monitoring.

Protobuf type google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNotificationChannels(Iterable<String> values)

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) = { ... }

Parameter
Name Description
values Iterable<String>

The notificationChannels to add.

Returns
Type Description
ModelMonitoringAlertConfig.Builder

This builder for chaining.

addNotificationChannels(String value)

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) = { ... }

Parameter
Name Description
value String

The notificationChannels to add.

Returns
Type Description
ModelMonitoringAlertConfig.Builder

This builder for chaining.

addNotificationChannelsBytes(ByteString value)

public ModelMonitoringAlertConfig.Builder addNotificationChannelsBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes of the notificationChannels to add.

Returns
Type Description
ModelMonitoringAlertConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModelMonitoringAlertConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

build()

public ModelMonitoringAlertConfig build()
Returns
Type Description
ModelMonitoringAlertConfig

buildPartial()

public ModelMonitoringAlertConfig buildPartial()
Returns
Type Description
ModelMonitoringAlertConfig

clear()

public ModelMonitoringAlertConfig.Builder clear()
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

clearAlert()

public ModelMonitoringAlertConfig.Builder clearAlert()
Returns
Type Description
ModelMonitoringAlertConfig.Builder

clearEmailAlertConfig()

public ModelMonitoringAlertConfig.Builder clearEmailAlertConfig()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Returns
Type Description
ModelMonitoringAlertConfig.Builder

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
Type Description
ModelMonitoringAlertConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModelMonitoringAlertConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

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
Type Description
ModelMonitoringAlertConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelMonitoringAlertConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

clone()

public ModelMonitoringAlertConfig.Builder clone()
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

getAlertCase()

public ModelMonitoringAlertConfig.AlertCase getAlertCase()
Returns
Type Description
ModelMonitoringAlertConfig.AlertCase

getDefaultInstanceForType()

public ModelMonitoringAlertConfig getDefaultInstanceForType()
Returns
Type Description
ModelMonitoringAlertConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEmailAlertConfig()

public ModelMonitoringAlertConfig.EmailAlertConfig getEmailAlertConfig()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Returns
Type Description
ModelMonitoringAlertConfig.EmailAlertConfig

The emailAlertConfig.

getEmailAlertConfigBuilder()

public ModelMonitoringAlertConfig.EmailAlertConfig.Builder getEmailAlertConfigBuilder()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Returns
Type Description
ModelMonitoringAlertConfig.EmailAlertConfig.Builder

getEmailAlertConfigOrBuilder()

public ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder getEmailAlertConfigOrBuilder()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Returns
Type Description
ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder

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;

Returns
Type Description
boolean

The enableLogging.

getNotificationChannels(int index)

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) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The notificationChannels at the given index.

getNotificationChannelsBytes(int index)

public 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) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the notificationChannels at the given index.

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) = { ... }

Returns
Type Description
int

The count of notificationChannels.

getNotificationChannelsList()

public 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) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the notificationChannels.

hasEmailAlertConfig()

public boolean hasEmailAlertConfig()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Returns
Type Description
boolean

Whether the emailAlertConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

public ModelMonitoringAlertConfig.Builder mergeEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Parameter
Name Description
value ModelMonitoringAlertConfig.EmailAlertConfig
Returns
Type Description
ModelMonitoringAlertConfig.Builder

mergeFrom(ModelMonitoringAlertConfig other)

public ModelMonitoringAlertConfig.Builder mergeFrom(ModelMonitoringAlertConfig other)
Parameter
Name Description
other ModelMonitoringAlertConfig
Returns
Type Description
ModelMonitoringAlertConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModelMonitoringAlertConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ModelMonitoringAlertConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelMonitoringAlertConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

public ModelMonitoringAlertConfig.Builder setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Parameter
Name Description
value ModelMonitoringAlertConfig.EmailAlertConfig
Returns
Type Description
ModelMonitoringAlertConfig.Builder

setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig.Builder builderForValue)

public ModelMonitoringAlertConfig.Builder setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig.Builder builderForValue)

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;

Parameter
Name Description
builderForValue ModelMonitoringAlertConfig.EmailAlertConfig.Builder
Returns
Type Description
ModelMonitoringAlertConfig.Builder

setEnableLogging(boolean value)

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;

Parameter
Name Description
value boolean

The enableLogging to set.

Returns
Type Description
ModelMonitoringAlertConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ModelMonitoringAlertConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

setNotificationChannels(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The notificationChannels to set.

Returns
Type Description
ModelMonitoringAlertConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ModelMonitoringAlertConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelMonitoringAlertConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelMonitoringAlertConfig.Builder
Overrides