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

ru.tinkoff.piapi.contract.v1.PostOrderResponse 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 type {@code tinkoff.public.invest.api.contract.v1.PostOrderResponse} */ public final class PostOrderResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.PostOrderResponse) PostOrderResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PostOrderResponse.newBuilder() to construct. private PostOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PostOrderResponse() { orderId_ = ""; executionReportStatus_ = 0; figi_ = ""; direction_ = 0; orderType_ = 0; message_ = ""; instrumentUid_ = ""; orderRequestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PostOrderResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_PostOrderResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_PostOrderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PostOrderResponse.class, ru.tinkoff.piapi.contract.v1.PostOrderResponse.Builder.class); } public static final int ORDER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object orderId_ = ""; /** *
   *Биржевой идентификатор заявки.
   * 
* * string order_id = 1; * @return The orderId. */ @java.lang.Override public java.lang.String getOrderId() { java.lang.Object ref = orderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderId_ = s; return s; } } /** *
   *Биржевой идентификатор заявки.
   * 
* * string order_id = 1; * @return The bytes for orderId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderIdBytes() { java.lang.Object ref = orderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXECUTION_REPORT_STATUS_FIELD_NUMBER = 2; private int executionReportStatus_ = 0; /** *
   *Текущий статус заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2; * @return The enum numeric value on the wire for executionReportStatus. */ @java.lang.Override public int getExecutionReportStatusValue() { return executionReportStatus_; } /** *
   *Текущий статус заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2; * @return The executionReportStatus. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus getExecutionReportStatus() { ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus result = ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.forNumber(executionReportStatus_); return result == null ? ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.UNRECOGNIZED : result; } public static final int LOTS_REQUESTED_FIELD_NUMBER = 3; private long lotsRequested_ = 0L; /** *
   *Запрошено лотов.
   * 
* * int64 lots_requested = 3; * @return The lotsRequested. */ @java.lang.Override public long getLotsRequested() { return lotsRequested_; } public static final int LOTS_EXECUTED_FIELD_NUMBER = 4; private long lotsExecuted_ = 0L; /** *
   *Исполнено лотов.
   * 
* * int64 lots_executed = 4; * @return The lotsExecuted. */ @java.lang.Override public long getLotsExecuted() { return lotsExecuted_; } public static final int INITIAL_ORDER_PRICE_FIELD_NUMBER = 5; private ru.tinkoff.piapi.contract.v1.MoneyValue initialOrderPrice_; /** *
   *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; * @return Whether the initialOrderPrice field is set. */ @java.lang.Override public boolean hasInitialOrderPrice() { return initialOrderPrice_ != null; } /** *
   *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; * @return The initialOrderPrice. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialOrderPrice() { return initialOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialOrderPrice_; } /** *
   *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialOrderPriceOrBuilder() { return initialOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialOrderPrice_; } public static final int EXECUTED_ORDER_PRICE_FIELD_NUMBER = 6; private ru.tinkoff.piapi.contract.v1.MoneyValue executedOrderPrice_; /** *
   *Исполненная средняя цена одного инструмента в заявке.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; * @return Whether the executedOrderPrice field is set. */ @java.lang.Override public boolean hasExecutedOrderPrice() { return executedOrderPrice_ != null; } /** *
   *Исполненная средняя цена одного инструмента в заявке.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; * @return The executedOrderPrice. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getExecutedOrderPrice() { return executedOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedOrderPrice_; } /** *
   *Исполненная средняя цена одного инструмента в заявке.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getExecutedOrderPriceOrBuilder() { return executedOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedOrderPrice_; } public static final int TOTAL_ORDER_AMOUNT_FIELD_NUMBER = 7; private ru.tinkoff.piapi.contract.v1.MoneyValue totalOrderAmount_; /** *
   *Итоговая стоимость заявки, включающая все комиссии.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; * @return Whether the totalOrderAmount field is set. */ @java.lang.Override public boolean hasTotalOrderAmount() { return totalOrderAmount_ != null; } /** *
   *Итоговая стоимость заявки, включающая все комиссии.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; * @return The totalOrderAmount. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalOrderAmount() { return totalOrderAmount_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalOrderAmount_; } /** *
   *Итоговая стоимость заявки, включающая все комиссии.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalOrderAmountOrBuilder() { return totalOrderAmount_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalOrderAmount_; } public static final int INITIAL_COMMISSION_FIELD_NUMBER = 8; private ru.tinkoff.piapi.contract.v1.MoneyValue initialCommission_; /** *
   *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; * @return Whether the initialCommission field is set. */ @java.lang.Override public boolean hasInitialCommission() { return initialCommission_ != null; } /** *
   *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; * @return The initialCommission. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialCommission() { return initialCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialCommission_; } /** *
   *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialCommissionOrBuilder() { return initialCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialCommission_; } public static final int EXECUTED_COMMISSION_FIELD_NUMBER = 9; private ru.tinkoff.piapi.contract.v1.MoneyValue executedCommission_; /** *
   *Фактическая комиссия по итогам исполнения заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; * @return Whether the executedCommission field is set. */ @java.lang.Override public boolean hasExecutedCommission() { return executedCommission_ != null; } /** *
   *Фактическая комиссия по итогам исполнения заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; * @return The executedCommission. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getExecutedCommission() { return executedCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedCommission_; } /** *
   *Фактическая комиссия по итогам исполнения заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getExecutedCommissionOrBuilder() { return executedCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedCommission_; } public static final int ACI_VALUE_FIELD_NUMBER = 10; private ru.tinkoff.piapi.contract.v1.MoneyValue aciValue_; /** *
   *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; * @return Whether the aciValue field is set. */ @java.lang.Override public boolean hasAciValue() { return aciValue_ != null; } /** *
   *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; * @return The aciValue. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getAciValue() { return aciValue_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : aciValue_; } /** *
   *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAciValueOrBuilder() { return aciValue_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : aciValue_; } public static final int FIGI_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object figi_ = ""; /** *
   * Figi-идентификатор инструмента.
   * 
* * string figi = 11; * @return The figi. */ @java.lang.Override public java.lang.String getFigi() { java.lang.Object ref = figi_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); figi_ = s; return s; } } /** *
   * Figi-идентификатор инструмента.
   * 
* * string figi = 11; * @return The bytes for figi. */ @java.lang.Override public com.google.protobuf.ByteString getFigiBytes() { java.lang.Object ref = figi_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); figi_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIRECTION_FIELD_NUMBER = 12; private int direction_ = 0; /** *
   *Направление сделки.
   * 
* * .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12; * @return The enum numeric value on the wire for direction. */ @java.lang.Override public int getDirectionValue() { return direction_; } /** *
   *Направление сделки.
   * 
* * .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12; * @return The direction. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderDirection getDirection() { ru.tinkoff.piapi.contract.v1.OrderDirection result = ru.tinkoff.piapi.contract.v1.OrderDirection.forNumber(direction_); return result == null ? ru.tinkoff.piapi.contract.v1.OrderDirection.UNRECOGNIZED : result; } public static final int INITIAL_SECURITY_PRICE_FIELD_NUMBER = 13; private ru.tinkoff.piapi.contract.v1.MoneyValue initialSecurityPrice_; /** *
   *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; * @return Whether the initialSecurityPrice field is set. */ @java.lang.Override public boolean hasInitialSecurityPrice() { return initialSecurityPrice_ != null; } /** *
   *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; * @return The initialSecurityPrice. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialSecurityPrice() { return initialSecurityPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialSecurityPrice_; } /** *
   *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialSecurityPriceOrBuilder() { return initialSecurityPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialSecurityPrice_; } public static final int ORDER_TYPE_FIELD_NUMBER = 14; private int orderType_ = 0; /** *
   *Тип заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 14; * @return The enum numeric value on the wire for orderType. */ @java.lang.Override public int getOrderTypeValue() { return orderType_; } /** *
   *Тип заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 14; * @return The orderType. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderType getOrderType() { ru.tinkoff.piapi.contract.v1.OrderType result = ru.tinkoff.piapi.contract.v1.OrderType.forNumber(orderType_); return result == null ? ru.tinkoff.piapi.contract.v1.OrderType.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** *
   *Дополнительные данные об исполнении заявки.
   * 
* * string message = 15; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** *
   *Дополнительные данные об исполнении заявки.
   * 
* * string message = 15; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INITIAL_ORDER_PRICE_PT_FIELD_NUMBER = 16; private ru.tinkoff.piapi.contract.v1.Quotation initialOrderPricePt_; /** *
   *Начальная цена заявки в пунктах (для фьючерсов).
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; * @return Whether the initialOrderPricePt field is set. */ @java.lang.Override public boolean hasInitialOrderPricePt() { return initialOrderPricePt_ != null; } /** *
   *Начальная цена заявки в пунктах (для фьючерсов).
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; * @return The initialOrderPricePt. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getInitialOrderPricePt() { return initialOrderPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : initialOrderPricePt_; } /** *
   *Начальная цена заявки в пунктах (для фьючерсов).
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getInitialOrderPricePtOrBuilder() { return initialOrderPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : initialOrderPricePt_; } public static final int INSTRUMENT_UID_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object instrumentUid_ = ""; /** *
   *UID идентификатор инструмента.
   * 
* * string instrument_uid = 17; * @return The instrumentUid. */ @java.lang.Override public java.lang.String getInstrumentUid() { java.lang.Object ref = instrumentUid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentUid_ = s; return s; } } /** *
   *UID идентификатор инструмента.
   * 
* * string instrument_uid = 17; * @return The bytes for instrumentUid. */ @java.lang.Override public com.google.protobuf.ByteString getInstrumentUidBytes() { java.lang.Object ref = instrumentUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORDER_REQUEST_ID_FIELD_NUMBER = 20; @SuppressWarnings("serial") private volatile java.lang.Object orderRequestId_ = ""; /** *
   *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
   * 
* * string order_request_id = 20; * @return The orderRequestId. */ @java.lang.Override public java.lang.String getOrderRequestId() { java.lang.Object ref = orderRequestId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderRequestId_ = s; return s; } } /** *
   *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
   * 
* * string order_request_id = 20; * @return The bytes for orderRequestId. */ @java.lang.Override public com.google.protobuf.ByteString getOrderRequestIdBytes() { java.lang.Object ref = orderRequestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderRequestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_); } if (executionReportStatus_ != ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.EXECUTION_REPORT_STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(2, executionReportStatus_); } if (lotsRequested_ != 0L) { output.writeInt64(3, lotsRequested_); } if (lotsExecuted_ != 0L) { output.writeInt64(4, lotsExecuted_); } if (initialOrderPrice_ != null) { output.writeMessage(5, getInitialOrderPrice()); } if (executedOrderPrice_ != null) { output.writeMessage(6, getExecutedOrderPrice()); } if (totalOrderAmount_ != null) { output.writeMessage(7, getTotalOrderAmount()); } if (initialCommission_ != null) { output.writeMessage(8, getInitialCommission()); } if (executedCommission_ != null) { output.writeMessage(9, getExecutedCommission()); } if (aciValue_ != null) { output.writeMessage(10, getAciValue()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, figi_); } if (direction_ != ru.tinkoff.piapi.contract.v1.OrderDirection.ORDER_DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(12, direction_); } if (initialSecurityPrice_ != null) { output.writeMessage(13, getInitialSecurityPrice()); } if (orderType_ != ru.tinkoff.piapi.contract.v1.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(14, orderType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, message_); } if (initialOrderPricePt_ != null) { output.writeMessage(16, getInitialOrderPricePt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, instrumentUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderRequestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, orderRequestId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_); } if (executionReportStatus_ != ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.EXECUTION_REPORT_STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, executionReportStatus_); } if (lotsRequested_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, lotsRequested_); } if (lotsExecuted_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, lotsExecuted_); } if (initialOrderPrice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getInitialOrderPrice()); } if (executedOrderPrice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getExecutedOrderPrice()); } if (totalOrderAmount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getTotalOrderAmount()); } if (initialCommission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getInitialCommission()); } if (executedCommission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getExecutedCommission()); } if (aciValue_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAciValue()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, figi_); } if (direction_ != ru.tinkoff.piapi.contract.v1.OrderDirection.ORDER_DIRECTION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, direction_); } if (initialSecurityPrice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getInitialSecurityPrice()); } if (orderType_ != ru.tinkoff.piapi.contract.v1.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, orderType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, message_); } if (initialOrderPricePt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getInitialOrderPricePt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, instrumentUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderRequestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, orderRequestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ru.tinkoff.piapi.contract.v1.PostOrderResponse)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.PostOrderResponse other = (ru.tinkoff.piapi.contract.v1.PostOrderResponse) obj; if (!getOrderId() .equals(other.getOrderId())) return false; if (executionReportStatus_ != other.executionReportStatus_) return false; if (getLotsRequested() != other.getLotsRequested()) return false; if (getLotsExecuted() != other.getLotsExecuted()) return false; if (hasInitialOrderPrice() != other.hasInitialOrderPrice()) return false; if (hasInitialOrderPrice()) { if (!getInitialOrderPrice() .equals(other.getInitialOrderPrice())) return false; } if (hasExecutedOrderPrice() != other.hasExecutedOrderPrice()) return false; if (hasExecutedOrderPrice()) { if (!getExecutedOrderPrice() .equals(other.getExecutedOrderPrice())) return false; } if (hasTotalOrderAmount() != other.hasTotalOrderAmount()) return false; if (hasTotalOrderAmount()) { if (!getTotalOrderAmount() .equals(other.getTotalOrderAmount())) return false; } if (hasInitialCommission() != other.hasInitialCommission()) return false; if (hasInitialCommission()) { if (!getInitialCommission() .equals(other.getInitialCommission())) return false; } if (hasExecutedCommission() != other.hasExecutedCommission()) return false; if (hasExecutedCommission()) { if (!getExecutedCommission() .equals(other.getExecutedCommission())) return false; } if (hasAciValue() != other.hasAciValue()) return false; if (hasAciValue()) { if (!getAciValue() .equals(other.getAciValue())) return false; } if (!getFigi() .equals(other.getFigi())) return false; if (direction_ != other.direction_) return false; if (hasInitialSecurityPrice() != other.hasInitialSecurityPrice()) return false; if (hasInitialSecurityPrice()) { if (!getInitialSecurityPrice() .equals(other.getInitialSecurityPrice())) return false; } if (orderType_ != other.orderType_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (hasInitialOrderPricePt() != other.hasInitialOrderPricePt()) return false; if (hasInitialOrderPricePt()) { if (!getInitialOrderPricePt() .equals(other.getInitialOrderPricePt())) return false; } if (!getInstrumentUid() .equals(other.getInstrumentUid())) return false; if (!getOrderRequestId() .equals(other.getOrderRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; hash = (53 * hash) + getOrderId().hashCode(); hash = (37 * hash) + EXECUTION_REPORT_STATUS_FIELD_NUMBER; hash = (53 * hash) + executionReportStatus_; hash = (37 * hash) + LOTS_REQUESTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLotsRequested()); hash = (37 * hash) + LOTS_EXECUTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLotsExecuted()); if (hasInitialOrderPrice()) { hash = (37 * hash) + INITIAL_ORDER_PRICE_FIELD_NUMBER; hash = (53 * hash) + getInitialOrderPrice().hashCode(); } if (hasExecutedOrderPrice()) { hash = (37 * hash) + EXECUTED_ORDER_PRICE_FIELD_NUMBER; hash = (53 * hash) + getExecutedOrderPrice().hashCode(); } if (hasTotalOrderAmount()) { hash = (37 * hash) + TOTAL_ORDER_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getTotalOrderAmount().hashCode(); } if (hasInitialCommission()) { hash = (37 * hash) + INITIAL_COMMISSION_FIELD_NUMBER; hash = (53 * hash) + getInitialCommission().hashCode(); } if (hasExecutedCommission()) { hash = (37 * hash) + EXECUTED_COMMISSION_FIELD_NUMBER; hash = (53 * hash) + getExecutedCommission().hashCode(); } if (hasAciValue()) { hash = (37 * hash) + ACI_VALUE_FIELD_NUMBER; hash = (53 * hash) + getAciValue().hashCode(); } hash = (37 * hash) + FIGI_FIELD_NUMBER; hash = (53 * hash) + getFigi().hashCode(); hash = (37 * hash) + DIRECTION_FIELD_NUMBER; hash = (53 * hash) + direction_; if (hasInitialSecurityPrice()) { hash = (37 * hash) + INITIAL_SECURITY_PRICE_FIELD_NUMBER; hash = (53 * hash) + getInitialSecurityPrice().hashCode(); } hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; hash = (53 * hash) + orderType_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); if (hasInitialOrderPricePt()) { hash = (37 * hash) + INITIAL_ORDER_PRICE_PT_FIELD_NUMBER; hash = (53 * hash) + getInitialOrderPricePt().hashCode(); } hash = (37 * hash) + INSTRUMENT_UID_FIELD_NUMBER; hash = (53 * hash) + getInstrumentUid().hashCode(); hash = (37 * hash) + ORDER_REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getOrderRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ru.tinkoff.piapi.contract.v1.PostOrderResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   *Информация о выставлении поручения.
   * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.PostOrderResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.PostOrderResponse) ru.tinkoff.piapi.contract.v1.PostOrderResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_PostOrderResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_PostOrderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PostOrderResponse.class, ru.tinkoff.piapi.contract.v1.PostOrderResponse.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.PostOrderResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; orderId_ = ""; executionReportStatus_ = 0; lotsRequested_ = 0L; lotsExecuted_ = 0L; initialOrderPrice_ = null; if (initialOrderPriceBuilder_ != null) { initialOrderPriceBuilder_.dispose(); initialOrderPriceBuilder_ = null; } executedOrderPrice_ = null; if (executedOrderPriceBuilder_ != null) { executedOrderPriceBuilder_.dispose(); executedOrderPriceBuilder_ = null; } totalOrderAmount_ = null; if (totalOrderAmountBuilder_ != null) { totalOrderAmountBuilder_.dispose(); totalOrderAmountBuilder_ = null; } initialCommission_ = null; if (initialCommissionBuilder_ != null) { initialCommissionBuilder_.dispose(); initialCommissionBuilder_ = null; } executedCommission_ = null; if (executedCommissionBuilder_ != null) { executedCommissionBuilder_.dispose(); executedCommissionBuilder_ = null; } aciValue_ = null; if (aciValueBuilder_ != null) { aciValueBuilder_.dispose(); aciValueBuilder_ = null; } figi_ = ""; direction_ = 0; initialSecurityPrice_ = null; if (initialSecurityPriceBuilder_ != null) { initialSecurityPriceBuilder_.dispose(); initialSecurityPriceBuilder_ = null; } orderType_ = 0; message_ = ""; initialOrderPricePt_ = null; if (initialOrderPricePtBuilder_ != null) { initialOrderPricePtBuilder_.dispose(); initialOrderPricePtBuilder_ = null; } instrumentUid_ = ""; orderRequestId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_PostOrderResponse_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PostOrderResponse getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.PostOrderResponse.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PostOrderResponse build() { ru.tinkoff.piapi.contract.v1.PostOrderResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PostOrderResponse buildPartial() { ru.tinkoff.piapi.contract.v1.PostOrderResponse result = new ru.tinkoff.piapi.contract.v1.PostOrderResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.PostOrderResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.orderId_ = orderId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.executionReportStatus_ = executionReportStatus_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.lotsRequested_ = lotsRequested_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.lotsExecuted_ = lotsExecuted_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.initialOrderPrice_ = initialOrderPriceBuilder_ == null ? initialOrderPrice_ : initialOrderPriceBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.executedOrderPrice_ = executedOrderPriceBuilder_ == null ? executedOrderPrice_ : executedOrderPriceBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.totalOrderAmount_ = totalOrderAmountBuilder_ == null ? totalOrderAmount_ : totalOrderAmountBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.initialCommission_ = initialCommissionBuilder_ == null ? initialCommission_ : initialCommissionBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.executedCommission_ = executedCommissionBuilder_ == null ? executedCommission_ : executedCommissionBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.aciValue_ = aciValueBuilder_ == null ? aciValue_ : aciValueBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.figi_ = figi_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.direction_ = direction_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.initialSecurityPrice_ = initialSecurityPriceBuilder_ == null ? initialSecurityPrice_ : initialSecurityPriceBuilder_.build(); } if (((from_bitField0_ & 0x00002000) != 0)) { result.orderType_ = orderType_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.initialOrderPricePt_ = initialOrderPricePtBuilder_ == null ? initialOrderPricePt_ : initialOrderPricePtBuilder_.build(); } if (((from_bitField0_ & 0x00010000) != 0)) { result.instrumentUid_ = instrumentUid_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.orderRequestId_ = orderRequestId_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.PostOrderResponse) { return mergeFrom((ru.tinkoff.piapi.contract.v1.PostOrderResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.PostOrderResponse other) { if (other == ru.tinkoff.piapi.contract.v1.PostOrderResponse.getDefaultInstance()) return this; if (!other.getOrderId().isEmpty()) { orderId_ = other.orderId_; bitField0_ |= 0x00000001; onChanged(); } if (other.executionReportStatus_ != 0) { setExecutionReportStatusValue(other.getExecutionReportStatusValue()); } if (other.getLotsRequested() != 0L) { setLotsRequested(other.getLotsRequested()); } if (other.getLotsExecuted() != 0L) { setLotsExecuted(other.getLotsExecuted()); } if (other.hasInitialOrderPrice()) { mergeInitialOrderPrice(other.getInitialOrderPrice()); } if (other.hasExecutedOrderPrice()) { mergeExecutedOrderPrice(other.getExecutedOrderPrice()); } if (other.hasTotalOrderAmount()) { mergeTotalOrderAmount(other.getTotalOrderAmount()); } if (other.hasInitialCommission()) { mergeInitialCommission(other.getInitialCommission()); } if (other.hasExecutedCommission()) { mergeExecutedCommission(other.getExecutedCommission()); } if (other.hasAciValue()) { mergeAciValue(other.getAciValue()); } if (!other.getFigi().isEmpty()) { figi_ = other.figi_; bitField0_ |= 0x00000400; onChanged(); } if (other.direction_ != 0) { setDirectionValue(other.getDirectionValue()); } if (other.hasInitialSecurityPrice()) { mergeInitialSecurityPrice(other.getInitialSecurityPrice()); } if (other.orderType_ != 0) { setOrderTypeValue(other.getOrderTypeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00004000; onChanged(); } if (other.hasInitialOrderPricePt()) { mergeInitialOrderPricePt(other.getInitialOrderPricePt()); } if (!other.getInstrumentUid().isEmpty()) { instrumentUid_ = other.instrumentUid_; bitField0_ |= 0x00010000; onChanged(); } if (!other.getOrderRequestId().isEmpty()) { orderRequestId_ = other.orderRequestId_; bitField0_ |= 0x00020000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { orderId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { executionReportStatus_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { lotsRequested_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { lotsExecuted_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getInitialOrderPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getExecutedOrderPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getTotalOrderAmountFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getInitialCommissionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getExecutedCommissionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getAciValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { figi_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 96: { direction_ = input.readEnum(); bitField0_ |= 0x00000800; break; } // case 96 case 106: { input.readMessage( getInitialSecurityPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 case 112: { orderType_ = input.readEnum(); bitField0_ |= 0x00002000; break; } // case 112 case 122: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 122 case 130: { input.readMessage( getInitialOrderPricePtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 130 case 138: { instrumentUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00010000; break; } // case 138 case 162: { orderRequestId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00020000; break; } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object orderId_ = ""; /** *
     *Биржевой идентификатор заявки.
     * 
* * string order_id = 1; * @return The orderId. */ public java.lang.String getOrderId() { java.lang.Object ref = orderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Биржевой идентификатор заявки.
     * 
* * string order_id = 1; * @return The bytes for orderId. */ public com.google.protobuf.ByteString getOrderIdBytes() { java.lang.Object ref = orderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Биржевой идентификатор заявки.
     * 
* * string order_id = 1; * @param value The orderId to set. * @return This builder for chaining. */ public Builder setOrderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } orderId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Биржевой идентификатор заявки.
     * 
* * string order_id = 1; * @return This builder for chaining. */ public Builder clearOrderId() { orderId_ = getDefaultInstance().getOrderId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *Биржевой идентификатор заявки.
     * 
* * string order_id = 1; * @param value The bytes for orderId to set. * @return This builder for chaining. */ public Builder setOrderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int executionReportStatus_ = 0; /** *
     *Текущий статус заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2; * @return The enum numeric value on the wire for executionReportStatus. */ @java.lang.Override public int getExecutionReportStatusValue() { return executionReportStatus_; } /** *
     *Текущий статус заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2; * @param value The enum numeric value on the wire for executionReportStatus to set. * @return This builder for chaining. */ public Builder setExecutionReportStatusValue(int value) { executionReportStatus_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Текущий статус заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2; * @return The executionReportStatus. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus getExecutionReportStatus() { ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus result = ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.forNumber(executionReportStatus_); return result == null ? ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.UNRECOGNIZED : result; } /** *
     *Текущий статус заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2; * @param value The executionReportStatus to set. * @return This builder for chaining. */ public Builder setExecutionReportStatus(ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; executionReportStatus_ = value.getNumber(); onChanged(); return this; } /** *
     *Текущий статус заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2; * @return This builder for chaining. */ public Builder clearExecutionReportStatus() { bitField0_ = (bitField0_ & ~0x00000002); executionReportStatus_ = 0; onChanged(); return this; } private long lotsRequested_ ; /** *
     *Запрошено лотов.
     * 
* * int64 lots_requested = 3; * @return The lotsRequested. */ @java.lang.Override public long getLotsRequested() { return lotsRequested_; } /** *
     *Запрошено лотов.
     * 
* * int64 lots_requested = 3; * @param value The lotsRequested to set. * @return This builder for chaining. */ public Builder setLotsRequested(long value) { lotsRequested_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Запрошено лотов.
     * 
* * int64 lots_requested = 3; * @return This builder for chaining. */ public Builder clearLotsRequested() { bitField0_ = (bitField0_ & ~0x00000004); lotsRequested_ = 0L; onChanged(); return this; } private long lotsExecuted_ ; /** *
     *Исполнено лотов.
     * 
* * int64 lots_executed = 4; * @return The lotsExecuted. */ @java.lang.Override public long getLotsExecuted() { return lotsExecuted_; } /** *
     *Исполнено лотов.
     * 
* * int64 lots_executed = 4; * @param value The lotsExecuted to set. * @return This builder for chaining. */ public Builder setLotsExecuted(long value) { lotsExecuted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Исполнено лотов.
     * 
* * int64 lots_executed = 4; * @return This builder for chaining. */ public Builder clearLotsExecuted() { bitField0_ = (bitField0_ & ~0x00000008); lotsExecuted_ = 0L; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.MoneyValue initialOrderPrice_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialOrderPriceBuilder_; /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; * @return Whether the initialOrderPrice field is set. */ public boolean hasInitialOrderPrice() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; * @return The initialOrderPrice. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialOrderPrice() { if (initialOrderPriceBuilder_ == null) { return initialOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialOrderPrice_; } else { return initialOrderPriceBuilder_.getMessage(); } } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ public Builder setInitialOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (initialOrderPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } initialOrderPrice_ = value; } else { initialOrderPriceBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ public Builder setInitialOrderPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (initialOrderPriceBuilder_ == null) { initialOrderPrice_ = builderForValue.build(); } else { initialOrderPriceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ public Builder mergeInitialOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (initialOrderPriceBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && initialOrderPrice_ != null && initialOrderPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getInitialOrderPriceBuilder().mergeFrom(value); } else { initialOrderPrice_ = value; } } else { initialOrderPriceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ public Builder clearInitialOrderPrice() { bitField0_ = (bitField0_ & ~0x00000010); initialOrderPrice_ = null; if (initialOrderPriceBuilder_ != null) { initialOrderPriceBuilder_.dispose(); initialOrderPriceBuilder_ = null; } onChanged(); return this; } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialOrderPriceBuilder() { bitField0_ |= 0x00000010; onChanged(); return getInitialOrderPriceFieldBuilder().getBuilder(); } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialOrderPriceOrBuilder() { if (initialOrderPriceBuilder_ != null) { return initialOrderPriceBuilder_.getMessageOrBuilder(); } else { return initialOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialOrderPrice_; } } /** *
     *Начальная цена заявки. Произведение количества запрошенных лотов на цену.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getInitialOrderPriceFieldBuilder() { if (initialOrderPriceBuilder_ == null) { initialOrderPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getInitialOrderPrice(), getParentForChildren(), isClean()); initialOrderPrice_ = null; } return initialOrderPriceBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue executedOrderPrice_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> executedOrderPriceBuilder_; /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; * @return Whether the executedOrderPrice field is set. */ public boolean hasExecutedOrderPrice() { return ((bitField0_ & 0x00000020) != 0); } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; * @return The executedOrderPrice. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getExecutedOrderPrice() { if (executedOrderPriceBuilder_ == null) { return executedOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedOrderPrice_; } else { return executedOrderPriceBuilder_.getMessage(); } } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ public Builder setExecutedOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (executedOrderPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executedOrderPrice_ = value; } else { executedOrderPriceBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ public Builder setExecutedOrderPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (executedOrderPriceBuilder_ == null) { executedOrderPrice_ = builderForValue.build(); } else { executedOrderPriceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ public Builder mergeExecutedOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (executedOrderPriceBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && executedOrderPrice_ != null && executedOrderPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getExecutedOrderPriceBuilder().mergeFrom(value); } else { executedOrderPrice_ = value; } } else { executedOrderPriceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ public Builder clearExecutedOrderPrice() { bitField0_ = (bitField0_ & ~0x00000020); executedOrderPrice_ = null; if (executedOrderPriceBuilder_ != null) { executedOrderPriceBuilder_.dispose(); executedOrderPriceBuilder_ = null; } onChanged(); return this; } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getExecutedOrderPriceBuilder() { bitField0_ |= 0x00000020; onChanged(); return getExecutedOrderPriceFieldBuilder().getBuilder(); } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getExecutedOrderPriceOrBuilder() { if (executedOrderPriceBuilder_ != null) { return executedOrderPriceBuilder_.getMessageOrBuilder(); } else { return executedOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedOrderPrice_; } } /** *
     *Исполненная средняя цена одного инструмента в заявке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getExecutedOrderPriceFieldBuilder() { if (executedOrderPriceBuilder_ == null) { executedOrderPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getExecutedOrderPrice(), getParentForChildren(), isClean()); executedOrderPrice_ = null; } return executedOrderPriceBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalOrderAmount_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalOrderAmountBuilder_; /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; * @return Whether the totalOrderAmount field is set. */ public boolean hasTotalOrderAmount() { return ((bitField0_ & 0x00000040) != 0); } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; * @return The totalOrderAmount. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalOrderAmount() { if (totalOrderAmountBuilder_ == null) { return totalOrderAmount_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalOrderAmount_; } else { return totalOrderAmountBuilder_.getMessage(); } } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ public Builder setTotalOrderAmount(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalOrderAmountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalOrderAmount_ = value; } else { totalOrderAmountBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ public Builder setTotalOrderAmount( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalOrderAmountBuilder_ == null) { totalOrderAmount_ = builderForValue.build(); } else { totalOrderAmountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ public Builder mergeTotalOrderAmount(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalOrderAmountBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && totalOrderAmount_ != null && totalOrderAmount_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalOrderAmountBuilder().mergeFrom(value); } else { totalOrderAmount_ = value; } } else { totalOrderAmountBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ public Builder clearTotalOrderAmount() { bitField0_ = (bitField0_ & ~0x00000040); totalOrderAmount_ = null; if (totalOrderAmountBuilder_ != null) { totalOrderAmountBuilder_.dispose(); totalOrderAmountBuilder_ = null; } onChanged(); return this; } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalOrderAmountBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTotalOrderAmountFieldBuilder().getBuilder(); } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalOrderAmountOrBuilder() { if (totalOrderAmountBuilder_ != null) { return totalOrderAmountBuilder_.getMessageOrBuilder(); } else { return totalOrderAmount_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalOrderAmount_; } } /** *
     *Итоговая стоимость заявки, включающая все комиссии.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getTotalOrderAmountFieldBuilder() { if (totalOrderAmountBuilder_ == null) { totalOrderAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalOrderAmount(), getParentForChildren(), isClean()); totalOrderAmount_ = null; } return totalOrderAmountBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue initialCommission_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialCommissionBuilder_; /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; * @return Whether the initialCommission field is set. */ public boolean hasInitialCommission() { return ((bitField0_ & 0x00000080) != 0); } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; * @return The initialCommission. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialCommission() { if (initialCommissionBuilder_ == null) { return initialCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialCommission_; } else { return initialCommissionBuilder_.getMessage(); } } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ public Builder setInitialCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (initialCommissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } initialCommission_ = value; } else { initialCommissionBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ public Builder setInitialCommission( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (initialCommissionBuilder_ == null) { initialCommission_ = builderForValue.build(); } else { initialCommissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ public Builder mergeInitialCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (initialCommissionBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && initialCommission_ != null && initialCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getInitialCommissionBuilder().mergeFrom(value); } else { initialCommission_ = value; } } else { initialCommissionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ public Builder clearInitialCommission() { bitField0_ = (bitField0_ & ~0x00000080); initialCommission_ = null; if (initialCommissionBuilder_ != null) { initialCommissionBuilder_.dispose(); initialCommissionBuilder_ = null; } onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialCommissionBuilder() { bitField0_ |= 0x00000080; onChanged(); return getInitialCommissionFieldBuilder().getBuilder(); } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialCommissionOrBuilder() { if (initialCommissionBuilder_ != null) { return initialCommissionBuilder_.getMessageOrBuilder(); } else { return initialCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialCommission_; } } /** *
     *Начальная комиссия. Комиссия рассчитанная при выставлении заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 8; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getInitialCommissionFieldBuilder() { if (initialCommissionBuilder_ == null) { initialCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getInitialCommission(), getParentForChildren(), isClean()); initialCommission_ = null; } return initialCommissionBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue executedCommission_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> executedCommissionBuilder_; /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; * @return Whether the executedCommission field is set. */ public boolean hasExecutedCommission() { return ((bitField0_ & 0x00000100) != 0); } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; * @return The executedCommission. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getExecutedCommission() { if (executedCommissionBuilder_ == null) { return executedCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedCommission_; } else { return executedCommissionBuilder_.getMessage(); } } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ public Builder setExecutedCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (executedCommissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executedCommission_ = value; } else { executedCommissionBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ public Builder setExecutedCommission( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (executedCommissionBuilder_ == null) { executedCommission_ = builderForValue.build(); } else { executedCommissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ public Builder mergeExecutedCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (executedCommissionBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && executedCommission_ != null && executedCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getExecutedCommissionBuilder().mergeFrom(value); } else { executedCommission_ = value; } } else { executedCommissionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ public Builder clearExecutedCommission() { bitField0_ = (bitField0_ & ~0x00000100); executedCommission_ = null; if (executedCommissionBuilder_ != null) { executedCommissionBuilder_.dispose(); executedCommissionBuilder_ = null; } onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getExecutedCommissionBuilder() { bitField0_ |= 0x00000100; onChanged(); return getExecutedCommissionFieldBuilder().getBuilder(); } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getExecutedCommissionOrBuilder() { if (executedCommissionBuilder_ != null) { return executedCommissionBuilder_.getMessageOrBuilder(); } else { return executedCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedCommission_; } } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 9; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getExecutedCommissionFieldBuilder() { if (executedCommissionBuilder_ == null) { executedCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getExecutedCommission(), getParentForChildren(), isClean()); executedCommission_ = null; } return executedCommissionBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue aciValue_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> aciValueBuilder_; /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; * @return Whether the aciValue field is set. */ public boolean hasAciValue() { return ((bitField0_ & 0x00000200) != 0); } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; * @return The aciValue. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getAciValue() { if (aciValueBuilder_ == null) { return aciValue_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : aciValue_; } else { return aciValueBuilder_.getMessage(); } } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ public Builder setAciValue(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (aciValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aciValue_ = value; } else { aciValueBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ public Builder setAciValue( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (aciValueBuilder_ == null) { aciValue_ = builderForValue.build(); } else { aciValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ public Builder mergeAciValue(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (aciValueBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && aciValue_ != null && aciValue_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getAciValueBuilder().mergeFrom(value); } else { aciValue_ = value; } } else { aciValueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ public Builder clearAciValue() { bitField0_ = (bitField0_ & ~0x00000200); aciValue_ = null; if (aciValueBuilder_ != null) { aciValueBuilder_.dispose(); aciValueBuilder_ = null; } onChanged(); return this; } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getAciValueBuilder() { bitField0_ |= 0x00000200; onChanged(); return getAciValueFieldBuilder().getBuilder(); } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAciValueOrBuilder() { if (aciValueBuilder_ != null) { return aciValueBuilder_.getMessageOrBuilder(); } else { return aciValue_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : aciValue_; } } /** *
     *Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://russianinvestments.github.io/investAPI/head-orders#coupon)
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getAciValueFieldBuilder() { if (aciValueBuilder_ == null) { aciValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getAciValue(), getParentForChildren(), isClean()); aciValue_ = null; } return aciValueBuilder_; } private java.lang.Object figi_ = ""; /** *
     * Figi-идентификатор инструмента.
     * 
* * string figi = 11; * @return The figi. */ public java.lang.String getFigi() { java.lang.Object ref = figi_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); figi_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Figi-идентификатор инструмента.
     * 
* * string figi = 11; * @return The bytes for figi. */ public com.google.protobuf.ByteString getFigiBytes() { java.lang.Object ref = figi_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); figi_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Figi-идентификатор инструмента.
     * 
* * string figi = 11; * @param value The figi to set. * @return This builder for chaining. */ public Builder setFigi( java.lang.String value) { if (value == null) { throw new NullPointerException(); } figi_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Figi-идентификатор инструмента.
     * 
* * string figi = 11; * @return This builder for chaining. */ public Builder clearFigi() { figi_ = getDefaultInstance().getFigi(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     * Figi-идентификатор инструмента.
     * 
* * string figi = 11; * @param value The bytes for figi to set. * @return This builder for chaining. */ public Builder setFigiBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); figi_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private int direction_ = 0; /** *
     *Направление сделки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12; * @return The enum numeric value on the wire for direction. */ @java.lang.Override public int getDirectionValue() { return direction_; } /** *
     *Направление сделки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12; * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ public Builder setDirectionValue(int value) { direction_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     *Направление сделки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12; * @return The direction. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderDirection getDirection() { ru.tinkoff.piapi.contract.v1.OrderDirection result = ru.tinkoff.piapi.contract.v1.OrderDirection.forNumber(direction_); return result == null ? ru.tinkoff.piapi.contract.v1.OrderDirection.UNRECOGNIZED : result; } /** *
     *Направление сделки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12; * @param value The direction to set. * @return This builder for chaining. */ public Builder setDirection(ru.tinkoff.piapi.contract.v1.OrderDirection value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; direction_ = value.getNumber(); onChanged(); return this; } /** *
     *Направление сделки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12; * @return This builder for chaining. */ public Builder clearDirection() { bitField0_ = (bitField0_ & ~0x00000800); direction_ = 0; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.MoneyValue initialSecurityPrice_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialSecurityPriceBuilder_; /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; * @return Whether the initialSecurityPrice field is set. */ public boolean hasInitialSecurityPrice() { return ((bitField0_ & 0x00001000) != 0); } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; * @return The initialSecurityPrice. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialSecurityPrice() { if (initialSecurityPriceBuilder_ == null) { return initialSecurityPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialSecurityPrice_; } else { return initialSecurityPriceBuilder_.getMessage(); } } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ public Builder setInitialSecurityPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (initialSecurityPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } initialSecurityPrice_ = value; } else { initialSecurityPriceBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ public Builder setInitialSecurityPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (initialSecurityPriceBuilder_ == null) { initialSecurityPrice_ = builderForValue.build(); } else { initialSecurityPriceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ public Builder mergeInitialSecurityPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (initialSecurityPriceBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && initialSecurityPrice_ != null && initialSecurityPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getInitialSecurityPriceBuilder().mergeFrom(value); } else { initialSecurityPrice_ = value; } } else { initialSecurityPriceBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ public Builder clearInitialSecurityPrice() { bitField0_ = (bitField0_ & ~0x00001000); initialSecurityPrice_ = null; if (initialSecurityPriceBuilder_ != null) { initialSecurityPriceBuilder_.dispose(); initialSecurityPriceBuilder_ = null; } onChanged(); return this; } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialSecurityPriceBuilder() { bitField0_ |= 0x00001000; onChanged(); return getInitialSecurityPriceFieldBuilder().getBuilder(); } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialSecurityPriceOrBuilder() { if (initialSecurityPriceBuilder_ != null) { return initialSecurityPriceBuilder_.getMessageOrBuilder(); } else { return initialSecurityPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialSecurityPrice_; } } /** *
     *Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getInitialSecurityPriceFieldBuilder() { if (initialSecurityPriceBuilder_ == null) { initialSecurityPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getInitialSecurityPrice(), getParentForChildren(), isClean()); initialSecurityPrice_ = null; } return initialSecurityPriceBuilder_; } private int orderType_ = 0; /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 14; * @return The enum numeric value on the wire for orderType. */ @java.lang.Override public int getOrderTypeValue() { return orderType_; } /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 14; * @param value The enum numeric value on the wire for orderType to set. * @return This builder for chaining. */ public Builder setOrderTypeValue(int value) { orderType_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 14; * @return The orderType. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderType getOrderType() { ru.tinkoff.piapi.contract.v1.OrderType result = ru.tinkoff.piapi.contract.v1.OrderType.forNumber(orderType_); return result == null ? ru.tinkoff.piapi.contract.v1.OrderType.UNRECOGNIZED : result; } /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 14; * @param value The orderType to set. * @return This builder for chaining. */ public Builder setOrderType(ru.tinkoff.piapi.contract.v1.OrderType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; orderType_ = value.getNumber(); onChanged(); return this; } /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 14; * @return This builder for chaining. */ public Builder clearOrderType() { bitField0_ = (bitField0_ & ~0x00002000); orderType_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** *
     *Дополнительные данные об исполнении заявки.
     * 
* * string message = 15; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Дополнительные данные об исполнении заявки.
     * 
* * string message = 15; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Дополнительные данные об исполнении заявки.
     * 
* * string message = 15; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Дополнительные данные об исполнении заявки.
     * 
* * string message = 15; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** *
     *Дополнительные данные об исполнении заявки.
     * 
* * string message = 15; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.Quotation initialOrderPricePt_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> initialOrderPricePtBuilder_; /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; * @return Whether the initialOrderPricePt field is set. */ public boolean hasInitialOrderPricePt() { return ((bitField0_ & 0x00008000) != 0); } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; * @return The initialOrderPricePt. */ public ru.tinkoff.piapi.contract.v1.Quotation getInitialOrderPricePt() { if (initialOrderPricePtBuilder_ == null) { return initialOrderPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : initialOrderPricePt_; } else { return initialOrderPricePtBuilder_.getMessage(); } } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ public Builder setInitialOrderPricePt(ru.tinkoff.piapi.contract.v1.Quotation value) { if (initialOrderPricePtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } initialOrderPricePt_ = value; } else { initialOrderPricePtBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ public Builder setInitialOrderPricePt( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (initialOrderPricePtBuilder_ == null) { initialOrderPricePt_ = builderForValue.build(); } else { initialOrderPricePtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ public Builder mergeInitialOrderPricePt(ru.tinkoff.piapi.contract.v1.Quotation value) { if (initialOrderPricePtBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && initialOrderPricePt_ != null && initialOrderPricePt_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getInitialOrderPricePtBuilder().mergeFrom(value); } else { initialOrderPricePt_ = value; } } else { initialOrderPricePtBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ public Builder clearInitialOrderPricePt() { bitField0_ = (bitField0_ & ~0x00008000); initialOrderPricePt_ = null; if (initialOrderPricePtBuilder_ != null) { initialOrderPricePtBuilder_.dispose(); initialOrderPricePtBuilder_ = null; } onChanged(); return this; } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getInitialOrderPricePtBuilder() { bitField0_ |= 0x00008000; onChanged(); return getInitialOrderPricePtFieldBuilder().getBuilder(); } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getInitialOrderPricePtOrBuilder() { if (initialOrderPricePtBuilder_ != null) { return initialOrderPricePtBuilder_.getMessageOrBuilder(); } else { return initialOrderPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : initialOrderPricePt_; } } /** *
     *Начальная цена заявки в пунктах (для фьючерсов).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getInitialOrderPricePtFieldBuilder() { if (initialOrderPricePtBuilder_ == null) { initialOrderPricePtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getInitialOrderPricePt(), getParentForChildren(), isClean()); initialOrderPricePt_ = null; } return initialOrderPricePtBuilder_; } private java.lang.Object instrumentUid_ = ""; /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 17; * @return The instrumentUid. */ public java.lang.String getInstrumentUid() { java.lang.Object ref = instrumentUid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentUid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 17; * @return The bytes for instrumentUid. */ public com.google.protobuf.ByteString getInstrumentUidBytes() { java.lang.Object ref = instrumentUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 17; * @param value The instrumentUid to set. * @return This builder for chaining. */ public Builder setInstrumentUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instrumentUid_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 17; * @return This builder for chaining. */ public Builder clearInstrumentUid() { instrumentUid_ = getDefaultInstance().getInstrumentUid(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 17; * @param value The bytes for instrumentUid to set. * @return This builder for chaining. */ public Builder setInstrumentUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instrumentUid_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } private java.lang.Object orderRequestId_ = ""; /** *
     *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
     * 
* * string order_request_id = 20; * @return The orderRequestId. */ public java.lang.String getOrderRequestId() { java.lang.Object ref = orderRequestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderRequestId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
     * 
* * string order_request_id = 20; * @return The bytes for orderRequestId. */ public com.google.protobuf.ByteString getOrderRequestIdBytes() { java.lang.Object ref = orderRequestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderRequestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
     * 
* * string order_request_id = 20; * @param value The orderRequestId to set. * @return This builder for chaining. */ public Builder setOrderRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } orderRequestId_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
     * 
* * string order_request_id = 20; * @return This builder for chaining. */ public Builder clearOrderRequestId() { orderRequestId_ = getDefaultInstance().getOrderRequestId(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } /** *
     *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
     * 
* * string order_request_id = 20; * @param value The bytes for orderRequestId to set. * @return This builder for chaining. */ public Builder setOrderRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderRequestId_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.PostOrderResponse) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.PostOrderResponse) private static final ru.tinkoff.piapi.contract.v1.PostOrderResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.PostOrderResponse(); } public static ru.tinkoff.piapi.contract.v1.PostOrderResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PostOrderResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PostOrderResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy