public static final class Scheduling.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder> implements SchedulingOrBuilder
Sets the scheduling options for an Instance.Protobuf type
google.cloud.compute.v1.Scheduling| Modifier and Type | Method and Description |
|---|---|
Scheduling.Builder |
addAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(int index,
SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(int index,
SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations.
|
SchedulingNodeAffinity.Builder |
addNodeAffinitiesBuilder()
A set of node affinity and anti-affinity configurations.
|
SchedulingNodeAffinity.Builder |
addNodeAffinitiesBuilder(int index)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Scheduling |
build() |
Scheduling |
buildPartial() |
Scheduling.Builder |
clear() |
Scheduling.Builder |
clearAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
|
Scheduling.Builder |
clearAvailabilityDomain()
Specifies the availability domain to place the instance in.
|
Scheduling.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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.
|
Scheduling.Builder |
clearInstanceTerminationAction()
Specifies the termination action for the instance.
|
Scheduling.Builder |
clearLocalSsdRecoveryTimeout()
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.
|
Scheduling.Builder |
clearLocationHint()
An opaque location hint used to place the instance close to other resources.
|
Scheduling.Builder |
clearMaxRunDuration()
Specifies the max run duration for the given instance.
|
Scheduling.Builder |
clearMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
|
Scheduling.Builder |
clearNodeAffinities()
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Scheduling.Builder |
clearOnHostMaintenance()
Defines the maintenance behavior for this instance.
|
Scheduling.Builder |
clearOnInstanceStopAction()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
Scheduling.Builder |
clearPreemptible()
Defines whether the instance is preemptible.
|
Scheduling.Builder |
clearProvisioningModel()
Specifies the provisioning model of the instance.
|
Scheduling.Builder |
clearTerminationTime()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format.
|
Scheduling.Builder |
clone() |
boolean |
getAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
|
int |
getAvailabilityDomain()
Specifies the availability domain to place the instance in.
|
Scheduling |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
String |
getInstanceTerminationAction()
Specifies the termination action for the instance.
|
com.google.protobuf.ByteString |
getInstanceTerminationActionBytes()
Specifies the termination action for the instance.
|
Duration |
getLocalSsdRecoveryTimeout()
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.
|
Duration.Builder |
getLocalSsdRecoveryTimeoutBuilder()
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.
|
DurationOrBuilder |
getLocalSsdRecoveryTimeoutOrBuilder()
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.
|
String |
getLocationHint()
An opaque location hint used to place the instance close to other resources.
|
com.google.protobuf.ByteString |
getLocationHintBytes()
An opaque location hint used to place the instance close to other resources.
|
Duration |
getMaxRunDuration()
Specifies the max run duration for the given instance.
|
Duration.Builder |
getMaxRunDurationBuilder()
Specifies the max run duration for the given instance.
|
DurationOrBuilder |
getMaxRunDurationOrBuilder()
Specifies the max run duration for the given instance.
|
int |
getMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
|
SchedulingNodeAffinity |
getNodeAffinities(int index)
A set of node affinity and anti-affinity configurations.
|
SchedulingNodeAffinity.Builder |
getNodeAffinitiesBuilder(int index)
A set of node affinity and anti-affinity configurations.
|
List<SchedulingNodeAffinity.Builder> |
getNodeAffinitiesBuilderList()
A set of node affinity and anti-affinity configurations.
|
int |
getNodeAffinitiesCount()
A set of node affinity and anti-affinity configurations.
|
List<SchedulingNodeAffinity> |
getNodeAffinitiesList()
A set of node affinity and anti-affinity configurations.
|
SchedulingNodeAffinityOrBuilder |
getNodeAffinitiesOrBuilder(int index)
A set of node affinity and anti-affinity configurations.
|
List<? extends SchedulingNodeAffinityOrBuilder> |
getNodeAffinitiesOrBuilderList()
A set of node affinity and anti-affinity configurations.
|
String |
getOnHostMaintenance()
Defines the maintenance behavior for this instance.
|
com.google.protobuf.ByteString |
getOnHostMaintenanceBytes()
Defines the maintenance behavior for this instance.
|
SchedulingOnInstanceStopAction |
getOnInstanceStopAction()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
SchedulingOnInstanceStopAction.Builder |
getOnInstanceStopActionBuilder()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
SchedulingOnInstanceStopActionOrBuilder |
getOnInstanceStopActionOrBuilder()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
boolean |
getPreemptible()
Defines whether the instance is preemptible.
|
String |
getProvisioningModel()
Specifies the provisioning model of the instance.
|
com.google.protobuf.ByteString |
getProvisioningModelBytes()
Specifies the provisioning model of the instance.
|
String |
getTerminationTime()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format.
|
com.google.protobuf.ByteString |
getTerminationTimeBytes()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format.
|
boolean |
hasAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
|
boolean |
hasAvailabilityDomain()
Specifies the availability domain to place the instance in.
|
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.
|
boolean |
hasInstanceTerminationAction()
Specifies the termination action for the instance.
|
boolean |
hasLocalSsdRecoveryTimeout()
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.
|
boolean |
hasLocationHint()
An opaque location hint used to place the instance close to other resources.
|
boolean |
hasMaxRunDuration()
Specifies the max run duration for the given instance.
|
boolean |
hasMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
|
boolean |
hasOnHostMaintenance()
Defines the maintenance behavior for this instance.
|
boolean |
hasOnInstanceStopAction()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
boolean |
hasPreemptible()
Defines whether the instance is preemptible.
|
boolean |
hasProvisioningModel()
Specifies the provisioning model of the instance.
|
boolean |
hasTerminationTime()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Scheduling.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Scheduling.Builder |
mergeFrom(com.google.protobuf.Message other) |
Scheduling.Builder |
mergeFrom(Scheduling other) |
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.
|
Scheduling.Builder |
mergeMaxRunDuration(Duration value)
Specifies the max run duration for the given instance.
|
Scheduling.Builder |
mergeOnInstanceStopAction(SchedulingOnInstanceStopAction value)
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
Scheduling.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Scheduling.Builder |
removeNodeAffinities(int index)
A set of node affinity and anti-affinity configurations.
|
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).
|
Scheduling.Builder |
setAvailabilityDomain(int value)
Specifies the availability domain to place the instance in.
|
Scheduling.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
Scheduling.Builder |
setInstanceTerminationAction(String value)
Specifies the termination action for the instance.
|
Scheduling.Builder |
setInstanceTerminationActionBytes(com.google.protobuf.ByteString value)
Specifies the termination action for the instance.
|
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.
|
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.
|
Scheduling.Builder |
setLocationHint(String value)
An opaque location hint used to place the instance close to other resources.
|
Scheduling.Builder |
setLocationHintBytes(com.google.protobuf.ByteString value)
An opaque location hint used to place the instance close to other resources.
|
Scheduling.Builder |
setMaxRunDuration(Duration.Builder builderForValue)
Specifies the max run duration for the given instance.
|
Scheduling.Builder |
setMaxRunDuration(Duration value)
Specifies the max run duration for the given instance.
|
Scheduling.Builder |
setMinNodeCpus(int value)
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
|
Scheduling.Builder |
setNodeAffinities(int index,
SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
setNodeAffinities(int index,
SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
setOnHostMaintenance(String value)
Defines the maintenance behavior for this instance.
|
Scheduling.Builder |
setOnHostMaintenanceBytes(com.google.protobuf.ByteString value)
Defines the maintenance behavior for this instance.
|
Scheduling.Builder |
setOnInstanceStopAction(SchedulingOnInstanceStopAction.Builder builderForValue)
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
Scheduling.Builder |
setOnInstanceStopAction(SchedulingOnInstanceStopAction value)
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
|
Scheduling.Builder |
setPreemptible(boolean value)
Defines whether the instance is preemptible.
|
Scheduling.Builder |
setProvisioningModel(String value)
Specifies the provisioning model of the instance.
|
Scheduling.Builder |
setProvisioningModelBytes(com.google.protobuf.ByteString value)
Specifies the provisioning model of the instance.
|
Scheduling.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Scheduling.Builder |
setTerminationTime(String value)
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format.
|
Scheduling.Builder |
setTerminationTimeBytes(com.google.protobuf.ByteString value)
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format.
|
Scheduling.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Scheduling build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Scheduling buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Scheduling.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(Scheduling other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>IOExceptionpublic 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;hasAutomaticRestart in interface SchedulingOrBuilderpublic 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;getAutomaticRestart in interface SchedulingOrBuilderpublic 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;value - The automaticRestart to set.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;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;hasAvailabilityDomain in interface SchedulingOrBuilderpublic 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;getAvailabilityDomain in interface SchedulingOrBuilderpublic 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;value - The availabilityDomain to set.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;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;hasHostErrorTimeoutSeconds in interface SchedulingOrBuilderpublic 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;getHostErrorTimeoutSeconds in interface SchedulingOrBuilderpublic 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;value - The hostErrorTimeoutSeconds to set.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;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;hasInstanceTerminationAction in interface SchedulingOrBuilderpublic 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;getInstanceTerminationAction in interface SchedulingOrBuilderpublic 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;getInstanceTerminationActionBytes in interface SchedulingOrBuilderpublic 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;value - The instanceTerminationAction to set.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;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;value - The bytes for instanceTerminationAction to set.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;
hasLocalSsdRecoveryTimeout in interface SchedulingOrBuilderpublic 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;
getLocalSsdRecoveryTimeout in interface SchedulingOrBuilderpublic 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;
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;
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;
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;
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;
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;
getLocalSsdRecoveryTimeoutOrBuilder in interface SchedulingOrBuilderpublic 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;hasLocationHint in interface SchedulingOrBuilderpublic 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;getLocationHint in interface SchedulingOrBuilderpublic 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;getLocationHintBytes in interface SchedulingOrBuilderpublic 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;value - The locationHint to set.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;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;value - The bytes for locationHint to set.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;hasMaxRunDuration in interface SchedulingOrBuilderpublic 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;getMaxRunDuration in interface SchedulingOrBuilderpublic 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;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;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;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;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;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;getMaxRunDurationOrBuilder in interface SchedulingOrBuilderpublic 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;hasMinNodeCpus in interface SchedulingOrBuilderpublic 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;getMinNodeCpus in interface SchedulingOrBuilderpublic 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;value - The minNodeCpus to set.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;public List<SchedulingNodeAffinity> getNodeAffinitiesList()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesList in interface SchedulingOrBuilderpublic int getNodeAffinitiesCount()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesCount in interface SchedulingOrBuilderpublic SchedulingNodeAffinity getNodeAffinities(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinities in interface SchedulingOrBuilderpublic Scheduling.Builder setNodeAffinities(int index, SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder setNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(int index, SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder clearNodeAffinities()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder removeNodeAffinities(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public SchedulingNodeAffinity.Builder getNodeAffinitiesBuilder(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public SchedulingNodeAffinityOrBuilder getNodeAffinitiesOrBuilder(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesOrBuilder in interface SchedulingOrBuilderpublic List<? extends SchedulingNodeAffinityOrBuilder> getNodeAffinitiesOrBuilderList()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesOrBuilderList in interface SchedulingOrBuilderpublic SchedulingNodeAffinity.Builder addNodeAffinitiesBuilder()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public SchedulingNodeAffinity.Builder addNodeAffinitiesBuilder(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public List<SchedulingNodeAffinity.Builder> getNodeAffinitiesBuilderList()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public boolean hasOnHostMaintenance()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible 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;hasOnHostMaintenance in interface SchedulingOrBuilderpublic String getOnHostMaintenance()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible 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;getOnHostMaintenance in interface SchedulingOrBuilderpublic com.google.protobuf.ByteString getOnHostMaintenanceBytes()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible 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;getOnHostMaintenanceBytes in interface SchedulingOrBuilderpublic Scheduling.Builder setOnHostMaintenance(String value)
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible 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;value - The onHostMaintenance to set.public Scheduling.Builder clearOnHostMaintenance()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible 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;public Scheduling.Builder setOnHostMaintenanceBytes(com.google.protobuf.ByteString value)
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible 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;value - The bytes for onHostMaintenance to set.public boolean hasOnInstanceStopAction()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
hasOnInstanceStopAction in interface SchedulingOrBuilderpublic SchedulingOnInstanceStopAction getOnInstanceStopAction()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
getOnInstanceStopAction in interface SchedulingOrBuilderpublic Scheduling.Builder setOnInstanceStopAction(SchedulingOnInstanceStopAction value)
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
public Scheduling.Builder setOnInstanceStopAction(SchedulingOnInstanceStopAction.Builder builderForValue)
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
public Scheduling.Builder mergeOnInstanceStopAction(SchedulingOnInstanceStopAction value)
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
public Scheduling.Builder clearOnInstanceStopAction()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
public SchedulingOnInstanceStopAction.Builder getOnInstanceStopActionBuilder()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
public SchedulingOnInstanceStopActionOrBuilder getOnInstanceStopActionOrBuilder()
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;
getOnInstanceStopActionOrBuilder in interface SchedulingOrBuilderpublic boolean hasPreemptible()
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;hasPreemptible in interface SchedulingOrBuilderpublic boolean getPreemptible()
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;getPreemptible in interface SchedulingOrBuilderpublic Scheduling.Builder setPreemptible(boolean value)
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;value - The preemptible to set.public Scheduling.Builder clearPreemptible()
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;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;hasProvisioningModel in interface SchedulingOrBuilderpublic String getProvisioningModel()
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;getProvisioningModel in interface SchedulingOrBuilderpublic 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;getProvisioningModelBytes in interface SchedulingOrBuilderpublic 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;value - The provisioningModel to set.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;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;value - The bytes for provisioningModel to set.public boolean hasTerminationTime()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;hasTerminationTime in interface SchedulingOrBuilderpublic String getTerminationTime()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;getTerminationTime in interface SchedulingOrBuilderpublic com.google.protobuf.ByteString getTerminationTimeBytes()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;getTerminationTimeBytes in interface SchedulingOrBuilderpublic Scheduling.Builder setTerminationTime(String value)
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;value - The terminationTime to set.public Scheduling.Builder clearTerminationTime()
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;public Scheduling.Builder setTerminationTimeBytes(com.google.protobuf.ByteString value)
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;value - The bytes for terminationTime to set.public final Scheduling.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public final Scheduling.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>Copyright © 2025 Google LLC. All rights reserved.