Enum InstrumentType

java.lang.Object
java.lang.Enum<InstrumentType>
ru.tinkoff.piapi.contract.v1.InstrumentType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<InstrumentType>

public enum InstrumentType extends Enum<InstrumentType> implements com.google.protobuf.ProtocolMessageEnum
Тип инструмента.
 
Protobuf enum tinkoff.public.invest.api.contract.v1.InstrumentType
  • Enum Constant Details

    • INSTRUMENT_TYPE_UNSPECIFIED

      public static final InstrumentType INSTRUMENT_TYPE_UNSPECIFIED
      INSTRUMENT_TYPE_UNSPECIFIED = 0;
    • INSTRUMENT_TYPE_BOND

      public static final InstrumentType INSTRUMENT_TYPE_BOND
      Облигация.
       
      INSTRUMENT_TYPE_BOND = 1;
    • INSTRUMENT_TYPE_SHARE

      public static final InstrumentType INSTRUMENT_TYPE_SHARE
      Акция.
       
      INSTRUMENT_TYPE_SHARE = 2;
    • INSTRUMENT_TYPE_CURRENCY

      public static final InstrumentType INSTRUMENT_TYPE_CURRENCY
      Валюта.
       
      INSTRUMENT_TYPE_CURRENCY = 3;
    • INSTRUMENT_TYPE_ETF

      public static final InstrumentType INSTRUMENT_TYPE_ETF
      Exchange-traded fund. Фонд.
       
      INSTRUMENT_TYPE_ETF = 4;
    • INSTRUMENT_TYPE_FUTURES

      public static final InstrumentType INSTRUMENT_TYPE_FUTURES
      Фьючерс.
       
      INSTRUMENT_TYPE_FUTURES = 5;
    • INSTRUMENT_TYPE_SP

      public static final InstrumentType INSTRUMENT_TYPE_SP
      Структурная нота.
       
      INSTRUMENT_TYPE_SP = 6;
    • INSTRUMENT_TYPE_OPTION

      public static final InstrumentType INSTRUMENT_TYPE_OPTION
      Опцион.
       
      INSTRUMENT_TYPE_OPTION = 7;
    • UNRECOGNIZED

      public static final InstrumentType UNRECOGNIZED
  • Field Details

    • INSTRUMENT_TYPE_UNSPECIFIED_VALUE

      public static final int INSTRUMENT_TYPE_UNSPECIFIED_VALUE
      INSTRUMENT_TYPE_UNSPECIFIED = 0;
      See Also:
    • INSTRUMENT_TYPE_BOND_VALUE

      public static final int INSTRUMENT_TYPE_BOND_VALUE
      Облигация.
       
      INSTRUMENT_TYPE_BOND = 1;
      See Also:
    • INSTRUMENT_TYPE_SHARE_VALUE

      public static final int INSTRUMENT_TYPE_SHARE_VALUE
      Акция.
       
      INSTRUMENT_TYPE_SHARE = 2;
      See Also:
    • INSTRUMENT_TYPE_CURRENCY_VALUE

      public static final int INSTRUMENT_TYPE_CURRENCY_VALUE
      Валюта.
       
      INSTRUMENT_TYPE_CURRENCY = 3;
      See Also:
    • INSTRUMENT_TYPE_ETF_VALUE

      public static final int INSTRUMENT_TYPE_ETF_VALUE
      Exchange-traded fund. Фонд.
       
      INSTRUMENT_TYPE_ETF = 4;
      See Also:
    • INSTRUMENT_TYPE_FUTURES_VALUE

      public static final int INSTRUMENT_TYPE_FUTURES_VALUE
      Фьючерс.
       
      INSTRUMENT_TYPE_FUTURES = 5;
      See Also:
    • INSTRUMENT_TYPE_SP_VALUE

      public static final int INSTRUMENT_TYPE_SP_VALUE
      Структурная нота.
       
      INSTRUMENT_TYPE_SP = 6;
      See Also:
    • INSTRUMENT_TYPE_OPTION_VALUE

      public static final int INSTRUMENT_TYPE_OPTION_VALUE
      Опцион.
       
      INSTRUMENT_TYPE_OPTION = 7;
      See Also:
  • Method Details

    • values

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

      public static InstrumentType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 InstrumentType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static InstrumentType 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<InstrumentType> 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 InstrumentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null