Class PortfolioResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ru.tinkoff.piapi.contract.v1.PortfolioResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, PortfolioResponseOrBuilder

public final class PortfolioResponse extends com.google.protobuf.GeneratedMessageV3 implements PortfolioResponseOrBuilder
Текущий портфель по счёту.
 
Protobuf type tinkoff.public.invest.api.contract.v1.PortfolioResponse
See Also:
  • Field Details

    • TOTAL_AMOUNT_SHARES_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_SHARES_FIELD_NUMBER
      See Also:
    • TOTAL_AMOUNT_BONDS_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_BONDS_FIELD_NUMBER
      See Also:
    • TOTAL_AMOUNT_ETF_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_ETF_FIELD_NUMBER
      See Also:
    • TOTAL_AMOUNT_CURRENCIES_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_CURRENCIES_FIELD_NUMBER
      See Also:
    • TOTAL_AMOUNT_FUTURES_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_FUTURES_FIELD_NUMBER
      See Also:
    • EXPECTED_YIELD_FIELD_NUMBER

      public static final int EXPECTED_YIELD_FIELD_NUMBER
      See Also:
    • POSITIONS_FIELD_NUMBER

      public static final int POSITIONS_FIELD_NUMBER
      See Also:
    • ACCOUNT_ID_FIELD_NUMBER

      public static final int ACCOUNT_ID_FIELD_NUMBER
      See Also:
    • TOTAL_AMOUNT_OPTIONS_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_OPTIONS_FIELD_NUMBER
      See Also:
    • TOTAL_AMOUNT_SP_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_SP_FIELD_NUMBER
      See Also:
    • TOTAL_AMOUNT_PORTFOLIO_FIELD_NUMBER

      public static final int TOTAL_AMOUNT_PORTFOLIO_FIELD_NUMBER
      See Also:
    • VIRTUAL_POSITIONS_FIELD_NUMBER

      public static final int VIRTUAL_POSITIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasTotalAmountShares

      public boolean hasTotalAmountShares()
      Общая стоимость акций в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1;
      Specified by:
      hasTotalAmountShares in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountShares field is set.
    • getTotalAmountShares

      public MoneyValue getTotalAmountShares()
      Общая стоимость акций в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1;
      Specified by:
      getTotalAmountShares in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountShares.
    • getTotalAmountSharesOrBuilder

      public MoneyValueOrBuilder getTotalAmountSharesOrBuilder()
      Общая стоимость акций в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_shares = 1;
      Specified by:
      getTotalAmountSharesOrBuilder in interface PortfolioResponseOrBuilder
    • hasTotalAmountBonds

      public boolean hasTotalAmountBonds()
      Общая стоимость облигаций в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2;
      Specified by:
      hasTotalAmountBonds in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountBonds field is set.
    • getTotalAmountBonds

      public MoneyValue getTotalAmountBonds()
      Общая стоимость облигаций в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2;
      Specified by:
      getTotalAmountBonds in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountBonds.
    • getTotalAmountBondsOrBuilder

      public MoneyValueOrBuilder getTotalAmountBondsOrBuilder()
      Общая стоимость облигаций в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_bonds = 2;
      Specified by:
      getTotalAmountBondsOrBuilder in interface PortfolioResponseOrBuilder
    • hasTotalAmountEtf

      public boolean hasTotalAmountEtf()
      Общая стоимость фондов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3;
      Specified by:
      hasTotalAmountEtf in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountEtf field is set.
    • getTotalAmountEtf

      public MoneyValue getTotalAmountEtf()
      Общая стоимость фондов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3;
      Specified by:
      getTotalAmountEtf in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountEtf.
    • getTotalAmountEtfOrBuilder

      public MoneyValueOrBuilder getTotalAmountEtfOrBuilder()
      Общая стоимость фондов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_etf = 3;
      Specified by:
      getTotalAmountEtfOrBuilder in interface PortfolioResponseOrBuilder
    • hasTotalAmountCurrencies

      public boolean hasTotalAmountCurrencies()
      Общая стоимость валют в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4;
      Specified by:
      hasTotalAmountCurrencies in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountCurrencies field is set.
    • getTotalAmountCurrencies

      public MoneyValue getTotalAmountCurrencies()
      Общая стоимость валют в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4;
      Specified by:
      getTotalAmountCurrencies in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountCurrencies.
    • getTotalAmountCurrenciesOrBuilder

      public MoneyValueOrBuilder getTotalAmountCurrenciesOrBuilder()
      Общая стоимость валют в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_currencies = 4;
      Specified by:
      getTotalAmountCurrenciesOrBuilder in interface PortfolioResponseOrBuilder
    • hasTotalAmountFutures

      public boolean hasTotalAmountFutures()
      Общая стоимость фьючерсов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5;
      Specified by:
      hasTotalAmountFutures in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountFutures field is set.
    • getTotalAmountFutures

      public MoneyValue getTotalAmountFutures()
      Общая стоимость фьючерсов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5;
      Specified by:
      getTotalAmountFutures in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountFutures.
    • getTotalAmountFuturesOrBuilder

      public MoneyValueOrBuilder getTotalAmountFuturesOrBuilder()
      Общая стоимость фьючерсов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_futures = 5;
      Specified by:
      getTotalAmountFuturesOrBuilder in interface PortfolioResponseOrBuilder
    • hasExpectedYield

      public boolean hasExpectedYield()
      Текущая относительная доходность портфеля, в %.
       
      .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6;
      Specified by:
      hasExpectedYield in interface PortfolioResponseOrBuilder
      Returns:
      Whether the expectedYield field is set.
    • getExpectedYield

      public Quotation getExpectedYield()
      Текущая относительная доходность портфеля, в %.
       
      .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6;
      Specified by:
      getExpectedYield in interface PortfolioResponseOrBuilder
      Returns:
      The expectedYield.
    • getExpectedYieldOrBuilder

      public QuotationOrBuilder getExpectedYieldOrBuilder()
      Текущая относительная доходность портфеля, в %.
       
      .tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 6;
      Specified by:
      getExpectedYieldOrBuilder in interface PortfolioResponseOrBuilder
    • getPositionsList

      public List<PortfolioPosition> getPositionsList()
      Список позиций портфеля.
       
      repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7;
      Specified by:
      getPositionsList in interface PortfolioResponseOrBuilder
    • getPositionsOrBuilderList

      public List<? extends PortfolioPositionOrBuilder> getPositionsOrBuilderList()
      Список позиций портфеля.
       
      repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7;
      Specified by:
      getPositionsOrBuilderList in interface PortfolioResponseOrBuilder
    • getPositionsCount

      public int getPositionsCount()
      Список позиций портфеля.
       
      repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7;
      Specified by:
      getPositionsCount in interface PortfolioResponseOrBuilder
    • getPositions

      public PortfolioPosition getPositions(int index)
      Список позиций портфеля.
       
      repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7;
      Specified by:
      getPositions in interface PortfolioResponseOrBuilder
    • getPositionsOrBuilder

      public PortfolioPositionOrBuilder getPositionsOrBuilder(int index)
      Список позиций портфеля.
       
      repeated .tinkoff.public.invest.api.contract.v1.PortfolioPosition positions = 7;
      Specified by:
      getPositionsOrBuilder in interface PortfolioResponseOrBuilder
    • getAccountId

      public String getAccountId()
      Идентификатор счёта пользователя.
       
      string account_id = 8;
      Specified by:
      getAccountId in interface PortfolioResponseOrBuilder
      Returns:
      The accountId.
    • getAccountIdBytes

      public com.google.protobuf.ByteString getAccountIdBytes()
      Идентификатор счёта пользователя.
       
      string account_id = 8;
      Specified by:
      getAccountIdBytes in interface PortfolioResponseOrBuilder
      Returns:
      The bytes for accountId.
    • hasTotalAmountOptions

      public boolean hasTotalAmountOptions()
      Общая стоимость опционов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9;
      Specified by:
      hasTotalAmountOptions in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountOptions field is set.
    • getTotalAmountOptions

      public MoneyValue getTotalAmountOptions()
      Общая стоимость опционов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9;
      Specified by:
      getTotalAmountOptions in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountOptions.
    • getTotalAmountOptionsOrBuilder

      public MoneyValueOrBuilder getTotalAmountOptionsOrBuilder()
      Общая стоимость опционов в портфеле в рублях.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_options = 9;
      Specified by:
      getTotalAmountOptionsOrBuilder in interface PortfolioResponseOrBuilder
    • hasTotalAmountSp

      public boolean hasTotalAmountSp()
      Общая стоимость структурных нот в портфеле в рублях
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10;
      Specified by:
      hasTotalAmountSp in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountSp field is set.
    • getTotalAmountSp

      public MoneyValue getTotalAmountSp()
      Общая стоимость структурных нот в портфеле в рублях
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10;
      Specified by:
      getTotalAmountSp in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountSp.
    • getTotalAmountSpOrBuilder

      public MoneyValueOrBuilder getTotalAmountSpOrBuilder()
      Общая стоимость структурных нот в портфеле в рублях
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_sp = 10;
      Specified by:
      getTotalAmountSpOrBuilder in interface PortfolioResponseOrBuilder
    • hasTotalAmountPortfolio

      public boolean hasTotalAmountPortfolio()
      Общая стоимость портфеля в рублях
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11;
      Specified by:
      hasTotalAmountPortfolio in interface PortfolioResponseOrBuilder
      Returns:
      Whether the totalAmountPortfolio field is set.
    • getTotalAmountPortfolio

      public MoneyValue getTotalAmountPortfolio()
      Общая стоимость портфеля в рублях
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11;
      Specified by:
      getTotalAmountPortfolio in interface PortfolioResponseOrBuilder
      Returns:
      The totalAmountPortfolio.
    • getTotalAmountPortfolioOrBuilder

      public MoneyValueOrBuilder getTotalAmountPortfolioOrBuilder()
      Общая стоимость портфеля в рублях
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_amount_portfolio = 11;
      Specified by:
      getTotalAmountPortfolioOrBuilder in interface PortfolioResponseOrBuilder
    • getVirtualPositionsList

      public List<VirtualPortfolioPosition> getVirtualPositionsList()
      Массив виртуальных позиций портфеля
       
      repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12;
      Specified by:
      getVirtualPositionsList in interface PortfolioResponseOrBuilder
    • getVirtualPositionsOrBuilderList

      public List<? extends VirtualPortfolioPositionOrBuilder> getVirtualPositionsOrBuilderList()
      Массив виртуальных позиций портфеля
       
      repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12;
      Specified by:
      getVirtualPositionsOrBuilderList in interface PortfolioResponseOrBuilder
    • getVirtualPositionsCount

      public int getVirtualPositionsCount()
      Массив виртуальных позиций портфеля
       
      repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12;
      Specified by:
      getVirtualPositionsCount in interface PortfolioResponseOrBuilder
    • getVirtualPositions

      public VirtualPortfolioPosition getVirtualPositions(int index)
      Массив виртуальных позиций портфеля
       
      repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12;
      Specified by:
      getVirtualPositions in interface PortfolioResponseOrBuilder
    • getVirtualPositionsOrBuilder

      public VirtualPortfolioPositionOrBuilder getVirtualPositionsOrBuilder(int index)
      Массив виртуальных позиций портфеля
       
      repeated .tinkoff.public.invest.api.contract.v1.VirtualPortfolioPosition virtual_positions = 12;
      Specified by:
      getVirtualPositionsOrBuilder in interface PortfolioResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PortfolioResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortfolioResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortfolioResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortfolioResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortfolioResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortfolioResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PortfolioResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PortfolioResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PortfolioResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PortfolioResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PortfolioResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PortfolioResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PortfolioResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PortfolioResponse.Builder newBuilder()
    • newBuilder

      public static PortfolioResponse.Builder newBuilder(PortfolioResponse prototype)
    • toBuilder

      public PortfolioResponse.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PortfolioResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static PortfolioResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PortfolioResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<PortfolioResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public PortfolioResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder