#[non_exhaustive]pub struct PublisherModel {
pub name: String,
pub version_id: String,
pub open_source_category: OpenSourceCategory,
pub supported_actions: Option<CallToAction>,
pub frameworks: Vec<String>,
pub launch_stage: LaunchStage,
pub version_state: VersionState,
pub publisher_model_template: String,
pub predict_schemata: Option<PredictSchemata>,
/* private fields */
}model-garden-service only.Expand description
A Model Garden Publisher Model.
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. The resource name of the PublisherModel.
version_id: StringOutput only. Immutable. The version ID of the PublisherModel. A new version is committed when a new model version is uploaded under an existing model id. It is an auto-incrementing decimal number in string representation.
open_source_category: OpenSourceCategoryRequired. Indicates the open source category of the publisher model.
supported_actions: Option<CallToAction>Optional. Supported call-to-action options.
frameworks: Vec<String>Optional. Additional information about the model’s Frameworks.
launch_stage: LaunchStageOptional. Indicates the launch stage of the model.
version_state: VersionStateOptional. Indicates the state of the model version.
publisher_model_template: StringOptional. Output only. Immutable. Used to indicate this model has a publisher model and provide the template of the publisher model resource name.
predict_schemata: Option<PredictSchemata>Optional. The schemata that describes formats of the PublisherModel’s predictions and explanations as given and returned via PredictionService.Predict.
Implementations§
Source§impl PublisherModel
impl PublisherModel
pub fn new() -> Self
Sourcepub fn set_version_id<T: Into<String>>(self, v: T) -> Self
pub fn set_version_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_open_source_category<T: Into<OpenSourceCategory>>(self, v: T) -> Self
pub fn set_open_source_category<T: Into<OpenSourceCategory>>(self, v: T) -> Self
Sets the value of open_source_category.
§Example
use google_cloud_aiplatform_v1::model::publisher_model::OpenSourceCategory;
let x0 = PublisherModel::new().set_open_source_category(OpenSourceCategory::Proprietary);
let x1 = PublisherModel::new().set_open_source_category(OpenSourceCategory::GoogleOwnedOssWithGoogleCheckpoint);
let x2 = PublisherModel::new().set_open_source_category(OpenSourceCategory::ThirdPartyOwnedOssWithGoogleCheckpoint);Sourcepub fn set_supported_actions<T>(self, v: T) -> Selfwhere
T: Into<CallToAction>,
pub fn set_supported_actions<T>(self, v: T) -> Selfwhere
T: Into<CallToAction>,
Sets the value of supported_actions.
§Example
use google_cloud_aiplatform_v1::model::publisher_model::CallToAction;
let x = PublisherModel::new().set_supported_actions(CallToAction::default()/* use setters */);Sourcepub fn set_or_clear_supported_actions<T>(self, v: Option<T>) -> Selfwhere
T: Into<CallToAction>,
pub fn set_or_clear_supported_actions<T>(self, v: Option<T>) -> Selfwhere
T: Into<CallToAction>,
Sets or clears the value of supported_actions.
§Example
use google_cloud_aiplatform_v1::model::publisher_model::CallToAction;
let x = PublisherModel::new().set_or_clear_supported_actions(Some(CallToAction::default()/* use setters */));
let x = PublisherModel::new().set_or_clear_supported_actions(None::<CallToAction>);Sourcepub fn set_frameworks<T, V>(self, v: T) -> Self
pub fn set_frameworks<T, V>(self, v: T) -> Self
Sets the value of frameworks.
§Example
let x = PublisherModel::new().set_frameworks(["a", "b", "c"]);Sourcepub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
pub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
Sets the value of launch_stage.
§Example
use google_cloud_aiplatform_v1::model::publisher_model::LaunchStage;
let x0 = PublisherModel::new().set_launch_stage(LaunchStage::Experimental);
let x1 = PublisherModel::new().set_launch_stage(LaunchStage::PrivatePreview);
let x2 = PublisherModel::new().set_launch_stage(LaunchStage::PublicPreview);Sourcepub fn set_version_state<T: Into<VersionState>>(self, v: T) -> Self
pub fn set_version_state<T: Into<VersionState>>(self, v: T) -> Self
Sets the value of version_state.
§Example
use google_cloud_aiplatform_v1::model::publisher_model::VersionState;
let x0 = PublisherModel::new().set_version_state(VersionState::Stable);
let x1 = PublisherModel::new().set_version_state(VersionState::Unstable);Sourcepub fn set_publisher_model_template<T: Into<String>>(self, v: T) -> Self
pub fn set_publisher_model_template<T: Into<String>>(self, v: T) -> Self
Sets the value of publisher_model_template.
§Example
let x = PublisherModel::new().set_publisher_model_template("example");Sourcepub fn set_predict_schemata<T>(self, v: T) -> Selfwhere
T: Into<PredictSchemata>,
pub fn set_predict_schemata<T>(self, v: T) -> Selfwhere
T: Into<PredictSchemata>,
Sets the value of predict_schemata.
§Example
use google_cloud_aiplatform_v1::model::PredictSchemata;
let x = PublisherModel::new().set_predict_schemata(PredictSchemata::default()/* use setters */);Sourcepub fn set_or_clear_predict_schemata<T>(self, v: Option<T>) -> Selfwhere
T: Into<PredictSchemata>,
pub fn set_or_clear_predict_schemata<T>(self, v: Option<T>) -> Selfwhere
T: Into<PredictSchemata>,
Sets or clears the value of predict_schemata.
§Example
use google_cloud_aiplatform_v1::model::PredictSchemata;
let x = PublisherModel::new().set_or_clear_predict_schemata(Some(PredictSchemata::default()/* use setters */));
let x = PublisherModel::new().set_or_clear_predict_schemata(None::<PredictSchemata>);Trait Implementations§
Source§impl Clone for PublisherModel
impl Clone for PublisherModel
Source§fn clone(&self) -> PublisherModel
fn clone(&self) -> PublisherModel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more