- 0.55.0 (latest)
- 0.54.0
- 0.53.0
- 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()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
build()
public ResourceRequirements build()
Returns | |
---|---|
Type | Description |
ResourceRequirements |
buildPartial()
public ResourceRequirements buildPartial()
Returns | |
---|---|
Type | Description |
ResourceRequirements |
clear()
public ResourceRequirements.Builder clear()
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
clearCpuIdle()
public ResourceRequirements.Builder clearCpuIdle()
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ResourceRequirements.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
clearLimits()
public ResourceRequirements.Builder clearLimits()
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceRequirements.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
clone()
public ResourceRequirements.Builder clone()
Returns | |
---|---|
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', '4', and '8'. 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;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getCpuIdle()
public boolean getCpuIdle()
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
Returns | |
---|---|
Type | Description |
boolean | The cpuIdle. |
getDefaultInstanceForType()
public ResourceRequirements getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ResourceRequirements |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLimits()
public Map<String,String> getLimits()
Use #getLimitsMap() instead.
Returns | |
---|---|
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', '4', and '8'. 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;
Returns | |
---|---|
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', '4', and '8'. 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;
Returns | |
---|---|
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', '4', and '8'. 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;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
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', '4', and '8'. 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;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableLimits()
public Map<String,String> getMutableLimits()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ResourceRequirements other)
public ResourceRequirements.Builder mergeFrom(ResourceRequirements other)
Parameter | |
---|---|
Name | Description |
other | ResourceRequirements |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceRequirements.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ResourceRequirements.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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', '4', and '8'. 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;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
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', '4', and '8'. 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;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
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', '4', and '8'. 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;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | boolean The cpuIdle to set. |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceRequirements.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourceRequirements.Builder |