public sealed class ResourceRequirements : IMessage<ResourceRequirements>, IEquatable<ResourceRequirements>, IDeepCloneable<ResourceRequirements>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Run Admin v2 API class ResourceRequirements.
ResourceRequirements describes the compute resource requirements.
Determines whether CPU is only allocated during requests (true by default).
However, if ResourceRequirements is set, the caller must explicitly
set this field to true to preserve the default behavior.
Determines whether CPU should be boosted on startup of a new container
instance above the requested CPU threshold, this can help reduce cold-start
latency.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eResourceRequirements\u003c/code\u003e class in the Google.Cloud.Run.V2 namespace is used to define the compute resource requirements for Cloud Run services.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceRequirements\u003c/code\u003e class includes properties like \u003ccode\u003eCpuIdle\u003c/code\u003e, which determines if CPU is allocated only during requests, and \u003ccode\u003eStartupCpuBoost\u003c/code\u003e, which can help reduce cold-start latency.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLimits\u003c/code\u003e property within \u003ccode\u003eResourceRequirements\u003c/code\u003e allows for setting memory and CPU limits, with specific guidelines for supported values and syntax for \u003ccode\u003ememory\u003c/code\u003e and \u003ccode\u003ecpu\u003c/code\u003e settings.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides an overview of various versions of this class, ranging from 1.0.0-beta02 up to the latest version, 2.13.0, and it can be accessed from the different links provided.\u003c/p\u003e\n"]]],[],null,[]]