Class ResourceRequirements.Builder (1.54.0)

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

Static 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
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResourceRequirements.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceRequirements.Builder
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;

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
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;

Returns
Type Description
ResourceRequirements.Builder

clone()

public ResourceRequirements.Builder clone()
Returns
Type Description
ResourceRequirements.Builder
Overrides

getDefaultInstanceForType()

public ResourceRequirements getDefaultInstanceForType()
Returns
Type Description
ResourceRequirements

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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;

Returns
Type Description
ResourceList

The limits.

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;

Returns
Type Description
ResourceList.Builder

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;

Returns
Type Description
ResourceListOrBuilder

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;

Returns
Type Description
ResourceList

The requests.

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;

Returns
Type Description
ResourceList.Builder

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;

Returns
Type Description
ResourceListOrBuilder

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceRequirements.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceRequirements.Builder
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;

Parameter
Name Description
value ResourceList
Returns
Type Description
ResourceRequirements.Builder

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;

Parameter
Name Description
value ResourceList
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
Overrides

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
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;

Parameter
Name Description
value ResourceList
Returns
Type Description
ResourceRequirements.Builder

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;

Parameter
Name Description
builderForValue ResourceList.Builder
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
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;

Parameter
Name Description
value ResourceList
Returns
Type Description
ResourceRequirements.Builder

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;

Parameter
Name Description
builderForValue ResourceList.Builder
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
Overrides