Class Scheduling.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.Builder<Scheduling.Builder> implements SchedulingOrBuilder
 Sets the scheduling options for an Instance.
 
Protobuf type google.cloud.compute.v1.Scheduling
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Scheduling.Builder mergeFrom(Scheduling other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.
    • hasAvailabilityDomain

      public boolean hasAvailabilityDomain()
       Specifies the availability domain to place the instance in. The value
       must be a number between 1 and the number of availability domains
       specified in the spread placement policy attached to the instance.
       
      optional int32 availability_domain = 252514344;
      Specified by:
      hasAvailabilityDomain in interface SchedulingOrBuilder
      Returns:
      Whether the availabilityDomain field is set.
    • getAvailabilityDomain

      public int getAvailabilityDomain()
       Specifies the availability domain to place the instance in. The value
       must be a number between 1 and the number of availability domains
       specified in the spread placement policy attached to the instance.
       
      optional int32 availability_domain = 252514344;
      Specified by:
      getAvailabilityDomain in interface SchedulingOrBuilder
      Returns:
      The availabilityDomain.
    • setAvailabilityDomain

      public Scheduling.Builder setAvailabilityDomain(int value)
       Specifies the availability domain to place the instance in. The value
       must be a number between 1 and the number of availability domains
       specified in the spread placement policy attached to the instance.
       
      optional int32 availability_domain = 252514344;
      Parameters:
      value - The availabilityDomain to set.
      Returns:
      This builder for chaining.
    • clearAvailabilityDomain

      public Scheduling.Builder clearAvailabilityDomain()
       Specifies the availability domain to place the instance in. The value
       must be a number between 1 and the number of availability domains
       specified in the spread placement policy attached to the instance.
       
      optional int32 availability_domain = 252514344;
      Returns:
      This builder for chaining.
    • hasHostErrorTimeoutSeconds

      public boolean hasHostErrorTimeoutSeconds()
       Specify the time in seconds for host error detection, the value must be
       within the range of [90, 330] with the increment of 30, if unset, the
       default behavior of host error recovery will be used.
       
      optional int32 host_error_timeout_seconds = 408317459;
      Specified by:
      hasHostErrorTimeoutSeconds in interface SchedulingOrBuilder
      Returns:
      Whether the hostErrorTimeoutSeconds field is set.
    • getHostErrorTimeoutSeconds

      public int getHostErrorTimeoutSeconds()
       Specify the time in seconds for host error detection, the value must be
       within the range of [90, 330] with the increment of 30, if unset, the
       default behavior of host error recovery will be used.
       
      optional int32 host_error_timeout_seconds = 408317459;
      Specified by:
      getHostErrorTimeoutSeconds in interface SchedulingOrBuilder
      Returns:
      The hostErrorTimeoutSeconds.
    • setHostErrorTimeoutSeconds

      public Scheduling.Builder setHostErrorTimeoutSeconds(int value)
       Specify the time in seconds for host error detection, the value must be
       within the range of [90, 330] with the increment of 30, if unset, the
       default behavior of host error recovery will be used.
       
      optional int32 host_error_timeout_seconds = 408317459;
      Parameters:
      value - The hostErrorTimeoutSeconds to set.
      Returns:
      This builder for chaining.
    • clearHostErrorTimeoutSeconds

      public Scheduling.Builder clearHostErrorTimeoutSeconds()
       Specify the time in seconds for host error detection, the value must be
       within the range of [90, 330] with the increment of 30, if unset, the
       default behavior of host error recovery will be used.
       
      optional int32 host_error_timeout_seconds = 408317459;
      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.
    • hasMaxRunDuration

      public boolean hasMaxRunDuration()
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
      Specified by:
      hasMaxRunDuration in interface SchedulingOrBuilder
      Returns:
      Whether the maxRunDuration field is set.
    • getMaxRunDuration

      public Duration getMaxRunDuration()
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
      Specified by:
      getMaxRunDuration in interface SchedulingOrBuilder
      Returns:
      The maxRunDuration.
    • setMaxRunDuration

      public Scheduling.Builder setMaxRunDuration(Duration value)
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
    • setMaxRunDuration

      public Scheduling.Builder setMaxRunDuration(Duration.Builder builderForValue)
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
    • mergeMaxRunDuration

      public Scheduling.Builder mergeMaxRunDuration(Duration value)
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
    • clearMaxRunDuration

      public Scheduling.Builder clearMaxRunDuration()
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
    • getMaxRunDurationBuilder

      public Duration.Builder getMaxRunDurationBuilder()
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
    • getMaxRunDurationOrBuilder

      public DurationOrBuilder getMaxRunDurationOrBuilder()
       Specifies the max run duration for the given instance. If specified,
       the instance termination action will be performed at the end of the run
       duration.
       
      optional .google.cloud.compute.v1.Duration max_run_duration = 430839747;
      Specified by:
      getMaxRunDurationOrBuilder in interface SchedulingOrBuilder
    • 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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 toConfiguring 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. Forpreemptible 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. Forpreemptible 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. Forpreemptible 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. Forpreemptible 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. Forpreemptible 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. Forpreemptible 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.
    • hasOnInstanceStopAction

      public boolean hasOnInstanceStopAction()
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
      Specified by:
      hasOnInstanceStopAction in interface SchedulingOrBuilder
      Returns:
      Whether the onInstanceStopAction field is set.
    • getOnInstanceStopAction

      public SchedulingOnInstanceStopAction getOnInstanceStopAction()
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
      Specified by:
      getOnInstanceStopAction in interface SchedulingOrBuilder
      Returns:
      The onInstanceStopAction.
    • setOnInstanceStopAction

      public Scheduling.Builder setOnInstanceStopAction(SchedulingOnInstanceStopAction value)
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
    • setOnInstanceStopAction

      public Scheduling.Builder setOnInstanceStopAction(SchedulingOnInstanceStopAction.Builder builderForValue)
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
    • mergeOnInstanceStopAction

      public Scheduling.Builder mergeOnInstanceStopAction(SchedulingOnInstanceStopAction value)
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
    • clearOnInstanceStopAction

      public Scheduling.Builder clearOnInstanceStopAction()
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
    • getOnInstanceStopActionBuilder

      public SchedulingOnInstanceStopAction.Builder getOnInstanceStopActionBuilder()
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
    • getOnInstanceStopActionOrBuilder

      public SchedulingOnInstanceStopActionOrBuilder getOnInstanceStopActionOrBuilder()
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
      Specified by:
      getOnInstanceStopActionOrBuilder in interface SchedulingOrBuilder
    • hasPreemptible

      public boolean hasPreemptible()
       Defines whether the instance is preemptible. This can only be set during
       instance creation or while the instance isstopped and
       therefore, in a `TERMINATED` state. SeeInstance 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 isstopped and
       therefore, in a `TERMINATED` state. SeeInstance 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 isstopped and
       therefore, in a `TERMINATED` state. SeeInstance 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 isstopped and
       therefore, in a `TERMINATED` state. SeeInstance 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.
    • hasSkipGuestOsShutdown

      public boolean hasSkipGuestOsShutdown()
       Default is false and there will be 120 seconds between GCE ACPI G2 Soft
       Off and ACPI G3 Mechanical
       Off for Standard VMs and 30 seconds for Spot VMs.
       
      optional bool skip_guest_os_shutdown = 201662378;
      Specified by:
      hasSkipGuestOsShutdown in interface SchedulingOrBuilder
      Returns:
      Whether the skipGuestOsShutdown field is set.
    • getSkipGuestOsShutdown

      public boolean getSkipGuestOsShutdown()
       Default is false and there will be 120 seconds between GCE ACPI G2 Soft
       Off and ACPI G3 Mechanical
       Off for Standard VMs and 30 seconds for Spot VMs.
       
      optional bool skip_guest_os_shutdown = 201662378;
      Specified by:
      getSkipGuestOsShutdown in interface SchedulingOrBuilder
      Returns:
      The skipGuestOsShutdown.
    • setSkipGuestOsShutdown

      public Scheduling.Builder setSkipGuestOsShutdown(boolean value)
       Default is false and there will be 120 seconds between GCE ACPI G2 Soft
       Off and ACPI G3 Mechanical
       Off for Standard VMs and 30 seconds for Spot VMs.
       
      optional bool skip_guest_os_shutdown = 201662378;
      Parameters:
      value - The skipGuestOsShutdown to set.
      Returns:
      This builder for chaining.
    • clearSkipGuestOsShutdown

      public Scheduling.Builder clearSkipGuestOsShutdown()
       Default is false and there will be 120 seconds between GCE ACPI G2 Soft
       Off and ACPI G3 Mechanical
       Off for Standard VMs and 30 seconds for Spot VMs.
       
      optional bool skip_guest_os_shutdown = 201662378;
      Returns:
      This builder for chaining.
    • hasTerminationTime

      public boolean hasTerminationTime()
       Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance
       termination action will be performed at the termination time.
       
      optional string termination_time = 428082984;
      Specified by:
      hasTerminationTime in interface SchedulingOrBuilder
      Returns:
      Whether the terminationTime field is set.
    • getTerminationTime

      public String getTerminationTime()
       Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance
       termination action will be performed at the termination time.
       
      optional string termination_time = 428082984;
      Specified by:
      getTerminationTime in interface SchedulingOrBuilder
      Returns:
      The terminationTime.
    • getTerminationTimeBytes

      public com.google.protobuf.ByteString getTerminationTimeBytes()
       Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance
       termination action will be performed at the termination time.
       
      optional string termination_time = 428082984;
      Specified by:
      getTerminationTimeBytes in interface SchedulingOrBuilder
      Returns:
      The bytes for terminationTime.
    • setTerminationTime

      public Scheduling.Builder setTerminationTime(String value)
       Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance
       termination action will be performed at the termination time.
       
      optional string termination_time = 428082984;
      Parameters:
      value - The terminationTime to set.
      Returns:
      This builder for chaining.
    • clearTerminationTime

      public Scheduling.Builder clearTerminationTime()
       Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance
       termination action will be performed at the termination time.
       
      optional string termination_time = 428082984;
      Returns:
      This builder for chaining.
    • setTerminationTimeBytes

      public Scheduling.Builder setTerminationTimeBytes(com.google.protobuf.ByteString value)
       Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance
       termination action will be performed at the termination time.
       
      optional string termination_time = 428082984;
      Parameters:
      value - The bytes for terminationTime to set.
      Returns:
      This builder for chaining.