Enum google_api_proto::google::spanner::admin::instance::v1::instance_partition::ComputeCapacity
source · pub enum ComputeCapacity {
NodeCount(i32),
ProcessingUnits(i32),
}
Expand description
Compute capacity defines amount of server and storage resources that are available to the databases in an instance partition. At most one of either node_count or processing_units should be present in the message. See the documentation for more information about nodes and processing units.
Variants§
NodeCount(i32)
The number of nodes allocated to this instance partition.
Users can set the node_count field to specify the target number of nodes allocated to the instance partition.
This may be zero in API responses for instance partitions that are not
yet in state READY
.
ProcessingUnits(i32)
The number of processing units allocated to this instance partition.
Users can set the processing_units field to specify the target number of processing units allocated to the instance partition.
This may be zero in API responses for instance partitions that are not
yet in state READY
.
Implementations§
source§impl ComputeCapacity
impl ComputeCapacity
sourcepub fn merge(
field: &mut Option<ComputeCapacity>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<ComputeCapacity>, 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 ComputeCapacity
impl Clone for ComputeCapacity
source§fn clone(&self) -> ComputeCapacity
fn clone(&self) -> ComputeCapacity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeCapacity
impl Debug for ComputeCapacity
source§impl PartialEq for ComputeCapacity
impl PartialEq for ComputeCapacity
source§fn eq(&self, other: &ComputeCapacity) -> bool
fn eq(&self, other: &ComputeCapacity) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for ComputeCapacity
impl StructuralPartialEq for ComputeCapacity
Auto Trait Implementations§
impl Freeze for ComputeCapacity
impl RefUnwindSafe for ComputeCapacity
impl Send for ComputeCapacity
impl Sync for ComputeCapacity
impl Unpin for ComputeCapacity
impl UnwindSafe for ComputeCapacity
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