Class ManagedInstance

  • All Implemented Interfaces:
    ManagedInstanceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ManagedInstance
    extends com.google.protobuf.GeneratedMessageV3
    implements ManagedInstanceOrBuilder
     A Managed Instance resource.
     
    Protobuf type google.cloud.compute.v1.ManagedInstance
    See Also:
    Serialized Form
    • Field Detail

      • CURRENT_ACTION_FIELD_NUMBER

        public static final int CURRENT_ACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSTANCE_HEALTH_FIELD_NUMBER

        public static final int INSTANCE_HEALTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSTANCE_STATUS_FIELD_NUMBER

        public static final int INSTANCE_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_ATTEMPT_FIELD_NUMBER

        public static final int LAST_ATTEMPT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRESERVED_STATE_FROM_CONFIG_FIELD_NUMBER

        public static final int PRESERVED_STATE_FROM_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRESERVED_STATE_FROM_POLICY_FIELD_NUMBER

        public static final int PRESERVED_STATE_FROM_POLICY_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
      • hasCurrentAction

        public boolean hasCurrentAction()
         [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
         Check the CurrentAction enum for the list of possible values.
         
        optional string current_action = 178475964;
        Specified by:
        hasCurrentAction in interface ManagedInstanceOrBuilder
        Returns:
        Whether the currentAction field is set.
      • getCurrentAction

        public String getCurrentAction()
         [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
         Check the CurrentAction enum for the list of possible values.
         
        optional string current_action = 178475964;
        Specified by:
        getCurrentAction in interface ManagedInstanceOrBuilder
        Returns:
        The currentAction.
      • getCurrentActionBytes

        public com.google.protobuf.ByteString getCurrentActionBytes()
         [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
         Check the CurrentAction enum for the list of possible values.
         
        optional string current_action = 178475964;
        Specified by:
        getCurrentActionBytes in interface ManagedInstanceOrBuilder
        Returns:
        The bytes for currentAction.
      • hasId

        public boolean hasId()
         [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface ManagedInstanceOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface ManagedInstanceOrBuilder
        Returns:
        The id.
      • hasInstance

        public boolean hasInstance()
         [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
         
        optional string instance = 18257045;
        Specified by:
        hasInstance in interface ManagedInstanceOrBuilder
        Returns:
        Whether the instance field is set.
      • getInstance

        public String getInstance()
         [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
         
        optional string instance = 18257045;
        Specified by:
        getInstance in interface ManagedInstanceOrBuilder
        Returns:
        The instance.
      • getInstanceBytes

        public com.google.protobuf.ByteString getInstanceBytes()
         [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
         
        optional string instance = 18257045;
        Specified by:
        getInstanceBytes in interface ManagedInstanceOrBuilder
        Returns:
        The bytes for instance.
      • getInstanceHealthCount

        public int getInstanceHealthCount()
         [Output Only] Health state of the instance per health-check.
         
        repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
        Specified by:
        getInstanceHealthCount in interface ManagedInstanceOrBuilder
      • hasInstanceStatus

        public boolean hasInstanceStatus()
         [Output Only] The status of the instance. This field is empty when the instance does not exist.
         Check the InstanceStatus enum for the list of possible values.
         
        optional string instance_status = 174577372;
        Specified by:
        hasInstanceStatus in interface ManagedInstanceOrBuilder
        Returns:
        Whether the instanceStatus field is set.
      • getInstanceStatus

        public String getInstanceStatus()
         [Output Only] The status of the instance. This field is empty when the instance does not exist.
         Check the InstanceStatus enum for the list of possible values.
         
        optional string instance_status = 174577372;
        Specified by:
        getInstanceStatus in interface ManagedInstanceOrBuilder
        Returns:
        The instanceStatus.
      • getInstanceStatusBytes

        public com.google.protobuf.ByteString getInstanceStatusBytes()
         [Output Only] The status of the instance. This field is empty when the instance does not exist.
         Check the InstanceStatus enum for the list of possible values.
         
        optional string instance_status = 174577372;
        Specified by:
        getInstanceStatusBytes in interface ManagedInstanceOrBuilder
        Returns:
        The bytes for instanceStatus.
      • hasLastAttempt

        public boolean hasLastAttempt()
         [Output Only] Information about the last attempt to create or delete the instance.
         
        optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
        Specified by:
        hasLastAttempt in interface ManagedInstanceOrBuilder
        Returns:
        Whether the lastAttempt field is set.
      • getLastAttempt

        public ManagedInstanceLastAttempt getLastAttempt()
         [Output Only] Information about the last attempt to create or delete the instance.
         
        optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
        Specified by:
        getLastAttempt in interface ManagedInstanceOrBuilder
        Returns:
        The lastAttempt.
      • hasPreservedStateFromConfig

        public boolean hasPreservedStateFromConfig()
         [Output Only] Preserved state applied from per-instance config for this instance.
         
        optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
        Specified by:
        hasPreservedStateFromConfig in interface ManagedInstanceOrBuilder
        Returns:
        Whether the preservedStateFromConfig field is set.
      • getPreservedStateFromConfig

        public PreservedState getPreservedStateFromConfig()
         [Output Only] Preserved state applied from per-instance config for this instance.
         
        optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
        Specified by:
        getPreservedStateFromConfig in interface ManagedInstanceOrBuilder
        Returns:
        The preservedStateFromConfig.
      • hasPreservedStateFromPolicy

        public boolean hasPreservedStateFromPolicy()
         [Output Only] Preserved state generated based on stateful policy for this instance.
         
        optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
        Specified by:
        hasPreservedStateFromPolicy in interface ManagedInstanceOrBuilder
        Returns:
        Whether the preservedStateFromPolicy field is set.
      • getPreservedStateFromPolicy

        public PreservedState getPreservedStateFromPolicy()
         [Output Only] Preserved state generated based on stateful policy for this instance.
         
        optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
        Specified by:
        getPreservedStateFromPolicy in interface ManagedInstanceOrBuilder
        Returns:
        The preservedStateFromPolicy.
      • hasVersion

        public boolean hasVersion()
         [Output Only] Intended version of this instance.
         
        optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
        Specified by:
        hasVersion in interface ManagedInstanceOrBuilder
        Returns:
        Whether the version field is set.
      • 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 ManagedInstance parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ManagedInstance parseFrom​(ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ManagedInstance parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ManagedInstance parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ManagedInstance parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ManagedInstance parseFrom​(byte[] data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ManagedInstance parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public static com.google.protobuf.Parser<ManagedInstance> parser()
      • getParserForType

        public com.google.protobuf.Parser<ManagedInstance> 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 ManagedInstance getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder