#[non_exhaustive]pub struct NasJob {Show 15 fields
pub name: String,
pub display_name: String,
pub nas_job_spec: Option<NasJobSpec>,
pub nas_job_output: Option<NasJobOutput>,
pub state: JobState,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub error: Option<Status>,
pub labels: HashMap<String, String>,
pub encryption_spec: Option<EncryptionSpec>,
pub enable_restricted_image_training: bool,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
/* private fields */
}job-service only.Expand description
Represents a Neural Architecture Search (NAS) job.
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.name: StringOutput only. Resource name of the NasJob.
display_name: StringRequired. The display name of the NasJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.
nas_job_spec: Option<NasJobSpec>Required. The specification of a NasJob.
nas_job_output: Option<NasJobOutput>Output only. Output of the NasJob.
state: JobStateOutput only. The detailed state of the job.
create_time: Option<Timestamp>Output only. Time when the NasJob was created.
start_time: Option<Timestamp>Output only. Time when the NasJob for the first time entered the
JOB_STATE_RUNNING state.
end_time: Option<Timestamp>Output only. Time when the NasJob entered any of the following states:
JOB_STATE_SUCCEEDED, JOB_STATE_FAILED, JOB_STATE_CANCELLED.
update_time: Option<Timestamp>Output only. Time when the NasJob was most recently updated.
error: Option<Status>Output only. Only populated when job’s state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.
labels: HashMap<String, String>The labels with user-defined metadata to organize NasJobs.
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.
encryption_spec: Option<EncryptionSpec>Customer-managed encryption key options for a NasJob. If this is set, then all resources created by the NasJob will be encrypted with the provided encryption key.
enable_restricted_image_training: boolOptional. Enable a separation of Custom model training and restricted image training for tenant project.
satisfies_pzs: boolOutput only. Reserved for future use.
satisfies_pzi: boolOutput only. Reserved for future use.
Implementations§
Source§impl NasJob
impl NasJob
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_nas_job_spec<T>(self, v: T) -> Selfwhere
T: Into<NasJobSpec>,
pub fn set_nas_job_spec<T>(self, v: T) -> Selfwhere
T: Into<NasJobSpec>,
Sets the value of nas_job_spec.
§Example
use google_cloud_aiplatform_v1::model::NasJobSpec;
let x = NasJob::new().set_nas_job_spec(NasJobSpec::default()/* use setters */);Sourcepub fn set_or_clear_nas_job_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<NasJobSpec>,
pub fn set_or_clear_nas_job_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<NasJobSpec>,
Sets or clears the value of nas_job_spec.
§Example
use google_cloud_aiplatform_v1::model::NasJobSpec;
let x = NasJob::new().set_or_clear_nas_job_spec(Some(NasJobSpec::default()/* use setters */));
let x = NasJob::new().set_or_clear_nas_job_spec(None::<NasJobSpec>);Sourcepub fn set_nas_job_output<T>(self, v: T) -> Selfwhere
T: Into<NasJobOutput>,
pub fn set_nas_job_output<T>(self, v: T) -> Selfwhere
T: Into<NasJobOutput>,
Sets the value of nas_job_output.
§Example
use google_cloud_aiplatform_v1::model::NasJobOutput;
let x = NasJob::new().set_nas_job_output(NasJobOutput::default()/* use setters */);Sourcepub fn set_or_clear_nas_job_output<T>(self, v: Option<T>) -> Selfwhere
T: Into<NasJobOutput>,
pub fn set_or_clear_nas_job_output<T>(self, v: Option<T>) -> Selfwhere
T: Into<NasJobOutput>,
Sets or clears the value of nas_job_output.
§Example
use google_cloud_aiplatform_v1::model::NasJobOutput;
let x = NasJob::new().set_or_clear_nas_job_output(Some(NasJobOutput::default()/* use setters */));
let x = NasJob::new().set_or_clear_nas_job_output(None::<NasJobOutput>);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = NasJob::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = NasJob::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = NasJob::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = NasJob::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = NasJob::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = NasJob::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = NasJob::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = NasJob::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = NasJob::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
Sets the value of encryption_spec.
§Example
use google_cloud_aiplatform_v1::model::EncryptionSpec;
let x = NasJob::new().set_encryption_spec(EncryptionSpec::default()/* use setters */);Sourcepub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
Sets or clears the value of encryption_spec.
§Example
use google_cloud_aiplatform_v1::model::EncryptionSpec;
let x = NasJob::new().set_or_clear_encryption_spec(Some(EncryptionSpec::default()/* use setters */));
let x = NasJob::new().set_or_clear_encryption_spec(None::<EncryptionSpec>);Sourcepub fn set_enable_restricted_image_training<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_enable_restricted_image_training<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_restricted_image_training.
§Example
let x = NasJob::new().set_enable_restricted_image_training(true);