public static final class ResourceRequirements.Builder extends GeneratedMessageV3.Builder<ResourceRequirements.Builder> implements ResourceRequirementsOrBuilder
ResourceRequirements describes the compute resource requirements.
Protobuf type google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ResourceRequirements build()
buildPartial()
public ResourceRequirements buildPartial()
clear()
public ResourceRequirements.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResourceRequirements.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLimits()
public ResourceRequirements.Builder clearLimits()
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceRequirements.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRequests()
public ResourceRequirements.Builder clearRequests()
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
clone()
public ResourceRequirements.Builder clone()
Overrides
getDefaultInstanceForType()
public ResourceRequirements getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLimits()
public ResourceList getLimits()
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
getLimitsBuilder()
public ResourceList.Builder getLimitsBuilder()
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
getLimitsOrBuilder()
public ResourceListOrBuilder getLimitsOrBuilder()
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
getRequests()
public ResourceList getRequests()
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
getRequestsBuilder()
public ResourceList.Builder getRequestsBuilder()
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
getRequestsOrBuilder()
public ResourceListOrBuilder getRequestsOrBuilder()
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
hasLimits()
public boolean hasLimits()
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
Returns |
Type |
Description |
boolean |
Whether the limits field is set.
|
hasRequests()
public boolean hasRequests()
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
Returns |
Type |
Description |
boolean |
Whether the requests field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ResourceRequirements other)
public ResourceRequirements.Builder mergeFrom(ResourceRequirements other)
public ResourceRequirements.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ResourceRequirements.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeLimits(ResourceList value)
public ResourceRequirements.Builder mergeLimits(ResourceList value)
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
mergeRequests(ResourceList value)
public ResourceRequirements.Builder mergeRequests(ResourceList value)
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceRequirements.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLimits(ResourceList value)
public ResourceRequirements.Builder setLimits(ResourceList value)
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
setLimits(ResourceList.Builder builderForValue)
public ResourceRequirements.Builder setLimits(ResourceList.Builder builderForValue)
Limits describes the maximum amount of compute resources allowed for use by
the running container.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList limits = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceRequirements.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRequests(ResourceList value)
public ResourceRequirements.Builder setRequests(ResourceList value)
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
setRequests(ResourceList.Builder builderForValue)
public ResourceRequirements.Builder setRequests(ResourceList.Builder builderForValue)
Requests describes the amount of compute resources reserved for the
container by the kube-scheduler.
optional .google.cloud.gkehub.policycontroller.v1beta.ResourceList requests = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceRequirements.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides