public static final class StudySpec.StudyStoppingConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder> implements StudySpec.StudyStoppingConfigOrBuilder
The configuration (stopping conditions) for automated stopping of a Study. Conditions include trial budgets, time budgets, and convergence detection.Protobuf type
google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig| Modifier and Type | Method and Description |
|---|---|
StudySpec.StudyStoppingConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StudySpec.StudyStoppingConfig |
build() |
StudySpec.StudyStoppingConfig |
buildPartial() |
StudySpec.StudyStoppingConfig.Builder |
clear() |
StudySpec.StudyStoppingConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StudySpec.StudyStoppingConfig.Builder |
clearMaxDurationNoProgress()
If the objective value has not improved for this much time, stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
clearMaximumRuntimeConstraint()
If the specified time or duration has passed, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
clearMaxNumTrials()
If there are more than this many trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
clearMaxNumTrialsNoProgress()
If the objective value has not improved for this many consecutive
trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
clearMinimumRuntimeConstraint()
Each "stopping rule" in this proto specifies an "if" condition.
|
StudySpec.StudyStoppingConfig.Builder |
clearMinNumTrials()
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StudySpec.StudyStoppingConfig.Builder |
clearShouldStopAsap()
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
StudySpec.StudyStoppingConfig.Builder |
clone() |
StudySpec.StudyStoppingConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getMaxDurationNoProgress()
If the objective value has not improved for this much time, stop the
study.
|
com.google.protobuf.Duration.Builder |
getMaxDurationNoProgressBuilder()
If the objective value has not improved for this much time, stop the
study.
|
com.google.protobuf.DurationOrBuilder |
getMaxDurationNoProgressOrBuilder()
If the objective value has not improved for this much time, stop the
study.
|
StudyTimeConstraint |
getMaximumRuntimeConstraint()
If the specified time or duration has passed, stop the study.
|
StudyTimeConstraint.Builder |
getMaximumRuntimeConstraintBuilder()
If the specified time or duration has passed, stop the study.
|
StudyTimeConstraintOrBuilder |
getMaximumRuntimeConstraintOrBuilder()
If the specified time or duration has passed, stop the study.
|
com.google.protobuf.Int32Value |
getMaxNumTrials()
If there are more than this many trials, stop the study.
|
com.google.protobuf.Int32Value.Builder |
getMaxNumTrialsBuilder()
If there are more than this many trials, stop the study.
|
com.google.protobuf.Int32Value |
getMaxNumTrialsNoProgress()
If the objective value has not improved for this many consecutive
trials, stop the study.
|
com.google.protobuf.Int32Value.Builder |
getMaxNumTrialsNoProgressBuilder()
If the objective value has not improved for this many consecutive
trials, stop the study.
|
com.google.protobuf.Int32ValueOrBuilder |
getMaxNumTrialsNoProgressOrBuilder()
If the objective value has not improved for this many consecutive
trials, stop the study.
|
com.google.protobuf.Int32ValueOrBuilder |
getMaxNumTrialsOrBuilder()
If there are more than this many trials, stop the study.
|
StudyTimeConstraint |
getMinimumRuntimeConstraint()
Each "stopping rule" in this proto specifies an "if" condition.
|
StudyTimeConstraint.Builder |
getMinimumRuntimeConstraintBuilder()
Each "stopping rule" in this proto specifies an "if" condition.
|
StudyTimeConstraintOrBuilder |
getMinimumRuntimeConstraintOrBuilder()
Each "stopping rule" in this proto specifies an "if" condition.
|
com.google.protobuf.Int32Value |
getMinNumTrials()
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
com.google.protobuf.Int32Value.Builder |
getMinNumTrialsBuilder()
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
com.google.protobuf.Int32ValueOrBuilder |
getMinNumTrialsOrBuilder()
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
com.google.protobuf.BoolValue |
getShouldStopAsap()
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
com.google.protobuf.BoolValue.Builder |
getShouldStopAsapBuilder()
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
com.google.protobuf.BoolValueOrBuilder |
getShouldStopAsapOrBuilder()
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
boolean |
hasMaxDurationNoProgress()
If the objective value has not improved for this much time, stop the
study.
|
boolean |
hasMaximumRuntimeConstraint()
If the specified time or duration has passed, stop the study.
|
boolean |
hasMaxNumTrials()
If there are more than this many trials, stop the study.
|
boolean |
hasMaxNumTrialsNoProgress()
If the objective value has not improved for this many consecutive
trials, stop the study.
|
boolean |
hasMinimumRuntimeConstraint()
Each "stopping rule" in this proto specifies an "if" condition.
|
boolean |
hasMinNumTrials()
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
boolean |
hasShouldStopAsap()
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StudySpec.StudyStoppingConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StudySpec.StudyStoppingConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
StudySpec.StudyStoppingConfig.Builder |
mergeFrom(StudySpec.StudyStoppingConfig other) |
StudySpec.StudyStoppingConfig.Builder |
mergeMaxDurationNoProgress(com.google.protobuf.Duration value)
If the objective value has not improved for this much time, stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
mergeMaximumRuntimeConstraint(StudyTimeConstraint value)
If the specified time or duration has passed, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
mergeMaxNumTrials(com.google.protobuf.Int32Value value)
If there are more than this many trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
mergeMaxNumTrialsNoProgress(com.google.protobuf.Int32Value value)
If the objective value has not improved for this many consecutive
trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
mergeMinimumRuntimeConstraint(StudyTimeConstraint value)
Each "stopping rule" in this proto specifies an "if" condition.
|
StudySpec.StudyStoppingConfig.Builder |
mergeMinNumTrials(com.google.protobuf.Int32Value value)
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
mergeShouldStopAsap(com.google.protobuf.BoolValue value)
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
StudySpec.StudyStoppingConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StudySpec.StudyStoppingConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StudySpec.StudyStoppingConfig.Builder |
setMaxDurationNoProgress(com.google.protobuf.Duration.Builder builderForValue)
If the objective value has not improved for this much time, stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
setMaxDurationNoProgress(com.google.protobuf.Duration value)
If the objective value has not improved for this much time, stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
setMaximumRuntimeConstraint(StudyTimeConstraint.Builder builderForValue)
If the specified time or duration has passed, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
setMaximumRuntimeConstraint(StudyTimeConstraint value)
If the specified time or duration has passed, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
setMaxNumTrials(com.google.protobuf.Int32Value.Builder builderForValue)
If there are more than this many trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
setMaxNumTrials(com.google.protobuf.Int32Value value)
If there are more than this many trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
setMaxNumTrialsNoProgress(com.google.protobuf.Int32Value.Builder builderForValue)
If the objective value has not improved for this many consecutive
trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
setMaxNumTrialsNoProgress(com.google.protobuf.Int32Value value)
If the objective value has not improved for this many consecutive
trials, stop the study.
|
StudySpec.StudyStoppingConfig.Builder |
setMinimumRuntimeConstraint(StudyTimeConstraint.Builder builderForValue)
Each "stopping rule" in this proto specifies an "if" condition.
|
StudySpec.StudyStoppingConfig.Builder |
setMinimumRuntimeConstraint(StudyTimeConstraint value)
Each "stopping rule" in this proto specifies an "if" condition.
|
StudySpec.StudyStoppingConfig.Builder |
setMinNumTrials(com.google.protobuf.Int32Value.Builder builderForValue)
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
setMinNumTrials(com.google.protobuf.Int32Value value)
If there are fewer than this many COMPLETED trials, do not stop the
study.
|
StudySpec.StudyStoppingConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StudySpec.StudyStoppingConfig.Builder |
setShouldStopAsap(com.google.protobuf.BoolValue.Builder builderForValue)
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
StudySpec.StudyStoppingConfig.Builder |
setShouldStopAsap(com.google.protobuf.BoolValue value)
If true, a Study enters STOPPING_ASAP whenever it would normally enters
STOPPING state.
|
StudySpec.StudyStoppingConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.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.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StudySpec.StudyStoppingConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StudySpec.StudyStoppingConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StudySpec.StudyStoppingConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.Builder mergeFrom(StudySpec.StudyStoppingConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public StudySpec.StudyStoppingConfig.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.StudyStoppingConfig.Builder>IOExceptionpublic boolean hasShouldStopAsap()
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;hasShouldStopAsap in interface StudySpec.StudyStoppingConfigOrBuilderpublic com.google.protobuf.BoolValue getShouldStopAsap()
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;getShouldStopAsap in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudySpec.StudyStoppingConfig.Builder setShouldStopAsap(com.google.protobuf.BoolValue value)
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;public StudySpec.StudyStoppingConfig.Builder setShouldStopAsap(com.google.protobuf.BoolValue.Builder builderForValue)
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;public StudySpec.StudyStoppingConfig.Builder mergeShouldStopAsap(com.google.protobuf.BoolValue value)
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;public StudySpec.StudyStoppingConfig.Builder clearShouldStopAsap()
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;public com.google.protobuf.BoolValue.Builder getShouldStopAsapBuilder()
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;public com.google.protobuf.BoolValueOrBuilder getShouldStopAsapOrBuilder()
If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).
.google.protobuf.BoolValue should_stop_asap = 1;getShouldStopAsapOrBuilder in interface StudySpec.StudyStoppingConfigOrBuilderpublic boolean hasMinimumRuntimeConstraint()
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
hasMinimumRuntimeConstraint in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudyTimeConstraint getMinimumRuntimeConstraint()
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
getMinimumRuntimeConstraint in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudySpec.StudyStoppingConfig.Builder setMinimumRuntimeConstraint(StudyTimeConstraint value)
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
public StudySpec.StudyStoppingConfig.Builder setMinimumRuntimeConstraint(StudyTimeConstraint.Builder builderForValue)
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
public StudySpec.StudyStoppingConfig.Builder mergeMinimumRuntimeConstraint(StudyTimeConstraint value)
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
public StudySpec.StudyStoppingConfig.Builder clearMinimumRuntimeConstraint()
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
public StudyTimeConstraint.Builder getMinimumRuntimeConstraintBuilder()
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
public StudyTimeConstraintOrBuilder getMinimumRuntimeConstraintOrBuilder()
Each "stopping rule" in this proto specifies an "if" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose "if" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint minimum_runtime_constraint = 2;
getMinimumRuntimeConstraintOrBuilder in interface StudySpec.StudyStoppingConfigOrBuilderpublic boolean hasMaximumRuntimeConstraint()
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
hasMaximumRuntimeConstraint in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudyTimeConstraint getMaximumRuntimeConstraint()
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
getMaximumRuntimeConstraint in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudySpec.StudyStoppingConfig.Builder setMaximumRuntimeConstraint(StudyTimeConstraint value)
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
public StudySpec.StudyStoppingConfig.Builder setMaximumRuntimeConstraint(StudyTimeConstraint.Builder builderForValue)
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
public StudySpec.StudyStoppingConfig.Builder mergeMaximumRuntimeConstraint(StudyTimeConstraint value)
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
public StudySpec.StudyStoppingConfig.Builder clearMaximumRuntimeConstraint()
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
public StudyTimeConstraint.Builder getMaximumRuntimeConstraintBuilder()
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
public StudyTimeConstraintOrBuilder getMaximumRuntimeConstraintOrBuilder()
If the specified time or duration has passed, stop the study.
.google.cloud.aiplatform.v1.StudyTimeConstraint maximum_runtime_constraint = 3;
getMaximumRuntimeConstraintOrBuilder in interface StudySpec.StudyStoppingConfigOrBuilderpublic boolean hasMinNumTrials()
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;hasMinNumTrials in interface StudySpec.StudyStoppingConfigOrBuilderpublic com.google.protobuf.Int32Value getMinNumTrials()
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;getMinNumTrials in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudySpec.StudyStoppingConfig.Builder setMinNumTrials(com.google.protobuf.Int32Value value)
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;public StudySpec.StudyStoppingConfig.Builder setMinNumTrials(com.google.protobuf.Int32Value.Builder builderForValue)
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;public StudySpec.StudyStoppingConfig.Builder mergeMinNumTrials(com.google.protobuf.Int32Value value)
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;public StudySpec.StudyStoppingConfig.Builder clearMinNumTrials()
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;public com.google.protobuf.Int32Value.Builder getMinNumTrialsBuilder()
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;public com.google.protobuf.Int32ValueOrBuilder getMinNumTrialsOrBuilder()
If there are fewer than this many COMPLETED trials, do not stop the study.
.google.protobuf.Int32Value min_num_trials = 4;getMinNumTrialsOrBuilder in interface StudySpec.StudyStoppingConfigOrBuilderpublic boolean hasMaxNumTrials()
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;hasMaxNumTrials in interface StudySpec.StudyStoppingConfigOrBuilderpublic com.google.protobuf.Int32Value getMaxNumTrials()
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;getMaxNumTrials in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudySpec.StudyStoppingConfig.Builder setMaxNumTrials(com.google.protobuf.Int32Value value)
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;public StudySpec.StudyStoppingConfig.Builder setMaxNumTrials(com.google.protobuf.Int32Value.Builder builderForValue)
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;public StudySpec.StudyStoppingConfig.Builder mergeMaxNumTrials(com.google.protobuf.Int32Value value)
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;public StudySpec.StudyStoppingConfig.Builder clearMaxNumTrials()
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;public com.google.protobuf.Int32Value.Builder getMaxNumTrialsBuilder()
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;public com.google.protobuf.Int32ValueOrBuilder getMaxNumTrialsOrBuilder()
If there are more than this many trials, stop the study.
.google.protobuf.Int32Value max_num_trials = 5;getMaxNumTrialsOrBuilder in interface StudySpec.StudyStoppingConfigOrBuilderpublic boolean hasMaxNumTrialsNoProgress()
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;hasMaxNumTrialsNoProgress in interface StudySpec.StudyStoppingConfigOrBuilderpublic com.google.protobuf.Int32Value getMaxNumTrialsNoProgress()
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;getMaxNumTrialsNoProgress in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudySpec.StudyStoppingConfig.Builder setMaxNumTrialsNoProgress(com.google.protobuf.Int32Value value)
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;public StudySpec.StudyStoppingConfig.Builder setMaxNumTrialsNoProgress(com.google.protobuf.Int32Value.Builder builderForValue)
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;public StudySpec.StudyStoppingConfig.Builder mergeMaxNumTrialsNoProgress(com.google.protobuf.Int32Value value)
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;public StudySpec.StudyStoppingConfig.Builder clearMaxNumTrialsNoProgress()
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;public com.google.protobuf.Int32Value.Builder getMaxNumTrialsNoProgressBuilder()
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;public com.google.protobuf.Int32ValueOrBuilder getMaxNumTrialsNoProgressOrBuilder()
If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Int32Value max_num_trials_no_progress = 6;getMaxNumTrialsNoProgressOrBuilder in interface StudySpec.StudyStoppingConfigOrBuilderpublic boolean hasMaxDurationNoProgress()
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;hasMaxDurationNoProgress in interface StudySpec.StudyStoppingConfigOrBuilderpublic com.google.protobuf.Duration getMaxDurationNoProgress()
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;getMaxDurationNoProgress in interface StudySpec.StudyStoppingConfigOrBuilderpublic StudySpec.StudyStoppingConfig.Builder setMaxDurationNoProgress(com.google.protobuf.Duration value)
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;public StudySpec.StudyStoppingConfig.Builder setMaxDurationNoProgress(com.google.protobuf.Duration.Builder builderForValue)
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;public StudySpec.StudyStoppingConfig.Builder mergeMaxDurationNoProgress(com.google.protobuf.Duration value)
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;public StudySpec.StudyStoppingConfig.Builder clearMaxDurationNoProgress()
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;public com.google.protobuf.Duration.Builder getMaxDurationNoProgressBuilder()
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;public com.google.protobuf.DurationOrBuilder getMaxDurationNoProgressOrBuilder()
If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.
.google.protobuf.Duration max_duration_no_progress = 7;getMaxDurationNoProgressOrBuilder in interface StudySpec.StudyStoppingConfigOrBuilderpublic final StudySpec.StudyStoppingConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>public final StudySpec.StudyStoppingConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StudySpec.StudyStoppingConfig.Builder>Copyright © 2025 Google LLC. All rights reserved.