Class Trial.Parameter.Builder (3.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Trial.Parameter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Trial.Parameter.Builder
Overrides

build()

public Trial.Parameter build()
Returns
TypeDescription
Trial.Parameter

buildPartial()

public Trial.Parameter buildPartial()
Returns
TypeDescription
Trial.Parameter

clear()

public Trial.Parameter.Builder clear()
Returns
TypeDescription
Trial.Parameter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Trial.Parameter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Trial.Parameter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Trial.Parameter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Trial.Parameter.Builder

clone()

public Trial.Parameter.Builder clone()
Returns
TypeDescription
Trial.Parameter.Builder
Overrides

getDefaultInstanceForType()

public Trial.Parameter getDefaultInstanceForType()
Returns
TypeDescription
Trial.Parameter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Trial.Parameter other)

public Trial.Parameter.Builder mergeFrom(Trial.Parameter other)
Parameter
NameDescription
otherTrial.Parameter
Returns
TypeDescription
Trial.Parameter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Trial.Parameter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trial.Parameter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Trial.Parameter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Trial.Parameter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Trial.Parameter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
Trial.Parameter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Trial.Parameter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parameterId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parameterId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Trial.Parameter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Trial.Parameter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Trial.Parameter.Builder