Class NasJobSpec.MultiTrialAlgorithmSpec.Builder (3.40.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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

build()

public NasJobSpec.MultiTrialAlgorithmSpec build()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec

buildPartial()

public NasJobSpec.MultiTrialAlgorithmSpec buildPartial()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec

clear()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clear()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

clearSearchTrialSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearSearchTrialSpec()

Required. Spec for search trials.

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

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

Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder

clone()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clone()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec getDefaultInstanceForType()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

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

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

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for multiTrialAlgorithm.

getSearchTrialSpec()

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
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec

The searchTrialSpec.

getSearchTrialSpecBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder getSearchTrialSpecBuilder()

Required. Spec for search trials.

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

Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder

getSearchTrialSpecOrBuilder()

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

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

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

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

Returns
TypeDescription
boolean

Whether the metric field is set.

hasSearchTrialSpec()

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

Returns
TypeDescription
boolean

Whether the trainTrialSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec other)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec other)
Parameter
NameDescription
otherNasJobSpec.MultiTrialAlgorithmSpec
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Parameter
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Parameter
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Parameter
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Parameter
NameDescription
builderForValueNasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.Builder
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Parameter
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm

The multiTrialAlgorithm to set.

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueNasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.Builder
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Parameter
NameDescription
valueNasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Parameter
NameDescription
builderForValueNasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final NasJobSpec.MultiTrialAlgorithmSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.Builder
Overrides