Class NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder (3.45.0)

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

Represent spec for train trials.

Protobuf type google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFrequency()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clearFrequency()

Required. Frequency of search trials to start train stage. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

int32 frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

This builder for chaining.

clearMaxParallelTrialCount()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clearMaxParallelTrialCount()

Required. The maximum number of trials to run in parallel.

int32 max_parallel_trial_count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTrainTrialJobSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clearTrainTrialJobSpec()

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getFrequency()

public int getFrequency()

Required. Frequency of search trials to start train stage. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

int32 frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The frequency.

getMaxParallelTrialCount()

public int getMaxParallelTrialCount()

Required. The maximum number of trials to run in parallel.

int32 max_parallel_trial_count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The maxParallelTrialCount.

getTrainTrialJobSpec()

public CustomJobSpec getTrainTrialJobSpec()

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomJobSpec

The trainTrialJobSpec.

getTrainTrialJobSpecBuilder()

public CustomJobSpec.Builder getTrainTrialJobSpecBuilder()

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomJobSpec.Builder

getTrainTrialJobSpecOrBuilder()

public CustomJobSpecOrBuilder getTrainTrialJobSpecOrBuilder()

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomJobSpecOrBuilder

hasTrainTrialJobSpec()

public boolean hasTrainTrialJobSpec()

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the trainTrialJobSpec 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.TrainTrialSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrainTrialJobSpec(CustomJobSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder mergeTrainTrialJobSpec(CustomJobSpec value)

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFrequency(int value)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setFrequency(int value)

Required. Frequency of search trials to start train stage. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

int32 frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The frequency to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

This builder for chaining.

setMaxParallelTrialCount(int value)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setMaxParallelTrialCount(int value)

Required. The maximum number of trials to run in parallel.

int32 max_parallel_trial_count = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The maxParallelTrialCount to set.

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

This builder for chaining.

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

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

setTrainTrialJobSpec(CustomJobSpec value)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setTrainTrialJobSpec(CustomJobSpec value)

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

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

setTrainTrialJobSpec(CustomJobSpec.Builder builderForValue)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setTrainTrialJobSpec(CustomJobSpec.Builder builderForValue)

Required. The spec of a train trial job. The same spec applies to all train trials.

.google.cloud.aiplatform.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

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

setUnknownFields(UnknownFieldSet unknownFields)

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