Class Trial.Parameter.Builder (3.46.0)

public static final class Trial.Parameter.Builder extends GeneratedMessageV3.Builder<Trial.Parameter.Builder> implements Trial.ParameterOrBuilder

A message representing a parameter to be tuned.

Protobuf type google.cloud.aiplatform.v1beta1.Trial.Parameter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Trial.Parameter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Trial.Parameter.Builder
Overrides

build()

public Trial.Parameter build()
Returns
Type Description
Trial.Parameter

buildPartial()

public Trial.Parameter buildPartial()
Returns
Type Description
Trial.Parameter

clear()

public Trial.Parameter.Builder clear()
Returns
Type Description
Trial.Parameter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Trial.Parameter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Trial.Parameter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Trial.Parameter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Trial.Parameter.Builder
Overrides

clearParameterId()

public Trial.Parameter.Builder clearParameterId()

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

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

Returns
Type Description
Trial.Parameter.Builder

This builder for chaining.

clearValue()

public Trial.Parameter.Builder clearValue()

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Trial.Parameter.Builder

clone()

public Trial.Parameter.Builder clone()
Returns
Type Description
Trial.Parameter.Builder
Overrides

getDefaultInstanceForType()

public Trial.Parameter getDefaultInstanceForType()
Returns
Type Description
Trial.Parameter

getDescriptorForType()

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

getParameterId()

public String getParameterId()

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

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

Returns
Type Description
String

The parameterId.

getParameterIdBytes()

public ByteString getParameterIdBytes()

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

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

Returns
Type Description
ByteString

The bytes for parameterId.

getValue()

public Value getValue()

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Value

The value.

getValueBuilder()

public Value.Builder getValueBuilder()

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ValueOrBuilder

hasValue()

public boolean hasValue()

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Trial.Parameter other)

public Trial.Parameter.Builder mergeFrom(Trial.Parameter other)
Parameter
Name Description
other Trial.Parameter
Returns
Type Description
Trial.Parameter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Trial.Parameter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Trial.Parameter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Trial.Parameter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Trial.Parameter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Trial.Parameter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Trial.Parameter.Builder
Overrides

mergeValue(Value value)

public Trial.Parameter.Builder mergeValue(Value value)

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Value
Returns
Type Description
Trial.Parameter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Trial.Parameter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Trial.Parameter.Builder
Overrides

setParameterId(String value)

public Trial.Parameter.Builder setParameterId(String value)

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

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

Parameter
Name Description
value String

The parameterId to set.

Returns
Type Description
Trial.Parameter.Builder

This builder for chaining.

setParameterIdBytes(ByteString value)

public Trial.Parameter.Builder setParameterIdBytes(ByteString value)

Output only. The ID of the parameter. The parameter should be defined in StudySpec's Parameters.

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

Parameter
Name Description
value ByteString

The bytes for parameterId to set.

Returns
Type Description
Trial.Parameter.Builder

This builder for chaining.

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

public Trial.Parameter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Trial.Parameter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Trial.Parameter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Trial.Parameter.Builder
Overrides

setValue(Value value)

public Trial.Parameter.Builder setValue(Value value)

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Value
Returns
Type Description
Trial.Parameter.Builder

setValue(Value.Builder builderForValue)

public Trial.Parameter.Builder setValue(Value.Builder builderForValue)

Output only. The value of the parameter. number_value will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. string_value will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Trial.Parameter.Builder