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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Scheduling.Builder> implements SchedulingOrBuilder
Sets the scheduling options for an Instance.
Protobuf typegoogle.cloud.compute.v1.Scheduling
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Scheduling.BuilderaddAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values)A set of node affinity and anti-affinity configurations.Scheduling.BuilderaddNodeAffinities(int index, SchedulingNodeAffinity value)A set of node affinity and anti-affinity configurations.Scheduling.BuilderaddNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)A set of node affinity and anti-affinity configurations.Scheduling.BuilderaddNodeAffinities(SchedulingNodeAffinity value)A set of node affinity and anti-affinity configurations.Scheduling.BuilderaddNodeAffinities(SchedulingNodeAffinity.Builder builderForValue)A set of node affinity and anti-affinity configurations.SchedulingNodeAffinity.BuilderaddNodeAffinitiesBuilder()A set of node affinity and anti-affinity configurations.SchedulingNodeAffinity.BuilderaddNodeAffinitiesBuilder(int index)A set of node affinity and anti-affinity configurations.Scheduling.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Schedulingbuild()SchedulingbuildPartial()Scheduling.Builderclear()Scheduling.BuilderclearAutomaticRestart()Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).Scheduling.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Scheduling.BuilderclearInstanceTerminationAction()Specifies the termination action for the instance.Scheduling.BuilderclearLocalSsdRecoveryTimeout()Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.Scheduling.BuilderclearLocationHint()An opaque location hint used to place the instance close to other resources.Scheduling.BuilderclearMinNodeCpus()The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.Scheduling.BuilderclearNodeAffinities()A set of node affinity and anti-affinity configurations.Scheduling.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Scheduling.BuilderclearOnHostMaintenance()Defines the maintenance behavior for this instance.Scheduling.BuilderclearPreemptible()Defines whether the instance is preemptible.Scheduling.BuilderclearProvisioningModel()Specifies the provisioning model of the instance.Scheduling.Builderclone()booleangetAutomaticRestart()Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).SchedulinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetInstanceTerminationAction()Specifies the termination action for the instance.com.google.protobuf.ByteStringgetInstanceTerminationActionBytes()Specifies the termination action for the instance.DurationgetLocalSsdRecoveryTimeout()Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.Duration.BuildergetLocalSsdRecoveryTimeoutBuilder()Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.DurationOrBuildergetLocalSsdRecoveryTimeoutOrBuilder()Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.StringgetLocationHint()An opaque location hint used to place the instance close to other resources.com.google.protobuf.ByteStringgetLocationHintBytes()An opaque location hint used to place the instance close to other resources.intgetMinNodeCpus()The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.SchedulingNodeAffinitygetNodeAffinities(int index)A set of node affinity and anti-affinity configurations.SchedulingNodeAffinity.BuildergetNodeAffinitiesBuilder(int index)A set of node affinity and anti-affinity configurations.List<SchedulingNodeAffinity.Builder>getNodeAffinitiesBuilderList()A set of node affinity and anti-affinity configurations.intgetNodeAffinitiesCount()A set of node affinity and anti-affinity configurations.List<SchedulingNodeAffinity>getNodeAffinitiesList()A set of node affinity and anti-affinity configurations.SchedulingNodeAffinityOrBuildergetNodeAffinitiesOrBuilder(int index)A set of node affinity and anti-affinity configurations.List<? extends SchedulingNodeAffinityOrBuilder>getNodeAffinitiesOrBuilderList()A set of node affinity and anti-affinity configurations.StringgetOnHostMaintenance()Defines the maintenance behavior for this instance.com.google.protobuf.ByteStringgetOnHostMaintenanceBytes()Defines the maintenance behavior for this instance.booleangetPreemptible()Defines whether the instance is preemptible.StringgetProvisioningModel()Specifies the provisioning model of the instance.com.google.protobuf.ByteStringgetProvisioningModelBytes()Specifies the provisioning model of the instance.booleanhasAutomaticRestart()Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).booleanhasInstanceTerminationAction()Specifies the termination action for the instance.booleanhasLocalSsdRecoveryTimeout()Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.booleanhasLocationHint()An opaque location hint used to place the instance close to other resources.booleanhasMinNodeCpus()The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.booleanhasOnHostMaintenance()Defines the maintenance behavior for this instance.booleanhasPreemptible()Defines whether the instance is preemptible.booleanhasProvisioningModel()Specifies the provisioning model of the instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Scheduling.BuildermergeFrom(Scheduling other)Scheduling.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Scheduling.BuildermergeFrom(com.google.protobuf.Message other)Scheduling.BuildermergeLocalSsdRecoveryTimeout(Duration value)Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.Scheduling.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Scheduling.BuilderremoveNodeAffinities(int index)A set of node affinity and anti-affinity configurations.Scheduling.BuildersetAutomaticRestart(boolean value)Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).Scheduling.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Scheduling.BuildersetInstanceTerminationAction(String value)Specifies the termination action for the instance.Scheduling.BuildersetInstanceTerminationActionBytes(com.google.protobuf.ByteString value)Specifies the termination action for the instance.Scheduling.BuildersetLocalSsdRecoveryTimeout(Duration value)Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted.Scheduling.BuildersetLocalSsdRecoveryTimeout(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.BuildersetLocationHint(String value)An opaque location hint used to place the instance close to other resources.Scheduling.BuildersetLocationHintBytes(com.google.protobuf.ByteString value)An opaque location hint used to place the instance close to other resources.Scheduling.BuildersetMinNodeCpus(int value)The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.Scheduling.BuildersetNodeAffinities(int index, SchedulingNodeAffinity value)A set of node affinity and anti-affinity configurations.Scheduling.BuildersetNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)A set of node affinity and anti-affinity configurations.Scheduling.BuildersetOnHostMaintenance(String value)Defines the maintenance behavior for this instance.Scheduling.BuildersetOnHostMaintenanceBytes(com.google.protobuf.ByteString value)Defines the maintenance behavior for this instance.Scheduling.BuildersetPreemptible(boolean value)Defines whether the instance is preemptible.Scheduling.BuildersetProvisioningModel(String value)Specifies the provisioning model of the instance.Scheduling.BuildersetProvisioningModelBytes(com.google.protobuf.ByteString value)Specifies the provisioning model of the instance.Scheduling.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Scheduling.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
clear
public Scheduling.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Scheduling.Builder>
-
getDefaultInstanceForType
public Scheduling getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Scheduling build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Scheduling buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Scheduling.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
setField
public Scheduling.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
clearField
public Scheduling.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
clearOneof
public Scheduling.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
setRepeatedField
public Scheduling.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
addRepeatedField
public Scheduling.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
mergeFrom
public Scheduling.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>
-
mergeFrom
public Scheduling.Builder mergeFrom(Scheduling other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public 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;- Parameters:
value- The automaticRestart to set.- Returns:
- This builder for chaining.
-
clearAutomaticRestart
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;- 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
public 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;- 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
public 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;- Parameters:
value- The instanceTerminationAction to set.- Returns:
- This builder for chaining.
-
clearInstanceTerminationAction
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;- Returns:
- This builder for chaining.
-
setInstanceTerminationActionBytes
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;- 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
public 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;- Specified by:
getLocalSsdRecoveryTimeoutin interfaceSchedulingOrBuilder- Returns:
- The localSsdRecoveryTimeout.
-
setLocalSsdRecoveryTimeout
public 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;
-
setLocalSsdRecoveryTimeout
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;
-
mergeLocalSsdRecoveryTimeout
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;
-
clearLocalSsdRecoveryTimeout
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;
-
getLocalSsdRecoveryTimeoutBuilder
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;
-
getLocalSsdRecoveryTimeoutOrBuilder
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;- 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
public 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;- 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
public 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;- Parameters:
value- The locationHint to set.- Returns:
- This builder for chaining.
-
clearLocationHint
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;- Returns:
- This builder for chaining.
-
setLocationHintBytes
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;- Parameters:
value- The bytes for locationHint to set.- Returns:
- This builder for chaining.
-
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
public 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;- Parameters:
value- The minNodeCpus to set.- Returns:
- This builder for chaining.
-
clearMinNodeCpus
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;- Returns:
- This builder for chaining.
-
getNodeAffinitiesList
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;- Specified by:
getNodeAffinitiesListin interfaceSchedulingOrBuilder
-
getNodeAffinitiesCount
public 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;- Specified by:
getNodeAffinitiesCountin interfaceSchedulingOrBuilder
-
getNodeAffinities
public 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;- Specified by:
getNodeAffinitiesin interfaceSchedulingOrBuilder
-
setNodeAffinities
public 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;
-
setNodeAffinities
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;
-
addNodeAffinities
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;
-
addNodeAffinities
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;
-
addNodeAffinities
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;
-
addNodeAffinities
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;
-
addAllNodeAffinities
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;
-
clearNodeAffinities
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;
-
removeNodeAffinities
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;
-
getNodeAffinitiesBuilder
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;
-
getNodeAffinitiesOrBuilder
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;- Specified by:
getNodeAffinitiesOrBuilderin interfaceSchedulingOrBuilder
-
getNodeAffinitiesOrBuilderList
public 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;- Specified by:
getNodeAffinitiesOrBuilderListin interfaceSchedulingOrBuilder
-
addNodeAffinitiesBuilder
public 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;
-
addNodeAffinitiesBuilder
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;
-
getNodeAffinitiesBuilderList
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;
-
hasOnHostMaintenance
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;- Specified by:
hasOnHostMaintenancein interfaceSchedulingOrBuilder- Returns:
- Whether the onHostMaintenance field is set.
-
getOnHostMaintenance
public 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;- 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. 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;- Specified by:
getOnHostMaintenanceBytesin interfaceSchedulingOrBuilder- Returns:
- The bytes for onHostMaintenance.
-
setOnHostMaintenance
public 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;- Parameters:
value- The onHostMaintenance to set.- Returns:
- This builder for chaining.
-
clearOnHostMaintenance
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;- Returns:
- This builder for chaining.
-
setOnHostMaintenanceBytes
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;- Parameters:
value- The bytes for onHostMaintenance to set.- Returns:
- This builder for chaining.
-
hasPreemptible
public 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;- 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 is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;- Specified by:
getPreemptiblein interfaceSchedulingOrBuilder- Returns:
- The preemptible.
-
setPreemptible
public 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;- Parameters:
value- The preemptible to set.- Returns:
- This builder for chaining.
-
clearPreemptible
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;- 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
public String 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
public 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;- Parameters:
value- The provisioningModel to set.- Returns:
- This builder for chaining.
-
clearProvisioningModel
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;- Returns:
- This builder for chaining.
-
setProvisioningModelBytes
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;- Parameters:
value- The bytes for provisioningModel to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Scheduling.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
mergeUnknownFields
public final Scheduling.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
-