Class 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 type google.cloud.vmmigration.v1.ComputeScheduling
    See Also:
    Serialized Form
    • 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 class com.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 class com.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 interface ComputeSchedulingOrBuilder
        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 interface ComputeSchedulingOrBuilder
        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 interface ComputeSchedulingOrBuilder
        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 interface ComputeSchedulingOrBuilder
        Returns:
        The restartType.
      • 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 interface ComputeSchedulingOrBuilder
      • 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 interface ComputeSchedulingOrBuilder
        Returns:
        The minNodeCpus.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ComputeScheduling.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ComputeScheduling.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ComputeScheduling.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ComputeScheduling> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ComputeScheduling getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder