Struct google_api_proto::google::cloud::aiplatform::v1::PublisherModel
source · pub struct PublisherModel {
pub name: String,
pub version_id: String,
pub open_source_category: i32,
pub supported_actions: Option<CallToAction>,
pub frameworks: Vec<String>,
pub launch_stage: i32,
pub version_state: i32,
pub publisher_model_template: String,
pub predict_schemata: Option<PredictSchemata>,
}
Expand description
A Model Garden Publisher Model.
Fields§
§name: String
Output only. The resource name of the PublisherModel.
version_id: String
Output 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: i32
Required. 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: i32
Optional. Indicates the launch stage of the model.
version_state: i32
Optional. Indicates the state of the model version.
publisher_model_template: String
Optional. 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][google.cloud.aiplatform.v1.PredictionService.Predict].
Implementations§
source§impl PublisherModel
impl PublisherModel
sourcepub fn open_source_category(&self) -> OpenSourceCategory
pub fn open_source_category(&self) -> OpenSourceCategory
Returns the enum value of open_source_category
, or the default if the field is set to an invalid enum value.
sourcepub fn set_open_source_category(&mut self, value: OpenSourceCategory)
pub fn set_open_source_category(&mut self, value: OpenSourceCategory)
Sets open_source_category
to the provided enum value.
sourcepub fn launch_stage(&self) -> LaunchStage
pub fn launch_stage(&self) -> LaunchStage
Returns the enum value of launch_stage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_launch_stage(&mut self, value: LaunchStage)
pub fn set_launch_stage(&mut self, value: LaunchStage)
Sets launch_stage
to the provided enum value.
sourcepub fn version_state(&self) -> VersionState
pub fn version_state(&self) -> VersionState
Returns the enum value of version_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_version_state(&mut self, value: VersionState)
pub fn set_version_state(&mut self, value: VersionState)
Sets version_state
to the provided enum value.
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 moresource§impl Debug for PublisherModel
impl Debug for PublisherModel
source§impl Default for PublisherModel
impl Default for PublisherModel
source§impl Message for PublisherModel
impl Message for PublisherModel
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 PublisherModel
impl PartialEq for PublisherModel
source§fn eq(&self, other: &PublisherModel) -> bool
fn eq(&self, other: &PublisherModel) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PublisherModel
Auto Trait Implementations§
impl Freeze for PublisherModel
impl RefUnwindSafe for PublisherModel
impl Send for PublisherModel
impl Sync for PublisherModel
impl Unpin for PublisherModel
impl UnwindSafe for PublisherModel
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