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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ResourceRequirements build()
Returns
buildPartial()
public ResourceRequirements buildPartial()
Returns
clear()
public ResourceRequirements.Builder clear()
Returns
Overrides
clearCpuIdle()
public ResourceRequirements.Builder clearCpuIdle()
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public ResourceRequirements.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLimits()
public ResourceRequirements.Builder clearLimits()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceRequirements.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ResourceRequirements.Builder clone()
Returns
Overrides
containsLimits(String key)
public boolean containsLimits(String key)
Parameter
Returns
getCpuIdle()
public boolean getCpuIdle()
Determines whether CPU should be throttled or not outside of requests.
bool cpu_idle = 2;
Returns
getDefaultInstanceForType()
public ResourceRequirements getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLimits()
public Map<String,String> getLimits()
Returns
getLimitsCount()
public int getLimitsCount()
Returns
getLimitsMap()
public Map<String,String> getLimitsMap()
Returns
getLimitsOrDefault(String key, String defaultValue)
public String getLimitsOrDefault(String key, String defaultValue)
Parameters
Returns
getLimitsOrThrow(String key)
public String getLimitsOrThrow(String key)
Parameter
Returns
getMutableLimits()
public Map<String,String> getMutableLimits()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ResourceRequirements other)
public ResourceRequirements.Builder mergeFrom(ResourceRequirements other)
Parameter
Returns
public ResourceRequirements.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ResourceRequirements.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllLimits(Map<String,String> values)
public ResourceRequirements.Builder putAllLimits(Map<String,String> values)
Parameter
Returns
putLimits(String key, String value)
public ResourceRequirements.Builder putLimits(String key, String value)
Parameters
Returns
removeLimits(String key)
public ResourceRequirements.Builder removeLimits(String key)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceRequirements.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides