Enum google_api_proto::google::cloud::aiplatform::v1beta1::deployed_model::PredictionResources
source · pub enum PredictionResources {
DedicatedResources(DedicatedResources),
AutomaticResources(AutomaticResources),
SharedResources(String),
}
Expand description
The prediction (for example, the machine) resources that the DeployedModel uses. The user is billed for the resources (at least their minimal amount) even if the DeployedModel receives no traffic. Not all Models support all resources types. See [Model.supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types]. Required except for Large Model Deploy use cases.
Variants§
DedicatedResources(DedicatedResources)
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
AutomaticResources(AutomaticResources)
A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.
The resource name of the shared DeploymentResourcePool to deploy on.
Format:
projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
Implementations§
source§impl PredictionResources
impl PredictionResources
sourcepub fn merge(
field: &mut Option<PredictionResources>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<PredictionResources>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for PredictionResources
impl Clone for PredictionResources
source§fn clone(&self) -> PredictionResources
fn clone(&self) -> PredictionResources
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredictionResources
impl Debug for PredictionResources
source§impl PartialEq for PredictionResources
impl PartialEq for PredictionResources
source§fn eq(&self, other: &PredictionResources) -> bool
fn eq(&self, other: &PredictionResources) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictionResources
Auto Trait Implementations§
impl Freeze for PredictionResources
impl RefUnwindSafe for PredictionResources
impl Send for PredictionResources
impl Sync for PredictionResources
impl Unpin for PredictionResources
impl UnwindSafe for PredictionResources
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