Package com.google.cloud.run.v2
Interface ResourceRequirementsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourceRequirements
,ResourceRequirements.Builder
public interface ResourceRequirementsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLimits(String key)
Only ´memory´ and 'cpu' are supported.boolean
getCpuIdle()
Determines whether CPU should be throttled or not outside of requests.Map<String,String>
getLimits()
Deprecated.int
getLimitsCount()
Only ´memory´ and 'cpu' are supported.Map<String,String>
getLimitsMap()
Only ´memory´ and 'cpu' are supported.String
getLimitsOrDefault(String key, String defaultValue)
Only ´memory´ and 'cpu' are supported.String
getLimitsOrThrow(String key)
Only ´memory´ and 'cpu' 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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getLimitsCount
int getLimitsCount()
Only ´memory´ and 'cpu' are supported. <p>Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
map<string, string> limits = 1;
-
containsLimits
boolean containsLimits(String key)
Only ´memory´ and 'cpu' are supported. <p>Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
map<string, string> limits = 1;
-
getLimits
@Deprecated Map<String,String> getLimits()
Deprecated.UsegetLimitsMap()
instead.
-
getLimitsMap
Map<String,String> getLimitsMap()
Only ´memory´ and 'cpu' are supported. <p>Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
map<string, string> limits = 1;
-
getLimitsOrDefault
String getLimitsOrDefault(String key, String defaultValue)
Only ´memory´ and 'cpu' are supported. <p>Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
map<string, string> limits = 1;
-
getLimitsOrThrow
String getLimitsOrThrow(String key)
Only ´memory´ and 'cpu' are supported. <p>Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
map<string, string> limits = 1;
-
getCpuIdle
boolean getCpuIdle()
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
- Returns:
- The cpuIdle.
-
getStartupCpuBoost
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.
bool startup_cpu_boost = 3;
- Returns:
- The startupCpuBoost.
-
-