Class NasJobSpec.MultiTrialAlgorithmSpec.Builder (3.37.0)

See more code actions.
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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public NasJobSpec.MultiTrialAlgorithmSpec build()

buildPartial()

public NasJobSpec.MultiTrialAlgorithmSpec buildPartial()

clear()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
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;

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
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];

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;

clone()

public NasJobSpec.MultiTrialAlgorithmSpec.Builder clone()
Overrides

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec getDefaultInstanceForType()

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;

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;

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];

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];

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;

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;

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
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;

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];

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;

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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;

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

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
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];

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

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;

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

setUnknownFields(UnknownFieldSet unknownFields)

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