#[non_exhaustive]pub struct DeployRequest {
pub destination: String,
pub model_config: Option<ModelConfig>,
pub endpoint_config: Option<EndpointConfig>,
pub deploy_config: Option<DeployConfig>,
pub artifacts: Option<Artifacts>,
/* private fields */
}model-garden-service only.Expand description
Request message for ModelGardenService.Deploy.
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.destination: StringRequired. The resource name of the Location to deploy the model in.
Format: projects/{project}/locations/{location}
model_config: Option<ModelConfig>Optional. The model config to use for the deployment. If not specified, the default model config will be used.
endpoint_config: Option<EndpointConfig>Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
deploy_config: Option<DeployConfig>Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
artifacts: Option<Artifacts>The artifacts to deploy.
Implementations§
Source§impl DeployRequest
impl DeployRequest
pub fn new() -> Self
Sourcepub fn set_destination<T: Into<String>>(self, v: T) -> Self
pub fn set_destination<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_model_config<T>(self, v: T) -> Selfwhere
T: Into<ModelConfig>,
pub fn set_model_config<T>(self, v: T) -> Selfwhere
T: Into<ModelConfig>,
Sets the value of model_config.
§Example
use google_cloud_aiplatform_v1::model::deploy_request::ModelConfig;
let x = DeployRequest::new().set_model_config(ModelConfig::default()/* use setters */);Sourcepub fn set_or_clear_model_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ModelConfig>,
pub fn set_or_clear_model_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ModelConfig>,
Sets or clears the value of model_config.
§Example
use google_cloud_aiplatform_v1::model::deploy_request::ModelConfig;
let x = DeployRequest::new().set_or_clear_model_config(Some(ModelConfig::default()/* use setters */));
let x = DeployRequest::new().set_or_clear_model_config(None::<ModelConfig>);Sourcepub fn set_endpoint_config<T>(self, v: T) -> Selfwhere
T: Into<EndpointConfig>,
pub fn set_endpoint_config<T>(self, v: T) -> Selfwhere
T: Into<EndpointConfig>,
Sets the value of endpoint_config.
§Example
use google_cloud_aiplatform_v1::model::deploy_request::EndpointConfig;
let x = DeployRequest::new().set_endpoint_config(EndpointConfig::default()/* use setters */);Sourcepub fn set_or_clear_endpoint_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EndpointConfig>,
pub fn set_or_clear_endpoint_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EndpointConfig>,
Sets or clears the value of endpoint_config.
§Example
use google_cloud_aiplatform_v1::model::deploy_request::EndpointConfig;
let x = DeployRequest::new().set_or_clear_endpoint_config(Some(EndpointConfig::default()/* use setters */));
let x = DeployRequest::new().set_or_clear_endpoint_config(None::<EndpointConfig>);Sourcepub fn set_deploy_config<T>(self, v: T) -> Selfwhere
T: Into<DeployConfig>,
pub fn set_deploy_config<T>(self, v: T) -> Selfwhere
T: Into<DeployConfig>,
Sets the value of deploy_config.
§Example
use google_cloud_aiplatform_v1::model::deploy_request::DeployConfig;
let x = DeployRequest::new().set_deploy_config(DeployConfig::default()/* use setters */);Sourcepub fn set_or_clear_deploy_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeployConfig>,
pub fn set_or_clear_deploy_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeployConfig>,
Sets or clears the value of deploy_config.
§Example
use google_cloud_aiplatform_v1::model::deploy_request::DeployConfig;
let x = DeployRequest::new().set_or_clear_deploy_config(Some(DeployConfig::default()/* use setters */));
let x = DeployRequest::new().set_or_clear_deploy_config(None::<DeployConfig>);Sourcepub fn set_artifacts<T: Into<Option<Artifacts>>>(self, v: T) -> Self
pub fn set_artifacts<T: Into<Option<Artifacts>>>(self, v: T) -> Self
Sourcepub fn publisher_model_name(&self) -> Option<&String>
pub fn publisher_model_name(&self) -> Option<&String>
The value of artifacts
if it holds a PublisherModelName, None if the field is not set or
holds a different branch.
Sourcepub fn set_publisher_model_name<T: Into<String>>(self, v: T) -> Self
pub fn set_publisher_model_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn hugging_face_model_id(&self) -> Option<&String>
pub fn hugging_face_model_id(&self) -> Option<&String>
The value of artifacts
if it holds a HuggingFaceModelId, None if the field is not set or
holds a different branch.
Sourcepub fn set_hugging_face_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_hugging_face_model_id<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DeployRequest
impl Clone for DeployRequest
Source§fn clone(&self) -> DeployRequest
fn clone(&self) -> DeployRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more