#[non_exhaustive]pub struct BatchDedicatedResources {
pub machine_spec: Option<MachineSpec>,
pub starting_replica_count: i32,
pub max_replica_count: i32,
/* private fields */
}Available on crate feature
job-service only.Expand description
A description of resources that are used for performing batch operations, are dedicated to a Model, and need manual configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.machine_spec: Option<MachineSpec>Required. Immutable. The specification of a single machine.
starting_replica_count: i32Immutable. The number of machine replicas used at the start of the batch operation. If not set, Vertex AI decides starting number, not greater than max_replica_count
max_replica_count: i32Immutable. The maximum number of machine replicas the batch operation may be scaled to. The default value is 10.
Implementations§
Source§impl BatchDedicatedResources
impl BatchDedicatedResources
pub fn new() -> Self
Sourcepub fn set_machine_spec<T>(self, v: T) -> Selfwhere
T: Into<MachineSpec>,
pub fn set_machine_spec<T>(self, v: T) -> Selfwhere
T: Into<MachineSpec>,
Sets the value of machine_spec.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::MachineSpec;
let x = BatchDedicatedResources::new().set_machine_spec(MachineSpec::default()/* use setters */);Sourcepub fn set_or_clear_machine_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<MachineSpec>,
pub fn set_or_clear_machine_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<MachineSpec>,
Sets or clears the value of machine_spec.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::MachineSpec;
let x = BatchDedicatedResources::new().set_or_clear_machine_spec(Some(MachineSpec::default()/* use setters */));
let x = BatchDedicatedResources::new().set_or_clear_machine_spec(None::<MachineSpec>);Sourcepub fn set_starting_replica_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_starting_replica_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of starting_replica_count.
§Example
ⓘ
let x = BatchDedicatedResources::new().set_starting_replica_count(42);Sourcepub fn set_max_replica_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_replica_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_replica_count.
§Example
ⓘ
let x = BatchDedicatedResources::new().set_max_replica_count(42);Trait Implementations§
Source§impl Clone for BatchDedicatedResources
impl Clone for BatchDedicatedResources
Source§fn clone(&self) -> BatchDedicatedResources
fn clone(&self) -> BatchDedicatedResources
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchDedicatedResources
impl Debug for BatchDedicatedResources
Source§impl Default for BatchDedicatedResources
impl Default for BatchDedicatedResources
Source§fn default() -> BatchDedicatedResources
fn default() -> BatchDedicatedResources
Returns the “default value” for a type. Read more
Source§impl Message for BatchDedicatedResources
impl Message for BatchDedicatedResources
Source§impl PartialEq for BatchDedicatedResources
impl PartialEq for BatchDedicatedResources
impl StructuralPartialEq for BatchDedicatedResources
Auto Trait Implementations§
impl Freeze for BatchDedicatedResources
impl RefUnwindSafe for BatchDedicatedResources
impl Send for BatchDedicatedResources
impl Sync for BatchDedicatedResources
impl Unpin for BatchDedicatedResources
impl UnwindSafe for BatchDedicatedResources
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
Mutably borrows from an owned value. Read more