#[non_exhaustive]pub struct RebaseTunedModelRequest {
pub parent: String,
pub tuned_model_ref: Option<TunedModelRef>,
pub tuning_job: Option<TuningJob>,
pub artifact_destination: Option<GcsDestination>,
pub deploy_to_same_endpoint: bool,
/* private fields */
}gen-ai-tuning-service only.Expand description
Request message for GenAiTuningService.RebaseTunedModel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The resource name of the Location into which to rebase the Model.
Format: projects/{project}/locations/{location}
tuned_model_ref: Option<TunedModelRef>Required. TunedModel reference to retrieve the legacy model information.
tuning_job: Option<TuningJob>Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning configs.
artifact_destination: Option<GcsDestination>Optional. The Google Cloud Storage location to write the artifacts.
deploy_to_same_endpoint: boolOptional. By default, bison to gemini migration will always create new model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this Section.
Implementations§
Source§impl RebaseTunedModelRequest
impl RebaseTunedModelRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_tuned_model_ref<T>(self, v: T) -> Selfwhere
T: Into<TunedModelRef>,
pub fn set_tuned_model_ref<T>(self, v: T) -> Selfwhere
T: Into<TunedModelRef>,
Sets the value of tuned_model_ref.
§Example
use google_cloud_aiplatform_v1::model::TunedModelRef;
let x = RebaseTunedModelRequest::new().set_tuned_model_ref(TunedModelRef::default()/* use setters */);Sourcepub fn set_or_clear_tuned_model_ref<T>(self, v: Option<T>) -> Selfwhere
T: Into<TunedModelRef>,
pub fn set_or_clear_tuned_model_ref<T>(self, v: Option<T>) -> Selfwhere
T: Into<TunedModelRef>,
Sets or clears the value of tuned_model_ref.
§Example
use google_cloud_aiplatform_v1::model::TunedModelRef;
let x = RebaseTunedModelRequest::new().set_or_clear_tuned_model_ref(Some(TunedModelRef::default()/* use setters */));
let x = RebaseTunedModelRequest::new().set_or_clear_tuned_model_ref(None::<TunedModelRef>);Sourcepub fn set_tuning_job<T>(self, v: T) -> Self
pub fn set_tuning_job<T>(self, v: T) -> Self
Sets the value of tuning_job.
§Example
use google_cloud_aiplatform_v1::model::TuningJob;
let x = RebaseTunedModelRequest::new().set_tuning_job(TuningJob::default()/* use setters */);Sourcepub fn set_or_clear_tuning_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_tuning_job<T>(self, v: Option<T>) -> Self
Sets or clears the value of tuning_job.
§Example
use google_cloud_aiplatform_v1::model::TuningJob;
let x = RebaseTunedModelRequest::new().set_or_clear_tuning_job(Some(TuningJob::default()/* use setters */));
let x = RebaseTunedModelRequest::new().set_or_clear_tuning_job(None::<TuningJob>);Sourcepub fn set_artifact_destination<T>(self, v: T) -> Selfwhere
T: Into<GcsDestination>,
pub fn set_artifact_destination<T>(self, v: T) -> Selfwhere
T: Into<GcsDestination>,
Sets the value of artifact_destination.
§Example
use google_cloud_aiplatform_v1::model::GcsDestination;
let x = RebaseTunedModelRequest::new().set_artifact_destination(GcsDestination::default()/* use setters */);Sourcepub fn set_or_clear_artifact_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcsDestination>,
pub fn set_or_clear_artifact_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcsDestination>,
Sets or clears the value of artifact_destination.
§Example
use google_cloud_aiplatform_v1::model::GcsDestination;
let x = RebaseTunedModelRequest::new().set_or_clear_artifact_destination(Some(GcsDestination::default()/* use setters */));
let x = RebaseTunedModelRequest::new().set_or_clear_artifact_destination(None::<GcsDestination>);Sourcepub fn set_deploy_to_same_endpoint<T: Into<bool>>(self, v: T) -> Self
pub fn set_deploy_to_same_endpoint<T: Into<bool>>(self, v: T) -> Self
Sets the value of deploy_to_same_endpoint.
§Example
let x = RebaseTunedModelRequest::new().set_deploy_to_same_endpoint(true);Trait Implementations§
Source§impl Clone for RebaseTunedModelRequest
impl Clone for RebaseTunedModelRequest
Source§fn clone(&self) -> RebaseTunedModelRequest
fn clone(&self) -> RebaseTunedModelRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more