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.Builder
addAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values)
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(int index, 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.Scheduling.Builder
addNodeAffinities(SchedulingNodeAffinity.Builder builderForValue)
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
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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
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
clearPreemptible()
Defines whether the instance is preemptible.Scheduling.Builder
clearProvisioningModel()
Specifies the provisioning model of the instance.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).Scheduling
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.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.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.boolean
hasAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).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
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
hasPreemptible()
Defines whether the instance is preemptible.boolean
hasProvisioningModel()
Specifies the provisioning model of the instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Scheduling.Builder
mergeFrom(Scheduling other)
Scheduling.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Scheduling.Builder
mergeFrom(com.google.protobuf.Message 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
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
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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 value)
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.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
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
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 value)
A set of node affinity and anti-affinity configurations.Scheduling.Builder
setNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)
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
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
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
clear
public Scheduling.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
getDefaultInstanceForType
public Scheduling getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Scheduling build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Scheduling buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Scheduling.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
setField
public Scheduling.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
clearField
public Scheduling.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
clearOneof
public Scheduling.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
setRepeatedField
public Scheduling.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
addRepeatedField
public Scheduling.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
mergeFrom
public Scheduling.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>
-
mergeFrom
public Scheduling.Builder mergeFrom(Scheduling other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasAutomaticRestart
in 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:
getAutomaticRestart
in 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:
hasInstanceTerminationAction
in 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:
getInstanceTerminationAction
in 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:
getInstanceTerminationActionBytes
in 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:
hasLocalSsdRecoveryTimeout
in 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:
getLocalSsdRecoveryTimeout
in 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:
getLocalSsdRecoveryTimeoutOrBuilder
in 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:
hasLocationHint
in 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:
getLocationHint
in 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:
getLocationHintBytes
in 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:
hasMinNodeCpus
in 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:
getMinNodeCpus
in 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:
getNodeAffinitiesList
in 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:
getNodeAffinitiesCount
in 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:
getNodeAffinities
in 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:
getNodeAffinitiesOrBuilder
in 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:
getNodeAffinitiesOrBuilderList
in 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:
hasOnHostMaintenance
in 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:
getOnHostMaintenance
in 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:
getOnHostMaintenanceBytes
in 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:
hasPreemptible
in 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:
getPreemptible
in 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:
hasProvisioningModel
in 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:
getProvisioningModel
in 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:
getProvisioningModelBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
mergeUnknownFields
public final Scheduling.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>
-
-