Enum Class ResultCode

java.lang.Object
java.lang.Enum<ResultCode>
com.teamdev.jxbrowser.cast.rpc.ResultCode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ResultCode>, Constable

@Generated("Generated by the protocol buffer compiler") public enum ResultCode extends Enum<ResultCode> implements com.google.protobuf.ProtocolMessageEnum
The result code that is obtained after creating a cast session.

  • Enum Constant Details

    • RESULT_CODE_UNSPECIFIED

      public static final ResultCode RESULT_CODE_UNSPECIFIED
      Reserved value.

    • OK

      public static final ResultCode OK
      The cast session successfully started.

    • TIMED_OUT

      public static final ResultCode TIMED_OUT
      The cast session has not been created within the specified time.

    • CAST_SESSION_NOT_FOUND

      public static final ResultCode CAST_SESSION_NOT_FOUND
      The cast session was not found.

    • RECEIVER_NOT_FOUND

      public static final ResultCode RECEIVER_NOT_FOUND
      The receiver was not found when starting the cast session.

    • NO_SUPPORTED_PROVIDER

      public static final ResultCode NO_SUPPORTED_PROVIDER
      The media source provider is not supported.

    • CANCELLED

      public static final ResultCode CANCELLED
      The cast session has been canceled, i.e. via the "Cancel" button in the screen picker.

    • CAST_SESSION_ALREADY_EXISTS

      public static final ResultCode CAST_SESSION_ALREADY_EXISTS
      The cast session can not be created since it already exists.

    • DESKTOP_PICKER_FAILED

      public static final ResultCode DESKTOP_PICKER_FAILED
      An attempt to show the screen picker has failed.

    • UNRECOGNIZED

      public static final ResultCode UNRECOGNIZED
  • Field Details

    • RESULT_CODE_UNSPECIFIED_VALUE

      public static final int RESULT_CODE_UNSPECIFIED_VALUE
      Reserved value.

      See Also:
    • OK_VALUE

      public static final int OK_VALUE
      The cast session successfully started.

      See Also:
    • TIMED_OUT_VALUE

      public static final int TIMED_OUT_VALUE
      The cast session has not been created within the specified time.

      See Also:
    • CAST_SESSION_NOT_FOUND_VALUE

      public static final int CAST_SESSION_NOT_FOUND_VALUE
      The cast session was not found.

      See Also:
    • RECEIVER_NOT_FOUND_VALUE

      public static final int RECEIVER_NOT_FOUND_VALUE
      The receiver was not found when starting the cast session.

      See Also:
    • NO_SUPPORTED_PROVIDER_VALUE

      public static final int NO_SUPPORTED_PROVIDER_VALUE
      The media source provider is not supported.

      See Also:
    • CANCELLED_VALUE

      public static final int CANCELLED_VALUE
      The cast session has been canceled, i.e. via the "Cancel" button in the screen picker.

      See Also:
    • CAST_SESSION_ALREADY_EXISTS_VALUE

      public static final int CAST_SESSION_ALREADY_EXISTS_VALUE
      The cast session can not be created since it already exists.

      See Also:
    • DESKTOP_PICKER_FAILED_VALUE

      public static final int DESKTOP_PICKER_FAILED_VALUE
      An attempt to show the screen picker has failed.

      See Also:
  • Method Details

    • values

      public static ResultCode[] 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 ResultCode 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 ResultCode 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 ResultCode 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<ResultCode> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ResultCode 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