Class Scheduling.Builder (0.10.0)

publicstaticfinalclass Scheduling.BuilderextendsGeneratedMessageV3.Builder<Scheduling.Builder>implementsSchedulingOrBuilder

Sets the scheduling options for an Instance.

Protobuf type google.cloud.backupdr.v1.Scheduling

Implements

SchedulingOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNodeAffinities(Iterable<? extends Scheduling.NodeAffinity> values)

publicScheduling.BuilderaddAllNodeAffinities(Iterable<?extendsScheduling.NodeAffinity>values)

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
values Iterable<? extends com.google.cloud.backupdr.v1.Scheduling.NodeAffinity>
Returns
Type Description
Scheduling.Builder

addNodeAffinities(Scheduling.NodeAffinity value)

publicScheduling.BuilderaddNodeAffinities(Scheduling.NodeAffinityvalue)

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
value Scheduling.NodeAffinity
Returns
Type Description
Scheduling.Builder

addNodeAffinities(Scheduling.NodeAffinity.Builder builderForValue)

publicScheduling.BuilderaddNodeAffinities(Scheduling.NodeAffinity.BuilderbuilderForValue)

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
builderForValue Scheduling.NodeAffinity.Builder
Returns
Type Description
Scheduling.Builder

addNodeAffinities(int index, Scheduling.NodeAffinity value)

publicScheduling.BuilderaddNodeAffinities(intindex,Scheduling.NodeAffinityvalue)

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];

Parameters
Name Description
index int
value Scheduling.NodeAffinity
Returns
Type Description
Scheduling.Builder

addNodeAffinities(int index, Scheduling.NodeAffinity.Builder builderForValue)

publicScheduling.BuilderaddNodeAffinities(intindex,Scheduling.NodeAffinity.BuilderbuilderForValue)

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];

Parameters
Name Description
index int
builderForValue Scheduling.NodeAffinity.Builder
Returns
Type Description
Scheduling.Builder

addNodeAffinitiesBuilder()

publicScheduling.NodeAffinity.BuilderaddNodeAffinitiesBuilder()

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
Scheduling.NodeAffinity.Builder

addNodeAffinitiesBuilder(int index)

publicScheduling.NodeAffinity.BuilderaddNodeAffinitiesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicScheduling.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Scheduling.Builder
Overrides

build()

publicSchedulingbuild()
Returns
Type Description
Scheduling

buildPartial()

publicSchedulingbuildPartial()
Returns
Type Description
Scheduling

clear()

publicScheduling.Builderclear()
Returns
Type Description
Scheduling.Builder
Overrides

clearAutomaticRestart()

publicScheduling.BuilderclearAutomaticRestart()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicScheduling.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Scheduling.Builder
Overrides

clearInstanceTerminationAction()

publicScheduling.BuilderclearInstanceTerminationAction()

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.Builder

This builder for chaining.

clearLocalSsdRecoveryTimeout()

publicScheduling.BuilderclearLocalSsdRecoveryTimeout()

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

clearMinNodeCpus()

publicScheduling.BuilderclearMinNodeCpus()

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

This builder for chaining.

clearNodeAffinities()

publicScheduling.BuilderclearNodeAffinities()

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

clearOnHostMaintenance()

publicScheduling.BuilderclearOnHostMaintenance()

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.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicScheduling.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Scheduling.Builder
Overrides

clearPreemptible()

publicScheduling.BuilderclearPreemptible()

Optional. Defines whether the instance is preemptible.

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

Returns
Type Description
Scheduling.Builder

This builder for chaining.

clearProvisioningModel()

publicScheduling.BuilderclearProvisioningModel()

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.Builder

This builder for chaining.

clone()

publicScheduling.Builderclone()
Returns
Type Description
Scheduling.Builder
Overrides

getAutomaticRestart()

publicbooleangetAutomaticRestart()

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.

getDefaultInstanceForType()

publicSchedulinggetDefaultInstanceForType()
Returns
Type Description
Scheduling

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceTerminationAction()

publicScheduling.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()

publicintgetInstanceTerminationActionValue()

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()

publicSchedulingDurationgetLocalSsdRecoveryTimeout()

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.

getLocalSsdRecoveryTimeoutBuilder()

publicSchedulingDuration.BuildergetLocalSsdRecoveryTimeoutBuilder()

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.Builder

getLocalSsdRecoveryTimeoutOrBuilder()

publicSchedulingDurationOrBuildergetLocalSsdRecoveryTimeoutOrBuilder()

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()

publicintgetMinNodeCpus()

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)

publicScheduling.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

getNodeAffinitiesBuilder(int index)

publicScheduling.NodeAffinity.BuildergetNodeAffinitiesBuilder(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.Builder

getNodeAffinitiesBuilderList()

publicList<Scheduling.NodeAffinity.Builder>getNodeAffinitiesBuilderList()

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<Builder>

getNodeAffinitiesCount()

publicintgetNodeAffinitiesCount()

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()

publicList<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)

publicScheduling.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()

publicList<?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()

publicScheduling.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()

publicintgetOnHostMaintenanceValue()

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()

