public final class GoogleCloudRunV2ResourceRequirements
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleCloudRunV2ResourceRequirements() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudRunV2ResourceRequirements |
clone() |
Boolean |
getCpuIdle()
Determines whether CPU is only allocated during requests (true by default).
|
Map<String,String> |
getLimits()
Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
|
Boolean |
getStartupCpuBoost()
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.
|
GoogleCloudRunV2ResourceRequirements |
set(String fieldName,
Object value) |
GoogleCloudRunV2ResourceRequirements |
setCpuIdle(Boolean cpuIdle)
Determines whether CPU is only allocated during requests (true by default).
|
GoogleCloudRunV2ResourceRequirements |
setLimits(Map<String,String> limits)
Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
|
GoogleCloudRunV2ResourceRequirements |
setStartupCpuBoost(Boolean startupCpuBoost)
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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic GoogleCloudRunV2ResourceRequirements()
public Boolean getCpuIdle()
null for nonepublic GoogleCloudRunV2ResourceRequirements setCpuIdle(Boolean cpuIdle)
cpuIdle - cpuIdle or null for nonepublic Map<String,String> getLimits()
null for nonepublic GoogleCloudRunV2ResourceRequirements setLimits(Map<String,String> limits)
limits - limits or null for nonepublic Boolean getStartupCpuBoost()
null for nonepublic GoogleCloudRunV2ResourceRequirements setStartupCpuBoost(Boolean startupCpuBoost)
startupCpuBoost - startupCpuBoost or null for nonepublic GoogleCloudRunV2ResourceRequirements set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleCloudRunV2ResourceRequirements clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.