- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class Scheduling.Builder extends GeneratedMessageV3.Builder<Scheduling.Builder> implements SchedulingOrBuilder
Sets the scheduling options for an Instance. NextID: 21
Protobuf type google.cloud.compute.v1.Scheduling
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Scheduling.BuilderImplements
SchedulingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllNodeAffinities(Iterable<? extends SchedulingNodeAffinity> values)
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;
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.SchedulingNodeAffinity> |
Type | Description |
Scheduling.Builder |
addNodeAffinities(SchedulingNodeAffinity value)
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;
Name | Description |
value | SchedulingNodeAffinity |
Type | Description |
Scheduling.Builder |
addNodeAffinities(SchedulingNodeAffinity.Builder builderForValue)
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;
Name | Description |
builderForValue | SchedulingNodeAffinity.Builder |
Type | Description |
Scheduling.Builder |
addNodeAffinities(int index, SchedulingNodeAffinity value)
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;
Name | Description |
index | int |
value | SchedulingNodeAffinity |
Type | Description |
Scheduling.Builder |
addNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | SchedulingNodeAffinity.Builder |
Type | Description |
Scheduling.Builder |
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;
Type | Description |
SchedulingNodeAffinity.Builder |
addNodeAffinitiesBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
SchedulingNodeAffinity.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Scheduling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Scheduling.Builder |
build()
public Scheduling build()
Type | Description |
Scheduling |
buildPartial()
public Scheduling buildPartial()
Type | Description |
Scheduling |
clear()
public Scheduling.Builder clear()
Type | Description |
Scheduling.Builder |
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;
Type | Description |
Scheduling.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Scheduling.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Scheduling.Builder |
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;
Type | Description |
Scheduling.Builder | 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;
Type | Description |
Scheduling.Builder | This builder for chaining. |
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;
Type | Description |
Scheduling.Builder |
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 Setting Instance Scheduling Options. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;
Type | Description |
Scheduling.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Scheduling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Scheduling.Builder |
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;
Type | Description |
Scheduling.Builder | This builder for chaining. |
clone()
public Scheduling.Builder clone()
Type | Description |
Scheduling.Builder |
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;
Type | Description |
boolean | The automaticRestart. |
getDefaultInstanceForType()
public Scheduling getDefaultInstanceForType()
Type | Description |
Scheduling |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Type | Description |
String | The locationHint. |
getLocationHintBytes()
public 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;
Type | Description |
ByteString | The bytes for locationHint. |
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;
Type | Description |
int | The minNodeCpus. |
getNodeAffinities(int index)
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;
Name | Description |
index | int |
Type | Description |
SchedulingNodeAffinity |
getNodeAffinitiesBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
SchedulingNodeAffinity.Builder |
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;
Type | Description |
List<Builder> |
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;
Type | Description |
int |
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;
Type | Description |
List<SchedulingNodeAffinity> |
getNodeAffinitiesOrBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
SchedulingNodeAffinityOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.compute.v1.SchedulingNodeAffinityOrBuilder> |
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 Setting Instance Scheduling Options. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;
Type | Description |
String | The onHostMaintenance. |
getOnHostMaintenanceBytes()
public 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 Setting Instance Scheduling Options. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;
Type | Description |
ByteString | The bytes for onHostMaintenance. |
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;
Type | Description |
boolean | The preemptible. |
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;
Type | Description |
boolean | Whether the automaticRestart field is set. |
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;
Type | Description |
boolean | Whether the locationHint field is set. |
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;
Type | Description |
boolean | Whether the minNodeCpus field is set. |
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 Setting Instance Scheduling Options. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;
Type | Description |
boolean | Whether the onHostMaintenance field is set. |
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;
Type | Description |
boolean | Whether the preemptible field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Scheduling other)
public Scheduling.Builder mergeFrom(Scheduling other)
Name | Description |
other | Scheduling |
Type | Description |
Scheduling.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Scheduling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Scheduling.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Scheduling.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Scheduling.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Scheduling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Scheduling.Builder |
removeNodeAffinities(int index)
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;
Name | Description |
index | int |
Type | Description |
Scheduling.Builder |
setAutomaticRestart(boolean value)
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;
Name | Description |
value | boolean The automaticRestart to set. |
Type | Description |
Scheduling.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Scheduling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Scheduling.Builder |
setLocationHint(String value)
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;
Name | Description |
value | String The locationHint to set. |
Type | Description |
Scheduling.Builder | This builder for chaining. |
setLocationHintBytes(ByteString value)
public Scheduling.Builder setLocationHintBytes(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;
Name | Description |
value | ByteString The bytes for locationHint to set. |
Type | Description |
Scheduling.Builder | This builder for chaining. |
setMinNodeCpus(int value)
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;
Name | Description |
value | int The minNodeCpus to set. |
Type | Description |
Scheduling.Builder | This builder for chaining. |
setNodeAffinities(int index, SchedulingNodeAffinity value)
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;
Name | Description |
index | int |
value | SchedulingNodeAffinity |
Type | Description |
Scheduling.Builder |
setNodeAffinities(int index, SchedulingNodeAffinity.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | SchedulingNodeAffinity.Builder |
Type | Description |
Scheduling.Builder |
setOnHostMaintenance(String value)
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 Setting Instance Scheduling Options. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;
Name | Description |
value | String The onHostMaintenance to set. |
Type | Description |
Scheduling.Builder | This builder for chaining. |
setOnHostMaintenanceBytes(ByteString value)
public Scheduling.Builder setOnHostMaintenanceBytes(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 Setting Instance Scheduling Options. Check the OnHostMaintenance enum for the list of possible values.
optional string on_host_maintenance = 64616796;
Name | Description |
value | ByteString The bytes for onHostMaintenance to set. |
Type | Description |
Scheduling.Builder | This builder for chaining. |
setPreemptible(boolean value)
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;
Name | Description |
value | boolean The preemptible to set. |
Type | Description |
Scheduling.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Scheduling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Scheduling.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Scheduling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Scheduling.Builder |