Package ru.tinkoff.piapi.contract.v1
Enum InstrumentIdType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<InstrumentIdType>
public enum InstrumentIdType
extends Enum<InstrumentIdType>
implements com.google.protobuf.ProtocolMessageEnum
Тип идентификатора инструмента. Подробнее об идентификации инструментов: [Идентификация инструментов](https://tinkoff.github.io/investAPI/faq_identification/)Protobuf enum
tinkoff.public.invest.api.contract.v1.InstrumentIdType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFigi.Идентификатор позиции.Ticker.Уникальный идентификатор.Значение не определено. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFigi.static final intИдентификатор позиции.static final intTicker.static final intУникальный идентификатор.static final intЗначение не определено. -
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentIdTypeforNumber(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<InstrumentIdType>static InstrumentIdTypevalueOf(int value) Deprecated.static InstrumentIdTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static InstrumentIdTypeReturns the enum constant of this type with the specified name.static InstrumentIdType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTRUMENT_ID_UNSPECIFIED
Значение не определено.
INSTRUMENT_ID_UNSPECIFIED = 0; -
INSTRUMENT_ID_TYPE_FIGI
Figi.
INSTRUMENT_ID_TYPE_FIGI = 1; -
INSTRUMENT_ID_TYPE_TICKER
Ticker.
INSTRUMENT_ID_TYPE_TICKER = 2; -
INSTRUMENT_ID_TYPE_UID
Уникальный идентификатор.
INSTRUMENT_ID_TYPE_UID = 3; -
INSTRUMENT_ID_TYPE_POSITION_UID
Идентификатор позиции.
INSTRUMENT_ID_TYPE_POSITION_UID = 4; -
UNRECOGNIZED
-
-
Field Details
-
INSTRUMENT_ID_UNSPECIFIED_VALUE
public static final int INSTRUMENT_ID_UNSPECIFIED_VALUEЗначение не определено.
INSTRUMENT_ID_UNSPECIFIED = 0;- See Also:
-
INSTRUMENT_ID_TYPE_FIGI_VALUE
public static final int INSTRUMENT_ID_TYPE_FIGI_VALUEFigi.
INSTRUMENT_ID_TYPE_FIGI = 1;- See Also:
-
INSTRUMENT_ID_TYPE_TICKER_VALUE
public static final int INSTRUMENT_ID_TYPE_TICKER_VALUETicker.
INSTRUMENT_ID_TYPE_TICKER = 2;- See Also:
-
INSTRUMENT_ID_TYPE_UID_VALUE
public static final int INSTRUMENT_ID_TYPE_UID_VALUEУникальный идентификатор.
INSTRUMENT_ID_TYPE_UID = 3;- See Also:
-
INSTRUMENT_ID_TYPE_POSITION_UID_VALUE
public static final int INSTRUMENT_ID_TYPE_POSITION_UID_VALUEИдентификатор позиции.
INSTRUMENT_ID_TYPE_POSITION_UID = 4;- 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
-