Class NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec (3.43.0)

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

Represent spec for train trials.

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

Inheritance

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

Static Fields

FREQUENCY_FIELD_NUMBER

public static final int FREQUENCY_FIELD_NUMBER
Field Value
Type Description
int

MAX_PARALLEL_TRIAL_COUNT_FIELD_NUMBER

public static final int MAX_PARALLEL_TRIAL_COUNT_FIELD_NUMBER
Field Value
Type Description
int

TRAIN_TRIAL_JOB_SPEC_FIELD_NUMBER

public static final int TRAIN_TRIAL_JOB_SPEC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec getDefaultInstance()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec

getDescriptor()

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

newBuilder()

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilder()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec prototype)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec prototype)
Parameter
Name Description
prototype NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

parseDelimitedFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec> parser()
Returns
Type Description
Parser<TrainTrialSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec> getParserForType()
Returns
Type Description
Parser<TrainTrialSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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
Type Description
CustomJobSpec

The trainTrialJobSpec.

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

Returns
Type Description
boolean

Whether the trainTrialJobSpec field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilderForType()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder toBuilder()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException