Class GkeNodePoolTarget

  • All Implemented Interfaces:
    GkeNodePoolTargetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class GkeNodePoolTarget
    extends com.google.protobuf.GeneratedMessageV3
    implements GkeNodePoolTargetOrBuilder
     GKE node pools that Dataproc workloads run on.
     
    Protobuf type google.cloud.dataproc.v1.GkeNodePoolTarget
    See Also:
    Serialized Form
    • 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
      • getNodePool

        public String getNodePool()
         Required. The target GKE node pool.
         Format:
         'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
         
        string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNodePool in interface GkeNodePoolTargetOrBuilder
        Returns:
        The nodePool.
      • getNodePoolBytes

        public com.google.protobuf.ByteString getNodePoolBytes()
         Required. The target GKE node pool.
         Format:
         'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
         
        string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNodePoolBytes in interface GkeNodePoolTargetOrBuilder
        Returns:
        The bytes for nodePool.
      • getRolesList

        public List<GkeNodePoolTarget.Role> getRolesList()
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRolesList in interface GkeNodePoolTargetOrBuilder
        Returns:
        A list containing the roles.
      • getRolesCount

        public int getRolesCount()
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRolesCount in interface GkeNodePoolTargetOrBuilder
        Returns:
        The count of roles.
      • getRoles

        public GkeNodePoolTarget.Role getRoles​(int index)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRoles in interface GkeNodePoolTargetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The roles at the given index.
      • getRolesValueList

        public List<Integer> getRolesValueList()
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRolesValueList in interface GkeNodePoolTargetOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for roles.
      • getRolesValue

        public int getRolesValue​(int index)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRolesValue in interface GkeNodePoolTargetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of roles at the given index.
      • hasNodePoolConfig

        public boolean hasNodePoolConfig()
         Input only. The configuration for the GKE node pool.
        
         If specified, Dataproc attempts to create a node pool with the
         specified shape. If one with the same name already exists, it is
         verified against all specified fields. If a field differs, the
         virtual cluster creation will fail.
        
         If omitted, any node pool with the specified name is used. If a
         node pool with the specified name does not exist, Dataproc create a
         node pool with default values.
        
         This is an input only field. It will not be returned by the API.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        hasNodePoolConfig in interface GkeNodePoolTargetOrBuilder
        Returns:
        Whether the nodePoolConfig field is set.
      • getNodePoolConfig

        public GkeNodePoolConfig getNodePoolConfig()
         Input only. The configuration for the GKE node pool.
        
         If specified, Dataproc attempts to create a node pool with the
         specified shape. If one with the same name already exists, it is
         verified against all specified fields. If a field differs, the
         virtual cluster creation will fail.
        
         If omitted, any node pool with the specified name is used. If a
         node pool with the specified name does not exist, Dataproc create a
         node pool with default values.
        
         This is an input only field. It will not be returned by the API.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getNodePoolConfig in interface GkeNodePoolTargetOrBuilder
        Returns:
        The nodePoolConfig.
      • getNodePoolConfigOrBuilder

        public GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder()
         Input only. The configuration for the GKE node pool.
        
         If specified, Dataproc attempts to create a node pool with the
         specified shape. If one with the same name already exists, it is
         verified against all specified fields. If a field differs, the
         virtual cluster creation will fail.
        
         If omitted, any node pool with the specified name is used. If a
         node pool with the specified name does not exist, Dataproc create a
         node pool with default values.
        
         This is an input only field. It will not be returned by the API.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getNodePoolConfigOrBuilder in interface GkeNodePoolTargetOrBuilder
      • 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 GkeNodePoolTarget parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static GkeNodePoolTarget parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public com.google.protobuf.Parser<GkeNodePoolTarget> 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 GkeNodePoolTarget getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder