Package ru.tinkoff.piapi.contract.v1
Enum SubscriptionStatus
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SubscriptionStatus>
public enum SubscriptionStatus
extends Enum<SubscriptionStatus>
implements com.google.protobuf.ProtocolMessageEnum
Результат подписки.Protobuf enum
tinkoff.public.invest.api.contract.v1.SubscriptionStatus-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionНекорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.Инструмент не найден.Внутренняя ошибка сервиса.Некорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://tinkoff.github.io/investAPI/marketdata#subscriptioninterval).Превышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://tinkoff.github.io/investAPI/limits/).Некорректный статус подписки, список возможных значений: [SubscriptionAction](https://tinkoff.github.io/investAPI/marketdata#subscriptionaction).Успешно.Превышен лимит на количество запросов на подписки в течение установленного отрезка времениСтатус подписки не определён. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intНекорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.static final intИнструмент не найден.static final intВнутренняя ошибка сервиса.static final intНекорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://tinkoff.github.io/investAPI/marketdata#subscriptioninterval).static final intПревышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://tinkoff.github.io/investAPI/limits/).static final intНекорректный статус подписки, список возможных значений: [SubscriptionAction](https://tinkoff.github.io/investAPI/marketdata#subscriptionaction).static final intУспешно.static final intПревышен лимит на количество запросов на подписки в течение установленного отрезка времениstatic final intСтатус подписки не определён. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionStatusforNumber(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<SubscriptionStatus>static SubscriptionStatusvalueOf(int value) Deprecated.static SubscriptionStatusvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SubscriptionStatusReturns the enum constant of this type with the specified name.static SubscriptionStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUBSCRIPTION_STATUS_UNSPECIFIED
Статус подписки не определён.
SUBSCRIPTION_STATUS_UNSPECIFIED = 0; -
SUBSCRIPTION_STATUS_SUCCESS
Успешно.
SUBSCRIPTION_STATUS_SUCCESS = 1; -
SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND
Инструмент не найден.
SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND = 2; -
SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID
Некорректный статус подписки, список возможных значений: [SubscriptionAction](https://tinkoff.github.io/investAPI/marketdata#subscriptionaction).
SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID = 3; -
SUBSCRIPTION_STATUS_DEPTH_IS_INVALID
Некорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.
SUBSCRIPTION_STATUS_DEPTH_IS_INVALID = 4; -
SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID
Некорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://tinkoff.github.io/investAPI/marketdata#subscriptioninterval).
SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID = 5; -
SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED
Превышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://tinkoff.github.io/investAPI/limits/).
SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED = 6; -
SUBSCRIPTION_STATUS_INTERNAL_ERROR
Внутренняя ошибка сервиса.
SUBSCRIPTION_STATUS_INTERNAL_ERROR = 7; -
SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS
Превышен лимит на количество запросов на подписки в течение установленного отрезка времени
SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS = 8; -
UNRECOGNIZED
-
-
Field Details
-
SUBSCRIPTION_STATUS_UNSPECIFIED_VALUE
public static final int SUBSCRIPTION_STATUS_UNSPECIFIED_VALUEСтатус подписки не определён.
SUBSCRIPTION_STATUS_UNSPECIFIED = 0;- See Also:
-
SUBSCRIPTION_STATUS_SUCCESS_VALUE
public static final int SUBSCRIPTION_STATUS_SUCCESS_VALUEУспешно.
SUBSCRIPTION_STATUS_SUCCESS = 1;- See Also:
-
SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND_VALUE
public static final int SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND_VALUEИнструмент не найден.
SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND = 2;- See Also:
-
SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID_VALUE
public static final int SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID_VALUEНекорректный статус подписки, список возможных значений: [SubscriptionAction](https://tinkoff.github.io/investAPI/marketdata#subscriptionaction).
SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID = 3;- See Also:
-
SUBSCRIPTION_STATUS_DEPTH_IS_INVALID_VALUE
public static final int SUBSCRIPTION_STATUS_DEPTH_IS_INVALID_VALUEНекорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.
SUBSCRIPTION_STATUS_DEPTH_IS_INVALID = 4;- See Also:
-
SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID_VALUE
public static final int SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID_VALUEНекорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://tinkoff.github.io/investAPI/marketdata#subscriptioninterval).
SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID = 5;- See Also:
-
SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED_VALUE
public static final int SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED_VALUEПревышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://tinkoff.github.io/investAPI/limits/).
SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED = 6;- See Also:
-
SUBSCRIPTION_STATUS_INTERNAL_ERROR_VALUE
public static final int SUBSCRIPTION_STATUS_INTERNAL_ERROR_VALUEВнутренняя ошибка сервиса.
SUBSCRIPTION_STATUS_INTERNAL_ERROR = 7;- See Also:
-
SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS_VALUE
public static final int SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS_VALUEПревышен лимит на количество запросов на подписки в течение установленного отрезка времени
SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS = 8;- 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
-