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

ru.tinkoff.piapi.contract.v1.PortfolioResponse 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.PortfolioResponse} */ public final class PortfolioResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.PortfolioResponse) PortfolioResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PortfolioResponse.newBuilder() to construct. private PortfolioResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PortfolioResponse() { positions_ = java.util.Collections.emptyList(); accountId_ = ""; virtualPositions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PortfolioResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PortfolioResponse_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_PortfolioResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PortfolioResponse.class, ru.tinkoff.piapi.contract.v1.PortfolioResponse.Builder.class); } public static final int TOTAL_AMOUNT_SHARES_FIELD_NUMBER = 1; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountShares_; /** *
   *Общая стоимость акций в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; * @return Whether the totalAmountShares field is set. */ @java.lang.Override public boolean hasTotalAmountShares() { return totalAmountShares_ != null; } /** *
   *Общая стоимость акций в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; * @return The totalAmountShares. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountShares() { return totalAmountShares_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountShares_; } /** *
   *Общая стоимость акций в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountSharesOrBuilder() { return totalAmountShares_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountShares_; } public static final int TOTAL_AMOUNT_BONDS_FIELD_NUMBER = 2; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountBonds_; /** *
   *Общая стоимость облигаций в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; * @return Whether the totalAmountBonds field is set. */ @java.lang.Override public boolean hasTotalAmountBonds() { return totalAmountBonds_ != null; } /** *
   *Общая стоимость облигаций в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; * @return The totalAmountBonds. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountBonds() { return totalAmountBonds_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountBonds_; } /** *
   *Общая стоимость облигаций в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountBondsOrBuilder() { return totalAmountBonds_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountBonds_; } public static final int TOTAL_AMOUNT_ETF_FIELD_NUMBER = 3; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountEtf_; /** *
   *Общая стоимость фондов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; * @return Whether the totalAmountEtf field is set. */ @java.lang.Override public boolean hasTotalAmountEtf() { return totalAmountEtf_ != null; } /** *
   *Общая стоимость фондов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; * @return The totalAmountEtf. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountEtf() { return totalAmountEtf_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountEtf_; } /** *
   *Общая стоимость фондов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountEtfOrBuilder() { return totalAmountEtf_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountEtf_; } public static final int TOTAL_AMOUNT_CURRENCIES_FIELD_NUMBER = 4; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountCurrencies_; /** *
   *Общая стоимость валют в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; * @return Whether the totalAmountCurrencies field is set. */ @java.lang.Override public boolean hasTotalAmountCurrencies() { return totalAmountCurrencies_ != null; } /** *
   *Общая стоимость валют в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; * @return The totalAmountCurrencies. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountCurrencies() { return totalAmountCurrencies_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountCurrencies_; } /** *
   *Общая стоимость валют в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountCurrenciesOrBuilder() { return totalAmountCurrencies_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountCurrencies_; } public static final int TOTAL_AMOUNT_FUTURES_FIELD_NUMBER = 5; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountFutures_; /** *
   *Общая стоимость фьючерсов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; * @return Whether the totalAmountFutures field is set. */ @java.lang.Override public boolean hasTotalAmountFutures() { return totalAmountFutures_ != null; } /** *
   *Общая стоимость фьючерсов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; * @return The totalAmountFutures. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountFutures() { return totalAmountFutures_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountFutures_; } /** *
   *Общая стоимость фьючерсов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountFuturesOrBuilder() { return totalAmountFutures_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountFutures_; } public static final int EXPECTED_YIELD_FIELD_NUMBER = 6; private ru.tinkoff.piapi.contract.v1.Quotation expectedYield_; /** *
   *Текущая относительная доходность портфеля, в %.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6; * @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 = 6; * @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 = 6; */ @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 POSITIONS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List positions_; /** *
   *Список позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ @java.lang.Override public java.util.List getPositionsList() { return positions_; } /** *
   *Список позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ @java.lang.Override public java.util.List getPositionsOrBuilderList() { return positions_; } /** *
   *Список позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ @java.lang.Override public int getPositionsCount() { return positions_.size(); } /** *
   *Список позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioPosition getPositions(int index) { return positions_.get(index); } /** *
   *Список позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioPositionOrBuilder getPositionsOrBuilder( int index) { return positions_.get(index); } public static final int ACCOUNT_ID_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** *
   *Идентификатор счёта пользователя.
   * 
* * string account_id = 8; * @return The accountId. */ @java.lang.Override public java.lang.String getAccountId() { java.lang.Object ref = accountId_; 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(); accountId_ = s; return s; } } /** *
   *Идентификатор счёта пользователя.
   * 
* * string account_id = 8; * @return The bytes for accountId. */ @java.lang.Override public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOTAL_AMOUNT_OPTIONS_FIELD_NUMBER = 9; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountOptions_; /** *
   *Общая стоимость опционов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; * @return Whether the totalAmountOptions field is set. */ @java.lang.Override public boolean hasTotalAmountOptions() { return totalAmountOptions_ != null; } /** *
   *Общая стоимость опционов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; * @return The totalAmountOptions. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountOptions() { return totalAmountOptions_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountOptions_; } /** *
   *Общая стоимость опционов в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountOptionsOrBuilder() { return totalAmountOptions_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountOptions_; } public static final int TOTAL_AMOUNT_SP_FIELD_NUMBER = 10; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountSp_; /** *
   *Общая стоимость структурных нот в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; * @return Whether the totalAmountSp field is set. */ @java.lang.Override public boolean hasTotalAmountSp() { return totalAmountSp_ != null; } /** *
   *Общая стоимость структурных нот в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; * @return The totalAmountSp. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountSp() { return totalAmountSp_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountSp_; } /** *
   *Общая стоимость структурных нот в портфеле.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountSpOrBuilder() { return totalAmountSp_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountSp_; } public static final int TOTAL_AMOUNT_PORTFOLIO_FIELD_NUMBER = 11; private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountPortfolio_; /** *
   *Общая стоимость портфеля.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; * @return Whether the totalAmountPortfolio field is set. */ @java.lang.Override public boolean hasTotalAmountPortfolio() { return totalAmountPortfolio_ != null; } /** *
   *Общая стоимость портфеля.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; * @return The totalAmountPortfolio. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountPortfolio() { return totalAmountPortfolio_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountPortfolio_; } /** *
   *Общая стоимость портфеля.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountPortfolioOrBuilder() { return totalAmountPortfolio_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountPortfolio_; } public static final int VIRTUAL_POSITIONS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List virtualPositions_; /** *
   *Массив виртуальных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ @java.lang.Override public java.util.List getVirtualPositionsList() { return virtualPositions_; } /** *
   *Массив виртуальных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ @java.lang.Override public java.util.List getVirtualPositionsOrBuilderList() { return virtualPositions_; } /** *
   *Массив виртуальных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ @java.lang.Override public int getVirtualPositionsCount() { return virtualPositions_.size(); } /** *
   *Массив виртуальных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition getVirtualPositions(int index) { return virtualPositions_.get(index); } /** *
   *Массив виртуальных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.VirtualPortfolioPositionOrBuilder getVirtualPositionsOrBuilder( int index) { return virtualPositions_.get(index); } 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 (totalAmountShares_ != null) { output.writeMessage(1, getTotalAmountShares()); } if (totalAmountBonds_ != null) { output.writeMessage(2, getTotalAmountBonds()); } if (totalAmountEtf_ != null) { output.writeMessage(3, getTotalAmountEtf()); } if (totalAmountCurrencies_ != null) { output.writeMessage(4, getTotalAmountCurrencies()); } if (totalAmountFutures_ != null) { output.writeMessage(5, getTotalAmountFutures()); } if (expectedYield_ != null) { output.writeMessage(6, getExpectedYield()); } for (int i = 0; i < positions_.size(); i++) { output.writeMessage(7, positions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, accountId_); } if (totalAmountOptions_ != null) { output.writeMessage(9, getTotalAmountOptions()); } if (totalAmountSp_ != null) { output.writeMessage(10, getTotalAmountSp()); } if (totalAmountPortfolio_ != null) { output.writeMessage(11, getTotalAmountPortfolio()); } for (int i = 0; i < virtualPositions_.size(); i++) { output.writeMessage(12, virtualPositions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (totalAmountShares_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTotalAmountShares()); } if (totalAmountBonds_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTotalAmountBonds()); } if (totalAmountEtf_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTotalAmountEtf()); } if (totalAmountCurrencies_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTotalAmountCurrencies()); } if (totalAmountFutures_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTotalAmountFutures()); } if (expectedYield_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getExpectedYield()); } for (int i = 0; i < positions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, positions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, accountId_); } if (totalAmountOptions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getTotalAmountOptions()); } if (totalAmountSp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getTotalAmountSp()); } if (totalAmountPortfolio_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getTotalAmountPortfolio()); } for (int i = 0; i < virtualPositions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, virtualPositions_.get(i)); } 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.PortfolioResponse)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.PortfolioResponse other = (ru.tinkoff.piapi.contract.v1.PortfolioResponse) obj; if (hasTotalAmountShares() != other.hasTotalAmountShares()) return false; if (hasTotalAmountShares()) { if (!getTotalAmountShares() .equals(other.getTotalAmountShares())) return false; } if (hasTotalAmountBonds() != other.hasTotalAmountBonds()) return false; if (hasTotalAmountBonds()) { if (!getTotalAmountBonds() .equals(other.getTotalAmountBonds())) return false; } if (hasTotalAmountEtf() != other.hasTotalAmountEtf()) return false; if (hasTotalAmountEtf()) { if (!getTotalAmountEtf() .equals(other.getTotalAmountEtf())) return false; } if (hasTotalAmountCurrencies() != other.hasTotalAmountCurrencies()) return false; if (hasTotalAmountCurrencies()) { if (!getTotalAmountCurrencies() .equals(other.getTotalAmountCurrencies())) return false; } if (hasTotalAmountFutures() != other.hasTotalAmountFutures()) return false; if (hasTotalAmountFutures()) { if (!getTotalAmountFutures() .equals(other.getTotalAmountFutures())) return false; } if (hasExpectedYield() != other.hasExpectedYield()) return false; if (hasExpectedYield()) { if (!getExpectedYield() .equals(other.getExpectedYield())) return false; } if (!getPositionsList() .equals(other.getPositionsList())) return false; if (!getAccountId() .equals(other.getAccountId())) return false; if (hasTotalAmountOptions() != other.hasTotalAmountOptions()) return false; if (hasTotalAmountOptions()) { if (!getTotalAmountOptions() .equals(other.getTotalAmountOptions())) return false; } if (hasTotalAmountSp() != other.hasTotalAmountSp()) return false; if (hasTotalAmountSp()) { if (!getTotalAmountSp() .equals(other.getTotalAmountSp())) return false; } if (hasTotalAmountPortfolio() != other.hasTotalAmountPortfolio()) return false; if (hasTotalAmountPortfolio()) { if (!getTotalAmountPortfolio() .equals(other.getTotalAmountPortfolio())) return false; } if (!getVirtualPositionsList() .equals(other.getVirtualPositionsList())) 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(); if (hasTotalAmountShares()) { hash = (37 * hash) + TOTAL_AMOUNT_SHARES_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountShares().hashCode(); } if (hasTotalAmountBonds()) { hash = (37 * hash) + TOTAL_AMOUNT_BONDS_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountBonds().hashCode(); } if (hasTotalAmountEtf()) { hash = (37 * hash) + TOTAL_AMOUNT_ETF_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountEtf().hashCode(); } if (hasTotalAmountCurrencies()) { hash = (37 * hash) + TOTAL_AMOUNT_CURRENCIES_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountCurrencies().hashCode(); } if (hasTotalAmountFutures()) { hash = (37 * hash) + TOTAL_AMOUNT_FUTURES_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountFutures().hashCode(); } if (hasExpectedYield()) { hash = (37 * hash) + EXPECTED_YIELD_FIELD_NUMBER; hash = (53 * hash) + getExpectedYield().hashCode(); } if (getPositionsCount() > 0) { hash = (37 * hash) + POSITIONS_FIELD_NUMBER; hash = (53 * hash) + getPositionsList().hashCode(); } hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); if (hasTotalAmountOptions()) { hash = (37 * hash) + TOTAL_AMOUNT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountOptions().hashCode(); } if (hasTotalAmountSp()) { hash = (37 * hash) + TOTAL_AMOUNT_SP_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountSp().hashCode(); } if (hasTotalAmountPortfolio()) { hash = (37 * hash) + TOTAL_AMOUNT_PORTFOLIO_FIELD_NUMBER; hash = (53 * hash) + getTotalAmountPortfolio().hashCode(); } if (getVirtualPositionsCount() > 0) { hash = (37 * hash) + VIRTUAL_POSITIONS_FIELD_NUMBER; hash = (53 * hash) + getVirtualPositionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.PortfolioResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PortfolioResponse 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.PortfolioResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PortfolioResponse 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.PortfolioResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PortfolioResponse 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.PortfolioResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PortfolioResponse 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.PortfolioResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PortfolioResponse 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.PortfolioResponse 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.PortfolioResponse 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.PortfolioResponse 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.PortfolioResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.PortfolioResponse) ru.tinkoff.piapi.contract.v1.PortfolioResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PortfolioResponse_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_PortfolioResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PortfolioResponse.class, ru.tinkoff.piapi.contract.v1.PortfolioResponse.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.PortfolioResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; totalAmountShares_ = null; if (totalAmountSharesBuilder_ != null) { totalAmountSharesBuilder_.dispose(); totalAmountSharesBuilder_ = null; } totalAmountBonds_ = null; if (totalAmountBondsBuilder_ != null) { totalAmountBondsBuilder_.dispose(); totalAmountBondsBuilder_ = null; } totalAmountEtf_ = null; if (totalAmountEtfBuilder_ != null) { totalAmountEtfBuilder_.dispose(); totalAmountEtfBuilder_ = null; } totalAmountCurrencies_ = null; if (totalAmountCurrenciesBuilder_ != null) { totalAmountCurrenciesBuilder_.dispose(); totalAmountCurrenciesBuilder_ = null; } totalAmountFutures_ = null; if (totalAmountFuturesBuilder_ != null) { totalAmountFuturesBuilder_.dispose(); totalAmountFuturesBuilder_ = null; } expectedYield_ = null; if (expectedYieldBuilder_ != null) { expectedYieldBuilder_.dispose(); expectedYieldBuilder_ = null; } if (positionsBuilder_ == null) { positions_ = java.util.Collections.emptyList(); } else { positions_ = null; positionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); accountId_ = ""; totalAmountOptions_ = null; if (totalAmountOptionsBuilder_ != null) { totalAmountOptionsBuilder_.dispose(); totalAmountOptionsBuilder_ = null; } totalAmountSp_ = null; if (totalAmountSpBuilder_ != null) { totalAmountSpBuilder_.dispose(); totalAmountSpBuilder_ = null; } totalAmountPortfolio_ = null; if (totalAmountPortfolioBuilder_ != null) { totalAmountPortfolioBuilder_.dispose(); totalAmountPortfolioBuilder_ = null; } if (virtualPositionsBuilder_ == null) { virtualPositions_ = java.util.Collections.emptyList(); } else { virtualPositions_ = null; virtualPositionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); 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_PortfolioResponse_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioResponse getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.PortfolioResponse.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioResponse build() { ru.tinkoff.piapi.contract.v1.PortfolioResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PortfolioResponse buildPartial() { ru.tinkoff.piapi.contract.v1.PortfolioResponse result = new ru.tinkoff.piapi.contract.v1.PortfolioResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.PortfolioResponse result) { if (positionsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { positions_ = java.util.Collections.unmodifiableList(positions_); bitField0_ = (bitField0_ & ~0x00000040); } result.positions_ = positions_; } else { result.positions_ = positionsBuilder_.build(); } if (virtualPositionsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { virtualPositions_ = java.util.Collections.unmodifiableList(virtualPositions_); bitField0_ = (bitField0_ & ~0x00000800); } result.virtualPositions_ = virtualPositions_; } else { result.virtualPositions_ = virtualPositionsBuilder_.build(); } } private void buildPartial0(ru.tinkoff.piapi.contract.v1.PortfolioResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.totalAmountShares_ = totalAmountSharesBuilder_ == null ? totalAmountShares_ : totalAmountSharesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.totalAmountBonds_ = totalAmountBondsBuilder_ == null ? totalAmountBonds_ : totalAmountBondsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.totalAmountEtf_ = totalAmountEtfBuilder_ == null ? totalAmountEtf_ : totalAmountEtfBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.totalAmountCurrencies_ = totalAmountCurrenciesBuilder_ == null ? totalAmountCurrencies_ : totalAmountCurrenciesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.totalAmountFutures_ = totalAmountFuturesBuilder_ == null ? totalAmountFutures_ : totalAmountFuturesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.expectedYield_ = expectedYieldBuilder_ == null ? expectedYield_ : expectedYieldBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.totalAmountOptions_ = totalAmountOptionsBuilder_ == null ? totalAmountOptions_ : totalAmountOptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.totalAmountSp_ = totalAmountSpBuilder_ == null ? totalAmountSp_ : totalAmountSpBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.totalAmountPortfolio_ = totalAmountPortfolioBuilder_ == null ? totalAmountPortfolio_ : totalAmountPortfolioBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.PortfolioResponse) { return mergeFrom((ru.tinkoff.piapi.contract.v1.PortfolioResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.PortfolioResponse other) { if (other == ru.tinkoff.piapi.contract.v1.PortfolioResponse.getDefaultInstance()) return this; if (other.hasTotalAmountShares()) { mergeTotalAmountShares(other.getTotalAmountShares()); } if (other.hasTotalAmountBonds()) { mergeTotalAmountBonds(other.getTotalAmountBonds()); } if (other.hasTotalAmountEtf()) { mergeTotalAmountEtf(other.getTotalAmountEtf()); } if (other.hasTotalAmountCurrencies()) { mergeTotalAmountCurrencies(other.getTotalAmountCurrencies()); } if (other.hasTotalAmountFutures()) { mergeTotalAmountFutures(other.getTotalAmountFutures()); } if (other.hasExpectedYield()) { mergeExpectedYield(other.getExpectedYield()); } if (positionsBuilder_ == null) { if (!other.positions_.isEmpty()) { if (positions_.isEmpty()) { positions_ = other.positions_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePositionsIsMutable(); positions_.addAll(other.positions_); } onChanged(); } } else { if (!other.positions_.isEmpty()) { if (positionsBuilder_.isEmpty()) { positionsBuilder_.dispose(); positionsBuilder_ = null; positions_ = other.positions_; bitField0_ = (bitField0_ & ~0x00000040); positionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPositionsFieldBuilder() : null; } else { positionsBuilder_.addAllMessages(other.positions_); } } } if (!other.getAccountId().isEmpty()) { accountId_ = other.accountId_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasTotalAmountOptions()) { mergeTotalAmountOptions(other.getTotalAmountOptions()); } if (other.hasTotalAmountSp()) { mergeTotalAmountSp(other.getTotalAmountSp()); } if (other.hasTotalAmountPortfolio()) { mergeTotalAmountPortfolio(other.getTotalAmountPortfolio()); } if (virtualPositionsBuilder_ == null) { if (!other.virtualPositions_.isEmpty()) { if (virtualPositions_.isEmpty()) { virtualPositions_ = other.virtualPositions_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureVirtualPositionsIsMutable(); virtualPositions_.addAll(other.virtualPositions_); } onChanged(); } } else { if (!other.virtualPositions_.isEmpty()) { if (virtualPositionsBuilder_.isEmpty()) { virtualPositionsBuilder_.dispose(); virtualPositionsBuilder_ = null; virtualPositions_ = other.virtualPositions_; bitField0_ = (bitField0_ & ~0x00000800); virtualPositionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVirtualPositionsFieldBuilder() : null; } else { virtualPositionsBuilder_.addAllMessages(other.virtualPositions_); } } } 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: { input.readMessage( getTotalAmountSharesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTotalAmountBondsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getTotalAmountEtfFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getTotalAmountCurrenciesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getTotalAmountFuturesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getExpectedYieldFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { ru.tinkoff.piapi.contract.v1.PortfolioPosition m = input.readMessage( ru.tinkoff.piapi.contract.v1.PortfolioPosition.parser(), extensionRegistry); if (positionsBuilder_ == null) { ensurePositionsIsMutable(); positions_.add(m); } else { positionsBuilder_.addMessage(m); } break; } // case 58 case 66: { accountId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getTotalAmountOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getTotalAmountSpFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { input.readMessage( getTotalAmountPortfolioFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 case 98: { ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition m = input.readMessage( ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.parser(), extensionRegistry); if (virtualPositionsBuilder_ == null) { ensureVirtualPositionsIsMutable(); virtualPositions_.add(m); } else { virtualPositionsBuilder_.addMessage(m); } break; } // case 98 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 ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountShares_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountSharesBuilder_; /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; * @return Whether the totalAmountShares field is set. */ public boolean hasTotalAmountShares() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; * @return The totalAmountShares. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountShares() { if (totalAmountSharesBuilder_ == null) { return totalAmountShares_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountShares_; } else { return totalAmountSharesBuilder_.getMessage(); } } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ public Builder setTotalAmountShares(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountShares_ = value; } else { totalAmountSharesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ public Builder setTotalAmountShares( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountSharesBuilder_ == null) { totalAmountShares_ = builderForValue.build(); } else { totalAmountSharesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ public Builder mergeTotalAmountShares(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountSharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && totalAmountShares_ != null && totalAmountShares_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountSharesBuilder().mergeFrom(value); } else { totalAmountShares_ = value; } } else { totalAmountSharesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ public Builder clearTotalAmountShares() { bitField0_ = (bitField0_ & ~0x00000001); totalAmountShares_ = null; if (totalAmountSharesBuilder_ != null) { totalAmountSharesBuilder_.dispose(); totalAmountSharesBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountSharesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTotalAmountSharesFieldBuilder().getBuilder(); } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountSharesOrBuilder() { if (totalAmountSharesBuilder_ != null) { return totalAmountSharesBuilder_.getMessageOrBuilder(); } else { return totalAmountShares_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountShares_; } } /** *
     *Общая стоимость акций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getTotalAmountSharesFieldBuilder() { if (totalAmountSharesBuilder_ == null) { totalAmountSharesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountShares(), getParentForChildren(), isClean()); totalAmountShares_ = null; } return totalAmountSharesBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountBonds_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountBondsBuilder_; /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; * @return Whether the totalAmountBonds field is set. */ public boolean hasTotalAmountBonds() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; * @return The totalAmountBonds. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountBonds() { if (totalAmountBondsBuilder_ == null) { return totalAmountBonds_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountBonds_; } else { return totalAmountBondsBuilder_.getMessage(); } } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ public Builder setTotalAmountBonds(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountBondsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountBonds_ = value; } else { totalAmountBondsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ public Builder setTotalAmountBonds( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountBondsBuilder_ == null) { totalAmountBonds_ = builderForValue.build(); } else { totalAmountBondsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ public Builder mergeTotalAmountBonds(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountBondsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && totalAmountBonds_ != null && totalAmountBonds_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountBondsBuilder().mergeFrom(value); } else { totalAmountBonds_ = value; } } else { totalAmountBondsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ public Builder clearTotalAmountBonds() { bitField0_ = (bitField0_ & ~0x00000002); totalAmountBonds_ = null; if (totalAmountBondsBuilder_ != null) { totalAmountBondsBuilder_.dispose(); totalAmountBondsBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountBondsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTotalAmountBondsFieldBuilder().getBuilder(); } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountBondsOrBuilder() { if (totalAmountBondsBuilder_ != null) { return totalAmountBondsBuilder_.getMessageOrBuilder(); } else { return totalAmountBonds_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountBonds_; } } /** *
     *Общая стоимость облигаций в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getTotalAmountBondsFieldBuilder() { if (totalAmountBondsBuilder_ == null) { totalAmountBondsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountBonds(), getParentForChildren(), isClean()); totalAmountBonds_ = null; } return totalAmountBondsBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountEtf_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountEtfBuilder_; /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; * @return Whether the totalAmountEtf field is set. */ public boolean hasTotalAmountEtf() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; * @return The totalAmountEtf. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountEtf() { if (totalAmountEtfBuilder_ == null) { return totalAmountEtf_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountEtf_; } else { return totalAmountEtfBuilder_.getMessage(); } } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ public Builder setTotalAmountEtf(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountEtfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountEtf_ = value; } else { totalAmountEtfBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ public Builder setTotalAmountEtf( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountEtfBuilder_ == null) { totalAmountEtf_ = builderForValue.build(); } else { totalAmountEtfBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ public Builder mergeTotalAmountEtf(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountEtfBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && totalAmountEtf_ != null && totalAmountEtf_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountEtfBuilder().mergeFrom(value); } else { totalAmountEtf_ = value; } } else { totalAmountEtfBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ public Builder clearTotalAmountEtf() { bitField0_ = (bitField0_ & ~0x00000004); totalAmountEtf_ = null; if (totalAmountEtfBuilder_ != null) { totalAmountEtfBuilder_.dispose(); totalAmountEtfBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountEtfBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTotalAmountEtfFieldBuilder().getBuilder(); } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountEtfOrBuilder() { if (totalAmountEtfBuilder_ != null) { return totalAmountEtfBuilder_.getMessageOrBuilder(); } else { return totalAmountEtf_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountEtf_; } } /** *
     *Общая стоимость фондов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getTotalAmountEtfFieldBuilder() { if (totalAmountEtfBuilder_ == null) { totalAmountEtfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountEtf(), getParentForChildren(), isClean()); totalAmountEtf_ = null; } return totalAmountEtfBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountCurrencies_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountCurrenciesBuilder_; /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; * @return Whether the totalAmountCurrencies field is set. */ public boolean hasTotalAmountCurrencies() { return ((bitField0_ & 0x00000008) != 0); } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; * @return The totalAmountCurrencies. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountCurrencies() { if (totalAmountCurrenciesBuilder_ == null) { return totalAmountCurrencies_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountCurrencies_; } else { return totalAmountCurrenciesBuilder_.getMessage(); } } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; */ public Builder setTotalAmountCurrencies(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountCurrenciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountCurrencies_ = value; } else { totalAmountCurrenciesBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; */ public Builder setTotalAmountCurrencies( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountCurrenciesBuilder_ == null) { totalAmountCurrencies_ = builderForValue.build(); } else { totalAmountCurrenciesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; */ public Builder mergeTotalAmountCurrencies(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountCurrenciesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && totalAmountCurrencies_ != null && totalAmountCurrencies_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountCurrenciesBuilder().mergeFrom(value); } else { totalAmountCurrencies_ = value; } } else { totalAmountCurrenciesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; */ public Builder clearTotalAmountCurrencies() { bitField0_ = (bitField0_ & ~0x00000008); totalAmountCurrencies_ = null; if (totalAmountCurrenciesBuilder_ != null) { totalAmountCurrenciesBuilder_.dispose(); totalAmountCurrenciesBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountCurrenciesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTotalAmountCurrenciesFieldBuilder().getBuilder(); } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountCurrenciesOrBuilder() { if (totalAmountCurrenciesBuilder_ != null) { return totalAmountCurrenciesBuilder_.getMessageOrBuilder(); } else { return totalAmountCurrencies_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountCurrencies_; } } /** *
     *Общая стоимость валют в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 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> getTotalAmountCurrenciesFieldBuilder() { if (totalAmountCurrenciesBuilder_ == null) { totalAmountCurrenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountCurrencies(), getParentForChildren(), isClean()); totalAmountCurrencies_ = null; } return totalAmountCurrenciesBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountFutures_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountFuturesBuilder_; /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; * @return Whether the totalAmountFutures field is set. */ public boolean hasTotalAmountFutures() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; * @return The totalAmountFutures. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountFutures() { if (totalAmountFuturesBuilder_ == null) { return totalAmountFutures_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountFutures_; } else { return totalAmountFuturesBuilder_.getMessage(); } } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ public Builder setTotalAmountFutures(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountFuturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountFutures_ = value; } else { totalAmountFuturesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ public Builder setTotalAmountFutures( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountFuturesBuilder_ == null) { totalAmountFutures_ = builderForValue.build(); } else { totalAmountFuturesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ public Builder mergeTotalAmountFutures(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountFuturesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && totalAmountFutures_ != null && totalAmountFutures_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountFuturesBuilder().mergeFrom(value); } else { totalAmountFutures_ = value; } } else { totalAmountFuturesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ public Builder clearTotalAmountFutures() { bitField0_ = (bitField0_ & ~0x00000010); totalAmountFutures_ = null; if (totalAmountFuturesBuilder_ != null) { totalAmountFuturesBuilder_.dispose(); totalAmountFuturesBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountFuturesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTotalAmountFuturesFieldBuilder().getBuilder(); } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountFuturesOrBuilder() { if (totalAmountFuturesBuilder_ != null) { return totalAmountFuturesBuilder_.getMessageOrBuilder(); } else { return totalAmountFutures_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountFutures_; } } /** *
     *Общая стоимость фьючерсов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getTotalAmountFuturesFieldBuilder() { if (totalAmountFuturesBuilder_ == null) { totalAmountFuturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountFutures(), getParentForChildren(), isClean()); totalAmountFutures_ = null; } return totalAmountFuturesBuilder_; } 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 = 6; * @return Whether the expectedYield field is set. */ public boolean hasExpectedYield() { return ((bitField0_ & 0x00000020) != 0); } /** *
     *Текущая относительная доходность портфеля, в %.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6; * @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 = 6; */ 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_ |= 0x00000020; onChanged(); return this; } /** *
     *Текущая относительная доходность портфеля, в %.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6; */ public Builder setExpectedYield( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (expectedYieldBuilder_ == null) { expectedYield_ = builderForValue.build(); } else { expectedYieldBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Текущая относительная доходность портфеля, в %.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6; */ public Builder mergeExpectedYield(ru.tinkoff.piapi.contract.v1.Quotation value) { if (expectedYieldBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && expectedYield_ != null && expectedYield_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getExpectedYieldBuilder().mergeFrom(value); } else { expectedYield_ = value; } } else { expectedYieldBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Текущая относительная доходность портфеля, в %.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6; */ public Builder clearExpectedYield() { bitField0_ = (bitField0_ & ~0x00000020); expectedYield_ = null; if (expectedYieldBuilder_ != null) { expectedYieldBuilder_.dispose(); expectedYieldBuilder_ = null; } onChanged(); return this; } /** *
     *Текущая относительная доходность портфеля, в %.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getExpectedYieldBuilder() { bitField0_ |= 0x00000020; onChanged(); return getExpectedYieldFieldBuilder().getBuilder(); } /** *
     *Текущая относительная доходность портфеля, в %.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6; */ 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 = 6; */ 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 java.util.List positions_ = java.util.Collections.emptyList(); private void ensurePositionsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { positions_ = new java.util.ArrayList(positions_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PortfolioPosition, ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder, ru.tinkoff.piapi.contract.v1.PortfolioPositionOrBuilder> positionsBuilder_; /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public java.util.List getPositionsList() { if (positionsBuilder_ == null) { return java.util.Collections.unmodifiableList(positions_); } else { return positionsBuilder_.getMessageList(); } } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public int getPositionsCount() { if (positionsBuilder_ == null) { return positions_.size(); } else { return positionsBuilder_.getCount(); } } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public ru.tinkoff.piapi.contract.v1.PortfolioPosition getPositions(int index) { if (positionsBuilder_ == null) { return positions_.get(index); } else { return positionsBuilder_.getMessage(index); } } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder setPositions( int index, ru.tinkoff.piapi.contract.v1.PortfolioPosition value) { if (positionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePositionsIsMutable(); positions_.set(index, value); onChanged(); } else { positionsBuilder_.setMessage(index, value); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder setPositions( int index, ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder builderForValue) { if (positionsBuilder_ == null) { ensurePositionsIsMutable(); positions_.set(index, builderForValue.build()); onChanged(); } else { positionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder addPositions(ru.tinkoff.piapi.contract.v1.PortfolioPosition value) { if (positionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePositionsIsMutable(); positions_.add(value); onChanged(); } else { positionsBuilder_.addMessage(value); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder addPositions( int index, ru.tinkoff.piapi.contract.v1.PortfolioPosition value) { if (positionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePositionsIsMutable(); positions_.add(index, value); onChanged(); } else { positionsBuilder_.addMessage(index, value); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder addPositions( ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder builderForValue) { if (positionsBuilder_ == null) { ensurePositionsIsMutable(); positions_.add(builderForValue.build()); onChanged(); } else { positionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder addPositions( int index, ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder builderForValue) { if (positionsBuilder_ == null) { ensurePositionsIsMutable(); positions_.add(index, builderForValue.build()); onChanged(); } else { positionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder addAllPositions( java.lang.Iterable values) { if (positionsBuilder_ == null) { ensurePositionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, positions_); onChanged(); } else { positionsBuilder_.addAllMessages(values); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder clearPositions() { if (positionsBuilder_ == null) { positions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { positionsBuilder_.clear(); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public Builder removePositions(int index) { if (positionsBuilder_ == null) { ensurePositionsIsMutable(); positions_.remove(index); onChanged(); } else { positionsBuilder_.remove(index); } return this; } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder getPositionsBuilder( int index) { return getPositionsFieldBuilder().getBuilder(index); } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public ru.tinkoff.piapi.contract.v1.PortfolioPositionOrBuilder getPositionsOrBuilder( int index) { if (positionsBuilder_ == null) { return positions_.get(index); } else { return positionsBuilder_.getMessageOrBuilder(index); } } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public java.util.List getPositionsOrBuilderList() { if (positionsBuilder_ != null) { return positionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(positions_); } } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder addPositionsBuilder() { return getPositionsFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.PortfolioPosition.getDefaultInstance()); } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder addPositionsBuilder( int index) { return getPositionsFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.PortfolioPosition.getDefaultInstance()); } /** *
     *Список позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7; */ public java.util.List getPositionsBuilderList() { return getPositionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PortfolioPosition, ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder, ru.tinkoff.piapi.contract.v1.PortfolioPositionOrBuilder> getPositionsFieldBuilder() { if (positionsBuilder_ == null) { positionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PortfolioPosition, ru.tinkoff.piapi.contract.v1.PortfolioPosition.Builder, ru.tinkoff.piapi.contract.v1.PortfolioPositionOrBuilder>( positions_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); positions_ = null; } return positionsBuilder_; } private java.lang.Object accountId_ = ""; /** *
     *Идентификатор счёта пользователя.
     * 
* * string account_id = 8; * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор счёта пользователя.
     * 
* * string account_id = 8; * @return The bytes for accountId. */ public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор счёта пользователя.
     * 
* * string account_id = 8; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accountId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Идентификатор счёта пользователя.
     * 
* * string account_id = 8; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = getDefaultInstance().getAccountId(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     *Идентификатор счёта пользователя.
     * 
* * string account_id = 8; * @param value The bytes for accountId to set. * @return This builder for chaining. */ public Builder setAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountOptions_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountOptionsBuilder_; /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; * @return Whether the totalAmountOptions field is set. */ public boolean hasTotalAmountOptions() { return ((bitField0_ & 0x00000100) != 0); } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; * @return The totalAmountOptions. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountOptions() { if (totalAmountOptionsBuilder_ == null) { return totalAmountOptions_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountOptions_; } else { return totalAmountOptionsBuilder_.getMessage(); } } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; */ public Builder setTotalAmountOptions(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountOptions_ = value; } else { totalAmountOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; */ public Builder setTotalAmountOptions( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountOptionsBuilder_ == null) { totalAmountOptions_ = builderForValue.build(); } else { totalAmountOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; */ public Builder mergeTotalAmountOptions(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountOptionsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && totalAmountOptions_ != null && totalAmountOptions_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountOptionsBuilder().mergeFrom(value); } else { totalAmountOptions_ = value; } } else { totalAmountOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; */ public Builder clearTotalAmountOptions() { bitField0_ = (bitField0_ & ~0x00000100); totalAmountOptions_ = null; if (totalAmountOptionsBuilder_ != null) { totalAmountOptionsBuilder_.dispose(); totalAmountOptionsBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountOptionsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getTotalAmountOptionsFieldBuilder().getBuilder(); } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountOptionsOrBuilder() { if (totalAmountOptionsBuilder_ != null) { return totalAmountOptionsBuilder_.getMessageOrBuilder(); } else { return totalAmountOptions_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountOptions_; } } /** *
     *Общая стоимость опционов в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 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> getTotalAmountOptionsFieldBuilder() { if (totalAmountOptionsBuilder_ == null) { totalAmountOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountOptions(), getParentForChildren(), isClean()); totalAmountOptions_ = null; } return totalAmountOptionsBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountSp_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountSpBuilder_; /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; * @return Whether the totalAmountSp field is set. */ public boolean hasTotalAmountSp() { return ((bitField0_ & 0x00000200) != 0); } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; * @return The totalAmountSp. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountSp() { if (totalAmountSpBuilder_ == null) { return totalAmountSp_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountSp_; } else { return totalAmountSpBuilder_.getMessage(); } } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ public Builder setTotalAmountSp(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountSpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountSp_ = value; } else { totalAmountSpBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ public Builder setTotalAmountSp( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountSpBuilder_ == null) { totalAmountSp_ = builderForValue.build(); } else { totalAmountSpBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ public Builder mergeTotalAmountSp(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountSpBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && totalAmountSp_ != null && totalAmountSp_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountSpBuilder().mergeFrom(value); } else { totalAmountSp_ = value; } } else { totalAmountSpBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ public Builder clearTotalAmountSp() { bitField0_ = (bitField0_ & ~0x00000200); totalAmountSp_ = null; if (totalAmountSpBuilder_ != null) { totalAmountSpBuilder_.dispose(); totalAmountSpBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountSpBuilder() { bitField0_ |= 0x00000200; onChanged(); return getTotalAmountSpFieldBuilder().getBuilder(); } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountSpOrBuilder() { if (totalAmountSpBuilder_ != null) { return totalAmountSpBuilder_.getMessageOrBuilder(); } else { return totalAmountSp_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountSp_; } } /** *
     *Общая стоимость структурных нот в портфеле.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getTotalAmountSpFieldBuilder() { if (totalAmountSpBuilder_ == null) { totalAmountSpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountSp(), getParentForChildren(), isClean()); totalAmountSp_ = null; } return totalAmountSpBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue totalAmountPortfolio_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalAmountPortfolioBuilder_; /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; * @return Whether the totalAmountPortfolio field is set. */ public boolean hasTotalAmountPortfolio() { return ((bitField0_ & 0x00000400) != 0); } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; * @return The totalAmountPortfolio. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalAmountPortfolio() { if (totalAmountPortfolioBuilder_ == null) { return totalAmountPortfolio_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountPortfolio_; } else { return totalAmountPortfolioBuilder_.getMessage(); } } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ public Builder setTotalAmountPortfolio(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountPortfolioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAmountPortfolio_ = value; } else { totalAmountPortfolioBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ public Builder setTotalAmountPortfolio( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (totalAmountPortfolioBuilder_ == null) { totalAmountPortfolio_ = builderForValue.build(); } else { totalAmountPortfolioBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ public Builder mergeTotalAmountPortfolio(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (totalAmountPortfolioBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && totalAmountPortfolio_ != null && totalAmountPortfolio_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getTotalAmountPortfolioBuilder().mergeFrom(value); } else { totalAmountPortfolio_ = value; } } else { totalAmountPortfolioBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ public Builder clearTotalAmountPortfolio() { bitField0_ = (bitField0_ & ~0x00000400); totalAmountPortfolio_ = null; if (totalAmountPortfolioBuilder_ != null) { totalAmountPortfolioBuilder_.dispose(); totalAmountPortfolioBuilder_ = null; } onChanged(); return this; } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalAmountPortfolioBuilder() { bitField0_ |= 0x00000400; onChanged(); return getTotalAmountPortfolioFieldBuilder().getBuilder(); } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalAmountPortfolioOrBuilder() { if (totalAmountPortfolioBuilder_ != null) { return totalAmountPortfolioBuilder_.getMessageOrBuilder(); } else { return totalAmountPortfolio_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalAmountPortfolio_; } } /** *
     *Общая стоимость портфеля.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getTotalAmountPortfolioFieldBuilder() { if (totalAmountPortfolioBuilder_ == null) { totalAmountPortfolioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getTotalAmountPortfolio(), getParentForChildren(), isClean()); totalAmountPortfolio_ = null; } return totalAmountPortfolioBuilder_; } private java.util.List virtualPositions_ = java.util.Collections.emptyList(); private void ensureVirtualPositionsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { virtualPositions_ = new java.util.ArrayList(virtualPositions_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPositionOrBuilder> virtualPositionsBuilder_; /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public java.util.List getVirtualPositionsList() { if (virtualPositionsBuilder_ == null) { return java.util.Collections.unmodifiableList(virtualPositions_); } else { return virtualPositionsBuilder_.getMessageList(); } } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public int getVirtualPositionsCount() { if (virtualPositionsBuilder_ == null) { return virtualPositions_.size(); } else { return virtualPositionsBuilder_.getCount(); } } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition getVirtualPositions(int index) { if (virtualPositionsBuilder_ == null) { return virtualPositions_.get(index); } else { return virtualPositionsBuilder_.getMessage(index); } } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder setVirtualPositions( int index, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition value) { if (virtualPositionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVirtualPositionsIsMutable(); virtualPositions_.set(index, value); onChanged(); } else { virtualPositionsBuilder_.setMessage(index, value); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder setVirtualPositions( int index, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder builderForValue) { if (virtualPositionsBuilder_ == null) { ensureVirtualPositionsIsMutable(); virtualPositions_.set(index, builderForValue.build()); onChanged(); } else { virtualPositionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder addVirtualPositions(ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition value) { if (virtualPositionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVirtualPositionsIsMutable(); virtualPositions_.add(value); onChanged(); } else { virtualPositionsBuilder_.addMessage(value); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder addVirtualPositions( int index, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition value) { if (virtualPositionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVirtualPositionsIsMutable(); virtualPositions_.add(index, value); onChanged(); } else { virtualPositionsBuilder_.addMessage(index, value); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder addVirtualPositions( ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder builderForValue) { if (virtualPositionsBuilder_ == null) { ensureVirtualPositionsIsMutable(); virtualPositions_.add(builderForValue.build()); onChanged(); } else { virtualPositionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder addVirtualPositions( int index, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder builderForValue) { if (virtualPositionsBuilder_ == null) { ensureVirtualPositionsIsMutable(); virtualPositions_.add(index, builderForValue.build()); onChanged(); } else { virtualPositionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder addAllVirtualPositions( java.lang.Iterable values) { if (virtualPositionsBuilder_ == null) { ensureVirtualPositionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, virtualPositions_); onChanged(); } else { virtualPositionsBuilder_.addAllMessages(values); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder clearVirtualPositions() { if (virtualPositionsBuilder_ == null) { virtualPositions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { virtualPositionsBuilder_.clear(); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public Builder removeVirtualPositions(int index) { if (virtualPositionsBuilder_ == null) { ensureVirtualPositionsIsMutable(); virtualPositions_.remove(index); onChanged(); } else { virtualPositionsBuilder_.remove(index); } return this; } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder getVirtualPositionsBuilder( int index) { return getVirtualPositionsFieldBuilder().getBuilder(index); } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public ru.tinkoff.piapi.contract.v1.VirtualPortfolioPositionOrBuilder getVirtualPositionsOrBuilder( int index) { if (virtualPositionsBuilder_ == null) { return virtualPositions_.get(index); } else { return virtualPositionsBuilder_.getMessageOrBuilder(index); } } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public java.util.List getVirtualPositionsOrBuilderList() { if (virtualPositionsBuilder_ != null) { return virtualPositionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(virtualPositions_); } } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder addVirtualPositionsBuilder() { return getVirtualPositionsFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.getDefaultInstance()); } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder addVirtualPositionsBuilder( int index) { return getVirtualPositionsFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.getDefaultInstance()); } /** *
     *Массив виртуальных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12; */ public java.util.List getVirtualPositionsBuilderList() { return getVirtualPositionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPositionOrBuilder> getVirtualPositionsFieldBuilder() { if (virtualPositionsBuilder_ == null) { virtualPositionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPosition.Builder, ru.tinkoff.piapi.contract.v1.VirtualPortfolioPositionOrBuilder>( virtualPositions_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); virtualPositions_ = null; } return virtualPositionsBuilder_; } @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.PortfolioResponse) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.PortfolioResponse) private static final ru.tinkoff.piapi.contract.v1.PortfolioResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.PortfolioResponse(); } public static ru.tinkoff.piapi.contract.v1.PortfolioResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PortfolioResponse 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.PortfolioResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy