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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Deviation from the current stats to baseline stats. 1.If set to true, indicates current stats is detected as and comparing with baseline stats.This is the threshold used when detecting drifts, which is set in FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_thresholdFeature Id.The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated according to.The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.Feature stats. e.g. histogram buckets.The timestamp we take snapshot for feature values to generate stats.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleDeviation from the current stats to baseline stats. 1.booleanIf set to true, indicates current stats is detected as and comparing with baseline stats.doubleThis is the threshold used when detecting drifts, which is set in FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_thresholdFeature Id.com.google.protobuf.ByteStringFeature Id.The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated according to.com.google.protobuf.ByteStringThe ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated according to.longThe ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.com.google.protobuf.ValueFeature stats. e.g. histogram buckets.com.google.protobuf.Value.BuilderFeature stats. e.g. histogram buckets.com.google.protobuf.ValueOrBuilderFeature stats. e.g. histogram buckets.com.google.protobuf.TimestampThe timestamp we take snapshot for feature values to generate stats.com.google.protobuf.Timestamp.BuilderThe timestamp we take snapshot for feature values to generate stats.com.google.protobuf.TimestampOrBuilderThe timestamp we take snapshot for feature values to generate stats.booleanFeature stats. e.g. histogram buckets.booleanThe timestamp we take snapshot for feature values to generate stats.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFeatureStats(com.google.protobuf.Value value) Feature stats. e.g. histogram buckets.mergeFrom(FeatureStatsAndAnomaly other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStatsTime(com.google.protobuf.Timestamp value) The timestamp we take snapshot for feature values to generate stats.setDistributionDeviation(double value) Deviation from the current stats to baseline stats. 1.setDriftDetected(boolean value) If set to true, indicates current stats is detected as and comparing with baseline stats.setDriftDetectionThreshold(double value) This is the threshold used when detecting drifts, which is set in FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_thresholdsetFeatureId(String value) Feature Id.setFeatureIdBytes(com.google.protobuf.ByteString value) Feature Id.setFeatureMonitorId(String value) The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated according to.setFeatureMonitorIdBytes(com.google.protobuf.ByteString value) The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated according to.setFeatureMonitorJobId(long value) The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.setFeatureStats(com.google.protobuf.Value value) Feature stats. e.g. histogram buckets.setFeatureStats(com.google.protobuf.Value.Builder builderForValue) Feature stats. e.g. histogram buckets.setStatsTime(com.google.protobuf.Timestamp value) The timestamp we take snapshot for feature values to generate stats.setStatsTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp we take snapshot for feature values to generate stats.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<FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.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<FeatureStatsAndAnomaly.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeatureStatsAndAnomaly.Builder>- Throws:
IOException
-
getFeatureId
Feature Id.
string feature_id = 1;- Specified by:
getFeatureIdin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The featureId.
-
getFeatureIdBytes
public com.google.protobuf.ByteString getFeatureIdBytes()Feature Id.
string feature_id = 1;- Specified by:
getFeatureIdBytesin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The bytes for featureId.
-
setFeatureId
Feature Id.
string feature_id = 1;- Parameters:
value- The featureId to set.- Returns:
- This builder for chaining.
-
clearFeatureId
Feature Id.
string feature_id = 1;- Returns:
- This builder for chaining.
-
setFeatureIdBytes
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:
hasFeatureStatsin interfaceFeatureStatsAndAnomalyOrBuilder- 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:
getFeatureStatsin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The featureStats.
-
setFeatureStats
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
Feature stats. e.g. histogram buckets. In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.
.google.protobuf.Value feature_stats = 2; -
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:
getFeatureStatsOrBuilderin interfaceFeatureStatsAndAnomalyOrBuilder
-
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:
getDistributionDeviationin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The distributionDeviation.
-
setDistributionDeviation
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
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:
getDriftDetectionThresholdin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The driftDetectionThreshold.
-
setDriftDetectionThreshold
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
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:
getDriftDetectedin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The driftDetected.
-
setDriftDetected
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
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:
hasStatsTimein interfaceFeatureStatsAndAnomalyOrBuilder- 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:
getStatsTimein interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The statsTime.
-
setStatsTime
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
The timestamp we take snapshot for feature values to generate stats.
.google.protobuf.Timestamp stats_time = 6; -
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:
getStatsTimeOrBuilderin interfaceFeatureStatsAndAnomalyOrBuilder
-
getFeatureMonitorJobId
public long getFeatureMonitorJobId()The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.
int64 feature_monitor_job_id = 7;- Specified by:
getFeatureMonitorJobIdin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The featureMonitorJobId.
-
setFeatureMonitorJobId
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
The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.
int64 feature_monitor_job_id = 7;- Returns:
- This builder for chaining.
-
getFeatureMonitorId
The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated according to.
string feature_monitor_id = 8;- Specified by:
getFeatureMonitorIdin interfaceFeatureStatsAndAnomalyOrBuilder- 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:
getFeatureMonitorIdBytesin interfaceFeatureStatsAndAnomalyOrBuilder- Returns:
- The bytes for featureMonitorId.
-
setFeatureMonitorId
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
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.
-