Interface ResourceListOrBuilder (1.54.0)

public interface ResourceListOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCpu()

public abstract String getCpu()

CPU requirement expressed in Kubernetes resource units.

optional string cpu = 2;

Returns
Type Description
String

The cpu.

getCpuBytes()

public abstract ByteString getCpuBytes()

CPU requirement expressed in Kubernetes resource units.

optional string cpu = 2;

Returns
Type Description
ByteString

The bytes for cpu.

getMemory()

public abstract String getMemory()

Memory requirement expressed in Kubernetes resource units.

optional string memory = 1;

Returns
Type Description
String

The memory.

getMemoryBytes()

public abstract ByteString getMemoryBytes()

Memory requirement expressed in Kubernetes resource units.

optional string memory = 1;

Returns
Type Description
ByteString

The bytes for memory.

hasCpu()

public abstract boolean hasCpu()

CPU requirement expressed in Kubernetes resource units.

optional string cpu = 2;

Returns
Type Description
boolean

Whether the cpu field is set.

hasMemory()

public abstract boolean hasMemory()

Memory requirement expressed in Kubernetes resource units.

optional string memory = 1;

Returns
Type Description
boolean

Whether the memory field is set.