Class ModelMonitoringNotificationSpec.Builder (3.55.0)

public static final class ModelMonitoringNotificationSpec.Builder extends GeneratedMessageV3.Builder<ModelMonitoringNotificationSpec.Builder> implements ModelMonitoringNotificationSpecOrBuilder

Notification spec(email, notification channel) for model monitoring statistics/alerts.

Protobuf type google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec

Static Methods

getDescriptor()

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

Methods

addAllNotificationChannelConfigs(Iterable<? extends ModelMonitoringNotificationSpec.NotificationChannelConfig> values)

public ModelMonitoringNotificationSpec.Builder addAllNotificationChannelConfigs(Iterable<? extends ModelMonitoringNotificationSpec.NotificationChannelConfig> values)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig>
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

addNotificationChannelConfigs(ModelMonitoringNotificationSpec.NotificationChannelConfig value)

public ModelMonitoringNotificationSpec.Builder addNotificationChannelConfigs(ModelMonitoringNotificationSpec.NotificationChannelConfig value)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
value ModelMonitoringNotificationSpec.NotificationChannelConfig
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

addNotificationChannelConfigs(ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder builderForValue)

public ModelMonitoringNotificationSpec.Builder addNotificationChannelConfigs(ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder builderForValue)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
builderForValue ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

addNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig value)

public ModelMonitoringNotificationSpec.Builder addNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig value)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameters
Name Description
index int
value ModelMonitoringNotificationSpec.NotificationChannelConfig
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

addNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder builderForValue)

public ModelMonitoringNotificationSpec.Builder addNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder builderForValue)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameters
Name Description
index int
builderForValue ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

addNotificationChannelConfigsBuilder()

public ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder addNotificationChannelConfigsBuilder()

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Returns
Type Description
ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder

addNotificationChannelConfigsBuilder(int index)

public ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder addNotificationChannelConfigsBuilder(int index)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
index int
Returns
Type Description
ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelMonitoringNotificationSpec build()
Returns
Type Description
ModelMonitoringNotificationSpec

buildPartial()

public ModelMonitoringNotificationSpec buildPartial()
Returns
Type Description
ModelMonitoringNotificationSpec

clear()

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

clearEmailConfig()

public ModelMonitoringNotificationSpec.Builder clearEmailConfig()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Returns
Type Description
ModelMonitoringNotificationSpec.Builder

clearEnableCloudLogging()

public ModelMonitoringNotificationSpec.Builder clearEnableCloudLogging()

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_cloud_logging = 2;

Returns
Type Description
ModelMonitoringNotificationSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNotificationChannelConfigs()

public ModelMonitoringNotificationSpec.Builder clearNotificationChannelConfigs()

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Returns
Type Description
ModelMonitoringNotificationSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ModelMonitoringNotificationSpec getDefaultInstanceForType()
Returns
Type Description
ModelMonitoringNotificationSpec

getDescriptorForType()

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

getEmailConfig()

public ModelMonitoringNotificationSpec.EmailConfig getEmailConfig()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Returns
Type Description
ModelMonitoringNotificationSpec.EmailConfig

The emailConfig.

getEmailConfigBuilder()

public ModelMonitoringNotificationSpec.EmailConfig.Builder getEmailConfigBuilder()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Returns
Type Description
ModelMonitoringNotificationSpec.EmailConfig.Builder

getEmailConfigOrBuilder()

public ModelMonitoringNotificationSpec.EmailConfigOrBuilder getEmailConfigOrBuilder()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Returns
Type Description
ModelMonitoringNotificationSpec.EmailConfigOrBuilder

getEnableCloudLogging()

public boolean getEnableCloudLogging()

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_cloud_logging = 2;

Returns
Type Description
boolean

The enableCloudLogging.

getNotificationChannelConfigs(int index)

public ModelMonitoringNotificationSpec.NotificationChannelConfig getNotificationChannelConfigs(int index)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
index int
Returns
Type Description
ModelMonitoringNotificationSpec.NotificationChannelConfig

getNotificationChannelConfigsBuilder(int index)

public ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder getNotificationChannelConfigsBuilder(int index)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
index int
Returns
Type Description
ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder

getNotificationChannelConfigsBuilderList()

public List<ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder> getNotificationChannelConfigsBuilderList()

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Returns
Type Description
List<Builder>

getNotificationChannelConfigsCount()

public int getNotificationChannelConfigsCount()

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Returns
Type Description
int

getNotificationChannelConfigsList()

public List<ModelMonitoringNotificationSpec.NotificationChannelConfig> getNotificationChannelConfigsList()

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Returns
Type Description
List<NotificationChannelConfig>

getNotificationChannelConfigsOrBuilder(int index)

public ModelMonitoringNotificationSpec.NotificationChannelConfigOrBuilder getNotificationChannelConfigsOrBuilder(int index)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
index int
Returns
Type Description
ModelMonitoringNotificationSpec.NotificationChannelConfigOrBuilder

getNotificationChannelConfigsOrBuilderList()

public List<? extends ModelMonitoringNotificationSpec.NotificationChannelConfigOrBuilder> getNotificationChannelConfigsOrBuilderList()

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfigOrBuilder>

hasEmailConfig()

public boolean hasEmailConfig()

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Returns
Type Description
boolean

Whether the emailConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEmailConfig(ModelMonitoringNotificationSpec.EmailConfig value)

public ModelMonitoringNotificationSpec.Builder mergeEmailConfig(ModelMonitoringNotificationSpec.EmailConfig value)

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Parameter
Name Description
value ModelMonitoringNotificationSpec.EmailConfig
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

mergeFrom(ModelMonitoringNotificationSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNotificationChannelConfigs(int index)

public ModelMonitoringNotificationSpec.Builder removeNotificationChannelConfigs(int index)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameter
Name Description
index int
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

setEmailConfig(ModelMonitoringNotificationSpec.EmailConfig value)

public ModelMonitoringNotificationSpec.Builder setEmailConfig(ModelMonitoringNotificationSpec.EmailConfig value)

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Parameter
Name Description
value ModelMonitoringNotificationSpec.EmailConfig
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

setEmailConfig(ModelMonitoringNotificationSpec.EmailConfig.Builder builderForValue)

public ModelMonitoringNotificationSpec.Builder setEmailConfig(ModelMonitoringNotificationSpec.EmailConfig.Builder builderForValue)

Email alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.EmailConfig email_config = 1;

Parameter
Name Description
builderForValue ModelMonitoringNotificationSpec.EmailConfig.Builder
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

setEnableCloudLogging(boolean value)

public ModelMonitoringNotificationSpec.Builder setEnableCloudLogging(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_cloud_logging = 2;

Parameter
Name Description
value boolean

The enableCloudLogging to set.

Returns
Type Description
ModelMonitoringNotificationSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig value)

public ModelMonitoringNotificationSpec.Builder setNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig value)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameters
Name Description
index int
value ModelMonitoringNotificationSpec.NotificationChannelConfig
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

setNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder builderForValue)

public ModelMonitoringNotificationSpec.Builder setNotificationChannelConfigs(int index, ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder builderForValue)

Notification channel config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringNotificationSpec.NotificationChannelConfig notification_channel_configs = 3;

Parameters
Name Description
index int
builderForValue ModelMonitoringNotificationSpec.NotificationChannelConfig.Builder
Returns
Type Description
ModelMonitoringNotificationSpec.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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