- 0.53.0 (latest)
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.5
- 0.2.1
- 0.1.2
public static final class ResourceRequirements.Builder extends GeneratedMessageV3.Builder<ResourceRequirements.Builder> implements ResourceRequirementsOrBuilder
ResourceRequirements describes the compute resource requirements.
Protobuf type google.cloud.run.v2.ResourceRequirements
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceRequirements.BuilderImplements
ResourceRequirementsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ResourceRequirements.Builder |
build()
public ResourceRequirements build()
Type | Description |
ResourceRequirements |
buildPartial()
public ResourceRequirements buildPartial()
Type | Description |
ResourceRequirements |
clear()
public ResourceRequirements.Builder clear()
Type | Description |
ResourceRequirements.Builder |
clearCpuIdle()
public ResourceRequirements.Builder clearCpuIdle()
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
Type | Description |
ResourceRequirements.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ResourceRequirements.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ResourceRequirements.Builder |
clearLimits()
public ResourceRequirements.Builder clearLimits()
Type | Description |
ResourceRequirements.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceRequirements.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ResourceRequirements.Builder |
clone()
public ResourceRequirements.Builder clone()
Type | Description |
ResourceRequirements.Builder |
containsLimits(String key)
public boolean containsLimits(String key)
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Name | Description |
key | String |
Type | Description |
boolean |
getCpuIdle()
public boolean getCpuIdle()
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
Type | Description |
boolean | The cpuIdle. |
getDefaultInstanceForType()
public ResourceRequirements getDefaultInstanceForType()
Type | Description |
ResourceRequirements |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLimits()
public Map<String,String> getLimits()
Use #getLimitsMap() instead.
Type | Description |
Map<String,String> |
getLimitsCount()
public int getLimitsCount()
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Type | Description |
int |
getLimitsMap()
public Map<String,String> getLimitsMap()
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Type | Description |
Map<String,String> |
getLimitsOrDefault(String key, String defaultValue)
public String getLimitsOrDefault(String key, String defaultValue)
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLimitsOrThrow(String key)
public String getLimitsOrThrow(String key)
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Name | Description |
key | String |
Type | Description |
String |
getMutableLimits()
public Map<String,String> getMutableLimits()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ResourceRequirements other)
public ResourceRequirements.Builder mergeFrom(ResourceRequirements other)
Name | Description |
other | ResourceRequirements |
Type | Description |
ResourceRequirements.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceRequirements.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ResourceRequirements.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ResourceRequirements.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ResourceRequirements.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ResourceRequirements.Builder |
putAllLimits(Map<String,String> values)
public ResourceRequirements.Builder putAllLimits(Map<String,String> values)
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Name | Description |
values | Map<String,String> |
Type | Description |
ResourceRequirements.Builder |
putLimits(String key, String value)
public ResourceRequirements.Builder putLimits(String key, String value)
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Name | Description |
key | String |
value | String |
Type | Description |
ResourceRequirements.Builder |
removeLimits(String key)
public ResourceRequirements.Builder removeLimits(String key)
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
map<string, string> limits = 1;
Name | Description |
key | String |
Type | Description |
ResourceRequirements.Builder |
setCpuIdle(boolean value)
public ResourceRequirements.Builder setCpuIdle(boolean value)
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
Name | Description |
value | boolean The cpuIdle to set. |
Type | Description |
ResourceRequirements.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ResourceRequirements.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceRequirements.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ResourceRequirements.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ResourceRequirements.Builder |