Class GkeNodePoolConfig.Builder

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

    public static final class GkeNodePoolConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
    implements GkeNodePoolConfigOrBuilder
     The configuration of a GKE node pool used by a [Dataproc-on-GKE
     cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
     
    Protobuf type google.cloud.dataproc.v1.GkeNodePoolConfig
    • 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.Builder>
      • clear

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

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

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

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

        public GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
      • setField

        public GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
      • clearField

        public GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
      • clearOneof

        public GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
      • setRepeatedField

        public GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
      • addRepeatedField

        public GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
      • mergeFrom

        public GkeNodePoolConfig.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<GkeNodePoolConfig.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.Builder>
      • mergeFrom

        public GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
        Throws:
        IOException
      • hasConfig

        public boolean hasConfig()
         Optional. The node pool configuration.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasConfig in interface GkeNodePoolConfigOrBuilder
        Returns:
        Whether the config field is set.
      • clearConfig

        public GkeNodePoolConfig.Builder clearConfig()
         Optional. The node pool configuration.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getConfigBuilder

        public GkeNodePoolConfig.GkeNodeConfig.Builder getConfigBuilder()
         Optional. The node pool configuration.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getLocationsList

        public com.google.protobuf.ProtocolStringList getLocationsList()
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocationsList in interface GkeNodePoolConfigOrBuilder
        Returns:
        A list containing the locations.
      • getLocationsCount

        public int getLocationsCount()
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocationsCount in interface GkeNodePoolConfigOrBuilder
        Returns:
        The count of locations.
      • getLocations

        public String getLocations​(int index)
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocations in interface GkeNodePoolConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The locations at the given index.
      • getLocationsBytes

        public com.google.protobuf.ByteString getLocationsBytes​(int index)
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLocationsBytes in interface GkeNodePoolConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the locations at the given index.
      • setLocations

        public GkeNodePoolConfig.Builder setLocations​(int index,
                                                      String value)
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The locations to set.
        Returns:
        This builder for chaining.
      • addLocations

        public GkeNodePoolConfig.Builder addLocations​(String value)
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The locations to add.
        Returns:
        This builder for chaining.
      • addAllLocations

        public GkeNodePoolConfig.Builder addAllLocations​(Iterable<String> values)
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The locations to add.
        Returns:
        This builder for chaining.
      • clearLocations

        public GkeNodePoolConfig.Builder clearLocations()
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addLocationsBytes

        public GkeNodePoolConfig.Builder addLocationsBytes​(com.google.protobuf.ByteString value)
         Optional. The list of Compute Engine
         [zones](https://cloud.google.com/compute/docs/zones#available) where
         node pool nodes associated with a Dataproc on GKE virtual cluster
         will be located.
        
         **Note:** All node pools associated with a virtual cluster
         must be located in the same region as the virtual cluster, and they must
         be located in the same zone within that region.
        
         If a location is not specified during node pool creation, Dataproc on GKE
         will choose the zone.
         
        repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the locations to add.
        Returns:
        This builder for chaining.
      • hasAutoscaling

        public boolean hasAutoscaling()
         Optional. The autoscaler configuration for this node pool. The autoscaler
         is enabled only when a valid configuration is present.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasAutoscaling in interface GkeNodePoolConfigOrBuilder
        Returns:
        Whether the autoscaling field is set.
      • getAutoscaling

        public GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling()
         Optional. The autoscaler configuration for this node pool. The autoscaler
         is enabled only when a valid configuration is present.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAutoscaling in interface GkeNodePoolConfigOrBuilder
        Returns:
        The autoscaling.
      • setAutoscaling

        public GkeNodePoolConfig.Builder setAutoscaling​(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)
         Optional. The autoscaler configuration for this node pool. The autoscaler
         is enabled only when a valid configuration is present.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setAutoscaling

        public GkeNodePoolConfig.Builder setAutoscaling​(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder builderForValue)
         Optional. The autoscaler configuration for this node pool. The autoscaler
         is enabled only when a valid configuration is present.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
      • mergeAutoscaling

        public GkeNodePoolConfig.Builder mergeAutoscaling​(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)
         Optional. The autoscaler configuration for this node pool. The autoscaler
         is enabled only when a valid configuration is present.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
      • clearAutoscaling

        public GkeNodePoolConfig.Builder clearAutoscaling()
         Optional. The autoscaler configuration for this node pool. The autoscaler
         is enabled only when a valid configuration is present.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getAutoscalingBuilder

        public GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder getAutoscalingBuilder()
         Optional. The autoscaler configuration for this node pool. The autoscaler
         is enabled only when a valid configuration is present.
         
        .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>
      • mergeUnknownFields

        public final GkeNodePoolConfig.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<GkeNodePoolConfig.Builder>