Class NasJobSpec.MultiTrialAlgorithmSpec (3.31.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.v1beta1.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
TypeDescription
int

MULTI_TRIAL_ALGORITHM_FIELD_NUMBER

public static final int MULTI_TRIAL_ALGORITHM_FIELD_NUMBER
Field Value
TypeDescription
int

SEARCH_TRIAL_SPEC_FIELD_NUMBER

public static final int SEARCH_TRIAL_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

TRAIN_TRIAL_SPEC_FIELD_NUMBER

public static final int TRAIN_TRIAL_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(NasJobSpec.MultiTrialAlgorithmSpec prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NasJobSpec.MultiTrialAlgorithmSpec getDefaultInstanceForType()
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm multi_trial_algorithm = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for multiTrialAlgorithm.

getParserForType()

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

getSearchTrialSpec()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec getSearchTrialSpec()

Required. Spec for search trials.

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

Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec

The searchTrialSpec.

getSearchTrialSpecOrBuilder()

public NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecOrBuilder getSearchTrialSpecOrBuilder()

Required. Spec for search trials.

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

Returns
TypeDescription
NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec metric = 2;

Returns
TypeDescription
boolean

Whether the metric field is set.

hasSearchTrialSpec()

public boolean hasSearchTrialSpec()

Required. Spec for search trials.

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

Returns
TypeDescription
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.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec train_trial_spec = 4;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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