Class ContainerOverride.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContainerOverride.Builder>
com.google.cloud.gkehub.configmanagement.v1beta.ContainerOverride.Builder
All Implemented Interfaces:
ContainerOverrideOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ContainerOverride

public static final class ContainerOverride.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContainerOverride.Builder> implements ContainerOverrideOrBuilder
 Configuration for a container override.
 
Protobuf type google.cloud.gkehub.configmanagement.v1beta.ContainerOverride
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ContainerOverride.Builder>
    • clear

      public ContainerOverride.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ContainerOverride.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ContainerOverride.Builder>
    • getDefaultInstanceForType

      public ContainerOverride getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ContainerOverride build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ContainerOverride buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ContainerOverride.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContainerOverride.Builder>
    • mergeFrom

      public ContainerOverride.Builder mergeFrom(ContainerOverride other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ContainerOverride.Builder>
    • mergeFrom

      public ContainerOverride.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContainerOverride.Builder>
      Throws:
      IOException
    • getContainerName

      public String getContainerName()
       Required. The name of the container.
       
      string container_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContainerName in interface ContainerOverrideOrBuilder
      Returns:
      The containerName.
    • getContainerNameBytes

      public com.google.protobuf.ByteString getContainerNameBytes()
       Required. The name of the container.
       
      string container_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContainerNameBytes in interface ContainerOverrideOrBuilder
      Returns:
      The bytes for containerName.
    • setContainerName

      public ContainerOverride.Builder setContainerName(String value)
       Required. The name of the container.
       
      string container_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The containerName to set.
      Returns:
      This builder for chaining.
    • clearContainerName

      public ContainerOverride.Builder clearContainerName()
       Required. The name of the container.
       
      string container_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setContainerNameBytes

      public ContainerOverride.Builder setContainerNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the container.
       
      string container_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for containerName to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getCpuRequest in interface ContainerOverrideOrBuilder
      Returns:
      The cpuRequest.
    • getCpuRequestBytes

      public com.google.protobuf.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];
      Specified by:
      getCpuRequestBytes in interface ContainerOverrideOrBuilder
      Returns:
      The bytes for cpuRequest.
    • setCpuRequest

      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];
      Parameters:
      value - The cpuRequest to set.
      Returns:
      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:
      This builder for chaining.
    • setCpuRequestBytes

      public ContainerOverride.Builder setCpuRequestBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for cpuRequest to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getCpuLimit in interface ContainerOverrideOrBuilder
      Returns:
      The cpuLimit.
    • getCpuLimitBytes

      public com.google.protobuf.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];
      Specified by:
      getCpuLimitBytes in interface ContainerOverrideOrBuilder
      Returns:
      The bytes for cpuLimit.
    • setCpuLimit

      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];
      Parameters:
      value - The cpuLimit to set.
      Returns:
      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:
      This builder for chaining.
    • setCpuLimitBytes

      public ContainerOverride.Builder setCpuLimitBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for cpuLimit to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getMemoryRequest in interface ContainerOverrideOrBuilder
      Returns:
      The memoryRequest.
    • getMemoryRequestBytes

      public com.google.protobuf.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];
      Specified by:
      getMemoryRequestBytes in interface ContainerOverrideOrBuilder
      Returns:
      The bytes for memoryRequest.
    • setMemoryRequest

      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];
      Parameters:
      value - The memoryRequest to set.
      Returns:
      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:
      This builder for chaining.
    • setMemoryRequestBytes

      public ContainerOverride.Builder setMemoryRequestBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for memoryRequest to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getMemoryLimit in interface ContainerOverrideOrBuilder
      Returns:
      The memoryLimit.
    • getMemoryLimitBytes

      public com.google.protobuf.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];
      Specified by:
      getMemoryLimitBytes in interface ContainerOverrideOrBuilder
      Returns:
      The bytes for memoryLimit.
    • setMemoryLimit

      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];
      Parameters:
      value - The memoryLimit to set.
      Returns:
      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:
      This builder for chaining.
    • setMemoryLimitBytes

      public ContainerOverride.Builder setMemoryLimitBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for memoryLimit to set.
      Returns:
      This builder for chaining.