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

ru.tinkoff.piapi.contract.v1.OrderState 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.OrderState} */ public final class OrderState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.OrderState) OrderStateOrBuilder { private static final long serialVersionUID = 0L; // Use OrderState.newBuilder() to construct. private OrderState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OrderState() { orderId_ = ""; executionReportStatus_ = 0; figi_ = ""; direction_ = 0; stages_ = java.util.Collections.emptyList(); currency_ = ""; orderType_ = 0; instrumentUid_ = ""; orderRequestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OrderState(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderState_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_OrderState_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.OrderState.class, ru.tinkoff.piapi.contract.v1.OrderState.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 AVERAGE_POSITION_PRICE_FIELD_NUMBER = 8; private ru.tinkoff.piapi.contract.v1.MoneyValue averagePositionPrice_; /** *
   *Средняя цена позиции по сделке.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; * @return Whether the averagePositionPrice field is set. */ @java.lang.Override public boolean hasAveragePositionPrice() { return averagePositionPrice_ != null; } /** *
   *Средняя цена позиции по сделке.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; * @return The averagePositionPrice. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getAveragePositionPrice() { return averagePositionPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPrice_; } /** *
   *Средняя цена позиции по сделке.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAveragePositionPriceOrBuilder() { return averagePositionPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPrice_; } public static final int INITIAL_COMMISSION_FIELD_NUMBER = 9; private ru.tinkoff.piapi.contract.v1.MoneyValue initialCommission_; /** *
   *Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9; * @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 = 9; * @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 = 9; */ @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 = 10; private ru.tinkoff.piapi.contract.v1.MoneyValue executedCommission_; /** *
   *Фактическая комиссия по итогам исполнения заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10; * @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 = 10; * @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 = 10; */ @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 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 STAGES_FIELD_NUMBER = 14; @SuppressWarnings("serial") private java.util.List stages_; /** *
   *Стадии выполнения заявки.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ @java.lang.Override public java.util.List getStagesList() { return stages_; } /** *
   *Стадии выполнения заявки.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ @java.lang.Override public java.util.List getStagesOrBuilderList() { return stages_; } /** *
   *Стадии выполнения заявки.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ @java.lang.Override public int getStagesCount() { return stages_.size(); } /** *
   *Стадии выполнения заявки.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderStage getStages(int index) { return stages_.get(index); } /** *
   *Стадии выполнения заявки.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder getStagesOrBuilder( int index) { return stages_.get(index); } public static final int SERVICE_COMMISSION_FIELD_NUMBER = 15; private ru.tinkoff.piapi.contract.v1.MoneyValue serviceCommission_; /** *
   *Сервисная комиссия.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; * @return Whether the serviceCommission field is set. */ @java.lang.Override public boolean hasServiceCommission() { return serviceCommission_ != null; } /** *
   *Сервисная комиссия.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; * @return The serviceCommission. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getServiceCommission() { return serviceCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : serviceCommission_; } /** *
   *Сервисная комиссия.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getServiceCommissionOrBuilder() { return serviceCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : serviceCommission_; } public static final int CURRENCY_FIELD_NUMBER = 16; @SuppressWarnings("serial") private volatile java.lang.Object currency_ = ""; /** *
   *Валюта заявки.
   * 
* * string currency = 16; * @return The currency. */ @java.lang.Override public java.lang.String getCurrency() { java.lang.Object ref = currency_; 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(); currency_ = s; return s; } } /** *
   *Валюта заявки.
   * 
* * string currency = 16; * @return The bytes for currency. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORDER_TYPE_FIELD_NUMBER = 17; private int orderType_ = 0; /** *
   *Тип заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17; * @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 = 17; * @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 ORDER_DATE_FIELD_NUMBER = 18; private com.google.protobuf.Timestamp orderDate_; /** *
   *Дата и время выставления заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp order_date = 18; * @return Whether the orderDate field is set. */ @java.lang.Override public boolean hasOrderDate() { return orderDate_ != null; } /** *
   *Дата и время выставления заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp order_date = 18; * @return The orderDate. */ @java.lang.Override public com.google.protobuf.Timestamp getOrderDate() { return orderDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : orderDate_; } /** *
   *Дата и время выставления заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp order_date = 18; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getOrderDateOrBuilder() { return orderDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : orderDate_; } public static final int INSTRUMENT_UID_FIELD_NUMBER = 19; @SuppressWarnings("serial") private volatile java.lang.Object instrumentUid_ = ""; /** *
   *UID идентификатор инструмента.
   * 
* * string instrument_uid = 19; * @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 = 19; * @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 (averagePositionPrice_ != null) { output.writeMessage(8, getAveragePositionPrice()); } if (initialCommission_ != null) { output.writeMessage(9, getInitialCommission()); } if (executedCommission_ != null) { output.writeMessage(10, getExecutedCommission()); } 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()); } for (int i = 0; i < stages_.size(); i++) { output.writeMessage(14, stages_.get(i)); } if (serviceCommission_ != null) { output.writeMessage(15, getServiceCommission()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, currency_); } if (orderType_ != ru.tinkoff.piapi.contract.v1.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(17, orderType_); } if (orderDate_ != null) { output.writeMessage(18, getOrderDate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, 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 (averagePositionPrice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getAveragePositionPrice()); } if (initialCommission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getInitialCommission()); } if (executedCommission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getExecutedCommission()); } 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()); } for (int i = 0; i < stages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, stages_.get(i)); } if (serviceCommission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getServiceCommission()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, currency_); } if (orderType_ != ru.tinkoff.piapi.contract.v1.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, orderType_); } if (orderDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getOrderDate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, 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.OrderState)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.OrderState other = (ru.tinkoff.piapi.contract.v1.OrderState) 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 (hasAveragePositionPrice() != other.hasAveragePositionPrice()) return false; if (hasAveragePositionPrice()) { if (!getAveragePositionPrice() .equals(other.getAveragePositionPrice())) 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 (!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 (!getStagesList() .equals(other.getStagesList())) return false; if (hasServiceCommission() != other.hasServiceCommission()) return false; if (hasServiceCommission()) { if (!getServiceCommission() .equals(other.getServiceCommission())) return false; } if (!getCurrency() .equals(other.getCurrency())) return false; if (orderType_ != other.orderType_) return false; if (hasOrderDate() != other.hasOrderDate()) return false; if (hasOrderDate()) { if (!getOrderDate() .equals(other.getOrderDate())) 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 (hasAveragePositionPrice()) { hash = (37 * hash) + AVERAGE_POSITION_PRICE_FIELD_NUMBER; hash = (53 * hash) + getAveragePositionPrice().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(); } 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(); } if (getStagesCount() > 0) { hash = (37 * hash) + STAGES_FIELD_NUMBER; hash = (53 * hash) + getStagesList().hashCode(); } if (hasServiceCommission()) { hash = (37 * hash) + SERVICE_COMMISSION_FIELD_NUMBER; hash = (53 * hash) + getServiceCommission().hashCode(); } hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; hash = (53 * hash) + orderType_; if (hasOrderDate()) { hash = (37 * hash) + ORDER_DATE_FIELD_NUMBER; hash = (53 * hash) + getOrderDate().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.OrderState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OrderState 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.OrderState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OrderState 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.OrderState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OrderState 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.OrderState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.OrderState 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.OrderState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.OrderState 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.OrderState 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.OrderState 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.OrderState 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.OrderState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.OrderState) ru.tinkoff.piapi.contract.v1.OrderStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderState_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_OrderState_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.OrderState.class, ru.tinkoff.piapi.contract.v1.OrderState.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.OrderState.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; } averagePositionPrice_ = null; if (averagePositionPriceBuilder_ != null) { averagePositionPriceBuilder_.dispose(); averagePositionPriceBuilder_ = null; } initialCommission_ = null; if (initialCommissionBuilder_ != null) { initialCommissionBuilder_.dispose(); initialCommissionBuilder_ = null; } executedCommission_ = null; if (executedCommissionBuilder_ != null) { executedCommissionBuilder_.dispose(); executedCommissionBuilder_ = null; } figi_ = ""; direction_ = 0; initialSecurityPrice_ = null; if (initialSecurityPriceBuilder_ != null) { initialSecurityPriceBuilder_.dispose(); initialSecurityPriceBuilder_ = null; } if (stagesBuilder_ == null) { stages_ = java.util.Collections.emptyList(); } else { stages_ = null; stagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); serviceCommission_ = null; if (serviceCommissionBuilder_ != null) { serviceCommissionBuilder_.dispose(); serviceCommissionBuilder_ = null; } currency_ = ""; orderType_ = 0; orderDate_ = null; if (orderDateBuilder_ != null) { orderDateBuilder_.dispose(); orderDateBuilder_ = 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_OrderState_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderState getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.OrderState.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderState build() { ru.tinkoff.piapi.contract.v1.OrderState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderState buildPartial() { ru.tinkoff.piapi.contract.v1.OrderState result = new ru.tinkoff.piapi.contract.v1.OrderState(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.OrderState result) { if (stagesBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0)) { stages_ = java.util.Collections.unmodifiableList(stages_); bitField0_ = (bitField0_ & ~0x00002000); } result.stages_ = stages_; } else { result.stages_ = stagesBuilder_.build(); } } private void buildPartial0(ru.tinkoff.piapi.contract.v1.OrderState 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.averagePositionPrice_ = averagePositionPriceBuilder_ == null ? averagePositionPrice_ : averagePositionPriceBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.initialCommission_ = initialCommissionBuilder_ == null ? initialCommission_ : initialCommissionBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.executedCommission_ = executedCommissionBuilder_ == null ? executedCommission_ : executedCommissionBuilder_.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_ & 0x00004000) != 0)) { result.serviceCommission_ = serviceCommissionBuilder_ == null ? serviceCommission_ : serviceCommissionBuilder_.build(); } if (((from_bitField0_ & 0x00008000) != 0)) { result.currency_ = currency_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.orderType_ = orderType_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.orderDate_ = orderDateBuilder_ == null ? orderDate_ : orderDateBuilder_.build(); } if (((from_bitField0_ & 0x00040000) != 0)) { result.instrumentUid_ = instrumentUid_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.orderRequestId_ = orderRequestId_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.OrderState) { return mergeFrom((ru.tinkoff.piapi.contract.v1.OrderState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.OrderState other) { if (other == ru.tinkoff.piapi.contract.v1.OrderState.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.hasAveragePositionPrice()) { mergeAveragePositionPrice(other.getAveragePositionPrice()); } if (other.hasInitialCommission()) { mergeInitialCommission(other.getInitialCommission()); } if (other.hasExecutedCommission()) { mergeExecutedCommission(other.getExecutedCommission()); } if (!other.getFigi().isEmpty()) { figi_ = other.figi_; bitField0_ |= 0x00000400; onChanged(); } if (other.direction_ != 0) { setDirectionValue(other.getDirectionValue()); } if (other.hasInitialSecurityPrice()) { mergeInitialSecurityPrice(other.getInitialSecurityPrice()); } if (stagesBuilder_ == null) { if (!other.stages_.isEmpty()) { if (stages_.isEmpty()) { stages_ = other.stages_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureStagesIsMutable(); stages_.addAll(other.stages_); } onChanged(); } } else { if (!other.stages_.isEmpty()) { if (stagesBuilder_.isEmpty()) { stagesBuilder_.dispose(); stagesBuilder_ = null; stages_ = other.stages_; bitField0_ = (bitField0_ & ~0x00002000); stagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStagesFieldBuilder() : null; } else { stagesBuilder_.addAllMessages(other.stages_); } } } if (other.hasServiceCommission()) { mergeServiceCommission(other.getServiceCommission()); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; bitField0_ |= 0x00008000; onChanged(); } if (other.orderType_ != 0) { setOrderTypeValue(other.getOrderTypeValue()); } if (other.hasOrderDate()) { mergeOrderDate(other.getOrderDate()); } if (!other.getInstrumentUid().isEmpty()) { instrumentUid_ = other.instrumentUid_; bitField0_ |= 0x00040000; onChanged(); } if (!other.getOrderRequestId().isEmpty()) { orderRequestId_ = other.orderRequestId_; bitField0_ |= 0x00080000; 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( getAveragePositionPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getInitialCommissionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getExecutedCommissionFieldBuilder().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 114: { ru.tinkoff.piapi.contract.v1.OrderStage m = input.readMessage( ru.tinkoff.piapi.contract.v1.OrderStage.parser(), extensionRegistry); if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(m); } else { stagesBuilder_.addMessage(m); } break; } // case 114 case 122: { input.readMessage( getServiceCommissionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 122 case 130: { currency_ = input.readStringRequireUtf8(); bitField0_ |= 0x00008000; break; } // case 130 case 136: { orderType_ = input.readEnum(); bitField0_ |= 0x00010000; break; } // case 136 case 146: { input.readMessage( getOrderDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 146 case 154: { instrumentUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00040000; break; } // case 154 case 162: { orderRequestId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00080000; 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 averagePositionPrice_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> averagePositionPriceBuilder_; /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; * @return Whether the averagePositionPrice field is set. */ public boolean hasAveragePositionPrice() { return ((bitField0_ & 0x00000080) != 0); } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; * @return The averagePositionPrice. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getAveragePositionPrice() { if (averagePositionPriceBuilder_ == null) { return averagePositionPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPrice_; } else { return averagePositionPriceBuilder_.getMessage(); } } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; */ public Builder setAveragePositionPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (averagePositionPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } averagePositionPrice_ = value; } else { averagePositionPriceBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; */ public Builder setAveragePositionPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (averagePositionPriceBuilder_ == null) { averagePositionPrice_ = builderForValue.build(); } else { averagePositionPriceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; */ public Builder mergeAveragePositionPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (averagePositionPriceBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && averagePositionPrice_ != null && averagePositionPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getAveragePositionPriceBuilder().mergeFrom(value); } else { averagePositionPrice_ = value; } } else { averagePositionPriceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; */ public Builder clearAveragePositionPrice() { bitField0_ = (bitField0_ & ~0x00000080); averagePositionPrice_ = null; if (averagePositionPriceBuilder_ != null) { averagePositionPriceBuilder_.dispose(); averagePositionPriceBuilder_ = null; } onChanged(); return this; } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getAveragePositionPriceBuilder() { bitField0_ |= 0x00000080; onChanged(); return getAveragePositionPriceFieldBuilder().getBuilder(); } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAveragePositionPriceOrBuilder() { if (averagePositionPriceBuilder_ != null) { return averagePositionPriceBuilder_.getMessageOrBuilder(); } else { return averagePositionPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPrice_; } } /** *
     *Средняя цена позиции по сделке.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 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> getAveragePositionPriceFieldBuilder() { if (averagePositionPriceBuilder_ == null) { averagePositionPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getAveragePositionPrice(), getParentForChildren(), isClean()); averagePositionPrice_ = null; } return averagePositionPriceBuilder_; } 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 = 9; * @return Whether the initialCommission field is set. */ public boolean hasInitialCommission() { return ((bitField0_ & 0x00000100) != 0); } /** *
     *Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9; * @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 = 9; */ 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_ |= 0x00000100; onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9; */ public Builder setInitialCommission( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (initialCommissionBuilder_ == null) { initialCommission_ = builderForValue.build(); } else { initialCommissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9; */ public Builder mergeInitialCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (initialCommissionBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && initialCommission_ != null && initialCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getInitialCommissionBuilder().mergeFrom(value); } else { initialCommission_ = value; } } else { initialCommissionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9; */ public Builder clearInitialCommission() { bitField0_ = (bitField0_ & ~0x00000100); initialCommission_ = null; if (initialCommissionBuilder_ != null) { initialCommissionBuilder_.dispose(); initialCommissionBuilder_ = null; } onChanged(); return this; } /** *
     *Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialCommissionBuilder() { bitField0_ |= 0x00000100; onChanged(); return getInitialCommissionFieldBuilder().getBuilder(); } /** *
     *Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9; */ 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 = 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> 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 = 10; * @return Whether the executedCommission field is set. */ public boolean hasExecutedCommission() { return ((bitField0_ & 0x00000200) != 0); } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10; * @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 = 10; */ 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_ |= 0x00000200; onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10; */ public Builder setExecutedCommission( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (executedCommissionBuilder_ == null) { executedCommission_ = builderForValue.build(); } else { executedCommissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10; */ public Builder mergeExecutedCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (executedCommissionBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && executedCommission_ != null && executedCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getExecutedCommissionBuilder().mergeFrom(value); } else { executedCommission_ = value; } } else { executedCommissionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10; */ public Builder clearExecutedCommission() { bitField0_ = (bitField0_ & ~0x00000200); executedCommission_ = null; if (executedCommissionBuilder_ != null) { executedCommissionBuilder_.dispose(); executedCommissionBuilder_ = null; } onChanged(); return this; } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getExecutedCommissionBuilder() { bitField0_ |= 0x00000200; onChanged(); return getExecutedCommissionFieldBuilder().getBuilder(); } /** *
     *Фактическая комиссия по итогам исполнения заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10; */ 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 = 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> 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 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 java.util.List stages_ = java.util.Collections.emptyList(); private void ensureStagesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { stages_ = new java.util.ArrayList(stages_); bitField0_ |= 0x00002000; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OrderStage, ru.tinkoff.piapi.contract.v1.OrderStage.Builder, ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder> stagesBuilder_; /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public java.util.List getStagesList() { if (stagesBuilder_ == null) { return java.util.Collections.unmodifiableList(stages_); } else { return stagesBuilder_.getMessageList(); } } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public int getStagesCount() { if (stagesBuilder_ == null) { return stages_.size(); } else { return stagesBuilder_.getCount(); } } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public ru.tinkoff.piapi.contract.v1.OrderStage getStages(int index) { if (stagesBuilder_ == null) { return stages_.get(index); } else { return stagesBuilder_.getMessage(index); } } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder setStages( int index, ru.tinkoff.piapi.contract.v1.OrderStage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStagesIsMutable(); stages_.set(index, value); onChanged(); } else { stagesBuilder_.setMessage(index, value); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder setStages( int index, ru.tinkoff.piapi.contract.v1.OrderStage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.set(index, builderForValue.build()); onChanged(); } else { stagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder addStages(ru.tinkoff.piapi.contract.v1.OrderStage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStagesIsMutable(); stages_.add(value); onChanged(); } else { stagesBuilder_.addMessage(value); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder addStages( int index, ru.tinkoff.piapi.contract.v1.OrderStage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStagesIsMutable(); stages_.add(index, value); onChanged(); } else { stagesBuilder_.addMessage(index, value); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder addStages( ru.tinkoff.piapi.contract.v1.OrderStage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(builderForValue.build()); onChanged(); } else { stagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder addStages( int index, ru.tinkoff.piapi.contract.v1.OrderStage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(index, builderForValue.build()); onChanged(); } else { stagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder addAllStages( java.lang.Iterable values) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stages_); onChanged(); } else { stagesBuilder_.addAllMessages(values); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder clearStages() { if (stagesBuilder_ == null) { stages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { stagesBuilder_.clear(); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public Builder removeStages(int index) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.remove(index); onChanged(); } else { stagesBuilder_.remove(index); } return this; } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public ru.tinkoff.piapi.contract.v1.OrderStage.Builder getStagesBuilder( int index) { return getStagesFieldBuilder().getBuilder(index); } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder getStagesOrBuilder( int index) { if (stagesBuilder_ == null) { return stages_.get(index); } else { return stagesBuilder_.getMessageOrBuilder(index); } } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public java.util.List getStagesOrBuilderList() { if (stagesBuilder_ != null) { return stagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(stages_); } } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public ru.tinkoff.piapi.contract.v1.OrderStage.Builder addStagesBuilder() { return getStagesFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.OrderStage.getDefaultInstance()); } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public ru.tinkoff.piapi.contract.v1.OrderStage.Builder addStagesBuilder( int index) { return getStagesFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.OrderStage.getDefaultInstance()); } /** *
     *Стадии выполнения заявки.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14; */ public java.util.List getStagesBuilderList() { return getStagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OrderStage, ru.tinkoff.piapi.contract.v1.OrderStage.Builder, ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder> getStagesFieldBuilder() { if (stagesBuilder_ == null) { stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OrderStage, ru.tinkoff.piapi.contract.v1.OrderStage.Builder, ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder>( stages_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); stages_ = null; } return stagesBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue serviceCommission_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> serviceCommissionBuilder_; /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; * @return Whether the serviceCommission field is set. */ public boolean hasServiceCommission() { return ((bitField0_ & 0x00004000) != 0); } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; * @return The serviceCommission. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getServiceCommission() { if (serviceCommissionBuilder_ == null) { return serviceCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : serviceCommission_; } else { return serviceCommissionBuilder_.getMessage(); } } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ public Builder setServiceCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (serviceCommissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceCommission_ = value; } else { serviceCommissionBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ public Builder setServiceCommission( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (serviceCommissionBuilder_ == null) { serviceCommission_ = builderForValue.build(); } else { serviceCommissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ public Builder mergeServiceCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (serviceCommissionBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && serviceCommission_ != null && serviceCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getServiceCommissionBuilder().mergeFrom(value); } else { serviceCommission_ = value; } } else { serviceCommissionBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ public Builder clearServiceCommission() { bitField0_ = (bitField0_ & ~0x00004000); serviceCommission_ = null; if (serviceCommissionBuilder_ != null) { serviceCommissionBuilder_.dispose(); serviceCommissionBuilder_ = null; } onChanged(); return this; } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getServiceCommissionBuilder() { bitField0_ |= 0x00004000; onChanged(); return getServiceCommissionFieldBuilder().getBuilder(); } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getServiceCommissionOrBuilder() { if (serviceCommissionBuilder_ != null) { return serviceCommissionBuilder_.getMessageOrBuilder(); } else { return serviceCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : serviceCommission_; } } /** *
     *Сервисная комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getServiceCommissionFieldBuilder() { if (serviceCommissionBuilder_ == null) { serviceCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getServiceCommission(), getParentForChildren(), isClean()); serviceCommission_ = null; } return serviceCommissionBuilder_; } private java.lang.Object currency_ = ""; /** *
     *Валюта заявки.
     * 
* * string currency = 16; * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Валюта заявки.
     * 
* * string currency = 16; * @return The bytes for currency. */ public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Валюта заявки.
     * 
* * string currency = 16; * @param value The currency to set. * @return This builder for chaining. */ public Builder setCurrency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currency_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Валюта заявки.
     * 
* * string currency = 16; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** *
     *Валюта заявки.
     * 
* * string currency = 16; * @param value The bytes for currency to set. * @return This builder for chaining. */ public Builder setCurrencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } private int orderType_ = 0; /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17; * @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 = 17; * @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_ |= 0x00010000; onChanged(); return this; } /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17; * @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 = 17; * @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_ |= 0x00010000; orderType_ = value.getNumber(); onChanged(); return this; } /** *
     *Тип заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17; * @return This builder for chaining. */ public Builder clearOrderType() { bitField0_ = (bitField0_ & ~0x00010000); orderType_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp orderDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> orderDateBuilder_; /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; * @return Whether the orderDate field is set. */ public boolean hasOrderDate() { return ((bitField0_ & 0x00020000) != 0); } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; * @return The orderDate. */ public com.google.protobuf.Timestamp getOrderDate() { if (orderDateBuilder_ == null) { return orderDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : orderDate_; } else { return orderDateBuilder_.getMessage(); } } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; */ public Builder setOrderDate(com.google.protobuf.Timestamp value) { if (orderDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } orderDate_ = value; } else { orderDateBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; */ public Builder setOrderDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (orderDateBuilder_ == null) { orderDate_ = builderForValue.build(); } else { orderDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; */ public Builder mergeOrderDate(com.google.protobuf.Timestamp value) { if (orderDateBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && orderDate_ != null && orderDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getOrderDateBuilder().mergeFrom(value); } else { orderDate_ = value; } } else { orderDateBuilder_.mergeFrom(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; */ public Builder clearOrderDate() { bitField0_ = (bitField0_ & ~0x00020000); orderDate_ = null; if (orderDateBuilder_ != null) { orderDateBuilder_.dispose(); orderDateBuilder_ = null; } onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; */ public com.google.protobuf.Timestamp.Builder getOrderDateBuilder() { bitField0_ |= 0x00020000; onChanged(); return getOrderDateFieldBuilder().getBuilder(); } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; */ public com.google.protobuf.TimestampOrBuilder getOrderDateOrBuilder() { if (orderDateBuilder_ != null) { return orderDateBuilder_.getMessageOrBuilder(); } else { return orderDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : orderDate_; } } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp order_date = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getOrderDateFieldBuilder() { if (orderDateBuilder_ == null) { orderDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getOrderDate(), getParentForChildren(), isClean()); orderDate_ = null; } return orderDateBuilder_; } private java.lang.Object instrumentUid_ = ""; /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 19; * @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 = 19; * @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 = 19; * @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_ |= 0x00040000; onChanged(); return this; } /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 19; * @return This builder for chaining. */ public Builder clearInstrumentUid() { instrumentUid_ = getDefaultInstance().getInstrumentUid(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** *
     *UID идентификатор инструмента.
     * 
* * string instrument_uid = 19; * @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_ |= 0x00040000; 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_ |= 0x00080000; onChanged(); return this; } /** *
     *Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
     * 
* * string order_request_id = 20; * @return This builder for chaining. */ public Builder clearOrderRequestId() { orderRequestId_ = getDefaultInstance().getOrderRequestId(); bitField0_ = (bitField0_ & ~0x00080000); 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_ |= 0x00080000; 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.OrderState) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.OrderState) private static final ru.tinkoff.piapi.contract.v1.OrderState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.OrderState(); } public static ru.tinkoff.piapi.contract.v1.OrderState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OrderState 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.OrderState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy