Class NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec (3.31.0)

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

Represent spec for train trials.

Protobuf type google.cloud.aiplatform.v1beta1.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
TypeDescription
int

MAX_PARALLEL_TRIAL_COUNT_FIELD_NUMBER

public static final int MAX_PARALLEL_TRIAL_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

TRAIN_TRIAL_JOB_SPEC_FIELD_NUMBER

public static final int TRAIN_TRIAL_JOB_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec getDefaultInstance()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilder()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec prototype)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilder(NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec prototype)
Parameter
NameDescription
prototypeNasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

parseDelimitedFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec getDefaultInstanceForType()
Returns
TypeDescription
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
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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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.v1beta1.CustomJobSpec train_trial_job_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilderForType()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder toBuilder()
Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException