Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllNotificationChannels(Iterable<String> values) Resource names of the NotificationChannels to send alert.addNotificationChannels(String value) Resource names of the NotificationChannels to send alert.addNotificationChannelsBytes(com.google.protobuf.ByteString value) Resource names of the NotificationChannels to send alert.build()clear()Email alert config.Dump the anomalies to Cloud Logging.Resource names of the NotificationChannels to send alert.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEmail alert config.Email alert config.Email alert config.booleanDump the anomalies to Cloud Logging.getNotificationChannels(int index) Resource names of the NotificationChannels to send alert.com.google.protobuf.ByteStringgetNotificationChannelsBytes(int index) Resource names of the NotificationChannels to send alert.intResource names of the NotificationChannels to send alert.com.google.protobuf.ProtocolStringListResource names of the NotificationChannels to send alert.booleanEmail alert config.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanEmail alert config.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Email alert config.setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig.Builder builderForValue) Email alert config.setEnableLogging(boolean value) Dump the anomalies to Cloud Logging.setNotificationChannels(int index, String value) Resource names of the NotificationChannels to send alert.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ModelMonitoringAlertConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ModelMonitoringAlertConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ModelMonitoringAlertConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelMonitoringAlertConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelMonitoringAlertConfig.Builder>- Throws:
IOException
-
getAlertCase
- Specified by:
getAlertCasein interfaceModelMonitoringAlertConfigOrBuilder
-
clearAlert
-
hasEmailAlertConfig
public boolean hasEmailAlertConfig()Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;- Specified by:
hasEmailAlertConfigin interfaceModelMonitoringAlertConfigOrBuilder- Returns:
- Whether the emailAlertConfig field is set.
-
getEmailAlertConfig
Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;- Specified by:
getEmailAlertConfigin interfaceModelMonitoringAlertConfigOrBuilder- Returns:
- The emailAlertConfig.
-
setEmailAlertConfig
public ModelMonitoringAlertConfig.Builder setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value) Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; -
setEmailAlertConfig
public ModelMonitoringAlertConfig.Builder setEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig.Builder builderForValue) Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; -
mergeEmailAlertConfig
public ModelMonitoringAlertConfig.Builder mergeEmailAlertConfig(ModelMonitoringAlertConfig.EmailAlertConfig value) Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; -
clearEmailAlertConfig
Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; -
getEmailAlertConfigBuilder
Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1; -
getEmailAlertConfigOrBuilder
Email alert config.
.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig email_alert_config = 1;- Specified by:
getEmailAlertConfigOrBuilderin interfaceModelMonitoringAlertConfigOrBuilder
-
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:
getEnableLoggingin interfaceModelMonitoringAlertConfigOrBuilder- Returns:
- The enableLogging.
-
setEnableLogging
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
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:
getNotificationChannelsListin interfaceModelMonitoringAlertConfigOrBuilder- 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:
getNotificationChannelsCountin interfaceModelMonitoringAlertConfigOrBuilder- Returns:
- The count of notificationChannels.
-
getNotificationChannels
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:
getNotificationChannelsin interfaceModelMonitoringAlertConfigOrBuilder- 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:
getNotificationChannelsBytesin interfaceModelMonitoringAlertConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the notificationChannels at the given index.
-
setNotificationChannels
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
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
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
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.
-