Class TuningJob.Builder
- Enclosing class:
- TuningJob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TuningJob.BuilderSetter for baseModel.abstract TuningJobbuild()abstract TuningJob.BuildercreateTime(Instant createTime) Setter for createTime.abstract TuningJob.Builderdescription(String description) Setter for description.abstract TuningJob.BuilderdistillationSpec(DistillationSpec distillationSpec) Setter for distillationSpec.distillationSpec(DistillationSpec.Builder distillationSpecBuilder) Setter for distillationSpec builder.abstract TuningJob.BuilderencryptionSpec(EncryptionSpec encryptionSpec) Setter for encryptionSpec.encryptionSpec(EncryptionSpec.Builder encryptionSpecBuilder) Setter for encryptionSpec builder.abstract TuningJob.BuilderSetter for endTime.abstract TuningJob.Buildererror(GoogleRpcStatus error) Setter for error.error(GoogleRpcStatus.Builder errorBuilder) Setter for error builder.abstract TuningJob.Builderexperiment(String experiment) Setter for experiment.abstract TuningJob.BuilderSetter for labels.abstract TuningJob.BuilderSetter for name.abstract TuningJob.BuilderpartnerModelTuningSpec(PartnerModelTuningSpec partnerModelTuningSpec) Setter for partnerModelTuningSpec.partnerModelTuningSpec(PartnerModelTuningSpec.Builder partnerModelTuningSpecBuilder) Setter for partnerModelTuningSpec builder.abstract TuningJob.BuilderpipelineJob(String pipelineJob) Setter for pipelineJob.abstract TuningJob.BuildersatisfiesPzi(boolean satisfiesPzi) Setter for satisfiesPzi.abstract TuningJob.BuildersatisfiesPzs(boolean satisfiesPzs) Setter for satisfiesPzs.abstract TuningJob.BuilderserviceAccount(String serviceAccount) Setter for serviceAccount.abstract TuningJob.BuilderSetter for startTime.abstract TuningJob.BuilderSetter for state.state(JobState.Known knownType) Setter for state given a known enum.Setter for state given a string.abstract TuningJob.BuildersupervisedTuningSpec(SupervisedTuningSpec supervisedTuningSpec) Setter for supervisedTuningSpec.supervisedTuningSpec(SupervisedTuningSpec.Builder supervisedTuningSpecBuilder) Setter for supervisedTuningSpec builder.abstract TuningJob.BuildertunedModel(TunedModel tunedModel) Setter for tunedModel.tunedModel(TunedModel.Builder tunedModelBuilder) Setter for tunedModel builder.abstract TuningJob.BuildertunedModelDisplayName(String tunedModelDisplayName) Setter for tunedModelDisplayName.abstract TuningJob.BuildertuningDataStats(TuningDataStats tuningDataStats) Setter for tuningDataStats.tuningDataStats(TuningDataStats.Builder tuningDataStatsBuilder) Setter for tuningDataStats builder.abstract TuningJob.BuilderupdateTime(Instant updateTime) Setter for updateTime.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Setter for name.name: Output only. Identifier. Resource name of a TuningJob. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`
-
state
Setter for state.state: Output only. The detailed state of the job.
-
state
Setter for state given a known enum.state: Output only. The detailed state of the job.
-
state
Setter for state given a string.state: Output only. The detailed state of the job.
-
createTime
Setter for createTime.createTime: Output only. Time when the TuningJob was created.
-
startTime
Setter for startTime.startTime: Output only. Time when the TuningJob for the first time entered the `JOB_STATE_RUNNING` state.
-
endTime
Setter for endTime.endTime: Output only. Time when the TuningJob entered any of the following JobStates: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, `JOB_STATE_EXPIRED`.
-
updateTime
Setter for updateTime.updateTime: Output only. Time when the TuningJob was most recently updated.
-
error
Setter for error.error: Output only. Only populated when job's state is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.
-
error
Setter for error builder.error: Output only. Only populated when job's state is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.
-
description
Setter for description.description: Optional. The description of the TuningJob.
-
baseModel
Setter for baseModel.baseModel: The base model that is being tuned. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
-
tunedModel
Setter for tunedModel.tunedModel: Output only. The tuned model resources associated with this TuningJob.
-
tunedModel
Setter for tunedModel builder.tunedModel: Output only. The tuned model resources associated with this TuningJob.
-
supervisedTuningSpec
Setter for supervisedTuningSpec.supervisedTuningSpec: Tuning Spec for Supervised Fine Tuning.
-
supervisedTuningSpec
public TuningJob.Builder supervisedTuningSpec(SupervisedTuningSpec.Builder supervisedTuningSpecBuilder) Setter for supervisedTuningSpec builder.supervisedTuningSpec: Tuning Spec for Supervised Fine Tuning.
-
tuningDataStats
Setter for tuningDataStats.tuningDataStats: Output only. The tuning data statistics associated with this TuningJob.
-
tuningDataStats
Setter for tuningDataStats builder.tuningDataStats: Output only. The tuning data statistics associated with this TuningJob.
-
encryptionSpec
Setter for encryptionSpec.encryptionSpec: Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key.
-
encryptionSpec
Setter for encryptionSpec builder.encryptionSpec: Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key.
-
partnerModelTuningSpec
public abstract TuningJob.Builder partnerModelTuningSpec(PartnerModelTuningSpec partnerModelTuningSpec) Setter for partnerModelTuningSpec.partnerModelTuningSpec: Tuning Spec for open sourced and third party Partner models.
-
partnerModelTuningSpec
public TuningJob.Builder partnerModelTuningSpec(PartnerModelTuningSpec.Builder partnerModelTuningSpecBuilder) Setter for partnerModelTuningSpec builder.partnerModelTuningSpec: Tuning Spec for open sourced and third party Partner models.
-
distillationSpec
Setter for distillationSpec.distillationSpec: Tuning Spec for Distillation.
-
distillationSpec
Setter for distillationSpec builder.distillationSpec: Tuning Spec for Distillation.
-
experiment
Setter for experiment.experiment: Output only. The Experiment associated with this TuningJob.
-
labels
Setter for labels.labels: Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
-
pipelineJob
Setter for pipelineJob.pipelineJob: Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
-
satisfiesPzi
Setter for satisfiesPzi.satisfiesPzi: Output only. Reserved for future use.
-
satisfiesPzs
Setter for satisfiesPzs.satisfiesPzs: Output only. Reserved for future use.
-
serviceAccount
Setter for serviceAccount.serviceAccount: The service account that the tuningJob workload runs as. If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the project will be used. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent Users starting the pipeline must have the `iam.serviceAccounts.actAs` permission on this service account.
-
tunedModelDisplayName
Setter for tunedModelDisplayName.tunedModelDisplayName: Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters.
-
build
-