public final class Scheduling extends com.google.protobuf.GeneratedMessageV3 implements SchedulingOrBuilder
Sets the scheduling options for an Instance.Protobuf type
google.cloud.compute.v1.Scheduling| Modifier and Type | Class and Description |
|---|---|
static class |
Scheduling.Builder
Sets the scheduling options for an Instance.
|
static class |
Scheduling.InstanceTerminationAction
Specifies the termination action for the instance.
|
static class |
Scheduling.OnHostMaintenance
Defines the maintenance behavior for this instance.
|
static class |
Scheduling.ProvisioningModel
Specifies the provisioning model of the instance.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOMATIC_RESTART_FIELD_NUMBER |
static int |
INSTANCE_TERMINATION_ACTION_FIELD_NUMBER |
static int |
LOCATION_HINT_FIELD_NUMBER |
static int |
MIN_NODE_CPUS_FIELD_NUMBER |
static int |
NODE_AFFINITIES_FIELD_NUMBER |
static int |
ON_HOST_MAINTENANCE_FIELD_NUMBER |
static int |
PREEMPTIBLE_FIELD_NUMBER |
static int |
PROVISIONING_MODEL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
|
static Scheduling |
getDefaultInstance() |
Scheduling |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
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.
|
com.google.protobuf.Parser<Scheduling> |
getParserForType() |
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAutomaticRestart()
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
|
int |
hashCode() |
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() |
static Scheduling.Builder |
newBuilder() |
static Scheduling.Builder |
newBuilder(Scheduling prototype) |
Scheduling.Builder |
newBuilderForType() |
protected Scheduling.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Scheduling |
parseDelimitedFrom(InputStream input) |
static Scheduling |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Scheduling |
parseFrom(byte[] data) |
static Scheduling |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Scheduling |
parseFrom(ByteBuffer data) |
static Scheduling |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Scheduling |
parseFrom(com.google.protobuf.ByteString data) |
static Scheduling |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Scheduling |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Scheduling |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Scheduling |
parseFrom(InputStream input) |
static Scheduling |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Scheduling> |
parser() |
Scheduling.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AUTOMATIC_RESTART_FIELD_NUMBER
public static final int INSTANCE_TERMINATION_ACTION_FIELD_NUMBER
public static final int LOCATION_HINT_FIELD_NUMBER
public static final int MIN_NODE_CPUS_FIELD_NUMBER
public static final int NODE_AFFINITIES_FIELD_NUMBER
public static final int ON_HOST_MAINTENANCE_FIELD_NUMBER
public static final int PREEMPTIBLE_FIELD_NUMBER
public static final int PROVISIONING_MODEL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Scheduling parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Scheduling parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Scheduling parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Scheduling parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Scheduling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Scheduling parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Scheduling parseFrom(InputStream input) throws IOException
IOExceptionpublic static Scheduling parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Scheduling parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Scheduling parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Scheduling parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Scheduling parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Scheduling.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Scheduling.Builder newBuilder()
public static Scheduling.Builder newBuilder(Scheduling prototype)
public Scheduling.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Scheduling.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Scheduling getDefaultInstance()
public static com.google.protobuf.Parser<Scheduling> parser()
public com.google.protobuf.Parser<Scheduling> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Scheduling getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.