pub struct Model {Show 20 fields
pub etag: String,
pub model_reference: Option<ModelReference>,
pub creation_time: i64,
pub last_modified_time: i64,
pub description: String,
pub friendly_name: String,
pub labels: BTreeMap<String, String>,
pub expiration_time: i64,
pub location: String,
pub encryption_configuration: Option<EncryptionConfiguration>,
pub model_type: i32,
pub training_runs: Vec<TrainingRun>,
pub feature_columns: Vec<StandardSqlField>,
pub label_columns: Vec<StandardSqlField>,
pub transform_columns: Vec<TransformColumn>,
pub hparam_search_spaces: Option<HparamSearchSpaces>,
pub default_trial_id: i64,
pub hparam_trials: Vec<HparamTuningTrial>,
pub optimal_trial_ids: Vec<i64>,
pub remote_model_info: Option<RemoteModelInfo>,
}
Fields§
§etag: String
Output only. A hash of this resource.
model_reference: Option<ModelReference>
Required. Unique identifier for this model.
creation_time: i64
Output only. The time when this model was created, in millisecs since the epoch.
last_modified_time: i64
Output only. The time when this model was last modified, in millisecs since the epoch.
description: String
Optional. A user-friendly description of this model.
friendly_name: String
Optional. A descriptive name for this model.
labels: BTreeMap<String, String>
The labels associated with this model. You can use these to organize and group your models. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
expiration_time: i64
Optional. The time when this model expires, in milliseconds since the epoch. If not present, the model will persist indefinitely. Expired models will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created models.
location: String
Output only. The geographic location where the model resides. This value is inherited from the dataset.
encryption_configuration: Option<EncryptionConfiguration>
Custom encryption configuration (e.g., Cloud KMS keys). This shows the encryption configuration of the model data while stored in BigQuery storage. This field can be used with PatchModel to update encryption key for an already encrypted model.
model_type: i32
Output only. Type of the model resource.
training_runs: Vec<TrainingRun>
Information for all training runs in increasing order of start_time.
feature_columns: Vec<StandardSqlField>
Output only. Input feature columns for the model inference. If the model is trained with TRANSFORM clause, these are the input of the TRANSFORM clause.
label_columns: Vec<StandardSqlField>
Output only. Label columns that were used to train this model. The output of the model will have a “predicted_” prefix to these columns.
transform_columns: Vec<TransformColumn>
Output only. This field will be populated if a TRANSFORM clause was used to train a model. TRANSFORM clause (if used) takes feature_columns as input and outputs transform_columns. transform_columns then are used to train the model.
hparam_search_spaces: Option<HparamSearchSpaces>
Output only. All hyperparameter search spaces in this model.
default_trial_id: i64
Output only. The default trial_id to use in TVFs when the trial_id is not passed in. For single-objective hyperparameter tuning models, this is the best trial ID. For multi-objective hyperparameter tuning models, this is the smallest trial ID among all Pareto optimal trials.
hparam_trials: Vec<HparamTuningTrial>
Output only. Trials of a hyperparameter tuning model sorted by trial_id.
optimal_trial_ids: Vec<i64>
Output only. For single-objective hyperparameter tuning models, it only contains the best trial. For multi-objective hyperparameter tuning models, it contains all Pareto optimal trials sorted by trial_id.
remote_model_info: Option<RemoteModelInfo>
Output only. Remote model info
Implementations§
source§impl Model
impl Model
sourcepub fn model_type(&self) -> ModelType
pub fn model_type(&self) -> ModelType
Returns the enum value of model_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_model_type(&mut self, value: ModelType)
pub fn set_model_type(&mut self, value: ModelType)
Sets model_type
to the provided enum value.
Trait Implementations§
source§impl Message for Model
impl Message for Model
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Model
impl PartialEq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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