Class ModelMonitoringAlertConfig.Builder (3.29.0)

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

Protobuf type google.cloud.aiplatform.v1.ModelMonitoringAlertConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The notificationChannels to add.

Returns
TypeDescription
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
NameDescription
valueString

The notificationChannels to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the notificationChannels to add.

Returns
TypeDescription
ModelMonitoringAlertConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModelMonitoringAlertConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides

build()

public ModelMonitoringAlertConfig build()
Returns
TypeDescription
ModelMonitoringAlertConfig

buildPartial()

public ModelMonitoringAlertConfig buildPartial()
Returns
TypeDescription
ModelMonitoringAlertConfig

clear()

public ModelMonitoringAlertConfig.Builder clear()
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides

clearAlert()

public ModelMonitoringAlertConfig.Builder clearAlert()
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder

clearEmailAlertConfig()

public ModelMonitoringAlertConfig.Builder clearEmailAlertConfig()

Email alert config.

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

Returns
TypeDescription
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
TypeDescription
ModelMonitoringAlertConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModelMonitoringAlertConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ModelMonitoringAlertConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelMonitoringAlertConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides

clone()

public ModelMonitoringAlertConfig.Builder clone()
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides

getAlertCase()

public ModelMonitoringAlertConfig.AlertCase getAlertCase()
Returns
TypeDescription
ModelMonitoringAlertConfig.AlertCase

getDefaultInstanceForType()

public ModelMonitoringAlertConfig getDefaultInstanceForType()
Returns
TypeDescription
ModelMonitoringAlertConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEmailAlertConfig()

public ModelMonitoringAlertConfig.EmailAlertConfig getEmailAlertConfig()

Email alert config.

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

Returns
TypeDescription
ModelMonitoringAlertConfig.EmailAlertConfig

The emailAlertConfig.

getEmailAlertConfigBuilder()

public ModelMonitoringAlertConfig.EmailAlertConfig.Builder getEmailAlertConfigBuilder()

Email alert config.

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

Returns
TypeDescription
ModelMonitoringAlertConfig.EmailAlertConfig.Builder

getEmailAlertConfigOrBuilder()

public ModelMonitoringAlertConfig.EmailAlertConfigOrBuilder getEmailAlertConfigOrBuilder()

Email alert config.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the notificationChannels.

hasEmailAlertConfig()

public boolean hasEmailAlertConfig()

Email alert config.

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

Returns
TypeDescription
boolean

Whether the emailAlertConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

public ModelMonitoringAlertConfig.Builder mergeEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

Email alert config.

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

Parameter
NameDescription
valueModelMonitoringAlertConfig.EmailAlertConfig
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder

mergeFrom(ModelMonitoringAlertConfig other)

public ModelMonitoringAlertConfig.Builder mergeFrom(ModelMonitoringAlertConfig other)
Parameter
NameDescription
otherModelMonitoringAlertConfig
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModelMonitoringAlertConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ModelMonitoringAlertConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelMonitoringAlertConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides

setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

public ModelMonitoringAlertConfig.Builder setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value)

Email alert config.

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

Parameter
NameDescription
valueModelMonitoringAlertConfig.EmailAlertConfig
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder

setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig.Builder builderForValue)

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

Email alert config.

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

Parameter
NameDescription
builderForValueModelMonitoringAlertConfig.EmailAlertConfig.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The enableLogging to set.

Returns
TypeDescription
ModelMonitoringAlertConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ModelMonitoringAlertConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The notificationChannels to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelMonitoringAlertConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ModelMonitoringAlertConfig.Builder
Overrides