publicbooleangetPreemptible()

Optional. Defines whether the instance is preemptible.

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

Returns
Type Description
boolean

The preemptible.

getProvisioningModel()

publicScheduling.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()

publicintgetProvisioningModelValue()

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()

publicbooleanhasAutomaticRestart()

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()

publicbooleanhasInstanceTerminationAction()

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()

publicbooleanhasLocalSsdRecoveryTimeout()

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()

publicbooleanhasMinNodeCpus()

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()

publicbooleanhasOnHostMaintenance()

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()

publicbooleanhasPreemptible()

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()

publicbooleanhasProvisioningModel()

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Scheduling other)

publicScheduling.BuildermergeFrom(Schedulingother)
Parameter
Name Description
other Scheduling
Returns
Type Description
Scheduling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicScheduling.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicScheduling.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Scheduling.Builder
Overrides

mergeLocalSsdRecoveryTimeout(SchedulingDuration value)

publicScheduling.BuildermergeLocalSsdRecoveryTimeout(SchedulingDurationvalue)

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];

Parameter
Name Description
value SchedulingDuration
Returns
Type Description
Scheduling.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalScheduling.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scheduling.Builder
Overrides

removeNodeAffinities(int index)

publicScheduling.BuilderremoveNodeAffinities(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.Builder

setAutomaticRestart(boolean value)

publicScheduling.BuildersetAutomaticRestart(booleanvalue)

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];

Parameter
Name Description
value boolean

The automaticRestart to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicScheduling.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Scheduling.Builder
Overrides

setInstanceTerminationAction(Scheduling.InstanceTerminationAction value)

publicScheduling.BuildersetInstanceTerminationAction(Scheduling.InstanceTerminationActionvalue)

Optional. Specifies the termination action for the instance.

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

Parameter
Name Description
value Scheduling.InstanceTerminationAction

The instanceTerminationAction to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setInstanceTerminationActionValue(int value)

publicScheduling.BuildersetInstanceTerminationActionValue(intvalue)

Optional. Specifies the termination action for the instance.

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

Parameter
Name Description
value int

The enum numeric value on the wire for instanceTerminationAction to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setLocalSsdRecoveryTimeout(SchedulingDuration value)

publicScheduling.BuildersetLocalSsdRecoveryTimeout(SchedulingDurationvalue)

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];

Parameter
Name Description
value SchedulingDuration
Returns
Type Description
Scheduling.Builder

setLocalSsdRecoveryTimeout(SchedulingDuration.Builder builderForValue)

publicScheduling.BuildersetLocalSsdRecoveryTimeout(SchedulingDuration.BuilderbuilderForValue)

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];

Parameter
Name Description
builderForValue SchedulingDuration.Builder
Returns
Type Description
Scheduling.Builder

setMinNodeCpus(int value)

publicScheduling.BuildersetMinNodeCpus(intvalue)

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];

Parameter
Name Description
value int

The minNodeCpus to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setNodeAffinities(int index, Scheduling.NodeAffinity value)

publicScheduling.BuildersetNodeAffinities(intindex,Scheduling.NodeAffinityvalue)

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];

Parameters
Name Description
index int
value Scheduling.NodeAffinity
Returns
Type Description
Scheduling.Builder

setNodeAffinities(int index, Scheduling.NodeAffinity.Builder builderForValue)

publicScheduling.BuildersetNodeAffinities(intindex,Scheduling.NodeAffinity.BuilderbuilderForValue)

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];

Parameters
Name Description
index int
builderForValue Scheduling.NodeAffinity.Builder
Returns
Type Description
Scheduling.Builder

setOnHostMaintenance(Scheduling.OnHostMaintenance value)

publicScheduling.BuildersetOnHostMaintenance(Scheduling.OnHostMaintenancevalue)

Optional. Defines the maintenance behavior for this instance.

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

Parameter
Name Description
value Scheduling.OnHostMaintenance

The onHostMaintenance to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setOnHostMaintenanceValue(int value)

publicScheduling.BuildersetOnHostMaintenanceValue(intvalue)

Optional. Defines the maintenance behavior for this instance.

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

Parameter
Name Description
value int

The enum numeric value on the wire for onHostMaintenance to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setPreemptible(boolean value)

publicScheduling.BuildersetPreemptible(booleanvalue)

Optional. Defines whether the instance is preemptible.

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

Parameter
Name Description
value boolean

The preemptible to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setProvisioningModel(Scheduling.ProvisioningModel value)

publicScheduling.BuildersetProvisioningModel(Scheduling.ProvisioningModelvalue)

Optional. Specifies the provisioning model of the instance.

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

Parameter
Name Description
value Scheduling.ProvisioningModel

The provisioningModel to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setProvisioningModelValue(int value)

publicScheduling.BuildersetProvisioningModelValue(intvalue)

Optional. Specifies the provisioning model of the instance.

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

Parameter
Name Description
value int

The enum numeric value on the wire for provisioningModel to set.

Returns
Type Description
Scheduling.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicScheduling.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Scheduling.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalScheduling.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scheduling.Builder
Overrides

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.