#[non_exhaustive]pub struct TunedModel {
pub model: String,
pub endpoint: String,
pub checkpoints: Vec<TunedModelCheckpoint>,
/* private fields */
}gen-ai-tuning-service only.Expand description
The Model Registry Model and Online Prediction Endpoint associated with this TuningJob.
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.model: StringOutput only. The resource name of the TunedModel. Format:
projects/{project}/locations/{location}/models/{model}@{version_id}
When tuning from a base model, the version ID will be 1.
For continuous tuning, if the provided tuned_model_display_name is set and different from parent model’s display name, the tuned model will have a new parent model with version 1. Otherwise the version id will be incremented by 1 from the last version ID in the parent model. E.g.,
projects/{project}/locations/{location}/models/{model}@{last_version_id + 1}
endpoint: StringOutput only. A resource name of an Endpoint. Format:
projects/{project}/locations/{location}/endpoints/{endpoint}.
checkpoints: Vec<TunedModelCheckpoint>Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.
Implementations§
Source§impl TunedModel
impl TunedModel
Sourcepub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_checkpoints<T, V>(self, v: T) -> Self
pub fn set_checkpoints<T, V>(self, v: T) -> Self
Sets the value of checkpoints.
§Example
use google_cloud_aiplatform_v1::model::TunedModelCheckpoint;
let x = TunedModel::new()
.set_checkpoints([
TunedModelCheckpoint::default()/* use setters */,
TunedModelCheckpoint::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for TunedModel
impl Clone for TunedModel
Source§fn clone(&self) -> TunedModel
fn clone(&self) -> TunedModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TunedModel
impl Debug for TunedModel
Source§impl Default for TunedModel
impl Default for TunedModel
Source§fn default() -> TunedModel
fn default() -> TunedModel
Source§impl PartialEq for TunedModel
impl PartialEq for TunedModel
impl StructuralPartialEq for TunedModel
Auto Trait Implementations§
impl Freeze for TunedModel
impl RefUnwindSafe for TunedModel
impl Send for TunedModel
impl Sync for TunedModel
impl Unpin for TunedModel
impl UnsafeUnpin for TunedModel
impl UnwindSafe for TunedModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request