All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.SubscriptionStatus Maven / Gradle / Ivy

There is a newer version: 1.27
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: marketdata.proto

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Результат подписки.
 * 
* * Protobuf enum {@code tinkoff.public.invest.api.contract.v1.SubscriptionStatus} */ public enum SubscriptionStatus implements com.google.protobuf.ProtocolMessageEnum { /** *
   *Статус подписки не определён.
   * 
* * SUBSCRIPTION_STATUS_UNSPECIFIED = 0; */ SUBSCRIPTION_STATUS_UNSPECIFIED(0), /** *
   *Успешно.
   * 
* * SUBSCRIPTION_STATUS_SUCCESS = 1; */ SUBSCRIPTION_STATUS_SUCCESS(1), /** *
   *Инструмент не найден.
   * 
* * SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND = 2; */ SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND(2), /** *
   *Некорректный статус подписки, список возможных значений: [SubscriptionAction](https://russianinvestments.github.io/investAPI/marketdata#subscriptionaction).
   * 
* * SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID = 3; */ SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID(3), /** *
   *Некорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.
   * 
* * SUBSCRIPTION_STATUS_DEPTH_IS_INVALID = 4; */ SUBSCRIPTION_STATUS_DEPTH_IS_INVALID(4), /** *
   *Некорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://russianinvestments.github.io/investAPI/marketdata#subscriptioninterval).
   * 
* * SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID = 5; */ SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID(5), /** *
   *Превышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://russianinvestments.github.io/investAPI/limits/).
   * 
* * SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED = 6; */ SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED(6), /** *
   *Внутренняя ошибка сервиса.
   * 
* * SUBSCRIPTION_STATUS_INTERNAL_ERROR = 7; */ SUBSCRIPTION_STATUS_INTERNAL_ERROR(7), /** *
   *Превышен лимит на количество запросов на подписки в течение установленного отрезка времени
   * 
* * SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS = 8; */ SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS(8), /** *
   * Активная подписка не найдена. Ошибка может возникнуть только при отписке от не существующей отписки
   * 
* * SUBSCRIPTION_STATUS_SUBSCRIPTION_NOT_FOUND = 9; */ SUBSCRIPTION_STATUS_SUBSCRIPTION_NOT_FOUND(9), UNRECOGNIZED(-1), ; /** *
   *Статус подписки не определён.
   * 
* * SUBSCRIPTION_STATUS_UNSPECIFIED = 0; */ public static final int SUBSCRIPTION_STATUS_UNSPECIFIED_VALUE = 0; /** *
   *Успешно.
   * 
* * SUBSCRIPTION_STATUS_SUCCESS = 1; */ public static final int SUBSCRIPTION_STATUS_SUCCESS_VALUE = 1; /** *
   *Инструмент не найден.
   * 
* * SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND = 2; */ public static final int SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND_VALUE = 2; /** *
   *Некорректный статус подписки, список возможных значений: [SubscriptionAction](https://russianinvestments.github.io/investAPI/marketdata#subscriptionaction).
   * 
* * SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID = 3; */ public static final int SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID_VALUE = 3; /** *
   *Некорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.
   * 
* * SUBSCRIPTION_STATUS_DEPTH_IS_INVALID = 4; */ public static final int SUBSCRIPTION_STATUS_DEPTH_IS_INVALID_VALUE = 4; /** *
   *Некорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://russianinvestments.github.io/investAPI/marketdata#subscriptioninterval).
   * 
* * SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID = 5; */ public static final int SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID_VALUE = 5; /** *
   *Превышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://russianinvestments.github.io/investAPI/limits/).
   * 
* * SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED = 6; */ public static final int SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED_VALUE = 6; /** *
   *Внутренняя ошибка сервиса.
   * 
* * SUBSCRIPTION_STATUS_INTERNAL_ERROR = 7; */ public static final int SUBSCRIPTION_STATUS_INTERNAL_ERROR_VALUE = 7; /** *
   *Превышен лимит на количество запросов на подписки в течение установленного отрезка времени
   * 
* * SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS = 8; */ public static final int SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS_VALUE = 8; /** *
   * Активная подписка не найдена. Ошибка может возникнуть только при отписке от не существующей отписки
   * 
* * SUBSCRIPTION_STATUS_SUBSCRIPTION_NOT_FOUND = 9; */ public static final int SUBSCRIPTION_STATUS_SUBSCRIPTION_NOT_FOUND_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SubscriptionStatus valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SubscriptionStatus forNumber(int value) { switch (value) { case 0: return SUBSCRIPTION_STATUS_UNSPECIFIED; case 1: return SUBSCRIPTION_STATUS_SUCCESS; case 2: return SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND; case 3: return SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID; case 4: return SUBSCRIPTION_STATUS_DEPTH_IS_INVALID; case 5: return SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID; case 6: return SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED; case 7: return SUBSCRIPTION_STATUS_INTERNAL_ERROR; case 8: return SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS; case 9: return SUBSCRIPTION_STATUS_SUBSCRIPTION_NOT_FOUND; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SubscriptionStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SubscriptionStatus findValueByNumber(int number) { return SubscriptionStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Marketdata.getDescriptor().getEnumTypes().get(2); } private static final SubscriptionStatus[] VALUES = values(); public static SubscriptionStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SubscriptionStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tinkoff.public.invest.api.contract.v1.SubscriptionStatus) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy