Class Scheduling.Builder

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

    public static final class Scheduling.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
    implements SchedulingOrBuilder
     Sets the scheduling options for an Instance.
     
    Protobuf type google.cloud.compute.v1.Scheduling
    • 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<Scheduling.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Scheduling.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<Scheduling.Builder>
        Throws:
        IOException
      • hasAutomaticRestart

        public boolean hasAutomaticRestart()
         Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
         
        optional bool automatic_restart = 350821371;
        Specified by:
        hasAutomaticRestart in interface SchedulingOrBuilder
        Returns:
        Whether the automaticRestart field is set.
      • getAutomaticRestart

        public boolean getAutomaticRestart()
         Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
         
        optional bool automatic_restart = 350821371;
        Specified by:
        getAutomaticRestart in interface SchedulingOrBuilder
        Returns:
        The automaticRestart.
      • setAutomaticRestart

        public Scheduling.Builder setAutomaticRestart​(boolean value)
         Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
         
        optional bool automatic_restart = 350821371;
        Parameters:
        value - The automaticRestart to set.
        Returns:
        This builder for chaining.
      • clearAutomaticRestart

        public Scheduling.Builder clearAutomaticRestart()
         Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
         
        optional bool automatic_restart = 350821371;
        Returns:
        This builder for chaining.
      • hasInstanceTerminationAction

        public boolean hasInstanceTerminationAction()
         Specifies the termination action for the instance.
         Check the InstanceTerminationAction enum for the list of possible values.
         
        optional string instance_termination_action = 107380667;
        Specified by:
        hasInstanceTerminationAction in interface SchedulingOrBuilder
        Returns:
        Whether the instanceTerminationAction field is set.
      • getInstanceTerminationAction

        public String getInstanceTerminationAction()
         Specifies the termination action for the instance.
         Check the InstanceTerminationAction enum for the list of possible values.
         
        optional string instance_termination_action = 107380667;
        Specified by:
        getInstanceTerminationAction in interface SchedulingOrBuilder
        Returns:
        The instanceTerminationAction.
      • getInstanceTerminationActionBytes

        public com.google.protobuf.ByteString getInstanceTerminationActionBytes()
         Specifies the termination action for the instance.
         Check the InstanceTerminationAction enum for the list of possible values.
         
        optional string instance_termination_action = 107380667;
        Specified by:
        getInstanceTerminationActionBytes in interface SchedulingOrBuilder
        Returns:
        The bytes for instanceTerminationAction.
      • setInstanceTerminationAction

        public Scheduling.Builder setInstanceTerminationAction​(String value)
         Specifies the termination action for the instance.
         Check the InstanceTerminationAction enum for the list of possible values.
         
        optional string instance_termination_action = 107380667;
        Parameters:
        value - The instanceTerminationAction to set.
        Returns:
        This builder for chaining.
      • clearInstanceTerminationAction

        public Scheduling.Builder clearInstanceTerminationAction()
         Specifies the termination action for the instance.
         Check the InstanceTerminationAction enum for the list of possible values.
         
        optional string instance_termination_action = 107380667;
        Returns:
        This builder for chaining.
      • setInstanceTerminationActionBytes

        public Scheduling.Builder setInstanceTerminationActionBytes​(com.google.protobuf.ByteString value)
         Specifies the termination action for the instance.
         Check the InstanceTerminationAction enum for the list of possible values.
         
        optional string instance_termination_action = 107380667;
        Parameters:
        value - The bytes for instanceTerminationAction to set.
        Returns:
        This builder for chaining.
      • hasLocalSsdRecoveryTimeout

        public boolean hasLocalSsdRecoveryTimeout()
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
        Specified by:
        hasLocalSsdRecoveryTimeout in interface SchedulingOrBuilder
        Returns:
        Whether the localSsdRecoveryTimeout field is set.
      • getLocalSsdRecoveryTimeout

        public Duration getLocalSsdRecoveryTimeout()
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
        Specified by:
        getLocalSsdRecoveryTimeout in interface SchedulingOrBuilder
        Returns:
        The localSsdRecoveryTimeout.
      • setLocalSsdRecoveryTimeout

        public Scheduling.Builder setLocalSsdRecoveryTimeout​(Duration value)
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
      • setLocalSsdRecoveryTimeout

        public Scheduling.Builder setLocalSsdRecoveryTimeout​(Duration.Builder builderForValue)
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
      • mergeLocalSsdRecoveryTimeout

        public Scheduling.Builder mergeLocalSsdRecoveryTimeout​(Duration value)
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
      • clearLocalSsdRecoveryTimeout

        public Scheduling.Builder clearLocalSsdRecoveryTimeout()
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
      • getLocalSsdRecoveryTimeoutBuilder

        public Duration.Builder getLocalSsdRecoveryTimeoutBuilder()
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
      • getLocalSsdRecoveryTimeoutOrBuilder

        public DurationOrBuilder getLocalSsdRecoveryTimeoutOrBuilder()
         Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
         
        optional .google.cloud.compute.v1.Duration local_ssd_recovery_timeout = 268015590;
        Specified by:
        getLocalSsdRecoveryTimeoutOrBuilder in interface SchedulingOrBuilder
      • hasLocationHint

        public boolean hasLocationHint()
         An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
         
        optional string location_hint = 350519505;
        Specified by:
        hasLocationHint in interface SchedulingOrBuilder
        Returns:
        Whether the locationHint field is set.
      • getLocationHint

        public String getLocationHint()
         An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
         
        optional string location_hint = 350519505;
        Specified by:
        getLocationHint in interface SchedulingOrBuilder
        Returns:
        The locationHint.
      • getLocationHintBytes

        public com.google.protobuf.ByteString getLocationHintBytes()
         An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
         
        optional string location_hint = 350519505;
        Specified by:
        getLocationHintBytes in interface SchedulingOrBuilder
        Returns:
        The bytes for locationHint.
      • setLocationHint

        public Scheduling.Builder setLocationHint​(String value)
         An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
         
        optional string location_hint = 350519505;
        Parameters:
        value - The locationHint to set.
        Returns:
        This builder for chaining.
      • clearLocationHint

        public Scheduling.Builder clearLocationHint()
         An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
         
        optional string location_hint = 350519505;
        Returns:
        This builder for chaining.
      • setLocationHintBytes

        public Scheduling.Builder setLocationHintBytes​(com.google.protobuf.ByteString value)
         An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
         
        optional string location_hint = 350519505;
        Parameters:
        value - The bytes for locationHint to set.
        Returns:
        This builder for chaining.
      • hasMinNodeCpus

        public boolean hasMinNodeCpus()
         The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
         
        optional int32 min_node_cpus = 317231675;
        Specified by:
        hasMinNodeCpus in interface SchedulingOrBuilder
        Returns:
        Whether the minNodeCpus field is set.
      • getMinNodeCpus

        public int getMinNodeCpus()
         The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
         
        optional int32 min_node_cpus = 317231675;
        Specified by:
        getMinNodeCpus in interface SchedulingOrBuilder
        Returns:
        The minNodeCpus.
      • setMinNodeCpus

        public Scheduling.Builder setMinNodeCpus​(int value)
         The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
         
        optional int32 min_node_cpus = 317231675;
        Parameters:
        value - The minNodeCpus to set.
        Returns:
        This builder for chaining.
      • clearMinNodeCpus

        public Scheduling.Builder clearMinNodeCpus()
         The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
         
        optional int32 min_node_cpus = 317231675;
        Returns:
        This builder for chaining.
      • getNodeAffinitiesList

        public List<SchedulingNodeAffinity> getNodeAffinitiesList()
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
        Specified by:
        getNodeAffinitiesList in interface SchedulingOrBuilder
      • getNodeAffinitiesCount

        public int getNodeAffinitiesCount()
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
        Specified by:
        getNodeAffinitiesCount in interface SchedulingOrBuilder
      • getNodeAffinities

        public SchedulingNodeAffinity getNodeAffinities​(int index)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
        Specified by:
        getNodeAffinities in interface SchedulingOrBuilder
      • setNodeAffinities

        public Scheduling.Builder setNodeAffinities​(int index,
                                                    SchedulingNodeAffinity value)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • setNodeAffinities

        public Scheduling.Builder setNodeAffinities​(int index,
                                                    SchedulingNodeAffinity.Builder builderForValue)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • addNodeAffinities

        public Scheduling.Builder addNodeAffinities​(SchedulingNodeAffinity value)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • addNodeAffinities

        public Scheduling.Builder addNodeAffinities​(int index,
                                                    SchedulingNodeAffinity value)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • addNodeAffinities

        public Scheduling.Builder addNodeAffinities​(SchedulingNodeAffinity.Builder builderForValue)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • addNodeAffinities

        public Scheduling.Builder addNodeAffinities​(int index,
                                                    SchedulingNodeAffinity.Builder builderForValue)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • addAllNodeAffinities

        public Scheduling.Builder addAllNodeAffinities​(Iterable<? extends SchedulingNodeAffinity> values)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • clearNodeAffinities

        public Scheduling.Builder clearNodeAffinities()
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • removeNodeAffinities

        public Scheduling.Builder removeNodeAffinities​(int index)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • getNodeAffinitiesBuilder

        public SchedulingNodeAffinity.Builder getNodeAffinitiesBuilder​(int index)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • getNodeAffinitiesOrBuilder

        public SchedulingNodeAffinityOrBuilder getNodeAffinitiesOrBuilder​(int index)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
        Specified by:
        getNodeAffinitiesOrBuilder in interface SchedulingOrBuilder
      • getNodeAffinitiesOrBuilderList

        public List<? extends SchedulingNodeAffinityOrBuilder> getNodeAffinitiesOrBuilderList()
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
        Specified by:
        getNodeAffinitiesOrBuilderList in interface SchedulingOrBuilder
      • addNodeAffinitiesBuilder

        public SchedulingNodeAffinity.Builder addNodeAffinitiesBuilder()
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • addNodeAffinitiesBuilder

        public SchedulingNodeAffinity.Builder addNodeAffinitiesBuilder​(int index)
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • getNodeAffinitiesBuilderList

        public List<SchedulingNodeAffinity.Builder> getNodeAffinitiesBuilderList()
         A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
         
        repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
      • hasOnHostMaintenance

        public boolean hasOnHostMaintenance()
         Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
         Check the OnHostMaintenance enum for the list of possible values.
         
        optional string on_host_maintenance = 64616796;
        Specified by:
        hasOnHostMaintenance in interface SchedulingOrBuilder
        Returns:
        Whether the onHostMaintenance field is set.
      • getOnHostMaintenance

        public String getOnHostMaintenance()
         Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
         Check the OnHostMaintenance enum for the list of possible values.
         
        optional string on_host_maintenance = 64616796;
        Specified by:
        getOnHostMaintenance in interface SchedulingOrBuilder
        Returns:
        The onHostMaintenance.
      • getOnHostMaintenanceBytes

        public com.google.protobuf.ByteString getOnHostMaintenanceBytes()
         Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
         Check the OnHostMaintenance enum for the list of possible values.
         
        optional string on_host_maintenance = 64616796;
        Specified by:
        getOnHostMaintenanceBytes in interface SchedulingOrBuilder
        Returns:
        The bytes for onHostMaintenance.
      • setOnHostMaintenance

        public Scheduling.Builder setOnHostMaintenance​(String value)
         Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
         Check the OnHostMaintenance enum for the list of possible values.
         
        optional string on_host_maintenance = 64616796;
        Parameters:
        value - The onHostMaintenance to set.
        Returns:
        This builder for chaining.
      • clearOnHostMaintenance

        public Scheduling.Builder clearOnHostMaintenance()
         Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
         Check the OnHostMaintenance enum for the list of possible values.
         
        optional string on_host_maintenance = 64616796;
        Returns:
        This builder for chaining.
      • setOnHostMaintenanceBytes

        public Scheduling.Builder setOnHostMaintenanceBytes​(com.google.protobuf.ByteString value)
         Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
         Check the OnHostMaintenance enum for the list of possible values.
         
        optional string on_host_maintenance = 64616796;
        Parameters:
        value - The bytes for onHostMaintenance to set.
        Returns:
        This builder for chaining.
      • hasPreemptible

        public boolean hasPreemptible()
         Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
         
        optional bool preemptible = 324203169;
        Specified by:
        hasPreemptible in interface SchedulingOrBuilder
        Returns:
        Whether the preemptible field is set.
      • getPreemptible

        public boolean getPreemptible()
         Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
         
        optional bool preemptible = 324203169;
        Specified by:
        getPreemptible in interface SchedulingOrBuilder
        Returns:
        The preemptible.
      • setPreemptible

        public Scheduling.Builder setPreemptible​(boolean value)
         Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
         
        optional bool preemptible = 324203169;
        Parameters:
        value - The preemptible to set.
        Returns:
        This builder for chaining.
      • clearPreemptible

        public Scheduling.Builder clearPreemptible()
         Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
         
        optional bool preemptible = 324203169;
        Returns:
        This builder for chaining.
      • hasProvisioningModel

        public boolean hasProvisioningModel()
         Specifies the provisioning model of the instance.
         Check the ProvisioningModel enum for the list of possible values.
         
        optional string provisioning_model = 494423;
        Specified by:
        hasProvisioningModel in interface SchedulingOrBuilder
        Returns:
        Whether the provisioningModel field is set.
      • getProvisioningModel

        public String getProvisioningModel()
         Specifies the provisioning model of the instance.
         Check the ProvisioningModel enum for the list of possible values.
         
        optional string provisioning_model = 494423;
        Specified by:
        getProvisioningModel in interface SchedulingOrBuilder
        Returns:
        The provisioningModel.
      • getProvisioningModelBytes

        public com.google.protobuf.ByteString getProvisioningModelBytes()
         Specifies the provisioning model of the instance.
         Check the ProvisioningModel enum for the list of possible values.
         
        optional string provisioning_model = 494423;
        Specified by:
        getProvisioningModelBytes in interface SchedulingOrBuilder
        Returns:
        The bytes for provisioningModel.
      • setProvisioningModel

        public Scheduling.Builder setProvisioningModel​(String value)
         Specifies the provisioning model of the instance.
         Check the ProvisioningModel enum for the list of possible values.
         
        optional string provisioning_model = 494423;
        Parameters:
        value - The provisioningModel to set.
        Returns:
        This builder for chaining.
      • clearProvisioningModel

        public Scheduling.Builder clearProvisioningModel()
         Specifies the provisioning model of the instance.
         Check the ProvisioningModel enum for the list of possible values.
         
        optional string provisioning_model = 494423;
        Returns:
        This builder for chaining.
      • setProvisioningModelBytes

        public Scheduling.Builder setProvisioningModelBytes​(com.google.protobuf.ByteString value)
         Specifies the provisioning model of the instance.
         Check the ProvisioningModel enum for the list of possible values.
         
        optional string provisioning_model = 494423;
        Parameters:
        value - The bytes for provisioningModel to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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