Class FeatureStatsAndAnomaly.Builder

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

public static final class FeatureStatsAndAnomaly.Builder extends com.google.protobuf.GeneratedMessage.Builder<FeatureStatsAndAnomaly.Builder> implements FeatureStatsAndAnomalyOrBuilder
 Stats and Anomaly generated by FeatureMonitorJobs. Anomaly only includes
 Drift.
 
Protobuf type google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly
  • 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<FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.Builder>
    • getDefaultInstanceForType

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

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

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

      public FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.Builder>
    • mergeFrom

      public FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.Builder>
      Throws:
      IOException
    • getFeatureId

      public String getFeatureId()
       Feature Id.
       
      string feature_id = 1;
      Specified by:
      getFeatureId in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The featureId.
    • getFeatureIdBytes

      public com.google.protobuf.ByteString getFeatureIdBytes()
       Feature Id.
       
      string feature_id = 1;
      Specified by:
      getFeatureIdBytes in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The bytes for featureId.
    • setFeatureId

      public FeatureStatsAndAnomaly.Builder setFeatureId(String value)
       Feature Id.
       
      string feature_id = 1;
      Parameters:
      value - The featureId to set.
      Returns:
      This builder for chaining.
    • clearFeatureId

      public FeatureStatsAndAnomaly.Builder clearFeatureId()
       Feature Id.
       
      string feature_id = 1;
      Returns:
      This builder for chaining.
    • setFeatureIdBytes

      public FeatureStatsAndAnomaly.Builder setFeatureIdBytes(com.google.protobuf.ByteString value)
       Feature Id.
       
      string feature_id = 1;
      Parameters:
      value - The bytes for featureId to set.
      Returns:
      This builder for chaining.
    • hasFeatureStats

      public boolean hasFeatureStats()
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
      Specified by:
      hasFeatureStats in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      Whether the featureStats field is set.
    • getFeatureStats

      public com.google.protobuf.Value getFeatureStats()
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
      Specified by:
      getFeatureStats in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The featureStats.
    • setFeatureStats

      public FeatureStatsAndAnomaly.Builder setFeatureStats(com.google.protobuf.Value value)
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
    • setFeatureStats

      public FeatureStatsAndAnomaly.Builder setFeatureStats(com.google.protobuf.Value.Builder builderForValue)
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
    • mergeFeatureStats

      public FeatureStatsAndAnomaly.Builder mergeFeatureStats(com.google.protobuf.Value value)
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
    • clearFeatureStats

      public FeatureStatsAndAnomaly.Builder clearFeatureStats()
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
    • getFeatureStatsBuilder

      public com.google.protobuf.Value.Builder getFeatureStatsBuilder()
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
    • getFeatureStatsOrBuilder

      public com.google.protobuf.ValueOrBuilder getFeatureStatsOrBuilder()
       Feature stats. e.g. histogram buckets.
       In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
       
      .google.protobuf.Value feature_stats = 2;
      Specified by:
      getFeatureStatsOrBuilder in interface FeatureStatsAndAnomalyOrBuilder
    • getDistributionDeviation

      public double getDistributionDeviation()
       Deviation from the current stats to baseline stats.
       1. For categorical feature, the distribution distance is calculated by
       L-inifinity norm.
       2. For numerical feature, the distribution distance is calculated by
       Jensen–Shannon divergence.
       
      double distribution_deviation = 3;
      Specified by:
      getDistributionDeviation in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The distributionDeviation.
    • setDistributionDeviation

      public FeatureStatsAndAnomaly.Builder setDistributionDeviation(double value)
       Deviation from the current stats to baseline stats.
       1. For categorical feature, the distribution distance is calculated by
       L-inifinity norm.
       2. For numerical feature, the distribution distance is calculated by
       Jensen–Shannon divergence.
       
      double distribution_deviation = 3;
      Parameters:
      value - The distributionDeviation to set.
      Returns:
      This builder for chaining.
    • clearDistributionDeviation

      public FeatureStatsAndAnomaly.Builder clearDistributionDeviation()
       Deviation from the current stats to baseline stats.
       1. For categorical feature, the distribution distance is calculated by
       L-inifinity norm.
       2. For numerical feature, the distribution distance is calculated by
       Jensen–Shannon divergence.
       
      double distribution_deviation = 3;
      Returns:
      This builder for chaining.
    • getDriftDetectionThreshold

      public double getDriftDetectionThreshold()
       This is the threshold used when detecting drifts, which is set in
       FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_threshold
       
      double drift_detection_threshold = 4;
      Specified by:
      getDriftDetectionThreshold in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The driftDetectionThreshold.
    • setDriftDetectionThreshold

      public FeatureStatsAndAnomaly.Builder setDriftDetectionThreshold(double value)
       This is the threshold used when detecting drifts, which is set in
       FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_threshold
       
      double drift_detection_threshold = 4;
      Parameters:
      value - The driftDetectionThreshold to set.
      Returns:
      This builder for chaining.
    • clearDriftDetectionThreshold

      public FeatureStatsAndAnomaly.Builder clearDriftDetectionThreshold()
       This is the threshold used when detecting drifts, which is set in
       FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_threshold
       
      double drift_detection_threshold = 4;
      Returns:
      This builder for chaining.
    • getDriftDetected

      public boolean getDriftDetected()
       If set to true, indicates current stats is detected as and comparing
       with baseline stats.
       
      bool drift_detected = 5;
      Specified by:
      getDriftDetected in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The driftDetected.
    • setDriftDetected

      public FeatureStatsAndAnomaly.Builder setDriftDetected(boolean value)
       If set to true, indicates current stats is detected as and comparing
       with baseline stats.
       
      bool drift_detected = 5;
      Parameters:
      value - The driftDetected to set.
      Returns:
      This builder for chaining.
    • clearDriftDetected

      public FeatureStatsAndAnomaly.Builder clearDriftDetected()
       If set to true, indicates current stats is detected as and comparing
       with baseline stats.
       
      bool drift_detected = 5;
      Returns:
      This builder for chaining.
    • hasStatsTime

      public boolean hasStatsTime()
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
      Specified by:
      hasStatsTime in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      Whether the statsTime field is set.
    • getStatsTime

      public com.google.protobuf.Timestamp getStatsTime()
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
      Specified by:
      getStatsTime in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The statsTime.
    • setStatsTime

      public FeatureStatsAndAnomaly.Builder setStatsTime(com.google.protobuf.Timestamp value)
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
    • setStatsTime

      public FeatureStatsAndAnomaly.Builder setStatsTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
    • mergeStatsTime

      public FeatureStatsAndAnomaly.Builder mergeStatsTime(com.google.protobuf.Timestamp value)
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
    • clearStatsTime

      public FeatureStatsAndAnomaly.Builder clearStatsTime()
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
    • getStatsTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStatsTimeBuilder()
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
    • getStatsTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStatsTimeOrBuilder()
       The timestamp we take snapshot for feature values to generate stats.
       
      .google.protobuf.Timestamp stats_time = 6;
      Specified by:
      getStatsTimeOrBuilder in interface FeatureStatsAndAnomalyOrBuilder
    • getFeatureMonitorJobId

      public long getFeatureMonitorJobId()
       The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.
       
      int64 feature_monitor_job_id = 7;
      Specified by:
      getFeatureMonitorJobId in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The featureMonitorJobId.
    • setFeatureMonitorJobId

      public FeatureStatsAndAnomaly.Builder setFeatureMonitorJobId(long value)
       The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.
       
      int64 feature_monitor_job_id = 7;
      Parameters:
      value - The featureMonitorJobId to set.
      Returns:
      This builder for chaining.
    • clearFeatureMonitorJobId

      public FeatureStatsAndAnomaly.Builder clearFeatureMonitorJobId()
       The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.
       
      int64 feature_monitor_job_id = 7;
      Returns:
      This builder for chaining.
    • getFeatureMonitorId

      public String getFeatureMonitorId()
       The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated
       according to.
       
      string feature_monitor_id = 8;
      Specified by:
      getFeatureMonitorId in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The featureMonitorId.
    • getFeatureMonitorIdBytes

      public com.google.protobuf.ByteString getFeatureMonitorIdBytes()
       The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated
       according to.
       
      string feature_monitor_id = 8;
      Specified by:
      getFeatureMonitorIdBytes in interface FeatureStatsAndAnomalyOrBuilder
      Returns:
      The bytes for featureMonitorId.
    • setFeatureMonitorId

      public FeatureStatsAndAnomaly.Builder setFeatureMonitorId(String value)
       The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated
       according to.
       
      string feature_monitor_id = 8;
      Parameters:
      value - The featureMonitorId to set.
      Returns:
      This builder for chaining.
    • clearFeatureMonitorId

      public FeatureStatsAndAnomaly.Builder clearFeatureMonitorId()
       The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated
       according to.
       
      string feature_monitor_id = 8;
      Returns:
      This builder for chaining.
    • setFeatureMonitorIdBytes

      public FeatureStatsAndAnomaly.Builder setFeatureMonitorIdBytes(com.google.protobuf.ByteString value)
       The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated
       according to.
       
      string feature_monitor_id = 8;
      Parameters:
      value - The bytes for featureMonitorId to set.
      Returns:
      This builder for chaining.