Class StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder (3.45.0)

See more code actions.
public static final class StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder extends GeneratedMessageV3.Builder<StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder> implements StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueConditionOrBuilder

Represents the spec to match discrete values from parent parameter.

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

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends Double> values)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder addAllValues(Iterable<? extends Double> values)

Required. Matches values of the parent parameter of 'DISCRETE' type. All values must exist in discrete_value_spec of parent parameter.

The Epsilon of the value matching is 1e-10.

repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends java.lang.Double>

The values to add.

Returns
Type Description
StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

addValues(double value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder addValues(double value)

Required. Matches values of the parent parameter of 'DISCRETE' type. All values must exist in discrete_value_spec of parent parameter.

The Epsilon of the value matching is 1e-10.

repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value double

The values to add.

Returns
Type Description
StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder

This builder for chaining.

build()

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition build()

buildPartial()

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition buildPartial()

clear()

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clearValues()

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder clearValues()

Required. Matches values of the parent parameter of 'DISCRETE' type. All values must exist in discrete_value_spec of parent parameter.

The Epsilon of the value matching is 1e-10.

repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder

This builder for chaining.

clone()

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder clone()
Overrides

getDefaultInstanceForType()

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition getDefaultInstanceForType()

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getValues(int index)

public double getValues(int index)

Required. Matches values of the parent parameter of 'DISCRETE' type. All values must exist in discrete_value_spec of parent parameter.

The Epsilon of the value matching is 1e-10.

repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
double

The values at the given index.

getValuesCount()

public int getValuesCount()

Required. Matches values of the parent parameter of 'DISCRETE' type. All values must exist in discrete_value_spec of parent parameter.

The Epsilon of the value matching is 1e-10.

repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of values.

getValuesList()

public List<Double> getValuesList()

Required. Matches values of the parent parameter of 'DISCRETE' type. All values must exist in discrete_value_spec of parent parameter.

The Epsilon of the value matching is 1e-10.

repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Double>

A list containing the values.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition other)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder mergeFrom(StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition other)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setValues(int index, double value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder setValues(int index, double value)

Required. Matches values of the parent parameter of 'DISCRETE' type. All values must exist in discrete_value_spec of parent parameter.

The Epsilon of the value matching is 1e-10.

repeated double values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value double

The values to set.

Returns
Type Description
StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.Builder

This builder for chaining.