public static final class Scheduling.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder> implements SchedulingOrBuilder
Sets the scheduling options for an Instance.Protobuf type
google.cloud.compute.v1.Scheduling| Modifier and Type | Method and Description |
|---|---|
Scheduling.Builder |
addAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(int index,
SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(int index,
SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addNodeAffinities(SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations.
|
SchedulingNodeAffinity.Builder |
addNodeAffinitiesBuilder()
A set of node affinity and anti-affinity configurations.
|
SchedulingNodeAffinity.Builder |
addNodeAffinitiesBuilder(int index)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Scheduling |
build() |
Scheduling |
buildPartial() |
Scheduling.Builder |
clear() |
Scheduling.Builder |
clearAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
|
Scheduling.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Scheduling.Builder |
clearInstanceTerminationAction()
Specifies the termination action for the instance.
|
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.
|
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 |
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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Scheduling.Builder |
mergeFrom(com.google.protobuf.Message other) |
Scheduling.Builder |
mergeFrom(Scheduling other) |
Scheduling.Builder |
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 |
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.Builder builderForValue)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
setNodeAffinities(int index,
SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations.
|
Scheduling.Builder |
setOnHostMaintenance(String value)
Defines the maintenance behavior for this instance.
|
Scheduling.Builder |
setOnHostMaintenanceBytes(com.google.protobuf.ByteString value)
Defines the maintenance behavior for this instance.
|
Scheduling.Builder |
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Scheduling build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Scheduling buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Scheduling.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(Scheduling other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>IOExceptionpublic boolean hasAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
optional bool automatic_restart = 350821371;hasAutomaticRestart in interface SchedulingOrBuilderpublic boolean getAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
optional bool automatic_restart = 350821371;getAutomaticRestart in interface SchedulingOrBuilderpublic Scheduling.Builder setAutomaticRestart(boolean value)
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
optional bool automatic_restart = 350821371;value - The automaticRestart to set.public Scheduling.Builder clearAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
optional bool automatic_restart = 350821371;public boolean hasInstanceTerminationAction()
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;hasInstanceTerminationAction in interface SchedulingOrBuilderpublic String getInstanceTerminationAction()
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;getInstanceTerminationAction in interface SchedulingOrBuilderpublic com.google.protobuf.ByteString getInstanceTerminationActionBytes()
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;getInstanceTerminationActionBytes in interface SchedulingOrBuilderpublic Scheduling.Builder setInstanceTerminationAction(String value)
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;value - The instanceTerminationAction to set.public Scheduling.Builder clearInstanceTerminationAction()
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;public Scheduling.Builder setInstanceTerminationActionBytes(com.google.protobuf.ByteString value)
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
optional string instance_termination_action = 107380667;value - The bytes for instanceTerminationAction to set.public boolean hasLocationHint()
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;hasLocationHint in interface SchedulingOrBuilderpublic String getLocationHint()
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;getLocationHint in interface SchedulingOrBuilderpublic com.google.protobuf.ByteString getLocationHintBytes()
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;getLocationHintBytes in interface SchedulingOrBuilderpublic Scheduling.Builder setLocationHint(String value)
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;value - The locationHint to set.public Scheduling.Builder clearLocationHint()
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;public Scheduling.Builder setLocationHintBytes(com.google.protobuf.ByteString value)
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;value - The bytes for locationHint to set.public boolean hasMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
optional int32 min_node_cpus = 317231675;hasMinNodeCpus in interface SchedulingOrBuilderpublic int getMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
optional int32 min_node_cpus = 317231675;getMinNodeCpus in interface SchedulingOrBuilderpublic Scheduling.Builder setMinNodeCpus(int value)
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
optional int32 min_node_cpus = 317231675;value - The minNodeCpus to set.public Scheduling.Builder clearMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
optional int32 min_node_cpus = 317231675;public List<SchedulingNodeAffinity> getNodeAffinitiesList()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesList in interface SchedulingOrBuilderpublic int getNodeAffinitiesCount()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesCount in interface SchedulingOrBuilderpublic SchedulingNodeAffinity getNodeAffinities(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinities in interface SchedulingOrBuilderpublic Scheduling.Builder setNodeAffinities(int index, SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder setNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(int index, SchedulingNodeAffinity value)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder addAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder clearNodeAffinities()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public Scheduling.Builder removeNodeAffinities(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public SchedulingNodeAffinity.Builder getNodeAffinitiesBuilder(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public SchedulingNodeAffinityOrBuilder getNodeAffinitiesOrBuilder(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesOrBuilder in interface SchedulingOrBuilderpublic List<? extends SchedulingNodeAffinityOrBuilder> getNodeAffinitiesOrBuilderList()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
getNodeAffinitiesOrBuilderList in interface SchedulingOrBuilderpublic SchedulingNodeAffinity.Builder addNodeAffinitiesBuilder()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public SchedulingNodeAffinity.Builder addNodeAffinitiesBuilder(int index)
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public List<SchedulingNodeAffinity.Builder> getNodeAffinitiesBuilderList()
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
public boolean hasOnHostMaintenance()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;hasOnHostMaintenance in interface SchedulingOrBuilderpublic String getOnHostMaintenance()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;getOnHostMaintenance in interface SchedulingOrBuilderpublic com.google.protobuf.ByteString getOnHostMaintenanceBytes()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;getOnHostMaintenanceBytes in interface SchedulingOrBuilderpublic Scheduling.Builder setOnHostMaintenance(String value)
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;value - The onHostMaintenance to set.public Scheduling.Builder clearOnHostMaintenance()
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;public Scheduling.Builder setOnHostMaintenanceBytes(com.google.protobuf.ByteString value)
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;value - The bytes for onHostMaintenance to set.public boolean hasPreemptible()
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;hasPreemptible in interface SchedulingOrBuilderpublic boolean getPreemptible()
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;getPreemptible in interface SchedulingOrBuilderpublic Scheduling.Builder setPreemptible(boolean value)
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;value - The preemptible to set.public Scheduling.Builder clearPreemptible()
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
optional bool preemptible = 324203169;public boolean hasProvisioningModel()
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;hasProvisioningModel in interface SchedulingOrBuilderpublic String getProvisioningModel()
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;getProvisioningModel in interface SchedulingOrBuilderpublic com.google.protobuf.ByteString getProvisioningModelBytes()
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;getProvisioningModelBytes in interface SchedulingOrBuilderpublic Scheduling.Builder setProvisioningModel(String value)
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;value - The provisioningModel to set.public Scheduling.Builder clearProvisioningModel()
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;public Scheduling.Builder setProvisioningModelBytes(com.google.protobuf.ByteString value)
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
optional string provisioning_model = 494423;value - The bytes for provisioningModel to set.public final Scheduling.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>public final Scheduling.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Scheduling.Builder>Copyright © 2023 Google LLC. All rights reserved.