Enum Class AccountTypeDeviceCode

java.lang.Object
java.lang.Enum<AccountTypeDeviceCode>
com.soulfiremc.grpc.generated.AccountTypeDeviceCode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<AccountTypeDeviceCode>, Constable

@Generated public enum AccountTypeDeviceCode extends Enum<AccountTypeDeviceCode> implements com.google.protobuf.ProtocolMessageEnum
Authentication service types that use the OAuth 2.0 Device Code flow.
Used in the MCAuthService.LoginDeviceCode RPC for interactive authentication
where the user must visit a URL and enter a code on another device.
Protobuf enum soulfire.v1.AccountTypeDeviceCode
  • Enum Constant Details

    • MICROSOFT_JAVA_DEVICE_CODE

      public static final AccountTypeDeviceCode MICROSOFT_JAVA_DEVICE_CODE
      Microsoft Java Edition authentication via device code flow.
      Returns a device code that the user enters at microsoft.com/link.
      Produces an OnlineChainJavaData authentication chain upon success.
      
      MICROSOFT_JAVA_DEVICE_CODE = 0;
    • MICROSOFT_BEDROCK_DEVICE_CODE

      public static final AccountTypeDeviceCode MICROSOFT_BEDROCK_DEVICE_CODE
      Microsoft Bedrock Edition authentication via device code flow.
      Returns a device code that the user enters at microsoft.com/link.
      Produces a BedrockData authentication chain upon success.
      
      MICROSOFT_BEDROCK_DEVICE_CODE = 1;
    • UNRECOGNIZED

      public static final AccountTypeDeviceCode UNRECOGNIZED
  • Field Details

    • MICROSOFT_JAVA_DEVICE_CODE_VALUE

      public static final int MICROSOFT_JAVA_DEVICE_CODE_VALUE
      Microsoft Java Edition authentication via device code flow.
      Returns a device code that the user enters at microsoft.com/link.
      Produces an OnlineChainJavaData authentication chain upon success.
      
      MICROSOFT_JAVA_DEVICE_CODE = 0;
      See Also:
    • MICROSOFT_BEDROCK_DEVICE_CODE_VALUE

      public static final int MICROSOFT_BEDROCK_DEVICE_CODE_VALUE
      Microsoft Bedrock Edition authentication via device code flow.
      Returns a device code that the user enters at microsoft.com/link.
      Produces a BedrockData authentication chain upon success.
      
      MICROSOFT_BEDROCK_DEVICE_CODE = 1;
      See Also:
  • Method Details

    • values

      public static AccountTypeDeviceCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccountTypeDeviceCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static AccountTypeDeviceCode valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static AccountTypeDeviceCode forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<AccountTypeDeviceCode> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static AccountTypeDeviceCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null