Class SupervisedHyperParameters.Builder (3.43.0)

public static final class SupervisedHyperParameters.Builder extends GeneratedMessageV3.Builder<SupervisedHyperParameters.Builder> implements SupervisedHyperParametersOrBuilder

Hyperparameters for SFT.

Protobuf type google.cloud.aiplatform.v1.SupervisedHyperParameters

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SupervisedHyperParameters build()
Returns
Type Description
SupervisedHyperParameters

buildPartial()

public SupervisedHyperParameters buildPartial()
Returns
Type Description
SupervisedHyperParameters

clear()

public SupervisedHyperParameters.Builder clear()
Returns
Type Description
SupervisedHyperParameters.Builder
Overrides

clearAdapterSize()

public SupervisedHyperParameters.Builder clearAdapterSize()

Optional. Adapter size for tuning.

.google.cloud.aiplatform.v1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SupervisedHyperParameters.Builder

This builder for chaining.

clearEpochCount()

public SupervisedHyperParameters.Builder clearEpochCount()

Optional. Number of training epoches for this tuning job.

int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SupervisedHyperParameters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLearningRateMultiplier()

public SupervisedHyperParameters.Builder clearLearningRateMultiplier()

Optional. Learning rate multiplier for tuning.

double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SupervisedHyperParameters.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SupervisedHyperParameters.Builder clone()
Returns
Type Description
SupervisedHyperParameters.Builder
Overrides

getAdapterSize()

public SupervisedHyperParameters.AdapterSize getAdapterSize()

Optional. Adapter size for tuning.

.google.cloud.aiplatform.v1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SupervisedHyperParameters.AdapterSize

The adapterSize.

getAdapterSizeValue()

public int getAdapterSizeValue()

Optional. Adapter size for tuning.

.google.cloud.aiplatform.v1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for adapterSize.

getDefaultInstanceForType()

public SupervisedHyperParameters getDefaultInstanceForType()
Returns
Type Description
SupervisedHyperParameters

getDescriptorForType()

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

getEpochCount()

public long getEpochCount()

Optional. Number of training epoches for this tuning job.

int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The epochCount.

getLearningRateMultiplier()

public double getLearningRateMultiplier()

Optional. Learning rate multiplier for tuning.

double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The learningRateMultiplier.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SupervisedHyperParameters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdapterSize(SupervisedHyperParameters.AdapterSize value)

public SupervisedHyperParameters.Builder setAdapterSize(SupervisedHyperParameters.AdapterSize value)

Optional. Adapter size for tuning.

.google.cloud.aiplatform.v1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SupervisedHyperParameters.AdapterSize

The adapterSize to set.

Returns
Type Description
SupervisedHyperParameters.Builder

This builder for chaining.

setAdapterSizeValue(int value)

public SupervisedHyperParameters.Builder setAdapterSizeValue(int value)

Optional. Adapter size for tuning.

.google.cloud.aiplatform.v1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for adapterSize to set.

Returns
Type Description
SupervisedHyperParameters.Builder

This builder for chaining.

setEpochCount(long value)

public SupervisedHyperParameters.Builder setEpochCount(long value)

Optional. Number of training epoches for this tuning job.

int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The epochCount to set.

Returns
Type Description
SupervisedHyperParameters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLearningRateMultiplier(double value)

public SupervisedHyperParameters.Builder setLearningRateMultiplier(double value)

Optional. Learning rate multiplier for tuning.

double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The learningRateMultiplier to set.

Returns
Type Description
SupervisedHyperParameters.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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