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

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

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

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Позиции портфеля.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.PortfolioPosition} */ public final class PortfolioPosition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.PortfolioPosition) PortfolioPositionOrBuilder { private static final long serialVersionUID = 0L; // Use PortfolioPosition.newBuilder() to construct. private PortfolioPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PortfolioPosition() { figi_ = ""; instrumentType_ = ""; positionUid_ = ""; instrumentUid_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PortfolioPosition(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PortfolioPosition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PortfolioPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PortfolioPosition.class, ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder.class); } public static final int FIGI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object figi_ = ""; /** *
   *Figi-идентификатора инструмента.
   * 
* * string figi = 1; * @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 = 1; * @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 INSTRUMENT_TYPE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object instrumentType_ = ""; /** *
   *Тип инструмента.
   * 
* * string instrument_type = 2; * @return The instrumentType. */ @java.lang.Override public java.lang.String getInstrumentType() { java.lang.Object ref = instrumentType_; 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(); instrumentType_ = s; return s; } } /** *
   *Тип инструмента.
   * 
* * string instrument_type = 2; * @return The bytes for instrumentType. */ @java.lang.Override public com.google.protobuf.ByteString getInstrumentTypeBytes() { java.lang.Object ref = instrumentType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUANTITY_FIELD_NUMBER = 3; private ru.tinkoff.piapi.contract.v1.Quotation quantity_; /** *
   *Количество инструмента в портфеле в штуках.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; * @return Whether the quantity field is set. */ @java.lang.Override public boolean hasQuantity() { return quantity_ != null; } /** *
   *Количество инструмента в портфеле в штуках.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; * @return The quantity. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getQuantity() { return quantity_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantity_; } /** *
   *Количество инструмента в портфеле в штуках.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getQuantityOrBuilder() { return quantity_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantity_; } public static final int AVERAGE_POSITION_PRICE_FIELD_NUMBER = 4; private ru.tinkoff.piapi.contract.v1.MoneyValue averagePositionPrice_; /** *
   *Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; * @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 = 4; * @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 = 4; */ @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 EXPECTED_YIELD_FIELD_NUMBER = 5; private ru.tinkoff.piapi.contract.v1.Quotation expectedYield_; /** *
   *Текущая рассчитанная доходность позиции.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; * @return Whether the expectedYield field is set. */ @java.lang.Override public boolean hasExpectedYield() { return expectedYield_ != null; } /** *
   *Текущая рассчитанная доходность позиции.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; * @return The expectedYield. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getExpectedYield() { return expectedYield_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYield_; } /** *
   *Текущая рассчитанная доходность позиции.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getExpectedYieldOrBuilder() { return expectedYield_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYield_; } public static final int CURRENT_NKD_FIELD_NUMBER = 6; private ru.tinkoff.piapi.contract.v1.MoneyValue currentNkd_; /** *
   * Текущий НКД.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; * @return Whether the currentNkd field is set. */ @java.lang.Override public boolean hasCurrentNkd() { return currentNkd_ != null; } /** *
   * Текущий НКД.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; * @return The currentNkd. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getCurrentNkd() { return currentNkd_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentNkd_; } /** *
   * Текущий НКД.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getCurrentNkdOrBuilder() { return currentNkd_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentNkd_; } public static final int AVERAGE_POSITION_PRICE_PT_FIELD_NUMBER = 7; private ru.tinkoff.piapi.contract.v1.Quotation averagePositionPricePt_; /** *
   * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.average_position_price_pt is deprecated. * See operations.proto;l=155 * @return Whether the averagePositionPricePt field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasAveragePositionPricePt() { return averagePositionPricePt_ != null; } /** *
   * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.average_position_price_pt is deprecated. * See operations.proto;l=155 * @return The averagePositionPricePt. */ @java.lang.Override @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.Quotation getAveragePositionPricePt() { return averagePositionPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : averagePositionPricePt_; } /** *
   * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getAveragePositionPricePtOrBuilder() { return averagePositionPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : averagePositionPricePt_; } public static final int CURRENT_PRICE_FIELD_NUMBER = 8; private ru.tinkoff.piapi.contract.v1.MoneyValue currentPrice_; /** *
   *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; * @return Whether the currentPrice field is set. */ @java.lang.Override public boolean hasCurrentPrice() { return currentPrice_ != null; } /** *
   *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; * @return The currentPrice. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getCurrentPrice() { return currentPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentPrice_; } /** *
   *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getCurrentPriceOrBuilder() { return currentPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentPrice_; } public static final int AVERAGE_POSITION_PRICE_FIFO_FIELD_NUMBER = 9; private ru.tinkoff.piapi.contract.v1.MoneyValue averagePositionPriceFifo_; /** *
   *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; * @return Whether the averagePositionPriceFifo field is set. */ @java.lang.Override public boolean hasAveragePositionPriceFifo() { return averagePositionPriceFifo_ != null; } /** *
   *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; * @return The averagePositionPriceFifo. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getAveragePositionPriceFifo() { return averagePositionPriceFifo_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPriceFifo_; } /** *
   *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAveragePositionPriceFifoOrBuilder() { return averagePositionPriceFifo_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPriceFifo_; } public static final int QUANTITY_LOTS_FIELD_NUMBER = 10; private ru.tinkoff.piapi.contract.v1.Quotation quantityLots_; /** *
   *Deprecated Количество лотов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.quantity_lots is deprecated. * See operations.proto;l=158 * @return Whether the quantityLots field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasQuantityLots() { return quantityLots_ != null; } /** *
   *Deprecated Количество лотов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.quantity_lots is deprecated. * See operations.proto;l=158 * @return The quantityLots. */ @java.lang.Override @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.Quotation getQuantityLots() { return quantityLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantityLots_; } /** *
   *Deprecated Количество лотов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getQuantityLotsOrBuilder() { return quantityLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantityLots_; } public static final int BLOCKED_FIELD_NUMBER = 21; private boolean blocked_ = false; /** *
   *Заблокировано на бирже.
   * 
* * bool blocked = 21; * @return The blocked. */ @java.lang.Override public boolean getBlocked() { return blocked_; } public static final int BLOCKED_LOTS_FIELD_NUMBER = 22; private ru.tinkoff.piapi.contract.v1.Quotation blockedLots_; /** *
   *Количество бумаг, заблокированных выставленными заявками.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; * @return Whether the blockedLots field is set. */ @java.lang.Override public boolean hasBlockedLots() { return blockedLots_ != null; } /** *
   *Количество бумаг, заблокированных выставленными заявками.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; * @return The blockedLots. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getBlockedLots() { return blockedLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : blockedLots_; } /** *
   *Количество бумаг, заблокированных выставленными заявками.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getBlockedLotsOrBuilder() { return blockedLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : blockedLots_; } public static final int POSITION_UID_FIELD_NUMBER = 24; @SuppressWarnings("serial") private volatile java.lang.Object positionUid_ = ""; /** *
   *position_uid-идентификатора инструмента
   * 
* * string position_uid = 24; * @return The positionUid. */ @java.lang.Override public java.lang.String getPositionUid() { java.lang.Object ref = positionUid_; 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(); positionUid_ = s; return s; } } /** *
   *position_uid-идентификатора инструмента
   * 
* * string position_uid = 24; * @return The bytes for positionUid. */ @java.lang.Override public com.google.protobuf.ByteString getPositionUidBytes() { java.lang.Object ref = positionUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); positionUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTRUMENT_UID_FIELD_NUMBER = 25; @SuppressWarnings("serial") private volatile java.lang.Object instrumentUid_ = ""; /** *
   *instrument_uid-идентификатора инструмента
   * 
* * string instrument_uid = 25; * @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; } } /** *
   *instrument_uid-идентификатора инструмента
   * 
* * string instrument_uid = 25; * @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 VAR_MARGIN_FIELD_NUMBER = 26; private ru.tinkoff.piapi.contract.v1.MoneyValue varMargin_; /** *
   *Вариационная маржа
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; * @return Whether the varMargin field is set. */ @java.lang.Override public boolean hasVarMargin() { return varMargin_ != null; } /** *
   *Вариационная маржа
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; * @return The varMargin. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getVarMargin() { return varMargin_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : varMargin_; } /** *
   *Вариационная маржа
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getVarMarginOrBuilder() { return varMargin_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : varMargin_; } public static final int EXPECTED_YIELD_FIFO_FIELD_NUMBER = 27; private ru.tinkoff.piapi.contract.v1.Quotation expectedYieldFifo_; /** *
   *Текущая рассчитанная доходность позиции.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; * @return Whether the expectedYieldFifo field is set. */ @java.lang.Override public boolean hasExpectedYieldFifo() { return expectedYieldFifo_ != null; } /** *
   *Текущая рассчитанная доходность позиции.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; * @return The expectedYieldFifo. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getExpectedYieldFifo() { return expectedYieldFifo_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYieldFifo_; } /** *
   *Текущая рассчитанная доходность позиции.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getExpectedYieldFifoOrBuilder() { return expectedYieldFifo_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYieldFifo_; } 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(figi_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, figi_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instrumentType_); } if (quantity_ != null) { output.writeMessage(3, getQuantity()); } if (averagePositionPrice_ != null) { output.writeMessage(4, getAveragePositionPrice()); } if (expectedYield_ != null) { output.writeMessage(5, getExpectedYield()); } if (currentNkd_ != null) { output.writeMessage(6, getCurrentNkd()); } if (averagePositionPricePt_ != null) { output.writeMessage(7, getAveragePositionPricePt()); } if (currentPrice_ != null) { output.writeMessage(8, getCurrentPrice()); } if (averagePositionPriceFifo_ != null) { output.writeMessage(9, getAveragePositionPriceFifo()); } if (quantityLots_ != null) { output.writeMessage(10, getQuantityLots()); } if (blocked_ != false) { output.writeBool(21, blocked_); } if (blockedLots_ != null) { output.writeMessage(22, getBlockedLots()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(positionUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, positionUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, instrumentUid_); } if (varMargin_ != null) { output.writeMessage(26, getVarMargin()); } if (expectedYieldFifo_ != null) { output.writeMessage(27, getExpectedYieldFifo()); } 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(figi_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, figi_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instrumentType_); } if (quantity_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getQuantity()); } if (averagePositionPrice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAveragePositionPrice()); } if (expectedYield_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getExpectedYield()); } if (currentNkd_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCurrentNkd()); } if (averagePositionPricePt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAveragePositionPricePt()); } if (currentPrice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCurrentPrice()); } if (averagePositionPriceFifo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getAveragePositionPriceFifo()); } if (quantityLots_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getQuantityLots()); } if (blocked_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, blocked_); } if (blockedLots_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, getBlockedLots()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(positionUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, positionUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, instrumentUid_); } if (varMargin_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, getVarMargin()); } if (expectedYieldFifo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, getExpectedYieldFifo()); } 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.PortfolioPosition)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.PortfolioPosition other = (ru.tinkoff.piapi.contract.v1.PortfolioPosition) obj; if (!getFigi() .equals(other.getFigi())) return false; if (!getInstrumentType() .equals(other.getInstrumentType())) return false; if (hasQuantity() != other.hasQuantity()) return false; if (hasQuantity()) { if (!getQuantity() .equals(other.getQuantity())) return false; } if (hasAveragePositionPrice() != other.hasAveragePositionPrice()) return false; if (hasAveragePositionPrice()) { if (!getAveragePositionPrice() .equals(other.getAveragePositionPrice())) return false; } if (hasExpectedYield() != other.hasExpectedYield()) return false; if (hasExpectedYield()) { if (!getExpectedYield() .equals(other.getExpectedYield())) return false; } if (hasCurrentNkd() != other.hasCurrentNkd()) return false; if (hasCurrentNkd()) { if (!getCurrentNkd() .equals(other.getCurrentNkd())) return false; } if (hasAveragePositionPricePt() != other.hasAveragePositionPricePt()) return false; if (hasAveragePositionPricePt()) { if (!getAveragePositionPricePt() .equals(other.getAveragePositionPricePt())) return false; } if (hasCurrentPrice() != other.hasCurrentPrice()) return false; if (hasCurrentPrice()) { if (!getCurrentPrice() .equals(other.getCurrentPrice())) return false; } if (hasAveragePositionPriceFifo() != other.hasAveragePositionPriceFifo()) return false; if (hasAveragePositionPriceFifo()) { if (!getAveragePositionPriceFifo() .equals(other.getAveragePositionPriceFifo())) return false; } if (hasQuantityLots() != other.hasQuantityLots()) return false; if (hasQuantityLots()) { if (!getQuantityLots() .equals(other.getQuantityLots())) return false; } if (getBlocked() != other.getBlocked()) return false; if (hasBlockedLots() != other.hasBlockedLots()) return false; if (hasBlockedLots()) { if (!getBlockedLots() .equals(other.getBlockedLots())) return false; } if (!getPositionUid() .equals(other.getPositionUid())) return false; if (!getInstrumentUid() .equals(other.getInstrumentUid())) return false; if (hasVarMargin() != other.hasVarMargin()) return false; if (hasVarMargin()) { if (!getVarMargin() .equals(other.getVarMargin())) return false; } if (hasExpectedYieldFifo() != other.hasExpectedYieldFifo()) return false; if (hasExpectedYieldFifo()) { if (!getExpectedYieldFifo() .equals(other.getExpectedYieldFifo())) 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) + FIGI_FIELD_NUMBER; hash = (53 * hash) + getFigi().hashCode(); hash = (37 * hash) + INSTRUMENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInstrumentType().hashCode(); if (hasQuantity()) { hash = (37 * hash) + QUANTITY_FIELD_NUMBER; hash = (53 * hash) + getQuantity().hashCode(); } if (hasAveragePositionPrice()) { hash = (37 * hash) + AVERAGE_POSITION_PRICE_FIELD_NUMBER; hash = (53 * hash) + getAveragePositionPrice().hashCode(); } if (hasExpectedYield()) { hash = (37 * hash) + EXPECTED_YIELD_FIELD_NUMBER; hash = (53 * hash) + getExpectedYield().hashCode(); } if (hasCurrentNkd()) { hash = (37 * hash) + CURRENT_NKD_FIELD_NUMBER; hash = (53 * hash) + getCurrentNkd().hashCode(); } if (hasAveragePositionPricePt()) { hash = (37 * hash) + AVERAGE_POSITION_PRICE_PT_FIELD_NUMBER; hash = (53 * hash) + getAveragePositionPricePt().hashCode(); } if (hasCurrentPrice()) { hash = (37 * hash) + CURRENT_PRICE_FIELD_NUMBER; hash = (53 * hash) + getCurrentPrice().hashCode(); } if (hasAveragePositionPriceFifo()) { hash = (37 * hash) + AVERAGE_POSITION_PRICE_FIFO_FIELD_NUMBER; hash = (53 * hash) + getAveragePositionPriceFifo().hashCode(); } if (hasQuantityLots()) { hash = (37 * hash) + QUANTITY_LOTS_FIELD_NUMBER; hash = (53 * hash) + getQuantityLots().hashCode(); } hash = (37 * hash) + BLOCKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBlocked()); if (hasBlockedLots()) { hash = (37 * hash) + BLOCKED_LOTS_FIELD_NUMBER; hash = (53 * hash) + getBlockedLots().hashCode(); } hash = (37 * hash) + POSITION_UID_FIELD_NUMBER; hash = (53 * hash) + getPositionUid().hashCode(); hash = (37 * hash) + INSTRUMENT_UID_FIELD_NUMBER; hash = (53 * hash) + getInstrumentUid().hashCode(); if (hasVarMargin()) { hash = (37 * hash) + VAR_MARGIN_FIELD_NUMBER; hash = (53 * hash) + getVarMargin().hashCode(); } if (hasExpectedYieldFifo()) { hash = (37 * hash) + EXPECTED_YIELD_FIFO_FIELD_NUMBER; hash = (53 * hash) + getExpectedYieldFifo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.PortfolioPosition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PortfolioPosition 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.PortfolioPosition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PortfolioPosition 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.PortfolioPosition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PortfolioPosition 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.PortfolioPosition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PortfolioPosition 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.PortfolioPosition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PortfolioPosition 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.PortfolioPosition 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.PortfolioPosition 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.PortfolioPosition 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.PortfolioPosition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.PortfolioPosition) ru.tinkoff.piapi.contract.v1.PortfolioPositionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PortfolioPosition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PortfolioPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PortfolioPosition.class, ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.PortfolioPosition.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; figi_ = ""; instrumentType_ = ""; quantity_ = null; if (quantityBuilder_ != null) { quantityBuilder_.dispose(); quantityBuilder_ = null; } averagePositionPrice_ = null; if (averagePositionPriceBuilder_ != null) { averagePositionPriceBuilder_.dispose(); averagePositionPriceBuilder_ = null; } expectedYield_ = null; if (expectedYieldBuilder_ != null) { expectedYieldBuilder_.dispose(); expectedYieldBuilder_ = null; } currentNkd_ = null; if (currentNkdBuilder_ != null) { currentNkdBuilder_.dispose(); currentNkdBuilder_ = null; } averagePositionPricePt_ = null; if (averagePositionPricePtBuilder_ != null) { averagePositionPricePtBuilder_.dispose(); averagePositionPricePtBuilder_ = null; } currentPrice_ = null; if (currentPriceBuilder_ != null) { currentPriceBuilder_.dispose(); currentPriceBuilder_ = null; } averagePositionPriceFifo_ = null; if (averagePositionPriceFifoBuilder_ != null) { averagePositionPriceFifoBuilder_.dispose(); averagePositionPriceFifoBuilder_ = null; } quantityLots_ = null; if (quantityLotsBuilder_ != null) { quantityLotsBuilder_.dispose(); quantityLotsBuilder_ = null; } blocked_ = false; blockedLots_ = null; if (blockedLotsBuilder_ != null) { blockedLotsBuilder_.dispose(); blockedLotsBuilder_ = null; } positionUid_ = ""; instrumentUid_ = ""; varMargin_ = null; if (varMarginBuilder_ != null) { varMarginBuilder_.dispose(); varMarginBuilder_ = null; } expectedYieldFifo_ = null; if (expectedYieldFifoBuilder_ != null) { expectedYieldFifoBuilder_.dispose(); expectedYieldFifoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PortfolioPosition_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioPosition getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.PortfolioPosition.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioPosition build() { ru.tinkoff.piapi.contract.v1.PortfolioPosition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioPosition buildPartial() { ru.tinkoff.piapi.contract.v1.PortfolioPosition result = new ru.tinkoff.piapi.contract.v1.PortfolioPosition(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.PortfolioPosition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.figi_ = figi_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.instrumentType_ = instrumentType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.quantity_ = quantityBuilder_ == null ? quantity_ : quantityBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.averagePositionPrice_ = averagePositionPriceBuilder_ == null ? averagePositionPrice_ : averagePositionPriceBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.expectedYield_ = expectedYieldBuilder_ == null ? expectedYield_ : expectedYieldBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.currentNkd_ = currentNkdBuilder_ == null ? currentNkd_ : currentNkdBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.averagePositionPricePt_ = averagePositionPricePtBuilder_ == null ? averagePositionPricePt_ : averagePositionPricePtBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.currentPrice_ = currentPriceBuilder_ == null ? currentPrice_ : currentPriceBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.averagePositionPriceFifo_ = averagePositionPriceFifoBuilder_ == null ? averagePositionPriceFifo_ : averagePositionPriceFifoBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.quantityLots_ = quantityLotsBuilder_ == null ? quantityLots_ : quantityLotsBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.blocked_ = blocked_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.blockedLots_ = blockedLotsBuilder_ == null ? blockedLots_ : blockedLotsBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.positionUid_ = positionUid_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.instrumentUid_ = instrumentUid_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.varMargin_ = varMarginBuilder_ == null ? varMargin_ : varMarginBuilder_.build(); } if (((from_bitField0_ & 0x00008000) != 0)) { result.expectedYieldFifo_ = expectedYieldFifoBuilder_ == null ? expectedYieldFifo_ : expectedYieldFifoBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.PortfolioPosition) { return mergeFrom((ru.tinkoff.piapi.contract.v1.PortfolioPosition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.PortfolioPosition other) { if (other == ru.tinkoff.piapi.contract.v1.PortfolioPosition.getDefaultInstance()) return this; if (!other.getFigi().isEmpty()) { figi_ = other.figi_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getInstrumentType().isEmpty()) { instrumentType_ = other.instrumentType_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasQuantity()) { mergeQuantity(other.getQuantity()); } if (other.hasAveragePositionPrice()) { mergeAveragePositionPrice(other.getAveragePositionPrice()); } if (other.hasExpectedYield()) { mergeExpectedYield(other.getExpectedYield()); } if (other.hasCurrentNkd()) { mergeCurrentNkd(other.getCurrentNkd()); } if (other.hasAveragePositionPricePt()) { mergeAveragePositionPricePt(other.getAveragePositionPricePt()); } if (other.hasCurrentPrice()) { mergeCurrentPrice(other.getCurrentPrice()); } if (other.hasAveragePositionPriceFifo()) { mergeAveragePositionPriceFifo(other.getAveragePositionPriceFifo()); } if (other.hasQuantityLots()) { mergeQuantityLots(other.getQuantityLots()); } if (other.getBlocked() != false) { setBlocked(other.getBlocked()); } if (other.hasBlockedLots()) { mergeBlockedLots(other.getBlockedLots()); } if (!other.getPositionUid().isEmpty()) { positionUid_ = other.positionUid_; bitField0_ |= 0x00001000; onChanged(); } if (!other.getInstrumentUid().isEmpty()) { instrumentUid_ = other.instrumentUid_; bitField0_ |= 0x00002000; onChanged(); } if (other.hasVarMargin()) { mergeVarMargin(other.getVarMargin()); } if (other.hasExpectedYieldFifo()) { mergeExpectedYieldFifo(other.getExpectedYieldFifo()); } 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: { figi_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { instrumentType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getQuantityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getAveragePositionPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getExpectedYieldFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getCurrentNkdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getAveragePositionPricePtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getCurrentPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getAveragePositionPriceFifoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getQuantityLotsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 168: { blocked_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 168 case 178: { input.readMessage( getBlockedLotsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 178 case 194: { positionUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 194 case 202: { instrumentUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 202 case 210: { input.readMessage( getVarMarginFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 210 case 218: { input.readMessage( getExpectedYieldFifoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 218 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 figi_ = ""; /** *
     *Figi-идентификатора инструмента.
     * 
* * string figi = 1; * @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 = 1; * @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 = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** *
     *Figi-идентификатора инструмента.
     * 
* * string figi = 1; * @return This builder for chaining. */ public Builder clearFigi() { figi_ = getDefaultInstance().getFigi(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *Figi-идентификатора инструмента.
     * 
* * string figi = 1; * @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_ |= 0x00000001; onChanged(); return this; } private java.lang.Object instrumentType_ = ""; /** *
     *Тип инструмента.
     * 
* * string instrument_type = 2; * @return The instrumentType. */ public java.lang.String getInstrumentType() { java.lang.Object ref = instrumentType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 2; * @return The bytes for instrumentType. */ public com.google.protobuf.ByteString getInstrumentTypeBytes() { java.lang.Object ref = instrumentType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 2; * @param value The instrumentType to set. * @return This builder for chaining. */ public Builder setInstrumentType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instrumentType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 2; * @return This builder for chaining. */ public Builder clearInstrumentType() { instrumentType_ = getDefaultInstance().getInstrumentType(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 2; * @param value The bytes for instrumentType to set. * @return This builder for chaining. */ public Builder setInstrumentTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instrumentType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.Quotation quantity_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> quantityBuilder_; /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; * @return Whether the quantity field is set. */ public boolean hasQuantity() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; * @return The quantity. */ public ru.tinkoff.piapi.contract.v1.Quotation getQuantity() { if (quantityBuilder_ == null) { return quantity_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantity_; } else { return quantityBuilder_.getMessage(); } } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ public Builder setQuantity(ru.tinkoff.piapi.contract.v1.Quotation value) { if (quantityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } quantity_ = value; } else { quantityBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ public Builder setQuantity( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (quantityBuilder_ == null) { quantity_ = builderForValue.build(); } else { quantityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ public Builder mergeQuantity(ru.tinkoff.piapi.contract.v1.Quotation value) { if (quantityBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && quantity_ != null && quantity_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getQuantityBuilder().mergeFrom(value); } else { quantity_ = value; } } else { quantityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ public Builder clearQuantity() { bitField0_ = (bitField0_ & ~0x00000004); quantity_ = null; if (quantityBuilder_ != null) { quantityBuilder_.dispose(); quantityBuilder_ = null; } onChanged(); return this; } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getQuantityBuilder() { bitField0_ |= 0x00000004; onChanged(); return getQuantityFieldBuilder().getBuilder(); } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getQuantityOrBuilder() { if (quantityBuilder_ != null) { return quantityBuilder_.getMessageOrBuilder(); } else { return quantity_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantity_; } } /** *
     *Количество инструмента в портфеле в штуках.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getQuantityFieldBuilder() { if (quantityBuilder_ == null) { quantityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getQuantity(), getParentForChildren(), isClean()); quantity_ = null; } return quantityBuilder_; } 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 = 4; * @return Whether the averagePositionPrice field is set. */ public boolean hasAveragePositionPrice() { return ((bitField0_ & 0x00000008) != 0); } /** *
     *Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; * @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 = 4; */ 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_ |= 0x00000008; onChanged(); return this; } /** *
     *Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; */ public Builder setAveragePositionPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (averagePositionPriceBuilder_ == null) { averagePositionPrice_ = builderForValue.build(); } else { averagePositionPriceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; */ public Builder mergeAveragePositionPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (averagePositionPriceBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && averagePositionPrice_ != null && averagePositionPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getAveragePositionPriceBuilder().mergeFrom(value); } else { averagePositionPrice_ = value; } } else { averagePositionPriceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; */ public Builder clearAveragePositionPrice() { bitField0_ = (bitField0_ & ~0x00000008); averagePositionPrice_ = null; if (averagePositionPriceBuilder_ != null) { averagePositionPriceBuilder_.dispose(); averagePositionPriceBuilder_ = null; } onChanged(); return this; } /** *
     *Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getAveragePositionPriceBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAveragePositionPriceFieldBuilder().getBuilder(); } /** *
     *Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; */ 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 = 4; */ 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.Quotation expectedYield_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> expectedYieldBuilder_; /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; * @return Whether the expectedYield field is set. */ public boolean hasExpectedYield() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; * @return The expectedYield. */ public ru.tinkoff.piapi.contract.v1.Quotation getExpectedYield() { if (expectedYieldBuilder_ == null) { return expectedYield_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYield_; } else { return expectedYieldBuilder_.getMessage(); } } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ public Builder setExpectedYield(ru.tinkoff.piapi.contract.v1.Quotation value) { if (expectedYieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expectedYield_ = value; } else { expectedYieldBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ public Builder setExpectedYield( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (expectedYieldBuilder_ == null) { expectedYield_ = builderForValue.build(); } else { expectedYieldBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ public Builder mergeExpectedYield(ru.tinkoff.piapi.contract.v1.Quotation value) { if (expectedYieldBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && expectedYield_ != null && expectedYield_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getExpectedYieldBuilder().mergeFrom(value); } else { expectedYield_ = value; } } else { expectedYieldBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ public Builder clearExpectedYield() { bitField0_ = (bitField0_ & ~0x00000010); expectedYield_ = null; if (expectedYieldBuilder_ != null) { expectedYieldBuilder_.dispose(); expectedYieldBuilder_ = null; } onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getExpectedYieldBuilder() { bitField0_ |= 0x00000010; onChanged(); return getExpectedYieldFieldBuilder().getBuilder(); } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getExpectedYieldOrBuilder() { if (expectedYieldBuilder_ != null) { return expectedYieldBuilder_.getMessageOrBuilder(); } else { return expectedYield_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYield_; } } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getExpectedYieldFieldBuilder() { if (expectedYieldBuilder_ == null) { expectedYieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getExpectedYield(), getParentForChildren(), isClean()); expectedYield_ = null; } return expectedYieldBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue currentNkd_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> currentNkdBuilder_; /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; * @return Whether the currentNkd field is set. */ public boolean hasCurrentNkd() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; * @return The currentNkd. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getCurrentNkd() { if (currentNkdBuilder_ == null) { return currentNkd_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentNkd_; } else { return currentNkdBuilder_.getMessage(); } } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; */ public Builder setCurrentNkd(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (currentNkdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentNkd_ = value; } else { currentNkdBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; */ public Builder setCurrentNkd( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (currentNkdBuilder_ == null) { currentNkd_ = builderForValue.build(); } else { currentNkdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; */ public Builder mergeCurrentNkd(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (currentNkdBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && currentNkd_ != null && currentNkd_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getCurrentNkdBuilder().mergeFrom(value); } else { currentNkd_ = value; } } else { currentNkdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; */ public Builder clearCurrentNkd() { bitField0_ = (bitField0_ & ~0x00000020); currentNkd_ = null; if (currentNkdBuilder_ != null) { currentNkdBuilder_.dispose(); currentNkdBuilder_ = null; } onChanged(); return this; } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getCurrentNkdBuilder() { bitField0_ |= 0x00000020; onChanged(); return getCurrentNkdFieldBuilder().getBuilder(); } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getCurrentNkdOrBuilder() { if (currentNkdBuilder_ != null) { return currentNkdBuilder_.getMessageOrBuilder(); } else { return currentNkd_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentNkd_; } } /** *
     * Текущий НКД.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 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> getCurrentNkdFieldBuilder() { if (currentNkdBuilder_ == null) { currentNkdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getCurrentNkd(), getParentForChildren(), isClean()); currentNkd_ = null; } return currentNkdBuilder_; } private ru.tinkoff.piapi.contract.v1.Quotation averagePositionPricePt_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> averagePositionPricePtBuilder_; /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.average_position_price_pt is deprecated. * See operations.proto;l=155 * @return Whether the averagePositionPricePt field is set. */ @java.lang.Deprecated public boolean hasAveragePositionPricePt() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.average_position_price_pt is deprecated. * See operations.proto;l=155 * @return The averagePositionPricePt. */ @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.Quotation getAveragePositionPricePt() { if (averagePositionPricePtBuilder_ == null) { return averagePositionPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : averagePositionPricePt_; } else { return averagePositionPricePtBuilder_.getMessage(); } } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ @java.lang.Deprecated public Builder setAveragePositionPricePt(ru.tinkoff.piapi.contract.v1.Quotation value) { if (averagePositionPricePtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } averagePositionPricePt_ = value; } else { averagePositionPricePtBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ @java.lang.Deprecated public Builder setAveragePositionPricePt( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (averagePositionPricePtBuilder_ == null) { averagePositionPricePt_ = builderForValue.build(); } else { averagePositionPricePtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeAveragePositionPricePt(ru.tinkoff.piapi.contract.v1.Quotation value) { if (averagePositionPricePtBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && averagePositionPricePt_ != null && averagePositionPricePt_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getAveragePositionPricePtBuilder().mergeFrom(value); } else { averagePositionPricePt_ = value; } } else { averagePositionPricePtBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ @java.lang.Deprecated public Builder clearAveragePositionPricePt() { bitField0_ = (bitField0_ & ~0x00000040); averagePositionPricePt_ = null; if (averagePositionPricePtBuilder_ != null) { averagePositionPricePtBuilder_.dispose(); averagePositionPricePtBuilder_ = null; } onChanged(); return this; } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.Quotation.Builder getAveragePositionPricePtBuilder() { bitField0_ |= 0x00000040; onChanged(); return getAveragePositionPricePtFieldBuilder().getBuilder(); } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getAveragePositionPricePtOrBuilder() { if (averagePositionPricePtBuilder_ != null) { return averagePositionPricePtBuilder_.getMessageOrBuilder(); } else { return averagePositionPricePt_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : averagePositionPricePt_; } } /** *
     * Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getAveragePositionPricePtFieldBuilder() { if (averagePositionPricePtBuilder_ == null) { averagePositionPricePtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getAveragePositionPricePt(), getParentForChildren(), isClean()); averagePositionPricePt_ = null; } return averagePositionPricePtBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue currentPrice_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> currentPriceBuilder_; /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; * @return Whether the currentPrice field is set. */ public boolean hasCurrentPrice() { return ((bitField0_ & 0x00000080) != 0); } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; * @return The currentPrice. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getCurrentPrice() { if (currentPriceBuilder_ == null) { return currentPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentPrice_; } else { return currentPriceBuilder_.getMessage(); } } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; */ public Builder setCurrentPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (currentPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentPrice_ = value; } else { currentPriceBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; */ public Builder setCurrentPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (currentPriceBuilder_ == null) { currentPrice_ = builderForValue.build(); } else { currentPriceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; */ public Builder mergeCurrentPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (currentPriceBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && currentPrice_ != null && currentPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getCurrentPriceBuilder().mergeFrom(value); } else { currentPrice_ = value; } } else { currentPriceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; */ public Builder clearCurrentPrice() { bitField0_ = (bitField0_ & ~0x00000080); currentPrice_ = null; if (currentPriceBuilder_ != null) { currentPriceBuilder_.dispose(); currentPriceBuilder_ = null; } onChanged(); return this; } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getCurrentPriceBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCurrentPriceFieldBuilder().getBuilder(); } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getCurrentPriceOrBuilder() { if (currentPriceBuilder_ != null) { return currentPriceBuilder_.getMessageOrBuilder(); } else { return currentPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : currentPrice_; } } /** *
     *Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue current_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> getCurrentPriceFieldBuilder() { if (currentPriceBuilder_ == null) { currentPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getCurrentPrice(), getParentForChildren(), isClean()); currentPrice_ = null; } return currentPriceBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue averagePositionPriceFifo_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> averagePositionPriceFifoBuilder_; /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; * @return Whether the averagePositionPriceFifo field is set. */ public boolean hasAveragePositionPriceFifo() { return ((bitField0_ & 0x00000100) != 0); } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; * @return The averagePositionPriceFifo. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getAveragePositionPriceFifo() { if (averagePositionPriceFifoBuilder_ == null) { return averagePositionPriceFifo_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPriceFifo_; } else { return averagePositionPriceFifoBuilder_.getMessage(); } } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; */ public Builder setAveragePositionPriceFifo(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (averagePositionPriceFifoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } averagePositionPriceFifo_ = value; } else { averagePositionPriceFifoBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; */ public Builder setAveragePositionPriceFifo( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (averagePositionPriceFifoBuilder_ == null) { averagePositionPriceFifo_ = builderForValue.build(); } else { averagePositionPriceFifoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; */ public Builder mergeAveragePositionPriceFifo(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (averagePositionPriceFifoBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && averagePositionPriceFifo_ != null && averagePositionPriceFifo_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getAveragePositionPriceFifoBuilder().mergeFrom(value); } else { averagePositionPriceFifo_ = value; } } else { averagePositionPriceFifoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; */ public Builder clearAveragePositionPriceFifo() { bitField0_ = (bitField0_ & ~0x00000100); averagePositionPriceFifo_ = null; if (averagePositionPriceFifoBuilder_ != null) { averagePositionPriceFifoBuilder_.dispose(); averagePositionPriceFifoBuilder_ = null; } onChanged(); return this; } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getAveragePositionPriceFifoBuilder() { bitField0_ |= 0x00000100; onChanged(); return getAveragePositionPriceFifoFieldBuilder().getBuilder(); } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAveragePositionPriceFifoOrBuilder() { if (averagePositionPriceFifoBuilder_ != null) { return averagePositionPriceFifoBuilder_.getMessageOrBuilder(); } else { return averagePositionPriceFifo_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPriceFifo_; } } /** *
     *Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 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> getAveragePositionPriceFifoFieldBuilder() { if (averagePositionPriceFifoBuilder_ == null) { averagePositionPriceFifoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getAveragePositionPriceFifo(), getParentForChildren(), isClean()); averagePositionPriceFifo_ = null; } return averagePositionPriceFifoBuilder_; } private ru.tinkoff.piapi.contract.v1.Quotation quantityLots_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> quantityLotsBuilder_; /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.quantity_lots is deprecated. * See operations.proto;l=158 * @return Whether the quantityLots field is set. */ @java.lang.Deprecated public boolean hasQuantityLots() { return ((bitField0_ & 0x00000200) != 0); } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.PortfolioPosition.quantity_lots is deprecated. * See operations.proto;l=158 * @return The quantityLots. */ @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.Quotation getQuantityLots() { if (quantityLotsBuilder_ == null) { return quantityLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantityLots_; } else { return quantityLotsBuilder_.getMessage(); } } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setQuantityLots(ru.tinkoff.piapi.contract.v1.Quotation value) { if (quantityLotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } quantityLots_ = value; } else { quantityLotsBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setQuantityLots( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (quantityLotsBuilder_ == null) { quantityLots_ = builderForValue.build(); } else { quantityLotsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeQuantityLots(ru.tinkoff.piapi.contract.v1.Quotation value) { if (quantityLotsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && quantityLots_ != null && quantityLots_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getQuantityLotsBuilder().mergeFrom(value); } else { quantityLots_ = value; } } else { quantityLotsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder clearQuantityLots() { bitField0_ = (bitField0_ & ~0x00000200); quantityLots_ = null; if (quantityLotsBuilder_ != null) { quantityLotsBuilder_.dispose(); quantityLotsBuilder_ = null; } onChanged(); return this; } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.Quotation.Builder getQuantityLotsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getQuantityLotsFieldBuilder().getBuilder(); } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ @java.lang.Deprecated public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getQuantityLotsOrBuilder() { if (quantityLotsBuilder_ != null) { return quantityLotsBuilder_.getMessageOrBuilder(); } else { return quantityLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : quantityLots_; } } /** *
     *Deprecated Количество лотов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getQuantityLotsFieldBuilder() { if (quantityLotsBuilder_ == null) { quantityLotsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getQuantityLots(), getParentForChildren(), isClean()); quantityLots_ = null; } return quantityLotsBuilder_; } private boolean blocked_ ; /** *
     *Заблокировано на бирже.
     * 
* * bool blocked = 21; * @return The blocked. */ @java.lang.Override public boolean getBlocked() { return blocked_; } /** *
     *Заблокировано на бирже.
     * 
* * bool blocked = 21; * @param value The blocked to set. * @return This builder for chaining. */ public Builder setBlocked(boolean value) { blocked_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Заблокировано на бирже.
     * 
* * bool blocked = 21; * @return This builder for chaining. */ public Builder clearBlocked() { bitField0_ = (bitField0_ & ~0x00000400); blocked_ = false; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.Quotation blockedLots_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> blockedLotsBuilder_; /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; * @return Whether the blockedLots field is set. */ public boolean hasBlockedLots() { return ((bitField0_ & 0x00000800) != 0); } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; * @return The blockedLots. */ public ru.tinkoff.piapi.contract.v1.Quotation getBlockedLots() { if (blockedLotsBuilder_ == null) { return blockedLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : blockedLots_; } else { return blockedLotsBuilder_.getMessage(); } } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ public Builder setBlockedLots(ru.tinkoff.piapi.contract.v1.Quotation value) { if (blockedLotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockedLots_ = value; } else { blockedLotsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ public Builder setBlockedLots( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (blockedLotsBuilder_ == null) { blockedLots_ = builderForValue.build(); } else { blockedLotsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ public Builder mergeBlockedLots(ru.tinkoff.piapi.contract.v1.Quotation value) { if (blockedLotsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && blockedLots_ != null && blockedLots_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getBlockedLotsBuilder().mergeFrom(value); } else { blockedLots_ = value; } } else { blockedLotsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ public Builder clearBlockedLots() { bitField0_ = (bitField0_ & ~0x00000800); blockedLots_ = null; if (blockedLotsBuilder_ != null) { blockedLotsBuilder_.dispose(); blockedLotsBuilder_ = null; } onChanged(); return this; } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getBlockedLotsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getBlockedLotsFieldBuilder().getBuilder(); } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getBlockedLotsOrBuilder() { if (blockedLotsBuilder_ != null) { return blockedLotsBuilder_.getMessageOrBuilder(); } else { return blockedLots_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : blockedLots_; } } /** *
     *Количество бумаг, заблокированных выставленными заявками.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation blocked_lots = 22; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getBlockedLotsFieldBuilder() { if (blockedLotsBuilder_ == null) { blockedLotsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getBlockedLots(), getParentForChildren(), isClean()); blockedLots_ = null; } return blockedLotsBuilder_; } private java.lang.Object positionUid_ = ""; /** *
     *position_uid-идентификатора инструмента
     * 
* * string position_uid = 24; * @return The positionUid. */ public java.lang.String getPositionUid() { java.lang.Object ref = positionUid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); positionUid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *position_uid-идентификатора инструмента
     * 
* * string position_uid = 24; * @return The bytes for positionUid. */ public com.google.protobuf.ByteString getPositionUidBytes() { java.lang.Object ref = positionUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); positionUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *position_uid-идентификатора инструмента
     * 
* * string position_uid = 24; * @param value The positionUid to set. * @return This builder for chaining. */ public Builder setPositionUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } positionUid_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     *position_uid-идентификатора инструмента
     * 
* * string position_uid = 24; * @return This builder for chaining. */ public Builder clearPositionUid() { positionUid_ = getDefaultInstance().getPositionUid(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** *
     *position_uid-идентификатора инструмента
     * 
* * string position_uid = 24; * @param value The bytes for positionUid to set. * @return This builder for chaining. */ public Builder setPositionUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); positionUid_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private java.lang.Object instrumentUid_ = ""; /** *
     *instrument_uid-идентификатора инструмента
     * 
* * string instrument_uid = 25; * @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; } } /** *
     *instrument_uid-идентификатора инструмента
     * 
* * string instrument_uid = 25; * @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; } } /** *
     *instrument_uid-идентификатора инструмента
     * 
* * string instrument_uid = 25; * @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_ |= 0x00002000; onChanged(); return this; } /** *
     *instrument_uid-идентификатора инструмента
     * 
* * string instrument_uid = 25; * @return This builder for chaining. */ public Builder clearInstrumentUid() { instrumentUid_ = getDefaultInstance().getInstrumentUid(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** *
     *instrument_uid-идентификатора инструмента
     * 
* * string instrument_uid = 25; * @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_ |= 0x00002000; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.MoneyValue varMargin_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> varMarginBuilder_; /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; * @return Whether the varMargin field is set. */ public boolean hasVarMargin() { return ((bitField0_ & 0x00004000) != 0); } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; * @return The varMargin. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getVarMargin() { if (varMarginBuilder_ == null) { return varMargin_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : varMargin_; } else { return varMarginBuilder_.getMessage(); } } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ public Builder setVarMargin(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (varMarginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } varMargin_ = value; } else { varMarginBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ public Builder setVarMargin( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (varMarginBuilder_ == null) { varMargin_ = builderForValue.build(); } else { varMarginBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ public Builder mergeVarMargin(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (varMarginBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && varMargin_ != null && varMargin_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getVarMarginBuilder().mergeFrom(value); } else { varMargin_ = value; } } else { varMarginBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ public Builder clearVarMargin() { bitField0_ = (bitField0_ & ~0x00004000); varMargin_ = null; if (varMarginBuilder_ != null) { varMarginBuilder_.dispose(); varMarginBuilder_ = null; } onChanged(); return this; } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getVarMarginBuilder() { bitField0_ |= 0x00004000; onChanged(); return getVarMarginFieldBuilder().getBuilder(); } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getVarMarginOrBuilder() { if (varMarginBuilder_ != null) { return varMarginBuilder_.getMessageOrBuilder(); } else { return varMargin_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : varMargin_; } } /** *
     *Вариационная маржа
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getVarMarginFieldBuilder() { if (varMarginBuilder_ == null) { varMarginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getVarMargin(), getParentForChildren(), isClean()); varMargin_ = null; } return varMarginBuilder_; } private ru.tinkoff.piapi.contract.v1.Quotation expectedYieldFifo_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> expectedYieldFifoBuilder_; /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; * @return Whether the expectedYieldFifo field is set. */ public boolean hasExpectedYieldFifo() { return ((bitField0_ & 0x00008000) != 0); } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; * @return The expectedYieldFifo. */ public ru.tinkoff.piapi.contract.v1.Quotation getExpectedYieldFifo() { if (expectedYieldFifoBuilder_ == null) { return expectedYieldFifo_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYieldFifo_; } else { return expectedYieldFifoBuilder_.getMessage(); } } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ public Builder setExpectedYieldFifo(ru.tinkoff.piapi.contract.v1.Quotation value) { if (expectedYieldFifoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expectedYieldFifo_ = value; } else { expectedYieldFifoBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ public Builder setExpectedYieldFifo( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (expectedYieldFifoBuilder_ == null) { expectedYieldFifo_ = builderForValue.build(); } else { expectedYieldFifoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ public Builder mergeExpectedYieldFifo(ru.tinkoff.piapi.contract.v1.Quotation value) { if (expectedYieldFifoBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && expectedYieldFifo_ != null && expectedYieldFifo_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getExpectedYieldFifoBuilder().mergeFrom(value); } else { expectedYieldFifo_ = value; } } else { expectedYieldFifoBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ public Builder clearExpectedYieldFifo() { bitField0_ = (bitField0_ & ~0x00008000); expectedYieldFifo_ = null; if (expectedYieldFifoBuilder_ != null) { expectedYieldFifoBuilder_.dispose(); expectedYieldFifoBuilder_ = null; } onChanged(); return this; } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getExpectedYieldFifoBuilder() { bitField0_ |= 0x00008000; onChanged(); return getExpectedYieldFifoFieldBuilder().getBuilder(); } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getExpectedYieldFifoOrBuilder() { if (expectedYieldFifoBuilder_ != null) { return expectedYieldFifoBuilder_.getMessageOrBuilder(); } else { return expectedYieldFifo_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expectedYieldFifo_; } } /** *
     *Текущая рассчитанная доходность позиции.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getExpectedYieldFifoFieldBuilder() { if (expectedYieldFifoBuilder_ == null) { expectedYieldFifoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getExpectedYieldFifo(), getParentForChildren(), isClean()); expectedYieldFifo_ = null; } return expectedYieldFifoBuilder_; } @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.PortfolioPosition) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.PortfolioPosition) private static final ru.tinkoff.piapi.contract.v1.PortfolioPosition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.PortfolioPosition(); } public static ru.tinkoff.piapi.contract.v1.PortfolioPosition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PortfolioPosition 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.PortfolioPosition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy