Interface SchedulingOrBuilder (0.10.0)

publicinterface SchedulingOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutomaticRestart()

publicabstractbooleangetAutomaticRestart()

Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).

optional bool automatic_restart = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The automaticRestart.

getInstanceTerminationAction()

publicabstractScheduling.InstanceTerminationActiongetInstanceTerminationAction()

Optional. Specifies the termination action for the instance.

optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Scheduling.InstanceTerminationAction

The instanceTerminationAction.

getInstanceTerminationActionValue()

publicabstractintgetInstanceTerminationActionValue()

Optional. Specifies the termination action for the instance.

optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for instanceTerminationAction.

getLocalSsdRecoveryTimeout()

publicabstractSchedulingDurationgetLocalSsdRecoveryTimeout()

Optional. 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.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchedulingDuration

The localSsdRecoveryTimeout.

getLocalSsdRecoveryTimeoutOrBuilder()

publicabstractSchedulingDurationOrBuildergetLocalSsdRecoveryTimeoutOrBuilder()

Optional. 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.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchedulingDurationOrBuilder

getMinNodeCpus()

publicabstractintgetMinNodeCpus()

Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

optional int32 min_node_cpus = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minNodeCpus.

getNodeAffinities(int index)

publicabstractScheduling.NodeAffinitygetNodeAffinities(intindex)

Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.

repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Scheduling.NodeAffinity

getNodeAffinitiesCount()

publicabstractintgetNodeAffinitiesCount()

Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.

repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getNodeAffinitiesList()

publicabstractList<Scheduling.NodeAffinity>getNodeAffinitiesList()

Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.

repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<NodeAffinity>

getNodeAffinitiesOrBuilder(int index)

publicabstractScheduling.NodeAffinityOrBuildergetNodeAffinitiesOrBuilder(intindex)

Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.

repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Scheduling.NodeAffinityOrBuilder

getNodeAffinitiesOrBuilderList()

publicabstractList<?extendsScheduling.NodeAffinityOrBuilder>getNodeAffinitiesOrBuilderList()

Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.

repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder>

getOnHostMaintenance()

publicabstractScheduling.OnHostMaintenancegetOnHostMaintenance()

Optional. Defines the maintenance behavior for this instance.

optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Scheduling.OnHostMaintenance

The onHostMaintenance.

getOnHostMaintenanceValue()

publicabstractintgetOnHostMaintenanceValue()

Optional. Defines the maintenance behavior for this instance.

optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for onHostMaintenance.

getPreemptible()

publicabstractbooleangetPreemptible()

Optional. Defines whether the instance is preemptible.

optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The preemptible.

getProvisioningModel()

publicabstractScheduling.ProvisioningModelgetProvisioningModel()

Optional. Specifies the provisioning model of the instance.

optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Scheduling.ProvisioningModel

The provisioningModel.

getProvisioningModelValue()

publicabstractintgetProvisioningModelValue()

Optional. Specifies the provisioning model of the instance.

optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for provisioningModel.

hasAutomaticRestart()

publicabstractbooleanhasAutomaticRestart()

Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).

optional bool automatic_restart = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the automaticRestart field is set.

hasInstanceTerminationAction()

publicabstractbooleanhasInstanceTerminationAction()

Optional. Specifies the termination action for the instance.

optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the instanceTerminationAction field is set.

hasLocalSsdRecoveryTimeout()

publicabstractbooleanhasLocalSsdRecoveryTimeout()

Optional. 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.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the localSsdRecoveryTimeout field is set.

hasMinNodeCpus()

publicabstractbooleanhasMinNodeCpus()

Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

optional int32 min_node_cpus = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the minNodeCpus field is set.

hasOnHostMaintenance()

publicabstractbooleanhasOnHostMaintenance()

Optional. Defines the maintenance behavior for this instance.

optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the onHostMaintenance field is set.

hasPreemptible()

publicabstractbooleanhasPreemptible()

Optional. Defines whether the instance is preemptible.

optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the preemptible field is set.

hasProvisioningModel()

publicabstractbooleanhasProvisioningModel()

Optional. Specifies the provisioning model of the instance.

optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the provisioningModel field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.