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

com.craxiom.messaging.phonestate.SimState Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: com/craxiom/messaging/phonestate/simstate/sim_state.proto
// Protobuf Java Version: 4.27.3

package com.craxiom.messaging.phonestate;

/**
 * 
 *
 * This enum defines the SIM State field of the Phone State message.
 *
 * The values from this enum are taken directly from android.telephony.TelephonyManager.SimState and should be kept in
 * sync with those values. Even the numbers line up exactly, which makes conversion easier.
 * 
* * Protobuf enum {@code com.craxiom.messaging.phonestate.simstate.SimState} */ public enum SimState implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * ABSENT = 1; */ ABSENT(1), /** * PIN_REQUIRED = 2; */ PIN_REQUIRED(2), /** * PUK_REQUIRED = 3; */ PUK_REQUIRED(3), /** * NETWORK_LOCKED = 4; */ NETWORK_LOCKED(4), /** * READY = 5; */ READY(5), /** * NOT_READY = 6; */ NOT_READY(6), /** * PERM_DISABLED = 7; */ PERM_DISABLED(7), /** * CARD_IO_ERROR = 8; */ CARD_IO_ERROR(8), /** * CARD_RESTRICTED = 9; */ CARD_RESTRICTED(9), /** * LOADED = 10; */ LOADED(10), /** * PRESENT = 11; */ PRESENT(11), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 3, /* suffix= */ "", SimState.class.getName()); } /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * ABSENT = 1; */ public static final int ABSENT_VALUE = 1; /** * PIN_REQUIRED = 2; */ public static final int PIN_REQUIRED_VALUE = 2; /** * PUK_REQUIRED = 3; */ public static final int PUK_REQUIRED_VALUE = 3; /** * NETWORK_LOCKED = 4; */ public static final int NETWORK_LOCKED_VALUE = 4; /** * READY = 5; */ public static final int READY_VALUE = 5; /** * NOT_READY = 6; */ public static final int NOT_READY_VALUE = 6; /** * PERM_DISABLED = 7; */ public static final int PERM_DISABLED_VALUE = 7; /** * CARD_IO_ERROR = 8; */ public static final int CARD_IO_ERROR_VALUE = 8; /** * CARD_RESTRICTED = 9; */ public static final int CARD_RESTRICTED_VALUE = 9; /** * LOADED = 10; */ public static final int LOADED_VALUE = 10; /** * PRESENT = 11; */ public static final int PRESENT_VALUE = 11; 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 numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SimState valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SimState forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return ABSENT; case 2: return PIN_REQUIRED; case 3: return PUK_REQUIRED; case 4: return NETWORK_LOCKED; case 5: return READY; case 6: return NOT_READY; case 7: return PERM_DISABLED; case 8: return CARD_IO_ERROR; case 9: return CARD_RESTRICTED; case 10: return LOADED; case 11: return PRESENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SimState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SimState findValueByNumber(int number) { return SimState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.craxiom.messaging.phonestate.SimStateOuterClass.getDescriptor().getEnumTypes().get(0); } private static final SimState[] VALUES = values(); public static SimState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SimState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.craxiom.messaging.phonestate.simstate.SimState) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy