Class NasJobSpec.MultiTrialAlgorithmSpec.Builder (3.56.0)

public static final class NasJobSpec.MultiTrialAlgorithmSpec.Builder extends GeneratedMessageV3.Builder<NasJobSpec.MultiTrialAlgorithmSpec.Builder> implements NasJobSpec.MultiTrialAlgorithmSpecOrBuilder

The spec of multi-trial Neural Architecture Search (NAS).

Protobuf type google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

build()

public NasJobSpec.MultiTrialAlgorithmSpec build()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec

buildPartial()

public NasJobSpec.MultiTrialAlgorithmSpec buildPartial()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec

clear()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clear()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

clearMetric()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearMetric()

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

clearMultiTrialAlgorithm()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearMultiTrialAlgorithm()

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

clearSearchTrialSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearSearchTrialSpec()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

clearTrainTrialSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearTrainTrialSpec()

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

clone()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clone()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec getDefaultInstanceForType()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMetric()

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

The metric.

getMetricBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder getMetricBuilder()

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder

getMetricOrBuilder()

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpecOrBuilder

getMultiTrialAlgorithm()

public NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm getMultiTrialAlgorithm()

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm

The multiTrialAlgorithm.

getMultiTrialAlgorithmValue()

public int getMultiTrialAlgorithmValue()

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
Type Description
int

The enum numeric value on the wire for multiTrialAlgorithm.

getSearchTrialSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec getSearchTrialSpec()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec

The searchTrialSpec.

getSearchTrialSpecBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder getSearchTrialSpecBuilder()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder

getSearchTrialSpecOrBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecOrBuilder getSearchTrialSpecOrBuilder()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecOrBuilder

getTrainTrialSpec()

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec

The trainTrialSpec.

getTrainTrialSpecBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder getTrainTrialSpecBuilder()

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

getTrainTrialSpecOrBuilder()

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpecOrBuilder

hasMetric()

public boolean hasMetric()

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
boolean

Whether the metric field is set.

hasSearchTrialSpec()

public boolean hasSearchTrialSpec()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the searchTrialSpec field is set.

hasTrainTrialSpec()

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
boolean

Whether the trainTrialSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec other)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec other)
Parameter
Name Description
other NasJobSpec.MultiTrialAlgorithmSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

mergeMetric(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeMetric(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec value)

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

mergeSearchTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeSearchTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec value)

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

mergeTrainTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeTrainTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec value)

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

setMetric(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setMetric(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec value)

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

setMetric(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder builderForValue)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setMetric(NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder builderForValue)

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Parameter
Name Description
builderForValue NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

setMultiTrialAlgorithm(NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setMultiTrialAlgorithm(NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm value)

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm

The multiTrialAlgorithm to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

This builder for chaining.

setMultiTrialAlgorithmValue(int value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setMultiTrialAlgorithmValue(int value)

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for multiTrialAlgorithm to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

setSearchTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setSearchTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec value)

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

setSearchTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder builderForValue)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setSearchTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder builderForValue)

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

setTrainTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setTrainTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec value)

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Parameter
Name Description
value NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

setTrainTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder builderForValue)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setTrainTrialSpec(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder builderForValue)

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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Parameter
Name Description
builderForValue NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides