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 classComputeScheduling.BuilderScheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.static classComputeScheduling.OnHostMaintenanceProtobuf enumgoogle.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenancestatic classComputeScheduling.RestartTypeDefines 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 intMIN_NODE_CPUS_FIELD_NUMBERstatic intNODE_AFFINITIES_FIELD_NUMBERstatic intON_HOST_MAINTENANCE_FIELD_NUMBERstatic intRESTART_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ComputeSchedulinggetDefaultInstance()ComputeSchedulinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetMinNodeCpus()The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.SchedulingNodeAffinitygetNodeAffinities(int index)A set of node affinity and anti-affinity configurations for sole tenant nodes.intgetNodeAffinitiesCount()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.SchedulingNodeAffinityOrBuildergetNodeAffinitiesOrBuilder(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.OnHostMaintenancegetOnHostMaintenance()How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.intgetOnHostMaintenanceValue()How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.com.google.protobuf.Parser<ComputeScheduling>getParserForType()ComputeScheduling.RestartTypegetRestartType()Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).intgetRestartTypeValue()Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ComputeScheduling.BuildernewBuilder()static ComputeScheduling.BuildernewBuilder(ComputeScheduling prototype)ComputeScheduling.BuildernewBuilderForType()protected ComputeScheduling.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ComputeSchedulingparseDelimitedFrom(InputStream input)static ComputeSchedulingparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeSchedulingparseFrom(byte[] data)static ComputeSchedulingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeSchedulingparseFrom(com.google.protobuf.ByteString data)static ComputeSchedulingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeSchedulingparseFrom(com.google.protobuf.CodedInputStream input)static ComputeSchedulingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeSchedulingparseFrom(InputStream input)static ComputeSchedulingparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeSchedulingparseFrom(ByteBuffer data)static ComputeSchedulingparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ComputeScheduling>parser()ComputeScheduling.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getOnHostMaintenanceValuein 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:
getOnHostMaintenancein 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:
getRestartTypeValuein 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:
getRestartTypein 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:
getNodeAffinitiesListin 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:
getNodeAffinitiesOrBuilderListin 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:
getNodeAffinitiesCountin 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:
getNodeAffinitiesin 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:
getNodeAffinitiesOrBuilderin 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:
getMinNodeCpusin interfaceComputeSchedulingOrBuilder- Returns:
- The minNodeCpus.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ComputeScheduling.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ComputeScheduling getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-