public static final class StudySpec.MetricSpec.SafetyMetricConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<StudySpec.MetricSpec.SafetyMetricConfig.Builder> implements StudySpec.MetricSpec.SafetyMetricConfigOrBuilder
Used in safe optimization to specify threshold levels and risk tolerance.Protobuf type
google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig| Modifier and Type | Method and Description |
|---|---|
StudySpec.MetricSpec.SafetyMetricConfig |
build() |
StudySpec.MetricSpec.SafetyMetricConfig |
buildPartial() |
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
clear() |
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
clearDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials)
that should be targeted by the algorithm at any time during the
study (best effort).
|
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
clearSafetyThreshold()
Safety threshold (boundary value between safe and unsafe).
|
StudySpec.MetricSpec.SafetyMetricConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials)
that should be targeted by the algorithm at any time during the
study (best effort).
|
double |
getSafetyThreshold()
Safety threshold (boundary value between safe and unsafe).
|
boolean |
hasDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials)
that should be targeted by the algorithm at any time during the
study (best effort).
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
mergeFrom(StudySpec.MetricSpec.SafetyMetricConfig other) |
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
setDesiredMinSafeTrialsFraction(double value)
Desired minimum fraction of safe trials (over total number of trials)
that should be targeted by the algorithm at any time during the
study (best effort).
|
StudySpec.MetricSpec.SafetyMetricConfig.Builder |
setSafetyThreshold(double value)
Safety threshold (boundary value between safe and unsafe).
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StudySpec.MetricSpec.SafetyMetricConfig.Builder>public StudySpec.MetricSpec.SafetyMetricConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<StudySpec.MetricSpec.SafetyMetricConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StudySpec.MetricSpec.SafetyMetricConfig.Builder>public StudySpec.MetricSpec.SafetyMetricConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StudySpec.MetricSpec.SafetyMetricConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StudySpec.MetricSpec.SafetyMetricConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StudySpec.MetricSpec.SafetyMetricConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StudySpec.MetricSpec.SafetyMetricConfig.Builder>public StudySpec.MetricSpec.SafetyMetricConfig.Builder mergeFrom(StudySpec.MetricSpec.SafetyMetricConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<StudySpec.MetricSpec.SafetyMetricConfig.Builder>public StudySpec.MetricSpec.SafetyMetricConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StudySpec.MetricSpec.SafetyMetricConfig.Builder>IOExceptionpublic double getSafetyThreshold()
Safety threshold (boundary value between safe and unsafe). NOTE that if you leave SafetyMetricConfig unset, a default value of 0 will be used.
double safety_threshold = 1;getSafetyThreshold in interface StudySpec.MetricSpec.SafetyMetricConfigOrBuilderpublic StudySpec.MetricSpec.SafetyMetricConfig.Builder setSafetyThreshold(double value)
Safety threshold (boundary value between safe and unsafe). NOTE that if you leave SafetyMetricConfig unset, a default value of 0 will be used.
double safety_threshold = 1;value - The safetyThreshold to set.public StudySpec.MetricSpec.SafetyMetricConfig.Builder clearSafetyThreshold()
Safety threshold (boundary value between safe and unsafe). NOTE that if you leave SafetyMetricConfig unset, a default value of 0 will be used.
double safety_threshold = 1;public boolean hasDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials) that should be targeted by the algorithm at any time during the study (best effort). This should be between 0.0 and 1.0 and a value of 0.0 means that there is no minimum and an algorithm proceeds without targeting any specific fraction. A value of 1.0 means that the algorithm attempts to only Suggest safe Trials.
optional double desired_min_safe_trials_fraction = 2;hasDesiredMinSafeTrialsFraction in interface StudySpec.MetricSpec.SafetyMetricConfigOrBuilderpublic double getDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials) that should be targeted by the algorithm at any time during the study (best effort). This should be between 0.0 and 1.0 and a value of 0.0 means that there is no minimum and an algorithm proceeds without targeting any specific fraction. A value of 1.0 means that the algorithm attempts to only Suggest safe Trials.
optional double desired_min_safe_trials_fraction = 2;getDesiredMinSafeTrialsFraction in interface StudySpec.MetricSpec.SafetyMetricConfigOrBuilderpublic StudySpec.MetricSpec.SafetyMetricConfig.Builder setDesiredMinSafeTrialsFraction(double value)
Desired minimum fraction of safe trials (over total number of trials) that should be targeted by the algorithm at any time during the study (best effort). This should be between 0.0 and 1.0 and a value of 0.0 means that there is no minimum and an algorithm proceeds without targeting any specific fraction. A value of 1.0 means that the algorithm attempts to only Suggest safe Trials.
optional double desired_min_safe_trials_fraction = 2;value - The desiredMinSafeTrialsFraction to set.public StudySpec.MetricSpec.SafetyMetricConfig.Builder clearDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials) that should be targeted by the algorithm at any time during the study (best effort). This should be between 0.0 and 1.0 and a value of 0.0 means that there is no minimum and an algorithm proceeds without targeting any specific fraction. A value of 1.0 means that the algorithm attempts to only Suggest safe Trials.
optional double desired_min_safe_trials_fraction = 2;Copyright © 2026 Google LLC. All rights reserved.