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.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
Returns
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Name | Description |
value | String
The values to add.
|
Returns
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
Name | Description |
value | ByteString
The bytes of the values to add.
|
Returns
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition build()
Returns
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition buildPartial()
Returns
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clear()
Returns
Overrides
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder clone()
Returns
Overrides
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The values at the given 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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the values at the given index.
|
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
Type | Description |
int | The count of values.
|
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
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeFrom(StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition other)
Parameter
Returns
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Name | Description |
index | int
The index to set the value at.
|
value | String
The values to set.
|
Returns