Class NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder (3.14.0)

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

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder
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

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
Overrides

build()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec build()

buildPartial()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec buildPartial()

clear()

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

clearField(Descriptors.FieldDescriptor field)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
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
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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

clone()

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

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec getDefaultInstanceForType()

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.v1.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.v1.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.v1.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.v1.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)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCustomJobSpec

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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
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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCustomJobSpec

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.v1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCustomJobSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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