Class GkeNodePoolConfig.GkeNodeConfig.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.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.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
      • getDefaultInstanceForType

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

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

        public GkeNodePoolConfig.GkeNodeConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
      • getMachineType

        public String getMachineType()
         Optional. The name of a Compute Engine [machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMachineType in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The machineType.
      • getMachineTypeBytes

        public com.google.protobuf.ByteString getMachineTypeBytes()
         Optional. The name of a Compute Engine [machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMachineTypeBytes in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The bytes for machineType.
      • setMachineType

        public GkeNodePoolConfig.GkeNodeConfig.Builder setMachineType​(String value)
         Optional. The name of a Compute Engine [machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The machineType to set.
        Returns:
        This builder for chaining.
      • clearMachineType

        public GkeNodePoolConfig.GkeNodeConfig.Builder clearMachineType()
         Optional. The name of a Compute Engine [machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setMachineTypeBytes

        public GkeNodePoolConfig.GkeNodeConfig.Builder setMachineTypeBytes​(com.google.protobuf.ByteString value)
         Optional. The name of a Compute Engine [machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for machineType to set.
        Returns:
        This builder for chaining.
      • getLocalSsdCount

        public int getLocalSsdCount()
         Optional. The number of local SSD disks to attach to the node, which is
         limited by the maximum number of disks allowable per zone (see [Adding
         Local SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
         
        int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocalSsdCount in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The localSsdCount.
      • setLocalSsdCount

        public GkeNodePoolConfig.GkeNodeConfig.Builder setLocalSsdCount​(int value)
         Optional. The number of local SSD disks to attach to the node, which is
         limited by the maximum number of disks allowable per zone (see [Adding
         Local SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
         
        int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The localSsdCount to set.
        Returns:
        This builder for chaining.
      • clearLocalSsdCount

        public GkeNodePoolConfig.GkeNodeConfig.Builder clearLocalSsdCount()
         Optional. The number of local SSD disks to attach to the node, which is
         limited by the maximum number of disks allowable per zone (see [Adding
         Local SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
         
        int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getPreemptible

        public boolean getPreemptible()
         Optional. Whether the nodes are created as legacy [preemptible VM
         instances] (https://cloud.google.com/compute/docs/instances/preemptible).
         Also see
         [Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.spot]
         VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
         preemptible nodes cannot be used in a node pool with the `CONTROLLER`
         [role]
         (/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
         or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
         DEFAULT node pool will assume the CONTROLLER role).
         
        bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPreemptible in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The preemptible.
      • setPreemptible

        public GkeNodePoolConfig.GkeNodeConfig.Builder setPreemptible​(boolean value)
         Optional. Whether the nodes are created as legacy [preemptible VM
         instances] (https://cloud.google.com/compute/docs/instances/preemptible).
         Also see
         [Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.spot]
         VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
         preemptible nodes cannot be used in a node pool with the `CONTROLLER`
         [role]
         (/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
         or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
         DEFAULT node pool will assume the CONTROLLER role).
         
        bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The preemptible to set.
        Returns:
        This builder for chaining.
      • clearPreemptible

        public GkeNodePoolConfig.GkeNodeConfig.Builder clearPreemptible()
         Optional. Whether the nodes are created as legacy [preemptible VM
         instances] (https://cloud.google.com/compute/docs/instances/preemptible).
         Also see
         [Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.spot]
         VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
         preemptible nodes cannot be used in a node pool with the `CONTROLLER`
         [role]
         (/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
         or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
         DEFAULT node pool will assume the CONTROLLER role).
         
        bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getAcceleratorsCount

        public int getAcceleratorsCount()
         Optional. A list of [hardware
         accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
         each node.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAcceleratorsCount in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
      • clearAccelerators

        public GkeNodePoolConfig.GkeNodeConfig.Builder clearAccelerators()
         Optional. A list of [hardware
         accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
         each node.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
      • removeAccelerators

        public GkeNodePoolConfig.GkeNodeConfig.Builder removeAccelerators​(int index)
         Optional. A list of [hardware
         accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
         each node.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getAcceleratorsBuilder

        public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder getAcceleratorsBuilder​(int index)
         Optional. A list of [hardware
         accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
         each node.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
      • addAcceleratorsBuilder

        public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder()
         Optional. A list of [hardware
         accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
         each node.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
      • addAcceleratorsBuilder

        public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder​(int index)
         Optional. A list of [hardware
         accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
         each node.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getAcceleratorsBuilderList

        public List<GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder> getAcceleratorsBuilderList()
         Optional. A list of [hardware
         accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
         each node.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getMinCpuPlatform

        public String getMinCpuPlatform()
         Optional. [Minimum CPU
         platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
         to be used by this instance. The instance may be scheduled on the
         specified or a newer CPU platform. Specify the friendly names of CPU
         platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
         
        string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMinCpuPlatform in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The minCpuPlatform.
      • getMinCpuPlatformBytes

        public com.google.protobuf.ByteString getMinCpuPlatformBytes()
         Optional. [Minimum CPU
         platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
         to be used by this instance. The instance may be scheduled on the
         specified or a newer CPU platform. Specify the friendly names of CPU
         platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
         
        string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMinCpuPlatformBytes in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The bytes for minCpuPlatform.
      • setMinCpuPlatform

        public GkeNodePoolConfig.GkeNodeConfig.Builder setMinCpuPlatform​(String value)
         Optional. [Minimum CPU
         platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
         to be used by this instance. The instance may be scheduled on the
         specified or a newer CPU platform. Specify the friendly names of CPU
         platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
         
        string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The minCpuPlatform to set.
        Returns:
        This builder for chaining.
      • clearMinCpuPlatform

        public GkeNodePoolConfig.GkeNodeConfig.Builder clearMinCpuPlatform()
         Optional. [Minimum CPU
         platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
         to be used by this instance. The instance may be scheduled on the
         specified or a newer CPU platform. Specify the friendly names of CPU
         platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
         
        string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setMinCpuPlatformBytes

        public GkeNodePoolConfig.GkeNodeConfig.Builder setMinCpuPlatformBytes​(com.google.protobuf.ByteString value)
         Optional. [Minimum CPU
         platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
         to be used by this instance. The instance may be scheduled on the
         specified or a newer CPU platform. Specify the friendly names of CPU
         platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
         
        string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for minCpuPlatform to set.
        Returns:
        This builder for chaining.
      • getBootDiskKmsKey

        public String getBootDiskKmsKey()
         Optional. The [Customer Managed Encryption Key (CMEK)]
         (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek)
         used to encrypt the boot disk attached to each node in the node pool.
         Specify the key using the following format:
         <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
         
        string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBootDiskKmsKey in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The bootDiskKmsKey.
      • getBootDiskKmsKeyBytes

        public com.google.protobuf.ByteString getBootDiskKmsKeyBytes()
         Optional. The [Customer Managed Encryption Key (CMEK)]
         (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek)
         used to encrypt the boot disk attached to each node in the node pool.
         Specify the key using the following format:
         <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
         
        string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBootDiskKmsKeyBytes in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The bytes for bootDiskKmsKey.
      • setBootDiskKmsKey

        public GkeNodePoolConfig.GkeNodeConfig.Builder setBootDiskKmsKey​(String value)
         Optional. The [Customer Managed Encryption Key (CMEK)]
         (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek)
         used to encrypt the boot disk attached to each node in the node pool.
         Specify the key using the following format:
         <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
         
        string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bootDiskKmsKey to set.
        Returns:
        This builder for chaining.
      • clearBootDiskKmsKey

        public GkeNodePoolConfig.GkeNodeConfig.Builder clearBootDiskKmsKey()
         Optional. The [Customer Managed Encryption Key (CMEK)]
         (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek)
         used to encrypt the boot disk attached to each node in the node pool.
         Specify the key using the following format:
         <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
         
        string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setBootDiskKmsKeyBytes

        public GkeNodePoolConfig.GkeNodeConfig.Builder setBootDiskKmsKeyBytes​(com.google.protobuf.ByteString value)
         Optional. The [Customer Managed Encryption Key (CMEK)]
         (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek)
         used to encrypt the boot disk attached to each node in the node pool.
         Specify the key using the following format:
         <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
         
        string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for bootDiskKmsKey to set.
        Returns:
        This builder for chaining.
      • getSpot

        public boolean getSpot()
         Optional. Whether the nodes are created as [Spot VM instances]
         (https://cloud.google.com/compute/docs/instances/spot).
         Spot VMs are the latest update to legacy
         [preemptible
         VMs][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible].
         Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
         nodes cannot be used in a node pool with the `CONTROLLER`
         [role](/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
         or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
         DEFAULT node pool will assume the CONTROLLER role).
         
        bool spot = 32 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSpot in interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
        Returns:
        The spot.
      • setSpot

        public GkeNodePoolConfig.GkeNodeConfig.Builder setSpot​(boolean value)
         Optional. Whether the nodes are created as [Spot VM instances]
         (https://cloud.google.com/compute/docs/instances/spot).
         Spot VMs are the latest update to legacy
         [preemptible
         VMs][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible].
         Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
         nodes cannot be used in a node pool with the `CONTROLLER`
         [role](/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
         or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
         DEFAULT node pool will assume the CONTROLLER role).
         
        bool spot = 32 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The spot to set.
        Returns:
        This builder for chaining.
      • clearSpot

        public GkeNodePoolConfig.GkeNodeConfig.Builder clearSpot()
         Optional. Whether the nodes are created as [Spot VM instances]
         (https://cloud.google.com/compute/docs/instances/spot).
         Spot VMs are the latest update to legacy
         [preemptible
         VMs][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible].
         Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
         nodes cannot be used in a node pool with the `CONTROLLER`
         [role](/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
         or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
         DEFAULT node pool will assume the CONTROLLER role).
         
        bool spot = 32 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.