Class GkeNodePoolConfig.GkeNodeConfig

    • Field Detail

      • MACHINE_TYPE_FIELD_NUMBER

        public static final int MACHINE_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOCAL_SSD_COUNT_FIELD_NUMBER

        public static final int LOCAL_SSD_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREEMPTIBLE_FIELD_NUMBER

        public static final int PREEMPTIBLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACCELERATORS_FIELD_NUMBER

        public static final int ACCELERATORS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MIN_CPU_PLATFORM_FIELD_NUMBER

        public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BOOT_DISK_KMS_KEY_FIELD_NUMBER

        public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GkeNodePoolConfig.GkeNodeConfig parseFrom​(ByteBuffer data)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GkeNodePoolConfig.GkeNodeConfig parseFrom​(ByteBuffer data,
                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GkeNodePoolConfig.GkeNodeConfig parseFrom​(com.google.protobuf.ByteString data)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GkeNodePoolConfig.GkeNodeConfig parseFrom​(com.google.protobuf.ByteString data,
                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GkeNodePoolConfig.GkeNodeConfig parseFrom​(byte[] data)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GkeNodePoolConfig.GkeNodeConfig parseFrom​(byte[] data,
                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected GkeNodePoolConfig.GkeNodeConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<GkeNodePoolConfig.GkeNodeConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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