Class SupervisedTuningSpec.Builder (3.52.0)

public static final class SupervisedTuningSpec.Builder extends GeneratedMessageV3.Builder<SupervisedTuningSpec.Builder> implements SupervisedTuningSpecOrBuilder

Tuning Spec for Supervised Tuning for first party models.

Protobuf type google.cloud.aiplatform.v1.SupervisedTuningSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SupervisedTuningSpec build()
Returns
Type Description
SupervisedTuningSpec

buildPartial()

public SupervisedTuningSpec buildPartial()
Returns
Type Description
SupervisedTuningSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHyperParameters()

public SupervisedTuningSpec.Builder clearHyperParameters()

Optional. Hyperparameters for SFT.

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

Returns
Type Description
SupervisedTuningSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTrainingDatasetUri()

public SupervisedTuningSpec.Builder clearTrainingDatasetUri()

Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.

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

Returns
Type Description
SupervisedTuningSpec.Builder

This builder for chaining.

clearValidationDatasetUri()

public SupervisedTuningSpec.Builder clearValidationDatasetUri()

Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.

string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SupervisedTuningSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SupervisedTuningSpec getDefaultInstanceForType()
Returns
Type Description
SupervisedTuningSpec

getDescriptorForType()

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

getHyperParameters()

public SupervisedHyperParameters getHyperParameters()

Optional. Hyperparameters for SFT.

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

Returns
Type Description
SupervisedHyperParameters

The hyperParameters.

getHyperParametersBuilder()

public SupervisedHyperParameters.Builder getHyperParametersBuilder()

Optional. Hyperparameters for SFT.

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

Returns
Type Description
SupervisedHyperParameters.Builder

getHyperParametersOrBuilder()

public SupervisedHyperParametersOrBuilder getHyperParametersOrBuilder()

Optional. Hyperparameters for SFT.

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

Returns
Type Description
SupervisedHyperParametersOrBuilder

getTrainingDatasetUri()

public String getTrainingDatasetUri()

Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.

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

Returns
Type Description
String

The trainingDatasetUri.

getTrainingDatasetUriBytes()

public ByteString getTrainingDatasetUriBytes()

Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.

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

Returns
Type Description
ByteString

The bytes for trainingDatasetUri.

getValidationDatasetUri()

public String getValidationDatasetUri()

Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.

string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The validationDatasetUri.

getValidationDatasetUriBytes()

public ByteString getValidationDatasetUriBytes()

Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.

string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for validationDatasetUri.

hasHyperParameters()

public boolean hasHyperParameters()

Optional. Hyperparameters for SFT.

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

Returns
Type Description
boolean

Whether the hyperParameters field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SupervisedTuningSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHyperParameters(SupervisedHyperParameters value)

public SupervisedTuningSpec.Builder mergeHyperParameters(SupervisedHyperParameters value)

Optional. Hyperparameters for SFT.

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

Parameter
Name Description
value SupervisedHyperParameters
Returns
Type Description
SupervisedTuningSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHyperParameters(SupervisedHyperParameters value)

public SupervisedTuningSpec.Builder setHyperParameters(SupervisedHyperParameters value)

Optional. Hyperparameters for SFT.

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

Parameter
Name Description
value SupervisedHyperParameters
Returns
Type Description
SupervisedTuningSpec.Builder

setHyperParameters(SupervisedHyperParameters.Builder builderForValue)

public SupervisedTuningSpec.Builder setHyperParameters(SupervisedHyperParameters.Builder builderForValue)

Optional. Hyperparameters for SFT.

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

Parameter
Name Description
builderForValue SupervisedHyperParameters.Builder
Returns
Type Description
SupervisedTuningSpec.Builder

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

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

setTrainingDatasetUri(String value)

public SupervisedTuningSpec.Builder setTrainingDatasetUri(String value)

Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.

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

Parameter
Name Description
value String

The trainingDatasetUri to set.

Returns
Type Description
SupervisedTuningSpec.Builder

This builder for chaining.

setTrainingDatasetUriBytes(ByteString value)

public SupervisedTuningSpec.Builder setTrainingDatasetUriBytes(ByteString value)

Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.

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

Parameter
Name Description
value ByteString

The bytes for trainingDatasetUri to set.

Returns
Type Description
SupervisedTuningSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidationDatasetUri(String value)

public SupervisedTuningSpec.Builder setValidationDatasetUri(String value)

Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.

string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The validationDatasetUri to set.

Returns
Type Description
SupervisedTuningSpec.Builder

This builder for chaining.

setValidationDatasetUriBytes(ByteString value)

public SupervisedTuningSpec.Builder setValidationDatasetUriBytes(ByteString value)

Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.

string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for validationDatasetUri to set.

Returns
Type Description
SupervisedTuningSpec.Builder

This builder for chaining.