Package com.google.cloud.compute.v1
Class Scheduling.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
com.google.cloud.compute.v1.Scheduling.Builder
- All Implemented Interfaces:
SchedulingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Scheduling
public static final class Scheduling.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
implements SchedulingOrBuilder
Sets the scheduling options for an Instance.Protobuf type
google.cloud.compute.v1.Scheduling-
Method Summary
Modifier and TypeMethodDescriptionaddAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values) A set of node affinity and anti-affinity configurations.addNodeAffinities(int index, SchedulingNodeAffinity value) A set of node affinity and anti-affinity configurations.addNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue) A set of node affinity and anti-affinity configurations.A set of node affinity and anti-affinity configurations.addNodeAffinities(SchedulingNodeAffinity.Builder builderForValue) A set of node affinity and anti-affinity configurations.A set of node affinity and anti-affinity configurations.addNodeAffinitiesBuilder(int index) A set of node affinity and anti-affinity configurations.build()clear()Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).Specifies the availability domain to place the instance in.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.Specifies the termination action for the instance.Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.An opaque location hint used to place the instance close to other resources.Specifies the max run duration for the given instance.The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.A set of node affinity and anti-affinity configurations.Defines the maintenance behavior for this instance.optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;Defines whether the instance is preemptible.Specifies the provisioning model of the instance.Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.Specifies the timestamp, when the instance will be terminated, inRFC3339 text format.booleanSpecifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).intSpecifies the availability domain to place the instance in.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintSpecify 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.Specifies the termination action for the instance.com.google.protobuf.ByteStringSpecifies the termination action for the instance.Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.An opaque location hint used to place the instance close to other resources.com.google.protobuf.ByteStringAn opaque location hint used to place the instance close to other resources.Specifies the max run duration for the given instance.Specifies the max run duration for the given instance.Specifies the max run duration for the given instance.intThe minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.getNodeAffinities(int index) A set of node affinity and anti-affinity configurations.getNodeAffinitiesBuilder(int index) A set of node affinity and anti-affinity configurations.A set of node affinity and anti-affinity configurations.intA set of node affinity and anti-affinity configurations.A set of node affinity and anti-affinity configurations.getNodeAffinitiesOrBuilder(int index) A set of node affinity and anti-affinity configurations.List<? extends SchedulingNodeAffinityOrBuilder>A set of node affinity and anti-affinity configurations.Defines the maintenance behavior for this instance.com.google.protobuf.ByteStringDefines the maintenance behavior for this instance.optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;booleanDefines whether the instance is preemptible.Specifies the provisioning model of the instance.com.google.protobuf.ByteStringSpecifies the provisioning model of the instance.booleanDefault is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.Specifies the timestamp, when the instance will be terminated, inRFC3339 text format.com.google.protobuf.ByteStringSpecifies the timestamp, when the instance will be terminated, inRFC3339 text format.booleanSpecifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).booleanSpecifies the availability domain to place the instance in.booleanSpecify 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.booleanSpecifies the termination action for the instance.booleanSpecifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.booleanAn opaque location hint used to place the instance close to other resources.booleanSpecifies the max run duration for the given instance.booleanThe minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.booleanDefines the maintenance behavior for this instance.booleanoptional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;booleanDefines whether the instance is preemptible.booleanSpecifies the provisioning model of the instance.booleanDefault is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.booleanSpecifies the timestamp, when the instance will be terminated, inRFC3339 text format.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Scheduling other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.mergeMaxRunDuration(Duration value) Specifies the max run duration for the given instance.optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;removeNodeAffinities(int index) A set of node affinity and anti-affinity configurations.setAutomaticRestart(boolean value) Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).setAvailabilityDomain(int value) Specifies the availability domain to place the instance in.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.Specifies the termination action for the instance.setInstanceTerminationActionBytes(com.google.protobuf.ByteString value) Specifies the termination action for the instance.Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.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.setLocationHint(String value) An opaque location hint used to place the instance close to other resources.setLocationHintBytes(com.google.protobuf.ByteString value) An opaque location hint used to place the instance close to other resources.setMaxRunDuration(Duration value) Specifies the max run duration for the given instance.setMaxRunDuration(Duration.Builder builderForValue) Specifies the max run duration for the given instance.setMinNodeCpus(int value) The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.setNodeAffinities(int index, SchedulingNodeAffinity value) A set of node affinity and anti-affinity configurations.setNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue) A set of node affinity and anti-affinity configurations.setOnHostMaintenance(String value) Defines the maintenance behavior for this instance.setOnHostMaintenanceBytes(com.google.protobuf.ByteString value) Defines the maintenance behavior for this instance.optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;setOnInstanceStopAction(SchedulingOnInstanceStopAction.Builder builderForValue) optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;setPreemptible(boolean value) Defines whether the instance is preemptible.setProvisioningModel(String value) Specifies the provisioning model of the instance.setProvisioningModelBytes(com.google.protobuf.ByteString value) Specifies the provisioning model of the instance.setSkipGuestOsShutdown(boolean value) Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.setTerminationTime(String value) Specifies the timestamp, when the instance will be terminated, inRFC3339 text format.setTerminationTimeBytes(com.google.protobuf.ByteString value) Specifies the timestamp, when the instance will be terminated, inRFC3339 text format.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
mergeFrom
public Scheduling.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>- Throws:
IOException
-
hasAutomaticRestart
public 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;- Specified by:
hasAutomaticRestartin interfaceSchedulingOrBuilder- Returns:
- Whether the automaticRestart field is set.
-
getAutomaticRestart
public 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;- Specified by:
getAutomaticRestartin interfaceSchedulingOrBuilder- Returns:
- The automaticRestart.
-
setAutomaticRestart
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;- Parameters:
value- The automaticRestart to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasAvailabilityDomain
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;- Specified by:
hasAvailabilityDomainin interfaceSchedulingOrBuilder- Returns:
- Whether the availabilityDomain field is set.
-
getAvailabilityDomain
public 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;- Specified by:
getAvailabilityDomainin interfaceSchedulingOrBuilder- Returns:
- The availabilityDomain.
-
setAvailabilityDomain
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;- Parameters:
value- The availabilityDomain to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasHostErrorTimeoutSeconds
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;- Specified by:
hasHostErrorTimeoutSecondsin interfaceSchedulingOrBuilder- Returns:
- Whether the hostErrorTimeoutSeconds field is set.
-
getHostErrorTimeoutSeconds
public 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;- Specified by:
getHostErrorTimeoutSecondsin interfaceSchedulingOrBuilder- Returns:
- The hostErrorTimeoutSeconds.
-
setHostErrorTimeoutSeconds
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;- Parameters:
value- The hostErrorTimeoutSeconds to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasInstanceTerminationAction
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;- Specified by:
hasInstanceTerminationActionin interfaceSchedulingOrBuilder- Returns:
- Whether the instanceTerminationAction field is set.
-
getInstanceTerminationAction
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;- Specified by:
getInstanceTerminationActionin interfaceSchedulingOrBuilder- Returns:
- The instanceTerminationAction.
-
getInstanceTerminationActionBytes
public 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;- Specified by:
getInstanceTerminationActionBytesin interfaceSchedulingOrBuilder- Returns:
- The bytes for instanceTerminationAction.
-
setInstanceTerminationAction
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;- Parameters:
value- The instanceTerminationAction to set.- Returns:
- This builder for chaining.
-
clearInstanceTerminationAction
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;- Returns:
- This builder for chaining.
-
setInstanceTerminationActionBytes
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;- Parameters:
value- The bytes for instanceTerminationAction to set.- Returns:
- This builder for chaining.
-
hasLocalSsdRecoveryTimeout
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;- Specified by:
hasLocalSsdRecoveryTimeoutin interfaceSchedulingOrBuilder- Returns:
- Whether the localSsdRecoveryTimeout field is set.
-
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;- Specified by:
getLocalSsdRecoveryTimeoutin interfaceSchedulingOrBuilder- Returns:
- The localSsdRecoveryTimeout.
-
setLocalSsdRecoveryTimeout
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; -
setLocalSsdRecoveryTimeout
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; -
mergeLocalSsdRecoveryTimeout
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; -
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; -
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; -
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;- Specified by:
getLocalSsdRecoveryTimeoutOrBuilderin interfaceSchedulingOrBuilder
-
hasLocationHint
public 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;- Specified by:
hasLocationHintin interfaceSchedulingOrBuilder- Returns:
- Whether the locationHint field is set.
-
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;- Specified by:
getLocationHintin interfaceSchedulingOrBuilder- Returns:
- The locationHint.
-
getLocationHintBytes
public 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;- Specified by:
getLocationHintBytesin interfaceSchedulingOrBuilder- Returns:
- The bytes for locationHint.
-
setLocationHint
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;- Parameters:
value- The locationHint to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setLocationHintBytes
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;- Parameters:
value- The bytes for locationHint to set.- Returns:
- This builder for chaining.
-
hasMaxRunDuration
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;- Specified by:
hasMaxRunDurationin interfaceSchedulingOrBuilder- Returns:
- Whether the maxRunDuration field is set.
-
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;- Specified by:
getMaxRunDurationin interfaceSchedulingOrBuilder- Returns:
- The maxRunDuration.
-
setMaxRunDuration
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; -
setMaxRunDuration
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; -
mergeMaxRunDuration
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; -
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; -
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; -
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;- Specified by:
getMaxRunDurationOrBuilderin interfaceSchedulingOrBuilder
-
hasMinNodeCpus
public 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;- Specified by:
hasMinNodeCpusin interfaceSchedulingOrBuilder- Returns:
- Whether the minNodeCpus field is set.
-
getMinNodeCpus
public 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;- Specified by:
getMinNodeCpusin interfaceSchedulingOrBuilder- Returns:
- The minNodeCpus.
-
setMinNodeCpus
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
optional int32 min_node_cpus = 317231675;- Parameters:
value- The minNodeCpus to set.- Returns:
- This builder for chaining.
-
clearMinNodeCpus
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
optional int32 min_node_cpus = 317231675;- Returns:
- This builder for chaining.
-
getNodeAffinitiesList
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;- Specified by:
getNodeAffinitiesListin interfaceSchedulingOrBuilder
-
getNodeAffinitiesCount
public int getNodeAffinitiesCount()A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;- Specified by:
getNodeAffinitiesCountin interfaceSchedulingOrBuilder
-
getNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;- Specified by:
getNodeAffinitiesin interfaceSchedulingOrBuilder
-
setNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
setNodeAffinities
public Scheduling.Builder setNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue) A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
addNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
addNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
addNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
addNodeAffinities
public Scheduling.Builder addNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue) A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
addAllNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
clearNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
removeNodeAffinities
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
getNodeAffinitiesBuilder
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
getNodeAffinitiesOrBuilder
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;- Specified by:
getNodeAffinitiesOrBuilderin interfaceSchedulingOrBuilder
-
getNodeAffinitiesOrBuilderList
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;- Specified by:
getNodeAffinitiesOrBuilderListin interfaceSchedulingOrBuilder
-
addNodeAffinitiesBuilder
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
addNodeAffinitiesBuilder
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
getNodeAffinitiesBuilderList
A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; -
hasOnHostMaintenance
public boolean hasOnHostMaintenance()Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;- Specified by:
hasOnHostMaintenancein interfaceSchedulingOrBuilder- Returns:
- Whether the onHostMaintenance field is set.
-
getOnHostMaintenance
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;- Specified by:
getOnHostMaintenancein interfaceSchedulingOrBuilder- Returns:
- The onHostMaintenance.
-
getOnHostMaintenanceBytes
public com.google.protobuf.ByteString getOnHostMaintenanceBytes()Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;- Specified by:
getOnHostMaintenanceBytesin interfaceSchedulingOrBuilder- Returns:
- The bytes for onHostMaintenance.
-
setOnHostMaintenance
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;- Parameters:
value- The onHostMaintenance to set.- Returns:
- This builder for chaining.
-
clearOnHostMaintenance
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;- Returns:
- This builder for chaining.
-
setOnHostMaintenanceBytes
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;- Parameters:
value- The bytes for onHostMaintenance to set.- Returns:
- This builder for chaining.
-
hasOnInstanceStopAction
public boolean hasOnInstanceStopAction()optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;- Specified by:
hasOnInstanceStopActionin interfaceSchedulingOrBuilder- Returns:
- Whether the onInstanceStopAction field is set.
-
getOnInstanceStopAction
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;- Specified by:
getOnInstanceStopActionin interfaceSchedulingOrBuilder- Returns:
- The onInstanceStopAction.
-
setOnInstanceStopAction
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681; -
setOnInstanceStopAction
public Scheduling.Builder setOnInstanceStopAction(SchedulingOnInstanceStopAction.Builder builderForValue) optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681; -
mergeOnInstanceStopAction
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681; -
clearOnInstanceStopAction
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681; -
getOnInstanceStopActionBuilder
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681; -
getOnInstanceStopActionOrBuilder
optional .google.cloud.compute.v1.SchedulingOnInstanceStopAction on_instance_stop_action = 529876681;- Specified by:
getOnInstanceStopActionOrBuilderin interfaceSchedulingOrBuilder
-
hasPreemptible
public boolean hasPreemptible()Defines whether the instance is preemptible. This can only be set during instance creation or while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;- Specified by:
hasPreemptiblein interfaceSchedulingOrBuilder- Returns:
- Whether the preemptible field is set.
-
getPreemptible
public boolean getPreemptible()Defines whether the instance is preemptible. This can only be set during instance creation or while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;- Specified by:
getPreemptiblein interfaceSchedulingOrBuilder- Returns:
- The preemptible.
-
setPreemptible
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;- Parameters:
value- The preemptible to set.- Returns:
- This builder for chaining.
-
clearPreemptible
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;- Returns:
- This builder for chaining.
-
hasProvisioningModel
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;- Specified by:
hasProvisioningModelin interfaceSchedulingOrBuilder- Returns:
- Whether the provisioningModel field is set.
-
getProvisioningModel
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;- Specified by:
getProvisioningModelin interfaceSchedulingOrBuilder- Returns:
- The provisioningModel.
-
getProvisioningModelBytes
public 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;- Specified by:
getProvisioningModelBytesin interfaceSchedulingOrBuilder- Returns:
- The bytes for provisioningModel.
-
setProvisioningModel
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;- Parameters:
value- The provisioningModel to set.- Returns:
- This builder for chaining.
-
clearProvisioningModel
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;- Returns:
- This builder for chaining.
-
setProvisioningModelBytes
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;- Parameters:
value- The bytes for provisioningModel to set.- Returns:
- This builder for chaining.
-
hasSkipGuestOsShutdown
public boolean hasSkipGuestOsShutdown()Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.
optional bool skip_guest_os_shutdown = 201662378;- Specified by:
hasSkipGuestOsShutdownin interfaceSchedulingOrBuilder- Returns:
- Whether the skipGuestOsShutdown field is set.
-
getSkipGuestOsShutdown
public boolean getSkipGuestOsShutdown()Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.
optional bool skip_guest_os_shutdown = 201662378;- Specified by:
getSkipGuestOsShutdownin interfaceSchedulingOrBuilder- Returns:
- The skipGuestOsShutdown.
-
setSkipGuestOsShutdown
Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.
optional bool skip_guest_os_shutdown = 201662378;- Parameters:
value- The skipGuestOsShutdown to set.- Returns:
- This builder for chaining.
-
clearSkipGuestOsShutdown
Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.
optional bool skip_guest_os_shutdown = 201662378;- Returns:
- This builder for chaining.
-
hasTerminationTime
public boolean hasTerminationTime()Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;- Specified by:
hasTerminationTimein interfaceSchedulingOrBuilder- Returns:
- Whether the terminationTime field is set.
-
getTerminationTime
Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;- Specified by:
getTerminationTimein interfaceSchedulingOrBuilder- Returns:
- The terminationTime.
-
getTerminationTimeBytes
public com.google.protobuf.ByteString getTerminationTimeBytes()Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;- Specified by:
getTerminationTimeBytesin interfaceSchedulingOrBuilder- Returns:
- The bytes for terminationTime.
-
setTerminationTime
Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;- Parameters:
value- The terminationTime to set.- Returns:
- This builder for chaining.
-
clearTerminationTime
Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;- Returns:
- This builder for chaining.
-
setTerminationTimeBytes
Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance termination action will be performed at the termination time.
optional string termination_time = 428082984;- Parameters:
value- The bytes for terminationTime to set.- Returns:
- This builder for chaining.
-