Class ModelMonitoringConfig.Builder (3.6.0)

public static final class ModelMonitoringConfig.Builder extends GeneratedMessageV3.Builder<ModelMonitoringConfig.Builder> implements ModelMonitoringConfigOrBuilder

The model monitoring configuration used for Batch Prediction Job.

Protobuf type google.cloud.aiplatform.v1beta1.ModelMonitoringConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllObjectiveConfigs(Iterable<? extends ModelMonitoringObjectiveConfig> values)

public ModelMonitoringConfig.Builder addAllObjectiveConfigs(Iterable<? extends ModelMonitoringObjectiveConfig> values)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig>
Returns
TypeDescription
ModelMonitoringConfig.Builder

addObjectiveConfigs(ModelMonitoringObjectiveConfig value)

public ModelMonitoringConfig.Builder addObjectiveConfigs(ModelMonitoringObjectiveConfig value)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
valueModelMonitoringObjectiveConfig
Returns
TypeDescription
ModelMonitoringConfig.Builder

addObjectiveConfigs(ModelMonitoringObjectiveConfig.Builder builderForValue)

public ModelMonitoringConfig.Builder addObjectiveConfigs(ModelMonitoringObjectiveConfig.Builder builderForValue)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
builderForValueModelMonitoringObjectiveConfig.Builder
Returns
TypeDescription
ModelMonitoringConfig.Builder

addObjectiveConfigs(int index, ModelMonitoringObjectiveConfig value)

public ModelMonitoringConfig.Builder addObjectiveConfigs(int index, ModelMonitoringObjectiveConfig value)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameters
NameDescription
indexint
valueModelMonitoringObjectiveConfig
Returns
TypeDescription
ModelMonitoringConfig.Builder

addObjectiveConfigs(int index, ModelMonitoringObjectiveConfig.Builder builderForValue)

public ModelMonitoringConfig.Builder addObjectiveConfigs(int index, ModelMonitoringObjectiveConfig.Builder builderForValue)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameters
NameDescription
indexint
builderForValueModelMonitoringObjectiveConfig.Builder
Returns
TypeDescription
ModelMonitoringConfig.Builder

addObjectiveConfigsBuilder()

public ModelMonitoringObjectiveConfig.Builder addObjectiveConfigsBuilder()

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Returns
TypeDescription
ModelMonitoringObjectiveConfig.Builder

addObjectiveConfigsBuilder(int index)

public ModelMonitoringObjectiveConfig.Builder addObjectiveConfigsBuilder(int index)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ModelMonitoringObjectiveConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelMonitoringConfig build()
Returns
TypeDescription
ModelMonitoringConfig

buildPartial()

public ModelMonitoringConfig buildPartial()
Returns
TypeDescription
ModelMonitoringConfig

clear()

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

clearAlertConfig()

public ModelMonitoringConfig.Builder clearAlertConfig()

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Returns
TypeDescription
ModelMonitoringConfig.Builder

clearAnalysisInstanceSchemaUri()

public ModelMonitoringConfig.Builder clearAnalysisInstanceSchemaUri()

YAML schema file uri in Cloud Storage describing the format of a single instance that you want Tensorflow Data Validation (TFDV) to analyze. If there are any data type differences between predict instance and TFDV instance, this field can be used to override the schema. For models trained with Vertex AI, this field must be set as all the fields in predict instance formatted as string.

string analysis_instance_schema_uri = 4;

Returns
TypeDescription
ModelMonitoringConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModelMonitoringConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ModelMonitoringConfig.Builder
Overrides

clearObjectiveConfigs()

public ModelMonitoringConfig.Builder clearObjectiveConfigs()

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Returns
TypeDescription
ModelMonitoringConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStatsAnomaliesBaseDirectory()

public ModelMonitoringConfig.Builder clearStatsAnomaliesBaseDirectory()

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Returns
TypeDescription
ModelMonitoringConfig.Builder

clone()

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

getAlertConfig()

public ModelMonitoringAlertConfig getAlertConfig()

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Returns
TypeDescription
ModelMonitoringAlertConfig

The alertConfig.

getAlertConfigBuilder()

public ModelMonitoringAlertConfig.Builder getAlertConfigBuilder()

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Returns
TypeDescription
ModelMonitoringAlertConfig.Builder

