Package com.google.cloud.vmmigration.v1
Class ComputeScheduling
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.vmmigration.v1.ComputeScheduling
-
- All Implemented Interfaces:
ComputeSchedulingOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class ComputeScheduling extends com.google.protobuf.GeneratedMessageV3 implements ComputeSchedulingOrBuilder
Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.
Protobuf typegoogle.cloud.vmmigration.v1.ComputeScheduling
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComputeScheduling.Builder
Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.static class
ComputeScheduling.OnHostMaintenance
Protobuf enumgoogle.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance
static class
ComputeScheduling.RestartType
Defines whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
MIN_NODE_CPUS_FIELD_NUMBER
static int
NODE_AFFINITIES_FIELD_NUMBER
static int
ON_HOST_MAINTENANCE_FIELD_NUMBER
static int
RESTART_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static ComputeScheduling
getDefaultInstance()
ComputeScheduling
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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 for sole tenant nodes.int
getNodeAffinitiesCount()
A set of node affinity and anti-affinity configurations for sole tenant nodes.List<SchedulingNodeAffinity>
getNodeAffinitiesList()
A set of node affinity and anti-affinity configurations for sole tenant nodes.SchedulingNodeAffinityOrBuilder
getNodeAffinitiesOrBuilder(int index)
A set of node affinity and anti-affinity configurations for sole tenant nodes.List<? extends SchedulingNodeAffinityOrBuilder>
getNodeAffinitiesOrBuilderList()
A set of node affinity and anti-affinity configurations for sole tenant nodes.ComputeScheduling.OnHostMaintenance
getOnHostMaintenance()
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.int
getOnHostMaintenanceValue()
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.com.google.protobuf.Parser<ComputeScheduling>
getParserForType()
ComputeScheduling.RestartType
getRestartType()
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).int
getRestartTypeValue()
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).int
getSerializedSize()
int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ComputeScheduling.Builder
newBuilder()
static ComputeScheduling.Builder
newBuilder(ComputeScheduling prototype)
ComputeScheduling.Builder
newBuilderForType()
protected ComputeScheduling.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ComputeScheduling
parseDelimitedFrom(InputStream input)
static ComputeScheduling
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeScheduling
parseFrom(byte[] data)
static ComputeScheduling
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeScheduling
parseFrom(com.google.protobuf.ByteString data)
static ComputeScheduling
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeScheduling
parseFrom(com.google.protobuf.CodedInputStream input)
static ComputeScheduling
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeScheduling
parseFrom(InputStream input)
static ComputeScheduling
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeScheduling
parseFrom(ByteBuffer data)
static ComputeScheduling
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ComputeScheduling>
parser()
ComputeScheduling.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ON_HOST_MAINTENANCE_FIELD_NUMBER
public static final int ON_HOST_MAINTENANCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESTART_TYPE_FIELD_NUMBER
public static final int RESTART_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NODE_AFFINITIES_FIELD_NUMBER
public static final int NODE_AFFINITIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_NODE_CPUS_FIELD_NUMBER
public static final int MIN_NODE_CPUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
getOnHostMaintenanceValue
public int getOnHostMaintenanceValue()
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
.google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance on_host_maintenance = 1;
- Specified by:
getOnHostMaintenanceValue
in interfaceComputeSchedulingOrBuilder
- Returns:
- The enum numeric value on the wire for onHostMaintenance.
-
getOnHostMaintenance
public ComputeScheduling.OnHostMaintenance getOnHostMaintenance()
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
.google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance on_host_maintenance = 1;
- Specified by:
getOnHostMaintenance
in interfaceComputeSchedulingOrBuilder
- Returns:
- The onHostMaintenance.
-
getRestartTypeValue
public int getRestartTypeValue()
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
.google.cloud.vmmigration.v1.ComputeScheduling.RestartType restart_type = 5;
- Specified by:
getRestartTypeValue
in interfaceComputeSchedulingOrBuilder
- Returns:
- The enum numeric value on the wire for restartType.
-
getRestartType
public ComputeScheduling.RestartType getRestartType()
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
.google.cloud.vmmigration.v1.ComputeScheduling.RestartType restart_type = 5;
- Specified by:
getRestartType
in interfaceComputeSchedulingOrBuilder
- Returns:
- The restartType.
-
getNodeAffinitiesList
public List<SchedulingNodeAffinity> getNodeAffinitiesList()
A set of node affinity and anti-affinity configurations for sole tenant nodes.
repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;
- Specified by:
getNodeAffinitiesList
in interfaceComputeSchedulingOrBuilder
-
getNodeAffinitiesOrBuilderList
public List<? extends SchedulingNodeAffinityOrBuilder> getNodeAffinitiesOrBuilderList()
A set of node affinity and anti-affinity configurations for sole tenant nodes.
repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;
- Specified by:
getNodeAffinitiesOrBuilderList
in interfaceComputeSchedulingOrBuilder
-
getNodeAffinitiesCount
public int getNodeAffinitiesCount()
A set of node affinity and anti-affinity configurations for sole tenant nodes.
repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;
- Specified by:
getNodeAffinitiesCount
in interfaceComputeSchedulingOrBuilder
-
getNodeAffinities
public SchedulingNodeAffinity getNodeAffinities(int index)
A set of node affinity and anti-affinity configurations for sole tenant nodes.
repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;
- Specified by:
getNodeAffinities
in interfaceComputeSchedulingOrBuilder
-
getNodeAffinitiesOrBuilder
public SchedulingNodeAffinityOrBuilder getNodeAffinitiesOrBuilder(int index)
A set of node affinity and anti-affinity configurations for sole tenant nodes.
repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;
- Specified by:
getNodeAffinitiesOrBuilder
in interfaceComputeSchedulingOrBuilder
-
getMinNodeCpus
public int getMinNodeCpus()
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
int32 min_node_cpus = 4;
- Specified by:
getMinNodeCpus
in interfaceComputeSchedulingOrBuilder
- Returns:
- The minNodeCpus.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ComputeScheduling parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeScheduling parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeScheduling parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeScheduling parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeScheduling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeScheduling parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeScheduling parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ComputeScheduling parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ComputeScheduling parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ComputeScheduling parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ComputeScheduling parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ComputeScheduling parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ComputeScheduling.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ComputeScheduling.Builder newBuilder()
-
newBuilder
public static ComputeScheduling.Builder newBuilder(ComputeScheduling prototype)
-
toBuilder
public ComputeScheduling.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ComputeScheduling.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ComputeScheduling getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ComputeScheduling> parser()
-
getParserForType
public com.google.protobuf.Parser<ComputeScheduling> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ComputeScheduling getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-