#[non_exhaustive]pub struct TunedModelRef {
pub tuned_model_ref: Option<TunedModelRef>,
/* private fields */
}gen-ai-tuning-service only.Expand description
TunedModel Reference for legacy model migration.
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.tuned_model_ref: Option<TunedModelRef>The Tuned Model Reference for the model.
Implementations§
Source§impl TunedModelRef
impl TunedModelRef
pub fn new() -> Self
Sourcepub fn set_tuned_model_ref<T: Into<Option<TunedModelRef>>>(self, v: T) -> Self
pub fn set_tuned_model_ref<T: Into<Option<TunedModelRef>>>(self, v: T) -> Self
Sets the value of tuned_model_ref.
Note that all the setters affecting tuned_model_ref are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::tuned_model_ref::TunedModelRef as TunedModelRefOneOf;
let x = TunedModelRef::new().set_tuned_model_ref(Some(TunedModelRefOneOf::TunedModel("example".to_string())));Sourcepub fn tuned_model(&self) -> Option<&String>
pub fn tuned_model(&self) -> Option<&String>
The value of tuned_model_ref
if it holds a TunedModel, None if the field is not set or
holds a different branch.
Sourcepub fn set_tuned_model<T: Into<String>>(self, v: T) -> Self
pub fn set_tuned_model<T: Into<String>>(self, v: T) -> Self
Sets the value of tuned_model_ref
to hold a TunedModel.
Note that all the setters affecting tuned_model_ref are
mutually exclusive.
§Example
let x = TunedModelRef::new().set_tuned_model("example");
assert!(x.tuned_model().is_some());
assert!(x.tuning_job().is_none());
assert!(x.pipeline_job().is_none());Sourcepub fn tuning_job(&self) -> Option<&String>
pub fn tuning_job(&self) -> Option<&String>
The value of tuned_model_ref
if it holds a TuningJob, None if the field is not set or
holds a different branch.
Sourcepub fn set_tuning_job<T: Into<String>>(self, v: T) -> Self
pub fn set_tuning_job<T: Into<String>>(self, v: T) -> Self
Sets the value of tuned_model_ref
to hold a TuningJob.
Note that all the setters affecting tuned_model_ref are
mutually exclusive.
§Example
let x = TunedModelRef::new().set_tuning_job("example");
assert!(x.tuning_job().is_some());
assert!(x.tuned_model().is_none());
assert!(x.pipeline_job().is_none());Sourcepub fn pipeline_job(&self) -> Option<&String>
pub fn pipeline_job(&self) -> Option<&String>
The value of tuned_model_ref
if it holds a PipelineJob, None if the field is not set or
holds a different branch.
Sourcepub fn set_pipeline_job<T: Into<String>>(self, v: T) -> Self
pub fn set_pipeline_job<T: Into<String>>(self, v: T) -> Self
Sets the value of tuned_model_ref
to hold a PipelineJob.
Note that all the setters affecting tuned_model_ref are
mutually exclusive.
§Example
let x = TunedModelRef::new().set_pipeline_job("example");
assert!(x.pipeline_job().is_some());
assert!(x.tuned_model().is_none());
assert!(x.tuning_job().is_none());Trait Implementations§
Source§impl Clone for TunedModelRef
impl Clone for TunedModelRef
Source§fn clone(&self) -> TunedModelRef
fn clone(&self) -> TunedModelRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more