Interface SchedulingOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Scheduling, Scheduling.Builder

@Generated public interface SchedulingOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasAutomaticRestart

      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;
      Returns:
      Whether the automaticRestart field is set.
    • getAutomaticRestart

      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;
      Returns:
      The automaticRestart.
    • hasAvailabilityDomain

      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;
      Returns:
      Whether the availabilityDomain field is set.
    • getAvailabilityDomain

      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;
      Returns:
      The availabilityDomain.
    • hasHostErrorTimeoutSeconds

      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;
      Returns:
      Whether the hostErrorTimeoutSeconds field is set.
    • getHostErrorTimeoutSeconds

      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;
      Returns:
      The hostErrorTimeoutSeconds.
    • hasInstanceTerminationAction

      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;
      Returns:
      Whether the instanceTerminationAction field is set.
    • getInstanceTerminationAction

      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;
      Returns:
      The instanceTerminationAction.
    • getInstanceTerminationActionBytes

      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;
      Returns:
      The bytes for instanceTerminationAction.
    • hasLocalSsdRecoveryTimeout

      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;
      Returns:
      Whether the localSsdRecoveryTimeout field is set.
    • getLocalSsdRecoveryTimeout

      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;
      Returns:
      The localSsdRecoveryTimeout.
    • getLocalSsdRecoveryTimeoutOrBuilder

      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;
    • hasLocationHint

      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;
      Returns:
      Whether the locationHint field is set.
    • getLocationHint

      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;
      Returns:
      The locationHint.
    • getLocationHintBytes

      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;
      Returns:
      The bytes for locationHint.
    • hasMaxRunDuration

      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;
      Returns:
      Whether the maxRunDuration field is set.
    • getMaxRunDuration

      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;
      Returns:
      The maxRunDuration.
    • getMaxRunDurationOrBuilder

      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;
    • hasMinNodeCpus

      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;
      Returns:
      Whether the minNodeCpus field is set.
    • getMinNodeCpus

      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;
      Returns:
      The minNodeCpus.
    • getNodeAffinitiesList

      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;
    • getNodeAffinities

      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;
    • getNodeAffinitiesCount

      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;
    • getNodeAffinitiesOrBuilderList

      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;
    • getNodeAffinitiesOrBuilder

      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;
    • hasOnHostMaintenance

      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;
      Returns:
      Whether the onHostMaintenance field is set.
    • getOnHostMaintenance

      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;
      Returns:
      The onHostMaintenance.
    • getOnHostMaintenanceBytes

      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;
      Returns:
      The bytes for onHostMaintenance.
    • hasOnInstanceStopAction

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

      SchedulingOnInstanceStopAction getOnInstanceStopAction()
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
      Returns:
      The onInstanceStopAction.
    • getOnInstanceStopActionOrBuilder

      SchedulingOnInstanceStopActionOrBuilder getOnInstanceStopActionOrBuilder()
      optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
    • hasPreemptible

      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;
      Returns:
      Whether the preemptible field is set.
    • getPreemptible

      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;
      Returns:
      The preemptible.
    • hasProvisioningModel

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

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

      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;
      Returns:
      The bytes for provisioningModel.
    • hasSkipGuestOsShutdown

      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;
      Returns:
      Whether the skipGuestOsShutdown field is set.
    • getSkipGuestOsShutdown

      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;
      Returns:
      The skipGuestOsShutdown.
    • hasTerminationTime

      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;
      Returns:
      Whether the terminationTime field is set.
    • getTerminationTime

      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;
      Returns:
      The terminationTime.
    • getTerminationTimeBytes

      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;
      Returns:
      The bytes for terminationTime.