Class ResourceList (1.54.0)

public final class ResourceList extends GeneratedMessageV3 implements ResourceListOrBuilder

ResourceList contains container resource requirements.

Protobuf type google.cloud.gkehub.policycontroller.v1beta.ResourceList

Static Fields

CPU_FIELD_NUMBER

public static final int CPU_FIELD_NUMBER
Field Value
Type Description
int

MEMORY_FIELD_NUMBER

public static final int MEMORY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceList getDefaultInstance()
Returns
Type Description
ResourceList

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ResourceList.Builder newBuilder()
Returns
Type Description
ResourceList.Builder

newBuilder(ResourceList prototype)

public static ResourceList.Builder newBuilder(ResourceList prototype)
Parameter
Name Description
prototype ResourceList
Returns
Type Description
ResourceList.Builder

parseDelimitedFrom(InputStream input)

public static ResourceList parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceList
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceList parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceList
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ResourceList parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ResourceList
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourceList parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceList
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourceList parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResourceList
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourceList parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceList
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourceList parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResourceList
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceList parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceList
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ResourceList parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceList
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceList parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceList
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ResourceList parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResourceList
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourceList parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceList
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ResourceList> parser()
Returns
Type Description
Parser<ResourceList>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCpu()

public String getCpu()

CPU requirement expressed in Kubernetes resource units.

optional string cpu = 2;

Returns
Type Description
String

The cpu.

getCpuBytes()

public ByteString getCpuBytes()

CPU requirement expressed in Kubernetes resource units.

optional string cpu = 2;

Returns
Type Description
ByteString

The bytes for cpu.

getDefaultInstanceForType()

public ResourceList getDefaultInstanceForType()
Returns
Type Description
ResourceList

getMemory()

public String getMemory()

Memory requirement expressed in Kubernetes resource units.

optional string memory = 1;

Returns
Type Description
String

The memory.

getMemoryBytes()

public ByteString getMemoryBytes()

Memory requirement expressed in Kubernetes resource units.

optional string memory = 1;

Returns
Type Description
ByteString

The bytes for memory.

getParserForType()

public Parser<ResourceList> getParserForType()
Returns
Type Description
Parser<ResourceList>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCpu()

public 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 boolean hasMemory()

Memory requirement expressed in Kubernetes resource units.

optional string memory = 1;

Returns
Type Description
boolean

Whether the memory field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ResourceList.Builder newBuilderForType()
Returns
Type Description
ResourceList.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourceList.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourceList.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ResourceList.Builder toBuilder()
Returns
Type Description
ResourceList.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException