Class GkeNodePoolTarget.Builder

  • All Implemented Interfaces:
    GkeNodePoolTargetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GkeNodePoolTarget

    public static final class GkeNodePoolTarget.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
    implements GkeNodePoolTargetOrBuilder
     GKE node pools that Dataproc workloads run on.
     
    Protobuf type google.cloud.dataproc.v1.GkeNodePoolTarget
    • 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<GkeNodePoolTarget.Builder>
      • clear

        public GkeNodePoolTarget.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.GeneratedMessageV3.Builder<GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
      • getDefaultInstanceForType

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

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

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

        public GkeNodePoolTarget.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
      • setField

        public GkeNodePoolTarget.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
      • clearField

        public GkeNodePoolTarget.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
      • clearOneof

        public GkeNodePoolTarget.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
      • setRepeatedField

        public GkeNodePoolTarget.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
      • addRepeatedField

        public GkeNodePoolTarget.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
      • mergeFrom

        public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
      • isInitialized

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

        public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
        Throws:
        IOException
      • 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.
      • setNodePool

        public GkeNodePoolTarget.Builder setNodePool​(String value)
         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];
        Parameters:
        value - The nodePool to set.
        Returns:
        This builder for chaining.
      • clearNodePool

        public GkeNodePoolTarget.Builder clearNodePool()
         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];
        Returns:
        This builder for chaining.
      • setNodePoolBytes

        public GkeNodePoolTarget.Builder setNodePoolBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for nodePool to set.
        Returns:
        This builder for chaining.
      • 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.
      • setRoles

        public GkeNodePoolTarget.Builder setRoles​(int index,
                                                  GkeNodePoolTarget.Role value)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index to set the value at.
        value - The roles to set.
        Returns:
        This builder for chaining.
      • addRoles

        public GkeNodePoolTarget.Builder addRoles​(GkeNodePoolTarget.Role value)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The roles to add.
        Returns:
        This builder for chaining.
      • addAllRoles

        public GkeNodePoolTarget.Builder addAllRoles​(Iterable<? extends GkeNodePoolTarget.Role> values)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        values - The roles to add.
        Returns:
        This builder for chaining.
      • clearRoles

        public GkeNodePoolTarget.Builder clearRoles()
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • 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.
      • setRolesValue

        public GkeNodePoolTarget.Builder setRolesValue​(int index,
                                                       int value)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for roles to set.
        Returns:
        This builder for chaining.
      • addRolesValue

        public GkeNodePoolTarget.Builder addRolesValue​(int value)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for roles to add.
        Returns:
        This builder for chaining.
      • addAllRolesValue

        public GkeNodePoolTarget.Builder addAllRolesValue​(Iterable<Integer> values)
         Required. The roles associated with the GKE node pool.
         
        repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        values - The enum numeric values on the wire for roles to add.
        Returns:
        This builder for chaining.
      • 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.
      • setNodePoolConfig

        public GkeNodePoolTarget.Builder setNodePoolConfig​(GkeNodePoolConfig value)
         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];
      • setNodePoolConfig

        public GkeNodePoolTarget.Builder setNodePoolConfig​(GkeNodePoolConfig.Builder builderForValue)
         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];
      • mergeNodePoolConfig

        public GkeNodePoolTarget.Builder mergeNodePoolConfig​(GkeNodePoolConfig value)
         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];
      • clearNodePoolConfig

        public GkeNodePoolTarget.Builder clearNodePoolConfig()
         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];
      • getNodePoolConfigBuilder

        public GkeNodePoolConfig.Builder getNodePoolConfigBuilder()
         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];
      • 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
      • setUnknownFields

        public final GkeNodePoolTarget.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
      • mergeUnknownFields

        public final GkeNodePoolTarget.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>