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 latest version of the \u003ccode\u003eResourceRequirements\u003c/code\u003e class is 2.13.0, found within the \u003ccode\u003eGoogle.Cloud.Run.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceRequirements\u003c/code\u003e class is a compute resource requirement descriptor for the Cloud Run Admin v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceRequirements\u003c/code\u003e class has properties for setting CPU behavior, including \u003ccode\u003eCpuIdle\u003c/code\u003e (whether CPU is allocated only during requests) and \u003ccode\u003eStartupCpuBoost\u003c/code\u003e (whether CPU is boosted on startup).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLimits\u003c/code\u003e property supports setting \u003ccode\u003ememory\u003c/code\u003e and \u003ccode\u003ecpu\u003c/code\u003e keys with specific limitations, such as only allowing '1', '2', '4', and '8' as CPU values, and with minimum memory requirements for higher CPU values.\u003c/p\u003e\n"]]],[],null,[]]