getAlertConfigOrBuilder()

public ModelMonitoringAlertConfigOrBuilder getAlertConfigOrBuilder()

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Returns
TypeDescription
ModelMonitoringAlertConfigOrBuilder

getAnalysisInstanceSchemaUri()

public String getAnalysisInstanceSchemaUri()

YAML schema file uri in Cloud Storage describing the format of a single instance that you want Tensorflow Data Validation (TFDV) to analyze. If there are any data type differences between predict instance and TFDV instance, this field can be used to override the schema. For models trained with Vertex AI, this field must be set as all the fields in predict instance formatted as string.

string analysis_instance_schema_uri = 4;

Returns
TypeDescription
String

The analysisInstanceSchemaUri.

getAnalysisInstanceSchemaUriBytes()

public ByteString getAnalysisInstanceSchemaUriBytes()

YAML schema file uri in Cloud Storage describing the format of a single instance that you want Tensorflow Data Validation (TFDV) to analyze. If there are any data type differences between predict instance and TFDV instance, this field can be used to override the schema. For models trained with Vertex AI, this field must be set as all the fields in predict instance formatted as string.

string analysis_instance_schema_uri = 4;

Returns
TypeDescription
ByteString

The bytes for analysisInstanceSchemaUri.

getDefaultInstanceForType()

public ModelMonitoringConfig getDefaultInstanceForType()
Returns
TypeDescription
ModelMonitoringConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getObjectiveConfigs(int index)

public ModelMonitoringObjectiveConfig getObjectiveConfigs(int index)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ModelMonitoringObjectiveConfig

getObjectiveConfigsBuilder(int index)

public ModelMonitoringObjectiveConfig.Builder getObjectiveConfigsBuilder(int index)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ModelMonitoringObjectiveConfig.Builder

getObjectiveConfigsBuilderList()

public List<ModelMonitoringObjectiveConfig.Builder> getObjectiveConfigsBuilderList()

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Returns
TypeDescription
List<Builder>

getObjectiveConfigsCount()

public int getObjectiveConfigsCount()

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Returns
TypeDescription
int

getObjectiveConfigsList()

public List<ModelMonitoringObjectiveConfig> getObjectiveConfigsList()

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Returns
TypeDescription
List<ModelMonitoringObjectiveConfig>

getObjectiveConfigsOrBuilder(int index)

public ModelMonitoringObjectiveConfigOrBuilder getObjectiveConfigsOrBuilder(int index)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ModelMonitoringObjectiveConfigOrBuilder

getObjectiveConfigsOrBuilderList()

public List<? extends ModelMonitoringObjectiveConfigOrBuilder> getObjectiveConfigsOrBuilderList()

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder>

getStatsAnomaliesBaseDirectory()

public GcsDestination getStatsAnomaliesBaseDirectory()

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Returns
TypeDescription
GcsDestination

The statsAnomaliesBaseDirectory.

getStatsAnomaliesBaseDirectoryBuilder()

public GcsDestination.Builder getStatsAnomaliesBaseDirectoryBuilder()

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Returns
TypeDescription
GcsDestination.Builder

getStatsAnomaliesBaseDirectoryOrBuilder()

public GcsDestinationOrBuilder getStatsAnomaliesBaseDirectoryOrBuilder()

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Returns
TypeDescription
GcsDestinationOrBuilder

hasAlertConfig()

public boolean hasAlertConfig()

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Returns
TypeDescription
boolean

Whether the alertConfig field is set.

hasStatsAnomaliesBaseDirectory()

public boolean hasStatsAnomaliesBaseDirectory()

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Returns
TypeDescription
boolean

Whether the statsAnomaliesBaseDirectory field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAlertConfig(ModelMonitoringAlertConfig value)

public ModelMonitoringConfig.Builder mergeAlertConfig(ModelMonitoringAlertConfig value)

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Parameter
NameDescription
valueModelMonitoringAlertConfig
Returns
TypeDescription
ModelMonitoringConfig.Builder

mergeFrom(ModelMonitoringConfig other)

public ModelMonitoringConfig.Builder mergeFrom(ModelMonitoringConfig other)
Parameter
NameDescription
otherModelMonitoringConfig
Returns
TypeDescription
ModelMonitoringConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStatsAnomaliesBaseDirectory(GcsDestination value)

public ModelMonitoringConfig.Builder mergeStatsAnomaliesBaseDirectory(GcsDestination value)

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Parameter
NameDescription
valueGcsDestination
Returns
TypeDescription
ModelMonitoringConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeObjectiveConfigs(int index)

public ModelMonitoringConfig.Builder removeObjectiveConfigs(int index)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ModelMonitoringConfig.Builder

setAlertConfig(ModelMonitoringAlertConfig value)

public ModelMonitoringConfig.Builder setAlertConfig(ModelMonitoringAlertConfig value)

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Parameter
NameDescription
valueModelMonitoringAlertConfig
Returns
TypeDescription
ModelMonitoringConfig.Builder

setAlertConfig(ModelMonitoringAlertConfig.Builder builderForValue)

public ModelMonitoringConfig.Builder setAlertConfig(ModelMonitoringAlertConfig.Builder builderForValue)

Model monitoring alert config.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;

Parameter
NameDescription
builderForValueModelMonitoringAlertConfig.Builder
Returns
TypeDescription
ModelMonitoringConfig.Builder

setAnalysisInstanceSchemaUri(String value)

public ModelMonitoringConfig.Builder setAnalysisInstanceSchemaUri(String value)

YAML schema file uri in Cloud Storage describing the format of a single instance that you want Tensorflow Data Validation (TFDV) to analyze. If there are any data type differences between predict instance and TFDV instance, this field can be used to override the schema. For models trained with Vertex AI, this field must be set as all the fields in predict instance formatted as string.

string analysis_instance_schema_uri = 4;

Parameter
NameDescription
valueString

The analysisInstanceSchemaUri to set.

Returns
TypeDescription
ModelMonitoringConfig.Builder

This builder for chaining.

setAnalysisInstanceSchemaUriBytes(ByteString value)

public ModelMonitoringConfig.Builder setAnalysisInstanceSchemaUriBytes(ByteString value)

YAML schema file uri in Cloud Storage describing the format of a single instance that you want Tensorflow Data Validation (TFDV) to analyze. If there are any data type differences between predict instance and TFDV instance, this field can be used to override the schema. For models trained with Vertex AI, this field must be set as all the fields in predict instance formatted as string.

string analysis_instance_schema_uri = 4;

Parameter
NameDescription
valueByteString

The bytes for analysisInstanceSchemaUri to set.

Returns
TypeDescription
ModelMonitoringConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setObjectiveConfigs(int index, ModelMonitoringObjectiveConfig value)

public ModelMonitoringConfig.Builder setObjectiveConfigs(int index, ModelMonitoringObjectiveConfig value)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameters
NameDescription
indexint
valueModelMonitoringObjectiveConfig
Returns
TypeDescription
ModelMonitoringConfig.Builder

setObjectiveConfigs(int index, ModelMonitoringObjectiveConfig.Builder builderForValue)

public ModelMonitoringConfig.Builder setObjectiveConfigs(int index, ModelMonitoringObjectiveConfig.Builder builderForValue)

Model monitoring objective config.

repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;

Parameters
NameDescription
indexint
builderForValueModelMonitoringObjectiveConfig.Builder
Returns
TypeDescription
ModelMonitoringConfig.Builder

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

public ModelMonitoringConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ModelMonitoringConfig.Builder
Overrides

setStatsAnomaliesBaseDirectory(GcsDestination value)

public ModelMonitoringConfig.Builder setStatsAnomaliesBaseDirectory(GcsDestination value)

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Parameter
NameDescription
valueGcsDestination
Returns
TypeDescription
ModelMonitoringConfig.Builder

setStatsAnomaliesBaseDirectory(GcsDestination.Builder builderForValue)

public ModelMonitoringConfig.Builder setStatsAnomaliesBaseDirectory(GcsDestination.Builder builderForValue)

A Google Cloud Storage location for batch prediction model monitoring to dump statistics and anomalies. If not provided, a folder will be created in customer project to hold statistics and anomalies.

.google.cloud.aiplatform.v1beta1.GcsDestination stats_anomalies_base_directory = 5;

Parameter
NameDescription
builderForValueGcsDestination.Builder
Returns
TypeDescription
ModelMonitoringConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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