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

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

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

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Текущий статус заявки (поручения)
 * 
* * Protobuf enum {@code tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus} */ public enum OrderExecutionReportStatus implements com.google.protobuf.ProtocolMessageEnum { /** * EXECUTION_REPORT_STATUS_UNSPECIFIED = 0; */ EXECUTION_REPORT_STATUS_UNSPECIFIED(0), /** *
   *Исполнена
   * 
* * EXECUTION_REPORT_STATUS_FILL = 1; */ EXECUTION_REPORT_STATUS_FILL(1), /** *
   *Отклонена
   * 
* * EXECUTION_REPORT_STATUS_REJECTED = 2; */ EXECUTION_REPORT_STATUS_REJECTED(2), /** *
   *Отменена пользователем
   * 
* * EXECUTION_REPORT_STATUS_CANCELLED = 3; */ EXECUTION_REPORT_STATUS_CANCELLED(3), /** *
   *Новая
   * 
* * EXECUTION_REPORT_STATUS_NEW = 4; */ EXECUTION_REPORT_STATUS_NEW(4), /** *
   *Частично исполнена
   * 
* * EXECUTION_REPORT_STATUS_PARTIALLYFILL = 5; */ EXECUTION_REPORT_STATUS_PARTIALLYFILL(5), UNRECOGNIZED(-1), ; /** * EXECUTION_REPORT_STATUS_UNSPECIFIED = 0; */ public static final int EXECUTION_REPORT_STATUS_UNSPECIFIED_VALUE = 0; /** *
   *Исполнена
   * 
* * EXECUTION_REPORT_STATUS_FILL = 1; */ public static final int EXECUTION_REPORT_STATUS_FILL_VALUE = 1; /** *
   *Отклонена
   * 
* * EXECUTION_REPORT_STATUS_REJECTED = 2; */ public static final int EXECUTION_REPORT_STATUS_REJECTED_VALUE = 2; /** *
   *Отменена пользователем
   * 
* * EXECUTION_REPORT_STATUS_CANCELLED = 3; */ public static final int EXECUTION_REPORT_STATUS_CANCELLED_VALUE = 3; /** *
   *Новая
   * 
* * EXECUTION_REPORT_STATUS_NEW = 4; */ public static final int EXECUTION_REPORT_STATUS_NEW_VALUE = 4; /** *
   *Частично исполнена
   * 
* * EXECUTION_REPORT_STATUS_PARTIALLYFILL = 5; */ public static final int EXECUTION_REPORT_STATUS_PARTIALLYFILL_VALUE = 5; 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 OrderExecutionReportStatus 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 OrderExecutionReportStatus forNumber(int value) { switch (value) { case 0: return EXECUTION_REPORT_STATUS_UNSPECIFIED; case 1: return EXECUTION_REPORT_STATUS_FILL; case 2: return EXECUTION_REPORT_STATUS_REJECTED; case 3: return EXECUTION_REPORT_STATUS_CANCELLED; case 4: return EXECUTION_REPORT_STATUS_NEW; case 5: return EXECUTION_REPORT_STATUS_PARTIALLYFILL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< OrderExecutionReportStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public OrderExecutionReportStatus findValueByNumber(int number) { return OrderExecutionReportStatus.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.Orders.getDescriptor().getEnumTypes().get(2); } private static final OrderExecutionReportStatus[] VALUES = values(); public static OrderExecutionReportStatus 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 OrderExecutionReportStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy