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.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec build()
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec buildPartial()
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clear()
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
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
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clone()
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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.
|
public CustomJobSpec getTrainTrialJobSpec()
Required. The spec of a train trial job. The same spec applies to
all train trials.
.google.cloud.aiplatform.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public CustomJobSpec.Builder getTrainTrialJobSpecBuilder()
Required. The spec of a train trial job. The same spec applies to
all train trials.
.google.cloud.aiplatform.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public CustomJobSpecOrBuilder getTrainTrialJobSpecOrBuilder()
Required. The spec of a train trial job. The same spec applies to
all train trials.
.google.cloud.aiplatform.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public boolean hasTrainTrialJobSpec()
Required. The spec of a train trial job. The same spec applies to
all train trials.
.google.cloud.aiplatform.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the trainTrialJobSpec field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder mergeFrom(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec other)
Parameter
Returns
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public final NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
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
public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public final NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides