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

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

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

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Результат подписки.
 * 
* * Protobuf enum {@code tinkoff.public.invest.api.contract.v1.PortfolioSubscriptionStatus} */ public enum PortfolioSubscriptionStatus implements com.google.protobuf.ProtocolMessageEnum { /** *
   *Тип не определён.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_UNSPECIFIED = 0; */ PORTFOLIO_SUBSCRIPTION_STATUS_UNSPECIFIED(0), /** *
   *Успешно.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS = 1; */ PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS(1), /** *
   *Счёт не найден или недостаточно прав.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND = 2; */ PORTFOLIO_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND(2), /** *
   *Произошла ошибка.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_INTERNAL_ERROR = 3; */ PORTFOLIO_SUBSCRIPTION_STATUS_INTERNAL_ERROR(3), UNRECOGNIZED(-1), ; /** *
   *Тип не определён.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_UNSPECIFIED = 0; */ public static final int PORTFOLIO_SUBSCRIPTION_STATUS_UNSPECIFIED_VALUE = 0; /** *
   *Успешно.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS = 1; */ public static final int PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS_VALUE = 1; /** *
   *Счёт не найден или недостаточно прав.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND = 2; */ public static final int PORTFOLIO_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND_VALUE = 2; /** *
   *Произошла ошибка.
   * 
* * PORTFOLIO_SUBSCRIPTION_STATUS_INTERNAL_ERROR = 3; */ public static final int PORTFOLIO_SUBSCRIPTION_STATUS_INTERNAL_ERROR_VALUE = 3; 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 PortfolioSubscriptionStatus 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 PortfolioSubscriptionStatus forNumber(int value) { switch (value) { case 0: return PORTFOLIO_SUBSCRIPTION_STATUS_UNSPECIFIED; case 1: return PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS; case 2: return PORTFOLIO_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND; case 3: return PORTFOLIO_SUBSCRIPTION_STATUS_INTERNAL_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PortfolioSubscriptionStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PortfolioSubscriptionStatus findValueByNumber(int number) { return PortfolioSubscriptionStatus.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.Operations.getDescriptor().getEnumTypes().get(2); } private static final PortfolioSubscriptionStatus[] VALUES = values(); public static PortfolioSubscriptionStatus 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 PortfolioSubscriptionStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tinkoff.public.invest.api.contract.v1.PortfolioSubscriptionStatus) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy