#[non_exhaustive]pub struct UploadModelRequest {
pub parent: String,
pub parent_model: String,
pub model_id: String,
pub model: Option<Model>,
pub service_account: String,
/* private fields */
}Expand description
Request message for ModelService.UploadModel.
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 upload the Model.
Format: projects/{project}/locations/{location}
parent_model: StringOptional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.
model_id: StringOptional. The ID to use for the uploaded Model, which will become the final component of the model resource name.
This value may be up to 63 characters, and valid characters are
[a-z0-9_-]. The first character cannot be a number or hyphen.
model: Option<Model>Required. The Model to create.
service_account: StringOptional. The user-provided custom service account to use to do the model
upload. If empty, Vertex AI Service
Agent
will be used to access resources needed to upload the model. This account
must belong to the target project where the model is uploaded to, i.e., the
project specified in the parent field of this request and have necessary
read permissions (to Google Cloud Storage, Artifact Registry, etc.).
Implementations§
Source§impl UploadModelRequest
impl UploadModelRequest
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
Sets the value of parent.
Sourcepub fn set_parent_model<T: Into<String>>(self, v: T) -> Self
pub fn set_parent_model<T: Into<String>>(self, v: T) -> Self
Sets the value of parent_model.
Sourcepub fn set_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of model_id.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Trait Implementations§
Source§impl Clone for UploadModelRequest
impl Clone for UploadModelRequest
Source§fn clone(&self) -> UploadModelRequest
fn clone(&self) -> UploadModelRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more