Class StudySpec.ParameterSpec (3.56.0)

public static final class StudySpec.ParameterSpec extends GeneratedMessageV3 implements StudySpec.ParameterSpecOrBuilder

Represents a single parameter to optimize.

Protobuf type google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec

Static Fields

CATEGORICAL_VALUE_SPEC_FIELD_NUMBER

public static final int CATEGORICAL_VALUE_SPEC_FIELD_NUMBER
Field Value
Type Description
int

CONDITIONAL_PARAMETER_SPECS_FIELD_NUMBER

public static final int CONDITIONAL_PARAMETER_SPECS_FIELD_NUMBER
Field Value
Type Description
int

DISCRETE_VALUE_SPEC_FIELD_NUMBER

public static final int DISCRETE_VALUE_SPEC_FIELD_NUMBER
Field Value
Type Description
int

DOUBLE_VALUE_SPEC_FIELD_NUMBER

public static final int DOUBLE_VALUE_SPEC_FIELD_NUMBER
Field Value
Type Description
int

INTEGER_VALUE_SPEC_FIELD_NUMBER

public static final int INTEGER_VALUE_SPEC_FIELD_NUMBER
Field Value
Type Description
int

PARAMETER_ID_FIELD_NUMBER

public static final int PARAMETER_ID_FIELD_NUMBER
Field Value
Type Description
int

SCALE_TYPE_FIELD_NUMBER

public static final int SCALE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StudySpec.ParameterSpec getDefaultInstance()
Returns
Type Description
StudySpec.ParameterSpec

getDescriptor()

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

newBuilder()

public static StudySpec.ParameterSpec.Builder newBuilder()
Returns
Type Description
StudySpec.ParameterSpec.Builder

newBuilder(StudySpec.ParameterSpec prototype)

public static StudySpec.ParameterSpec.Builder newBuilder(StudySpec.ParameterSpec prototype)
Parameter
Name Description
prototype StudySpec.ParameterSpec
Returns
Type Description
StudySpec.ParameterSpec.Builder

parseDelimitedFrom(InputStream input)

public static StudySpec.ParameterSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StudySpec.ParameterSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static StudySpec.ParameterSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StudySpec.ParameterSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static StudySpec.ParameterSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StudySpec.ParameterSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static StudySpec.ParameterSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StudySpec.ParameterSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static StudySpec.ParameterSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StudySpec.ParameterSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<StudySpec.ParameterSpec> parser()
Returns
Type Description
Parser<ParameterSpec>

Methods

equals(Object obj)

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

getCategoricalValueSpec()

public StudySpec.ParameterSpec.CategoricalValueSpec getCategoricalValueSpec()

The value spec for a 'CATEGORICAL' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec categorical_value_spec = 4;

Returns
Type Description
StudySpec.ParameterSpec.CategoricalValueSpec

The categoricalValueSpec.

getCategoricalValueSpecOrBuilder()

public StudySpec.ParameterSpec.CategoricalValueSpecOrBuilder getCategoricalValueSpecOrBuilder()

The value spec for a 'CATEGORICAL' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec categorical_value_spec = 4;

Returns
Type Description
StudySpec.ParameterSpec.CategoricalValueSpecOrBuilder

getConditionalParameterSpecs(int index)

public StudySpec.ParameterSpec.ConditionalParameterSpec getConditionalParameterSpecs(int index)

A conditional parameter node is active if the parameter's value matches the conditional node's parent_value_condition.

If two items in conditional_parameter_specs have the same name, they must have disjoint parent_value_condition.

repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec conditional_parameter_specs = 10;

Parameter
Name Description
index int
Returns
Type Description
StudySpec.ParameterSpec.ConditionalParameterSpec

getConditionalParameterSpecsCount()

public int getConditionalParameterSpecsCount()

A conditional parameter node is active if the parameter's value matches the conditional node's parent_value_condition.

If two items in conditional_parameter_specs have the same name, they must have disjoint parent_value_condition.

repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec conditional_parameter_specs = 10;

Returns
Type Description
int

getConditionalParameterSpecsList()

public List<StudySpec.ParameterSpec.ConditionalParameterSpec> getConditionalParameterSpecsList()

A conditional parameter node is active if the parameter's value matches the conditional node's parent_value_condition.

If two items in conditional_parameter_specs have the same name, they must have disjoint parent_value_condition.

repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec conditional_parameter_specs = 10;

Returns
Type Description
List<ConditionalParameterSpec>

getConditionalParameterSpecsOrBuilder(int index)

public StudySpec.ParameterSpec.ConditionalParameterSpecOrBuilder getConditionalParameterSpecsOrBuilder(int index)

A conditional parameter node is active if the parameter's value matches the conditional node's parent_value_condition.

If two items in conditional_parameter_specs have the same name, they must have disjoint parent_value_condition.

repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec conditional_parameter_specs = 10;

Parameter
Name Description
index int
Returns
Type Description
StudySpec.ParameterSpec.ConditionalParameterSpecOrBuilder

getConditionalParameterSpecsOrBuilderList()

public List<? extends StudySpec.ParameterSpec.ConditionalParameterSpecOrBuilder> getConditionalParameterSpecsOrBuilderList()

A conditional parameter node is active if the parameter's value matches the conditional node's parent_value_condition.

If two items in conditional_parameter_specs have the same name, they must have disjoint parent_value_condition.

repeated .google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec conditional_parameter_specs = 10;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpecOrBuilder>

getDefaultInstanceForType()

public StudySpec.ParameterSpec getDefaultInstanceForType()
Returns
Type Description
StudySpec.ParameterSpec

getDiscreteValueSpec()

public StudySpec.ParameterSpec.DiscreteValueSpec getDiscreteValueSpec()

The value spec for a 'DISCRETE' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec discrete_value_spec = 5;

Returns
Type Description
StudySpec.ParameterSpec.DiscreteValueSpec

The discreteValueSpec.

getDiscreteValueSpecOrBuilder()

public StudySpec.ParameterSpec.DiscreteValueSpecOrBuilder getDiscreteValueSpecOrBuilder()

The value spec for a 'DISCRETE' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec discrete_value_spec = 5;

Returns
Type Description
StudySpec.ParameterSpec.DiscreteValueSpecOrBuilder

getDoubleValueSpec()

public StudySpec.ParameterSpec.DoubleValueSpec getDoubleValueSpec()

The value spec for a 'DOUBLE' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec double_value_spec = 2;

Returns
Type Description
StudySpec.ParameterSpec.DoubleValueSpec

The doubleValueSpec.

getDoubleValueSpecOrBuilder()

public StudySpec.ParameterSpec.DoubleValueSpecOrBuilder getDoubleValueSpecOrBuilder()

The value spec for a 'DOUBLE' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec double_value_spec = 2;

Returns
Type Description
StudySpec.ParameterSpec.DoubleValueSpecOrBuilder

getIntegerValueSpec()

public StudySpec.ParameterSpec.IntegerValueSpec getIntegerValueSpec()

The value spec for an 'INTEGER' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec integer_value_spec = 3;

Returns
Type Description
StudySpec.ParameterSpec.IntegerValueSpec

The integerValueSpec.

getIntegerValueSpecOrBuilder()

public StudySpec.ParameterSpec.IntegerValueSpecOrBuilder getIntegerValueSpecOrBuilder()

The value spec for an 'INTEGER' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec integer_value_spec = 3;

Returns
Type Description
StudySpec.ParameterSpec.IntegerValueSpecOrBuilder

getParameterId()

public String getParameterId()

Required. The ID of the parameter. Must not contain whitespaces and must be unique amongst all ParameterSpecs.

string parameter_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parameterId.

getParameterIdBytes()

public ByteString getParameterIdBytes()

Required. The ID of the parameter. Must not contain whitespaces and must be unique amongst all ParameterSpecs.

string parameter_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parameterId.

getParameterValueSpecCase()

public StudySpec.ParameterSpec.ParameterValueSpecCase getParameterValueSpecCase()
Returns
Type Description
StudySpec.ParameterSpec.ParameterValueSpecCase

getParserForType()

public Parser<StudySpec.ParameterSpec> getParserForType()
Returns
Type Description
Parser<ParameterSpec>
Overrides

getScaleType()

public StudySpec.ParameterSpec.ScaleType getScaleType()

How the parameter should be scaled. Leave unset for CATEGORICAL parameters.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType scale_type = 6;

Returns
Type Description
StudySpec.ParameterSpec.ScaleType

The scaleType.

getScaleTypeValue()

public int getScaleTypeValue()

How the parameter should be scaled. Leave unset for CATEGORICAL parameters.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType scale_type = 6;

Returns
Type Description
int

The enum numeric value on the wire for scaleType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCategoricalValueSpec()

public boolean hasCategoricalValueSpec()

The value spec for a 'CATEGORICAL' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec categorical_value_spec = 4;

Returns
Type Description
boolean

Whether the categoricalValueSpec field is set.

hasDiscreteValueSpec()

public boolean hasDiscreteValueSpec()

The value spec for a 'DISCRETE' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec discrete_value_spec = 5;

Returns
Type Description
boolean

Whether the discreteValueSpec field is set.

hasDoubleValueSpec()

public boolean hasDoubleValueSpec()

The value spec for a 'DOUBLE' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec double_value_spec = 2;

Returns
Type Description
boolean

Whether the doubleValueSpec field is set.

hasIntegerValueSpec()

public boolean hasIntegerValueSpec()

The value spec for an 'INTEGER' parameter.

.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec integer_value_spec = 3;

Returns
Type Description
boolean

Whether the integerValueSpec 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 StudySpec.ParameterSpec.Builder newBuilderForType()
Returns
Type Description
StudySpec.ParameterSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StudySpec.ParameterSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StudySpec.ParameterSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public StudySpec.ParameterSpec.Builder toBuilder()
Returns
Type Description
StudySpec.ParameterSpec.Builder

writeTo(CodedOutputStream output)

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