Package ru.tinkoff.piapi.contract.v1
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionОблигация.Валюта.Exchange-traded fund.Фьючерс.Опцион.Акция.Структурная нота.INSTRUMENT_TYPE_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intОблигация.static final intВалюта.static final intExchange-traded fund.static final intФьючерс.static final intОпцион.static final intАкция.static final intСтруктурная нота.static final intINSTRUMENT_TYPE_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<InstrumentType>static InstrumentTypevalueOf(int value) Deprecated.static InstrumentTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static InstrumentTypeReturns the enum constant of this type with the specified name.static InstrumentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTRUMENT_TYPE_UNSPECIFIED
INSTRUMENT_TYPE_UNSPECIFIED = 0; -
INSTRUMENT_TYPE_BOND
Облигация.
INSTRUMENT_TYPE_BOND = 1; -
INSTRUMENT_TYPE_SHARE
Акция.
INSTRUMENT_TYPE_SHARE = 2; -
INSTRUMENT_TYPE_CURRENCY
Валюта.
INSTRUMENT_TYPE_CURRENCY = 3; -
INSTRUMENT_TYPE_ETF
Exchange-traded fund. Фонд.
INSTRUMENT_TYPE_ETF = 4; -
INSTRUMENT_TYPE_FUTURES
Фьючерс.
INSTRUMENT_TYPE_FUTURES = 5; -
INSTRUMENT_TYPE_SP
Структурная нота.
INSTRUMENT_TYPE_SP = 6; -
INSTRUMENT_TYPE_OPTION
Опцион.
INSTRUMENT_TYPE_OPTION = 7; -
UNRECOGNIZED
-
-
Field Details
-
INSTRUMENT_TYPE_UNSPECIFIED_VALUE
public static final int INSTRUMENT_TYPE_UNSPECIFIED_VALUEINSTRUMENT_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_VALUEExchange-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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-