Package com.google.cloud.aiplatform.v1
Interface StudySpec.ParameterSpec.DiscreteValueSpecOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StudySpec.ParameterSpec.DiscreteValueSpec
,StudySpec.ParameterSpec.DiscreteValueSpec.Builder
- Enclosing class:
- StudySpec.ParameterSpec
public static interface StudySpec.ParameterSpec.DiscreteValueSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getDefaultValue()
A default value for a `DISCRETE` parameter that is assumed to be a relatively good starting point.double
getValues(int index)
Required.int
getValuesCount()
Required.List<Double>
getValuesList()
Required.boolean
hasDefaultValue()
A default value for a `DISCRETE` parameter that is assumed to be a relatively good starting point.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getValuesList
List<Double> getValuesList()
Required. A list of possible values. The list should be in increasing order and at least 1e-10 apart. For instance, this parameter might have possible settings of 1.5, 2.5, and 4.0. This list should not contain more than 1,000 values.
repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- A list containing the values.
-
getValuesCount
int getValuesCount()
Required. A list of possible values. The list should be in increasing order and at least 1e-10 apart. For instance, this parameter might have possible settings of 1.5, 2.5, and 4.0. This list should not contain more than 1,000 values.
repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The count of values.
-
getValues
double getValues(int index)
Required. A list of possible values. The list should be in increasing order and at least 1e-10 apart. For instance, this parameter might have possible settings of 1.5, 2.5, and 4.0. This list should not contain more than 1,000 values.
repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
index
- The index of the element to return.- Returns:
- The values at the given index.
-
hasDefaultValue
boolean hasDefaultValue()
A default value for a `DISCRETE` parameter that is assumed to be a relatively good starting point. Unset value signals that there is no offered starting point. It automatically rounds to the nearest feasible discrete point. Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.
optional double default_value = 3;
- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
double getDefaultValue()
A default value for a `DISCRETE` parameter that is assumed to be a relatively good starting point. Unset value signals that there is no offered starting point. It automatically rounds to the nearest feasible discrete point. Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.
optional double default_value = 3;
- Returns:
- The defaultValue.
-
-