Class ContainerOverride.Builder (1.87.0)

public static final class ContainerOverride.Builder extends GeneratedMessage.Builder<ContainerOverride.Builder> implements ContainerOverrideOrBuilder

Configuration for a container override.

Protobuf type google.cloud.gkehub.configmanagement.v1beta.ContainerOverride

Static Methods

getDescriptor()

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

Methods

build()

public ContainerOverride build()
Returns
Type Description
ContainerOverride

buildPartial()

public ContainerOverride buildPartial()
Returns
Type Description
ContainerOverride

clear()

public ContainerOverride.Builder clear()
Returns
Type Description
ContainerOverride.Builder
Overrides

clearContainerName()

public ContainerOverride.Builder clearContainerName()

Required. The name of the container.

string container_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

clearCpuLimit()

public ContainerOverride.Builder clearCpuLimit()

Optional. The cpu limit of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_limit = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

clearCpuRequest()

public ContainerOverride.Builder clearCpuRequest()

Optional. The cpu request of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_request = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

clearMemoryLimit()

public ContainerOverride.Builder clearMemoryLimit()

Optional. The memory limit of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_limit = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

clearMemoryRequest()

public ContainerOverride.Builder clearMemoryRequest()

Optional. The memory request of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_request = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

getContainerName()

public String getContainerName()

Required. The name of the container.

string container_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The containerName.

getContainerNameBytes()

public ByteString getContainerNameBytes()

Required. The name of the container.

string container_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for containerName.

getCpuLimit()

public String getCpuLimit()

Optional. The cpu limit of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_limit = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The cpuLimit.

getCpuLimitBytes()

public ByteString getCpuLimitBytes()

Optional. The cpu limit of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_limit = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for cpuLimit.

getCpuRequest()

public String getCpuRequest()

Optional. The cpu request of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_request = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The cpuRequest.

getCpuRequestBytes()

public ByteString getCpuRequestBytes()

Optional. The cpu request of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_request = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for cpuRequest.

getDefaultInstanceForType()

public ContainerOverride getDefaultInstanceForType()
Returns
Type Description
ContainerOverride

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMemoryLimit()

public String getMemoryLimit()

Optional. The memory limit of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_limit = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The memoryLimit.

getMemoryLimitBytes()

public ByteString getMemoryLimitBytes()

Optional. The memory limit of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_limit = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for memoryLimit.

getMemoryRequest()

public String getMemoryRequest()

Optional. The memory request of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_request = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The memoryRequest.

getMemoryRequestBytes()

public ByteString getMemoryRequestBytes()

Optional. The memory request of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_request = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for memoryRequest.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContainerOverride other)

public ContainerOverride.Builder mergeFrom(ContainerOverride other)
Parameter
Name Description
other ContainerOverride
Returns
Type Description
ContainerOverride.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContainerOverride.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerOverride.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ContainerOverride.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContainerOverride.Builder
Overrides

setContainerName(String value)

public ContainerOverride.Builder setContainerName(String value)

Required. The name of the container.

string container_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The containerName to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setContainerNameBytes(ByteString value)

public ContainerOverride.Builder setContainerNameBytes(ByteString value)

Required. The name of the container.

string container_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for containerName to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setCpuLimit(String value)

public ContainerOverride.Builder setCpuLimit(String value)

Optional. The cpu limit of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_limit = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The cpuLimit to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setCpuLimitBytes(ByteString value)

public ContainerOverride.Builder setCpuLimitBytes(ByteString value)

Optional. The cpu limit of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_limit = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for cpuLimit to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setCpuRequest(String value)

public ContainerOverride.Builder setCpuRequest(String value)

Optional. The cpu request of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_request = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The cpuRequest to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setCpuRequestBytes(ByteString value)

public ContainerOverride.Builder setCpuRequestBytes(ByteString value)

Optional. The cpu request of the container. Use the following CPU resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

string cpu_request = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for cpuRequest to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setMemoryLimit(String value)

public ContainerOverride.Builder setMemoryLimit(String value)

Optional. The memory limit of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_limit = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The memoryLimit to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setMemoryLimitBytes(ByteString value)

public ContainerOverride.Builder setMemoryLimitBytes(ByteString value)

Optional. The memory limit of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_limit = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for memoryLimit to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setMemoryRequest(String value)

public ContainerOverride.Builder setMemoryRequest(String value)

Optional. The memory request of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_request = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The memoryRequest to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.

setMemoryRequestBytes(ByteString value)

public ContainerOverride.Builder setMemoryRequestBytes(ByteString value)

Optional. The memory request of the container. Use the following memory resource units: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory.

string memory_request = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for memoryRequest to set.

Returns
Type Description
ContainerOverride.Builder

This builder for chaining.