public static final class Scheduling.Builder extends GeneratedMessageV3.Builder<Scheduling.Builder> implements SchedulingOrBuilderSets the scheduling options for an Instance.
Protobuf type google.cloud.backupdr.v1.Scheduling
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Scheduling.BuilderImplements
SchedulingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllNodeAffinities(Iterable<? extends Scheduling.NodeAffinity> values)
public Scheduling.Builder addAllNodeAffinities(Iterable<? extends Scheduling.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)
public Scheduling.Builder addNodeAffinities(Scheduling.NodeAffinity value)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)
public Scheduling.Builder addNodeAffinities(Scheduling.NodeAffinity.Builder builderForValue)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)
public Scheduling.Builder addNodeAffinities(int index, Scheduling.NodeAffinity value)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)
public Scheduling.Builder addNodeAffinities(int index, Scheduling.NodeAffinity.Builder builderForValue)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()
public Scheduling.NodeAffinity.Builder addNodeAffinitiesBuilder()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)
public Scheduling.NodeAffinity.Builder addNodeAffinitiesBuilder(int index)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)
public Scheduling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
build()
public Scheduling build()| Returns | |
|---|---|
| Type | Description |
Scheduling |
|
buildPartial()
public Scheduling buildPartial()| Returns | |
|---|---|
| Type | Description |
Scheduling |
|
clear()
public Scheduling.Builder clear()| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
clearAutomaticRestart()
public Scheduling.Builder clearAutomaticRestart()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)
public Scheduling.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
clearInstanceTerminationAction()
public Scheduling.Builder clearInstanceTerminationAction()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()
public Scheduling.Builder clearLocalSsdRecoveryTimeout()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()
public Scheduling.Builder clearMinNodeCpus()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()
public Scheduling.Builder clearNodeAffinities()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()
public Scheduling.Builder clearOnHostMaintenance()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)
public Scheduling.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
clearPreemptible()
public Scheduling.Builder clearPreemptible()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()
public Scheduling.Builder clearProvisioningModel()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()
public Scheduling.Builder clone()| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
getAutomaticRestart()
public boolean getAutomaticRestart()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()
public Scheduling getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Scheduling |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInstanceTerminationAction()
public Scheduling.InstanceTerminationAction getInstanceTerminationAction()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()
public int getInstanceTerminationActionValue()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()
public SchedulingDuration getLocalSsdRecoveryTimeout()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()
public SchedulingDuration.Builder getLocalSsdRecoveryTimeoutBuilder()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()
public SchedulingDurationOrBuilder getLocalSsdRecoveryTimeoutOrBuilder()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()
public int getMinNodeCpus()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)
public Scheduling.NodeAffinity getNodeAffinities(int index)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)
public Scheduling.NodeAffinity.Builder getNodeAffinitiesBuilder(int index)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()
public List<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()
public int getNodeAffinitiesCount()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()
public List<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)
public Scheduling.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder(int index)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()
public List<? extends Scheduling.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()
public Scheduling.OnHostMaintenance getOnHostMaintenance()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()
public int getOnHostMaintenanceValue()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()
public boolean getPreemptible()Optional. Defines whether the instance is preemptible.
optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The preemptible. |
getProvisioningModel()
public Scheduling.ProvisioningModel getProvisioningModel()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()
public int getProvisioningModelValue()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()
public boolean hasAutomaticRestart()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()
public boolean hasInstanceTerminationAction()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()
public boolean hasLocalSsdRecoveryTimeout()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()
public boolean hasMinNodeCpus()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()
public boolean hasOnHostMaintenance()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()
public boolean hasPreemptible()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()
public boolean hasProvisioningModel()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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Scheduling other)
public Scheduling.Builder mergeFrom(Scheduling other)| Parameter | |
|---|---|
| Name | Description |
other |
Scheduling |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Scheduling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Scheduling.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
mergeLocalSsdRecoveryTimeout(SchedulingDuration value)
public Scheduling.Builder mergeLocalSsdRecoveryTimeout(SchedulingDuration value)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)
public final Scheduling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
removeNodeAffinities(int index)
public Scheduling.Builder removeNodeAffinities(int index)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)
public Scheduling.Builder setAutomaticRestart(boolean value)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 |
booleanThe automaticRestart to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Scheduling.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
setInstanceTerminationAction(Scheduling.InstanceTerminationAction value)
public Scheduling.Builder setInstanceTerminationAction(Scheduling.InstanceTerminationAction value)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.InstanceTerminationActionThe instanceTerminationAction to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setInstanceTerminationActionValue(int value)
public Scheduling.Builder setInstanceTerminationActionValue(int value)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 |
intThe enum numeric value on the wire for instanceTerminationAction to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setLocalSsdRecoveryTimeout(SchedulingDuration value)
public Scheduling.Builder setLocalSsdRecoveryTimeout(SchedulingDuration value)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)
public Scheduling.Builder setLocalSsdRecoveryTimeout(SchedulingDuration.Builder builderForValue)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)
public Scheduling.Builder setMinNodeCpus(int value)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 |
intThe minNodeCpus to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setNodeAffinities(int index, Scheduling.NodeAffinity value)
public Scheduling.Builder setNodeAffinities(int index, Scheduling.NodeAffinity value)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)
public Scheduling.Builder setNodeAffinities(int index, Scheduling.NodeAffinity.Builder builderForValue)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)
public Scheduling.Builder setOnHostMaintenance(Scheduling.OnHostMaintenance value)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.OnHostMaintenanceThe onHostMaintenance to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setOnHostMaintenanceValue(int value)
public Scheduling.Builder setOnHostMaintenanceValue(int value)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 |
intThe enum numeric value on the wire for onHostMaintenance to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setPreemptible(boolean value)
public Scheduling.Builder setPreemptible(boolean value)Optional. Defines whether the instance is preemptible.
optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe preemptible to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setProvisioningModel(Scheduling.ProvisioningModel value)
public Scheduling.Builder setProvisioningModel(Scheduling.ProvisioningModel value)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.ProvisioningModelThe provisioningModel to set. |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
This builder for chaining. |
setProvisioningModelValue(int value)
public Scheduling.Builder setProvisioningModelValue(int value)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 |
intThe 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)
public Scheduling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Scheduling.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Scheduling.Builder |
|