Class NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder (3.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the trainTrialJobSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The frequency to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxParallelTrialCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueCustomJobSpec
Returns
TypeDescription
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
NameDescription
builderForValueCustomJobSpec.Builder
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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