Class NasJobSpec.MultiTrialAlgorithmSpec (3.50.0)

public static final class NasJobSpec.MultiTrialAlgorithmSpec extends GeneratedMessageV3 implements NasJobSpec.MultiTrialAlgorithmSpecOrBuilder

The spec of multi-trial Neural Architecture Search (NAS).

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

Inheritance

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

Static Fields

METRIC_FIELD_NUMBER

public static final int METRIC_FIELD_NUMBER
Field Value
Type Description
int

MULTI_TRIAL_ALGORITHM_FIELD_NUMBER

public static final int MULTI_TRIAL_ALGORITHM_FIELD_NUMBER
Field Value
Type Description
int

SEARCH_TRIAL_SPEC_FIELD_NUMBER

public static final int SEARCH_TRIAL_SPEC_FIELD_NUMBER
Field Value
Type Description
int

TRAIN_TRIAL_SPEC_FIELD_NUMBER

public static final int TRAIN_TRIAL_SPEC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(NasJobSpec.MultiTrialAlgorithmSpec prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getMetric()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec getMetric()

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec

The metric.

getMetricOrBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.MetricSpecOrBuilder getMetricOrBuilder()

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MetricSpecOrBuilder

getMultiTrialAlgorithm()

public NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm getMultiTrialAlgorithm()

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm

The multiTrialAlgorithm.

getMultiTrialAlgorithmValue()

public int getMultiTrialAlgorithmValue()

The multi-trial Neural Architecture Search (NAS) algorithm type. Defaults to REINFORCEMENT_LEARNING.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
Type Description
int

The enum numeric value on the wire for multiTrialAlgorithm.

getParserForType()

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

getSearchTrialSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec getSearchTrialSpec()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec

The searchTrialSpec.

getSearchTrialSpecOrBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecOrBuilder getSearchTrialSpecOrBuilder()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTrainTrialSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec getTrainTrialSpec()

Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec

The trainTrialSpec.

getTrainTrialSpecOrBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpecOrBuilder getTrainTrialSpecOrBuilder()

Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpecOrBuilder

hasMetric()

public boolean hasMetric()

Metric specs for the NAS job. Validation for this field is done at multi_trial_algorithm_spec field.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
Type Description
boolean

Whether the metric field is set.

hasSearchTrialSpec()

public boolean hasSearchTrialSpec()

Required. Spec for search trials.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec search_trial_spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the searchTrialSpec field is set.

hasTrainTrialSpec()

public boolean hasTrainTrialSpec()

Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] search trials will be trained for every M [TrainTrialSpec.frequency] trials searched.

.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
Type Description
boolean

Whether the trainTrialSpec 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.Builder newBuilderForType()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NasJobSpec.MultiTrialAlgorithmSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.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.Builder toBuilder()
Returns
Type Description
NasJobSpec.MultiTrialAlgorithmSpec.Builder

writeTo(CodedOutputStream output)

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