Class ModelMonitoringConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringConfig.Builder>
com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder
All Implemented Interfaces:
ModelMonitoringConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ModelMonitoringConfig

public static final class ModelMonitoringConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringConfig.Builder> implements ModelMonitoringConfigOrBuilder
 The model monitoring configuration used for Batch Prediction Job.
 
Protobuf type google.cloud.aiplatform.v1beta1.ModelMonitoringConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringConfig.Builder>
    • getDefaultInstanceForType

      public ModelMonitoringConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ModelMonitoringConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ModelMonitoringConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ModelMonitoringConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelMonitoringConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ModelMonitoringConfig.Builder>
    • mergeFrom

      public ModelMonitoringConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelMonitoringConfig.Builder>
      Throws:
      IOException
    • getObjectiveConfigsList

      public List<ModelMonitoringObjectiveConfig> getObjectiveConfigsList()
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
      Specified by:
      getObjectiveConfigsList in interface ModelMonitoringConfigOrBuilder
    • getObjectiveConfigsCount

      public int getObjectiveConfigsCount()
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
      Specified by:
      getObjectiveConfigsCount in interface ModelMonitoringConfigOrBuilder
    • getObjectiveConfigs

      public ModelMonitoringObjectiveConfig getObjectiveConfigs(int index)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
      Specified by:
      getObjectiveConfigs in interface ModelMonitoringConfigOrBuilder
    • setObjectiveConfigs

      public ModelMonitoringConfig.Builder setObjectiveConfigs(int index, ModelMonitoringObjectiveConfig value)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • setObjectiveConfigs

      public ModelMonitoringConfig.Builder setObjectiveConfigs(int index, ModelMonitoringObjectiveConfig.Builder builderForValue)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • addObjectiveConfigs

       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • addObjectiveConfigs

      public ModelMonitoringConfig.Builder addObjectiveConfigs(int index, ModelMonitoringObjectiveConfig value)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • addObjectiveConfigs

      public ModelMonitoringConfig.Builder addObjectiveConfigs(ModelMonitoringObjectiveConfig.Builder builderForValue)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • addObjectiveConfigs

      public ModelMonitoringConfig.Builder addObjectiveConfigs(int index, ModelMonitoringObjectiveConfig.Builder builderForValue)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • addAllObjectiveConfigs

      public ModelMonitoringConfig.Builder addAllObjectiveConfigs(Iterable<? extends ModelMonitoringObjectiveConfig> values)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • clearObjectiveConfigs

      public ModelMonitoringConfig.Builder clearObjectiveConfigs()
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • removeObjectiveConfigs

      public ModelMonitoringConfig.Builder removeObjectiveConfigs(int index)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • getObjectiveConfigsBuilder

      public ModelMonitoringObjectiveConfig.Builder getObjectiveConfigsBuilder(int index)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • getObjectiveConfigsOrBuilder

      public ModelMonitoringObjectiveConfigOrBuilder getObjectiveConfigsOrBuilder(int index)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
      Specified by:
      getObjectiveConfigsOrBuilder in interface ModelMonitoringConfigOrBuilder
    • getObjectiveConfigsOrBuilderList

      public List<? extends ModelMonitoringObjectiveConfigOrBuilder> getObjectiveConfigsOrBuilderList()
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
      Specified by:
      getObjectiveConfigsOrBuilderList in interface ModelMonitoringConfigOrBuilder
    • addObjectiveConfigsBuilder

      public ModelMonitoringObjectiveConfig.Builder addObjectiveConfigsBuilder()
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • addObjectiveConfigsBuilder

      public ModelMonitoringObjectiveConfig.Builder addObjectiveConfigsBuilder(int index)
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • getObjectiveConfigsBuilderList

      public List<ModelMonitoringObjectiveConfig.Builder> getObjectiveConfigsBuilderList()
       Model monitoring objective config.
       
      repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3;
    • hasAlertConfig

      public boolean hasAlertConfig()
       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
      Specified by:
      hasAlertConfig in interface ModelMonitoringConfigOrBuilder
      Returns:
      Whether the alertConfig field is set.
    • getAlertConfig

      public ModelMonitoringAlertConfig getAlertConfig()
       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
      Specified by:
      getAlertConfig in interface ModelMonitoringConfigOrBuilder
      Returns:
      The alertConfig.
    • setAlertConfig

       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
    • setAlertConfig

      public ModelMonitoringConfig.Builder setAlertConfig(ModelMonitoringAlertConfig.Builder builderForValue)
       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
    • mergeAlertConfig

       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
    • clearAlertConfig

      public ModelMonitoringConfig.Builder clearAlertConfig()
       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
    • getAlertConfigBuilder

      public ModelMonitoringAlertConfig.Builder getAlertConfigBuilder()
       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
    • getAlertConfigOrBuilder

      public ModelMonitoringAlertConfigOrBuilder getAlertConfigOrBuilder()
       Model monitoring alert config.
       
      .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2;
      Specified by:
      getAlertConfigOrBuilder in interface ModelMonitoringConfigOrBuilder
    • 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;
      Specified by:
      getAnalysisInstanceSchemaUri in interface ModelMonitoringConfigOrBuilder
      Returns:
      The analysisInstanceSchemaUri.
    • getAnalysisInstanceSchemaUriBytes

      public com.google.protobuf.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;
      Specified by:
      getAnalysisInstanceSchemaUriBytes in interface ModelMonitoringConfigOrBuilder
      Returns:
      The bytes for analysisInstanceSchemaUri.
    • setAnalysisInstanceSchemaUri

      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;
      Parameters:
      value - The analysisInstanceSchemaUri to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setAnalysisInstanceSchemaUriBytes

      public ModelMonitoringConfig.Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for analysisInstanceSchemaUri to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasStatsAnomaliesBaseDirectory in interface ModelMonitoringConfigOrBuilder
      Returns:
      Whether the statsAnomaliesBaseDirectory field is set.
    • 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;
      Specified by:
      getStatsAnomaliesBaseDirectory in interface ModelMonitoringConfigOrBuilder
      Returns:
      The statsAnomaliesBaseDirectory.
    • setStatsAnomaliesBaseDirectory

      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;
    • setStatsAnomaliesBaseDirectory

      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;
    • mergeStatsAnomaliesBaseDirectory

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getStatsAnomaliesBaseDirectoryOrBuilder in interface ModelMonitoringConfigOrBuilder