All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.android.emulator.control.VmRunState Maven / Gradle / Ivy

There is a newer version: 0.5.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: emulator_controller.proto

// Protobuf Java Version: 3.25.0
package com.android.emulator.control;

/**
 * 
 * A Run State that describes the state of the Virtual Machine.
 * 
* * Protobuf type {@code android.emulation.control.VmRunState} */ public final class VmRunState extends com.google.protobuf.GeneratedMessageLite< VmRunState, VmRunState.Builder> implements // @@protoc_insertion_point(message_implements:android.emulation.control.VmRunState) VmRunStateOrBuilder { private VmRunState() { } /** * Protobuf enum {@code android.emulation.control.VmRunState.RunState} */ public enum RunState implements com.google.protobuf.Internal.EnumLite { /** *
     * The emulator is in an unknown state. You cannot transition to this state.
     * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
     * Guest is actively running. You can transition to this state from the
     * paused state.
     * 
* * RUNNING = 1; */ RUNNING(1), /** *
     * Guest is paused to load a snapshot. You cannot transition to this state.
     * 
* * RESTORE_VM = 2; */ RESTORE_VM(2), /** *
     * Guest has been paused. Transitioning to this state will pause the
     * emulator the guest will not be consuming any cpu cycles.
     * 
* * PAUSED = 3; */ PAUSED(3), /** *
     * Guest is paused to take or export a snapshot. You cannot
     * transition to this state.
     * 
* * SAVE_VM = 4; */ SAVE_VM(4), /** *
     * System shutdown, note that it is similar to power off. It tries to set
     * the system status and notify guest. The system is likely going to
     * disappear soon and do proper cleanup of resources, possibly taking
     * a snapshot. This is the same behavior as closing the emulator by clicking
     * the X (close) in the user interface.
     * 
* * SHUTDOWN = 5; */ SHUTDOWN(5), /** *
     * Immediately terminate the emulator. No resource cleanup will take place.
     * There is a good change to corrupt the system.
     * 
* * TERMINATE = 7; */ TERMINATE(7), /** *
     * Will cause the emulator to reset. This is not a state you can observe.
     * 
* * RESET = 9; */ RESET(9), /** *
     * Guest experienced some error state, you cannot transition to this state.
     * 
* * INTERNAL_ERROR = 10; */ INTERNAL_ERROR(10), UNRECOGNIZED(-1), ; /** *
     * The emulator is in an unknown state. You cannot transition to this state.
     * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
     * Guest is actively running. You can transition to this state from the
     * paused state.
     * 
* * RUNNING = 1; */ public static final int RUNNING_VALUE = 1; /** *
     * Guest is paused to load a snapshot. You cannot transition to this state.
     * 
* * RESTORE_VM = 2; */ public static final int RESTORE_VM_VALUE = 2; /** *
     * Guest has been paused. Transitioning to this state will pause the
     * emulator the guest will not be consuming any cpu cycles.
     * 
* * PAUSED = 3; */ public static final int PAUSED_VALUE = 3; /** *
     * Guest is paused to take or export a snapshot. You cannot
     * transition to this state.
     * 
* * SAVE_VM = 4; */ public static final int SAVE_VM_VALUE = 4; /** *
     * System shutdown, note that it is similar to power off. It tries to set
     * the system status and notify guest. The system is likely going to
     * disappear soon and do proper cleanup of resources, possibly taking
     * a snapshot. This is the same behavior as closing the emulator by clicking
     * the X (close) in the user interface.
     * 
* * SHUTDOWN = 5; */ public static final int SHUTDOWN_VALUE = 5; /** *
     * Immediately terminate the emulator. No resource cleanup will take place.
     * There is a good change to corrupt the system.
     * 
* * TERMINATE = 7; */ public static final int TERMINATE_VALUE = 7; /** *
     * Will cause the emulator to reset. This is not a state you can observe.
     * 
* * RESET = 9; */ public static final int RESET_VALUE = 9; /** *
     * Guest experienced some error state, you cannot transition to this state.
     * 
* * INTERNAL_ERROR = 10; */ public static final int INTERNAL_ERROR_VALUE = 10; @java.lang.Override public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RunState valueOf(int value) { return forNumber(value); } public static RunState forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return RUNNING; case 2: return RESTORE_VM; case 3: return PAUSED; case 4: return SAVE_VM; case 5: return SHUTDOWN; case 7: return TERMINATE; case 9: return RESET; case 10: return INTERNAL_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RunState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public RunState findValueByNumber(int number) { return RunState.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return RunStateVerifier.INSTANCE; } private static final class RunStateVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new RunStateVerifier(); @java.lang.Override public boolean isInRange(int number) { return RunState.forNumber(number) != null; } }; private final int value; private RunState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:android.emulation.control.VmRunState.RunState) } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** * .android.emulation.control.VmRunState.RunState state = 1; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * .android.emulation.control.VmRunState.RunState state = 1; * @return The state. */ @java.lang.Override public com.android.emulator.control.VmRunState.RunState getState() { com.android.emulator.control.VmRunState.RunState result = com.android.emulator.control.VmRunState.RunState.forNumber(state_); return result == null ? com.android.emulator.control.VmRunState.RunState.UNRECOGNIZED : result; } /** * .android.emulation.control.VmRunState.RunState state = 1; * @param value The enum numeric value on the wire for state to set. */ private void setStateValue(int value) { state_ = value; } /** * .android.emulation.control.VmRunState.RunState state = 1; * @param value The state to set. */ private void setState(com.android.emulator.control.VmRunState.RunState value) { state_ = value.getNumber(); } /** * .android.emulation.control.VmRunState.RunState state = 1; */ private void clearState() { state_ = 0; } public static com.android.emulator.control.VmRunState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.VmRunState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.android.emulator.control.VmRunState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.VmRunState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.android.emulator.control.VmRunState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.VmRunState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.android.emulator.control.VmRunState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.VmRunState parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.android.emulator.control.VmRunState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.android.emulator.control.VmRunState parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.android.emulator.control.VmRunState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.VmRunState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.android.emulator.control.VmRunState prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * A Run State that describes the state of the Virtual Machine.
   * 
* * Protobuf type {@code android.emulation.control.VmRunState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.android.emulator.control.VmRunState, Builder> implements // @@protoc_insertion_point(builder_implements:android.emulation.control.VmRunState) com.android.emulator.control.VmRunStateOrBuilder { // Construct using com.android.emulator.control.VmRunState.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .android.emulation.control.VmRunState.RunState state = 1; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return instance.getStateValue(); } /** * .android.emulation.control.VmRunState.RunState state = 1; * @param value The state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { copyOnWrite(); instance.setStateValue(value); return this; } /** * .android.emulation.control.VmRunState.RunState state = 1; * @return The state. */ @java.lang.Override public com.android.emulator.control.VmRunState.RunState getState() { return instance.getState(); } /** * .android.emulation.control.VmRunState.RunState state = 1; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setState(com.android.emulator.control.VmRunState.RunState value) { copyOnWrite(); instance.setState(value); return this; } /** * .android.emulation.control.VmRunState.RunState state = 1; * @return This builder for chaining. */ public Builder clearState() { copyOnWrite(); instance.clearState(); return this; } // @@protoc_insertion_point(builder_scope:android.emulation.control.VmRunState) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.android.emulator.control.VmRunState(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "state_", }; java.lang.String info = "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\f"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.android.emulator.control.VmRunState.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:android.emulation.control.VmRunState) private static final com.android.emulator.control.VmRunState DEFAULT_INSTANCE; static { VmRunState defaultInstance = new VmRunState(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( VmRunState.class, defaultInstance); } public static com.android.emulator.control.VmRunState getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy