Class StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder (2.9.8)

public static final class StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder extends GeneratedMessageV3.Builder<StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder> implements StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueConditionOrBuilder

Represents the spec to match categorical values from parent parameter.

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder addAllValues(Iterable<String> values)

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Parameter
NameDescription
valuesIterable<String>

The values to add.

Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

addValues(String value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder addValues(String value)

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Parameter
NameDescription
valueString

The values to add.

Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder addValuesBytes(ByteString value)

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Parameter
NameDescription
valueByteString

The bytes of the values to add.

Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder

This builder for chaining.

build()

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition build()
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition

buildPartial()

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition buildPartial()
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition

clear()

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clear()
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

clearValues()

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

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder

This builder for chaining.

clone()

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clone()
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

getDefaultInstanceForType()

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition getDefaultInstanceForType()
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public String getValues(int index)

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Returns
TypeDescription
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Returns
TypeDescription
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition other)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeFrom(StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition other)
Parameter
NameDescription
otherStudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

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

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder
Overrides

setValues(int index, String value)

public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder setValues(int index, String value)

Required. Matches values of the parent parameter of 'CATEGORICAL' type. All values must exist in categorical_value_spec of parent parameter.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The values to set.

Returns
TypeDescription
StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder

This builder for chaining.