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 describes the compute resource needs for Cloud Run services.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers versions ranging from 1.0.0-beta02 to the latest version 2.13.0, allowing for historical reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourceRequirements\u003c/code\u003e implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is derived from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLimits\u003c/code\u003e property in \u003ccode\u003eResourceRequirements\u003c/code\u003e allows setting the \u003ccode\u003ememory\u003c/code\u003e and \u003ccode\u003ecpu\u003c/code\u003e resource limits with specific constraints such as only supporting CPU values of '1', '2', '4', and '8'.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCpuIdle\u003c/code\u003e and \u003ccode\u003eStartupCpuBoost\u003c/code\u003e boolean properties are configurable, allowing control over CPU allocation and the boost for reducing cold start latency.\u003c/p\u003e\n"]]],[],null,[]]