public static final class NasJobSpec.MultiTrialAlgorithmSpec extends GeneratedMessageV3 implements NasJobSpec.MultiTrialAlgorithmSpecOrBuilder
The spec of multi-trial Neural Architecture Search (NAS).
Protobuf type google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec
Static Fields
public static final int METRIC_FIELD_NUMBER
Field Value
public static final int MULTI_TRIAL_ALGORITHM_FIELD_NUMBER
Field Value
public static final int SEARCH_TRIAL_SPEC_FIELD_NUMBER
Field Value
public static final int TRAIN_TRIAL_SPEC_FIELD_NUMBER
Field Value
Static Methods
public static NasJobSpec.MultiTrialAlgorithmSpec getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static NasJobSpec.MultiTrialAlgorithmSpec.Builder newBuilder()
Returns
public static NasJobSpec.MultiTrialAlgorithmSpec.Builder newBuilder(NasJobSpec.MultiTrialAlgorithmSpec prototype)
Parameter
Returns
public static NasJobSpec.MultiTrialAlgorithmSpec parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static NasJobSpec.MultiTrialAlgorithmSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<NasJobSpec.MultiTrialAlgorithmSpec> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec getDefaultInstanceForType()
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getMetric()
Metric specs for the NAS job.
Validation for this field is done at multi_trial_algorithm_spec
field.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpecOrBuilder getMetricOrBuilder()
Metric specs for the NAS job.
Validation for this field is done at multi_trial_algorithm_spec
field.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm getMultiTrialAlgorithm()
The multi-trial Neural Architecture Search (NAS) algorithm
type. Defaults to REINFORCEMENT_LEARNING
.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;
Returns
public int getMultiTrialAlgorithmValue()
The multi-trial Neural Architecture Search (NAS) algorithm
type. Defaults to REINFORCEMENT_LEARNING
.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for multiTrialAlgorithm.
|
public Parser<NasJobSpec.MultiTrialAlgorithmSpec> getParserForType()
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec getSearchTrialSpec()
Required. Spec for search trials.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecOrBuilder getSearchTrialSpecOrBuilder()
Required. Spec for search trials.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
public int getSerializedSize()
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec getTrainTrialSpec()
Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count]
search trials will be trained for every M
[TrainTrialSpec.frequency] trials searched.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpecOrBuilder getTrainTrialSpecOrBuilder()
Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count]
search trials will be trained for every M
[TrainTrialSpec.frequency] trials searched.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasMetric()
Metric specs for the NAS job.
Validation for this field is done at multi_trial_algorithm_spec
field.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;
Returns
Type | Description |
boolean | Whether the metric field is set.
|
public boolean hasSearchTrialSpec()
Required. Spec for search trials.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the searchTrialSpec field is set.
|
public boolean hasTrainTrialSpec()
Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count]
search trials will be trained for every M
[TrainTrialSpec.frequency] trials searched.
.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;
Returns
Type | Description |
boolean | Whether the trainTrialSpec field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.Builder newBuilderForType()
Returns
protected NasJobSpec.MultiTrialAlgorithmSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions