public final class Scheduling extends GeneratedMessageV3 implements SchedulingOrBuilder
Sets the scheduling options for an Instance.
Protobuf type google.cloud.backupdr.v1.Scheduling
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
AUTOMATIC_RESTART_FIELD_NUMBER
public static final int AUTOMATIC_RESTART_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
INSTANCE_TERMINATION_ACTION_FIELD_NUMBER
public static final int INSTANCE_TERMINATION_ACTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LOCAL_SSD_RECOVERY_TIMEOUT_FIELD_NUMBER
public static final int LOCAL_SSD_RECOVERY_TIMEOUT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MIN_NODE_CPUS_FIELD_NUMBER
public static final int MIN_NODE_CPUS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NODE_AFFINITIES_FIELD_NUMBER
public static final int NODE_AFFINITIES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ON_HOST_MAINTENANCE_FIELD_NUMBER
public static final int ON_HOST_MAINTENANCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PREEMPTIBLE_FIELD_NUMBER
public static final int PREEMPTIBLE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PROVISIONING_MODEL_FIELD_NUMBER
public static final int PROVISIONING_MODEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Scheduling getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Scheduling.Builder newBuilder()
newBuilder(Scheduling prototype)
public static Scheduling.Builder newBuilder(Scheduling prototype)
public static Scheduling parseDelimitedFrom(InputStream input)
public static Scheduling parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Scheduling parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Scheduling parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Scheduling parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Scheduling parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Scheduling parseFrom(CodedInputStream input)
public static Scheduling parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Scheduling parseFrom(InputStream input)
public static Scheduling parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Scheduling parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Scheduling parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Scheduling> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAutomaticRestart()
public boolean getAutomaticRestart()
Optional. Specifies whether the instance should be automatically restarted
if it is terminated by Compute Engine (not terminated by a user).
optional bool automatic_restart = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The automaticRestart.
|
getDefaultInstanceForType()
public Scheduling getDefaultInstanceForType()
getInstanceTerminationAction()
public Scheduling.InstanceTerminationAction getInstanceTerminationAction()
Optional. Specifies the termination action for the instance.
optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL];
getInstanceTerminationActionValue()
public int getInstanceTerminationActionValue()
Optional. Specifies the termination action for the instance.
optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for instanceTerminationAction.
|
getLocalSsdRecoveryTimeout()
public SchedulingDuration getLocalSsdRecoveryTimeout()
Optional. 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.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
getLocalSsdRecoveryTimeoutOrBuilder()
public SchedulingDurationOrBuilder getLocalSsdRecoveryTimeoutOrBuilder()
Optional. 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.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
getMinNodeCpus()
public int getMinNodeCpus()
Optional. The minimum number of virtual CPUs this instance will consume
when running on a sole-tenant node.
optional int32 min_node_cpus = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The minNodeCpus.
|
getNodeAffinities(int index)
public Scheduling.NodeAffinity getNodeAffinities(int index)
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getNodeAffinitiesCount()
public int getNodeAffinitiesCount()
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getNodeAffinitiesList()
public List<Scheduling.NodeAffinity> getNodeAffinitiesList()
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];
getNodeAffinitiesOrBuilder(int index)
public Scheduling.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder(int index)
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getNodeAffinitiesOrBuilderList()
public List<? extends Scheduling.NodeAffinityOrBuilder> getNodeAffinitiesOrBuilderList()
Optional. A set of node affinity and anti-affinity configurations.
Overrides reservationAffinity.
repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder> |
|
getOnHostMaintenance()
public Scheduling.OnHostMaintenance getOnHostMaintenance()
Optional. Defines the maintenance behavior for this instance.
optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL];
getOnHostMaintenanceValue()
public int getOnHostMaintenanceValue()
Optional. Defines the maintenance behavior for this instance.
optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for onHostMaintenance.
|
getParserForType()
public Parser<Scheduling> getParserForType()
Overrides
getPreemptible()
public boolean getPreemptible()
Optional. Defines whether the instance is preemptible.
optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The preemptible.
|
getProvisioningModel()
public Scheduling.ProvisioningModel getProvisioningModel()
Optional. Specifies the provisioning model of the instance.
optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL];
getProvisioningModelValue()
public int getProvisioningModelValue()
Optional. Specifies the provisioning model of the instance.
optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for provisioningModel.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasAutomaticRestart()
public boolean hasAutomaticRestart()
Optional. Specifies whether the instance should be automatically restarted
if it is terminated by Compute Engine (not terminated by a user).
optional bool automatic_restart = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the automaticRestart field is set.
|
hasInstanceTerminationAction()
public boolean hasInstanceTerminationAction()
Optional. Specifies the termination action for the instance.
optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the instanceTerminationAction field is set.
|
hasLocalSsdRecoveryTimeout()
public boolean hasLocalSsdRecoveryTimeout()
Optional. 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.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the localSsdRecoveryTimeout field is set.
|
hasMinNodeCpus()
public boolean hasMinNodeCpus()
Optional. The minimum number of virtual CPUs this instance will consume
when running on a sole-tenant node.
optional int32 min_node_cpus = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the minNodeCpus field is set.
|
hasOnHostMaintenance()
public boolean hasOnHostMaintenance()
Optional. Defines the maintenance behavior for this instance.
optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the onHostMaintenance field is set.
|
hasPreemptible()
public boolean hasPreemptible()
Optional. Defines whether the instance is preemptible.
optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the preemptible field is set.
|
hasProvisioningModel()
public boolean hasProvisioningModel()
Optional. Specifies the provisioning model of the instance.
optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the provisioningModel field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Scheduling.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Scheduling.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Scheduling.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides