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

com.android.emulator.control.VmConfiguration 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;

/**
 * 
 * Information about the hypervisor that is currently in use.
 * 
* * Protobuf type {@code android.emulation.control.VmConfiguration} */ public final class VmConfiguration extends com.google.protobuf.GeneratedMessageLite< VmConfiguration, VmConfiguration.Builder> implements // @@protoc_insertion_point(message_implements:android.emulation.control.VmConfiguration) VmConfigurationOrBuilder { private VmConfiguration() { } /** * Protobuf enum {@code android.emulation.control.VmConfiguration.VmHypervisorType} */ public enum VmHypervisorType implements com.google.protobuf.Internal.EnumLite { /** *
     * An unknown hypervisor
     * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
     * No hypervisor is in use. This usually means that the guest is
     * running on a different CPU than the host, or you are using a
     * platform where no hypervisor is available.
     * 
* * NONE = 1; */ NONE(1), /** *
     * The Kernel based Virtual Machine
     * (https://www.linux-kvm.org/page/Main_Page)
     * 
* * KVM = 2; */ KVM(2), /** *
     * Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
     * https://github.com/intel/haxm
     * 
* * HAXM = 3; */ HAXM(3), /** *
     * Hypervisor Framework.
     * https://developer.apple.com/documentation/hypervisor
     * 
* * HVF = 4; */ HVF(4), /** *
     * Window Hypervisor Platform
     * https://docs.microsoft.com/en-us/virtualization/api/
     * 
* * WHPX = 5; */ WHPX(5), /** * GVM = 6; */ GVM(6), UNRECOGNIZED(-1), ; /** *
     * An unknown hypervisor
     * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
     * No hypervisor is in use. This usually means that the guest is
     * running on a different CPU than the host, or you are using a
     * platform where no hypervisor is available.
     * 
* * NONE = 1; */ public static final int NONE_VALUE = 1; /** *
     * The Kernel based Virtual Machine
     * (https://www.linux-kvm.org/page/Main_Page)
     * 
* * KVM = 2; */ public static final int KVM_VALUE = 2; /** *
     * Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
     * https://github.com/intel/haxm
     * 
* * HAXM = 3; */ public static final int HAXM_VALUE = 3; /** *
     * Hypervisor Framework.
     * https://developer.apple.com/documentation/hypervisor
     * 
* * HVF = 4; */ public static final int HVF_VALUE = 4; /** *
     * Window Hypervisor Platform
     * https://docs.microsoft.com/en-us/virtualization/api/
     * 
* * WHPX = 5; */ public static final int WHPX_VALUE = 5; /** * GVM = 6; */ public static final int GVM_VALUE = 6; @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 VmHypervisorType valueOf(int value) { return forNumber(value); } public static VmHypervisorType forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return NONE; case 2: return KVM; case 3: return HAXM; case 4: return HVF; case 5: return WHPX; case 6: return GVM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VmHypervisorType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public VmHypervisorType findValueByNumber(int number) { return VmHypervisorType.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return VmHypervisorTypeVerifier.INSTANCE; } private static final class VmHypervisorTypeVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new VmHypervisorTypeVerifier(); @java.lang.Override public boolean isInRange(int number) { return VmHypervisorType.forNumber(number) != null; } }; private final int value; private VmHypervisorType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:android.emulation.control.VmConfiguration.VmHypervisorType) } public static final int HYPERVISORTYPE_FIELD_NUMBER = 1; private int hypervisorType_; /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @return The enum numeric value on the wire for hypervisorType. */ @java.lang.Override public int getHypervisorTypeValue() { return hypervisorType_; } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @return The hypervisorType. */ @java.lang.Override public com.android.emulator.control.VmConfiguration.VmHypervisorType getHypervisorType() { com.android.emulator.control.VmConfiguration.VmHypervisorType result = com.android.emulator.control.VmConfiguration.VmHypervisorType.forNumber(hypervisorType_); return result == null ? com.android.emulator.control.VmConfiguration.VmHypervisorType.UNRECOGNIZED : result; } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @param value The enum numeric value on the wire for hypervisorType to set. */ private void setHypervisorTypeValue(int value) { hypervisorType_ = value; } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @param value The hypervisorType to set. */ private void setHypervisorType(com.android.emulator.control.VmConfiguration.VmHypervisorType value) { hypervisorType_ = value.getNumber(); } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; */ private void clearHypervisorType() { hypervisorType_ = 0; } public static final int NUMBEROFCPUCORES_FIELD_NUMBER = 2; private int numberOfCpuCores_; /** * int32 numberOfCpuCores = 2; * @return The numberOfCpuCores. */ @java.lang.Override public int getNumberOfCpuCores() { return numberOfCpuCores_; } /** * int32 numberOfCpuCores = 2; * @param value The numberOfCpuCores to set. */ private void setNumberOfCpuCores(int value) { numberOfCpuCores_ = value; } /** * int32 numberOfCpuCores = 2; */ private void clearNumberOfCpuCores() { numberOfCpuCores_ = 0; } public static final int RAMSIZEBYTES_FIELD_NUMBER = 3; private long ramSizeBytes_; /** * int64 ramSizeBytes = 3; * @return The ramSizeBytes. */ @java.lang.Override public long getRamSizeBytes() { return ramSizeBytes_; } /** * int64 ramSizeBytes = 3; * @param value The ramSizeBytes to set. */ private void setRamSizeBytes(long value) { ramSizeBytes_ = value; } /** * int64 ramSizeBytes = 3; */ private void clearRamSizeBytes() { ramSizeBytes_ = 0L; } public static com.android.emulator.control.VmConfiguration 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.VmConfiguration 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.VmConfiguration 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.VmConfiguration 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.VmConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.VmConfiguration 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.VmConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.VmConfiguration 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.VmConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.android.emulator.control.VmConfiguration 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.VmConfiguration 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.VmConfiguration 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.VmConfiguration prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * Information about the hypervisor that is currently in use.
   * 
* * Protobuf type {@code android.emulation.control.VmConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.android.emulator.control.VmConfiguration, Builder> implements // @@protoc_insertion_point(builder_implements:android.emulation.control.VmConfiguration) com.android.emulator.control.VmConfigurationOrBuilder { // Construct using com.android.emulator.control.VmConfiguration.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @return The enum numeric value on the wire for hypervisorType. */ @java.lang.Override public int getHypervisorTypeValue() { return instance.getHypervisorTypeValue(); } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @param value The hypervisorType to set. * @return This builder for chaining. */ public Builder setHypervisorTypeValue(int value) { copyOnWrite(); instance.setHypervisorTypeValue(value); return this; } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @return The hypervisorType. */ @java.lang.Override public com.android.emulator.control.VmConfiguration.VmHypervisorType getHypervisorType() { return instance.getHypervisorType(); } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @param value The enum numeric value on the wire for hypervisorType to set. * @return This builder for chaining. */ public Builder setHypervisorType(com.android.emulator.control.VmConfiguration.VmHypervisorType value) { copyOnWrite(); instance.setHypervisorType(value); return this; } /** * .android.emulation.control.VmConfiguration.VmHypervisorType hypervisorType = 1; * @return This builder for chaining. */ public Builder clearHypervisorType() { copyOnWrite(); instance.clearHypervisorType(); return this; } /** * int32 numberOfCpuCores = 2; * @return The numberOfCpuCores. */ @java.lang.Override public int getNumberOfCpuCores() { return instance.getNumberOfCpuCores(); } /** * int32 numberOfCpuCores = 2; * @param value The numberOfCpuCores to set. * @return This builder for chaining. */ public Builder setNumberOfCpuCores(int value) { copyOnWrite(); instance.setNumberOfCpuCores(value); return this; } /** * int32 numberOfCpuCores = 2; * @return This builder for chaining. */ public Builder clearNumberOfCpuCores() { copyOnWrite(); instance.clearNumberOfCpuCores(); return this; } /** * int64 ramSizeBytes = 3; * @return The ramSizeBytes. */ @java.lang.Override public long getRamSizeBytes() { return instance.getRamSizeBytes(); } /** * int64 ramSizeBytes = 3; * @param value The ramSizeBytes to set. * @return This builder for chaining. */ public Builder setRamSizeBytes(long value) { copyOnWrite(); instance.setRamSizeBytes(value); return this; } /** * int64 ramSizeBytes = 3; * @return This builder for chaining. */ public Builder clearRamSizeBytes() { copyOnWrite(); instance.clearRamSizeBytes(); return this; } // @@protoc_insertion_point(builder_scope:android.emulation.control.VmConfiguration) } @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.VmConfiguration(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "hypervisorType_", "numberOfCpuCores_", "ramSizeBytes_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u0004" + "\u0003\u0002"; 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.VmConfiguration.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.VmConfiguration) private static final com.android.emulator.control.VmConfiguration DEFAULT_INSTANCE; static { VmConfiguration defaultInstance = new VmConfiguration(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( VmConfiguration.class, defaultInstance); } public static com.android.emulator.control.VmConfiguration 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