Class MarketDataResponse

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

public final class MarketDataResponse extends com.google.protobuf.GeneratedMessageV3 implements MarketDataResponseOrBuilder
Пакет биржевой информации по подписке.
 
Protobuf type tinkoff.public.invest.api.contract.v1.MarketDataResponse
See Also:
  • Field Details

    • SUBSCRIBE_CANDLES_RESPONSE_FIELD_NUMBER

      public static final int SUBSCRIBE_CANDLES_RESPONSE_FIELD_NUMBER
      See Also:
    • SUBSCRIBE_ORDER_BOOK_RESPONSE_FIELD_NUMBER

      public static final int SUBSCRIBE_ORDER_BOOK_RESPONSE_FIELD_NUMBER
      See Also:
    • SUBSCRIBE_TRADES_RESPONSE_FIELD_NUMBER

      public static final int SUBSCRIBE_TRADES_RESPONSE_FIELD_NUMBER
      See Also:
    • SUBSCRIBE_INFO_RESPONSE_FIELD_NUMBER

      public static final int SUBSCRIBE_INFO_RESPONSE_FIELD_NUMBER
      See Also:
    • CANDLE_FIELD_NUMBER

      public static final int CANDLE_FIELD_NUMBER
      See Also:
    • TRADE_FIELD_NUMBER

      public static final int TRADE_FIELD_NUMBER
      See Also:
    • ORDERBOOK_FIELD_NUMBER

      public static final int ORDERBOOK_FIELD_NUMBER
      See Also:
    • TRADING_STATUS_FIELD_NUMBER

      public static final int TRADING_STATUS_FIELD_NUMBER
      See Also:
    • PING_FIELD_NUMBER

      public static final int PING_FIELD_NUMBER
      See Also:
    • SUBSCRIBE_LAST_PRICE_RESPONSE_FIELD_NUMBER

      public static final int SUBSCRIBE_LAST_PRICE_RESPONSE_FIELD_NUMBER
      See Also:
    • LAST_PRICE_FIELD_NUMBER

      public static final int LAST_PRICE_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
    • getPayloadCase

      public MarketDataResponse.PayloadCase getPayloadCase()
      Specified by:
      getPayloadCase in interface MarketDataResponseOrBuilder
    • hasSubscribeCandlesResponse

      public boolean hasSubscribeCandlesResponse()
      Результат подписки на свечи.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeCandlesResponse subscribe_candles_response = 1;
      Specified by:
      hasSubscribeCandlesResponse in interface MarketDataResponseOrBuilder
      Returns:
      Whether the subscribeCandlesResponse field is set.
    • getSubscribeCandlesResponse

      public SubscribeCandlesResponse getSubscribeCandlesResponse()
      Результат подписки на свечи.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeCandlesResponse subscribe_candles_response = 1;
      Specified by:
      getSubscribeCandlesResponse in interface MarketDataResponseOrBuilder
      Returns:
      The subscribeCandlesResponse.
    • getSubscribeCandlesResponseOrBuilder

      public SubscribeCandlesResponseOrBuilder getSubscribeCandlesResponseOrBuilder()
      Результат подписки на свечи.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeCandlesResponse subscribe_candles_response = 1;
      Specified by:
      getSubscribeCandlesResponseOrBuilder in interface MarketDataResponseOrBuilder
    • hasSubscribeOrderBookResponse

      public boolean hasSubscribeOrderBookResponse()
      Результат подписки на стаканы.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookResponse subscribe_order_book_response = 2;
      Specified by:
      hasSubscribeOrderBookResponse in interface MarketDataResponseOrBuilder
      Returns:
      Whether the subscribeOrderBookResponse field is set.
    • getSubscribeOrderBookResponse

      public SubscribeOrderBookResponse getSubscribeOrderBookResponse()
      Результат подписки на стаканы.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookResponse subscribe_order_book_response = 2;
      Specified by:
      getSubscribeOrderBookResponse in interface MarketDataResponseOrBuilder
      Returns:
      The subscribeOrderBookResponse.
    • getSubscribeOrderBookResponseOrBuilder

      public SubscribeOrderBookResponseOrBuilder getSubscribeOrderBookResponseOrBuilder()
      Результат подписки на стаканы.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookResponse subscribe_order_book_response = 2;
      Specified by:
      getSubscribeOrderBookResponseOrBuilder in interface MarketDataResponseOrBuilder
    • hasSubscribeTradesResponse

      public boolean hasSubscribeTradesResponse()
      Результат подписки на поток обезличенных сделок.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeTradesResponse subscribe_trades_response = 3;
      Specified by:
      hasSubscribeTradesResponse in interface MarketDataResponseOrBuilder
      Returns:
      Whether the subscribeTradesResponse field is set.
    • getSubscribeTradesResponse

      public SubscribeTradesResponse getSubscribeTradesResponse()
      Результат подписки на поток обезличенных сделок.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeTradesResponse subscribe_trades_response = 3;
      Specified by:
      getSubscribeTradesResponse in interface MarketDataResponseOrBuilder
      Returns:
      The subscribeTradesResponse.
    • getSubscribeTradesResponseOrBuilder

      public SubscribeTradesResponseOrBuilder getSubscribeTradesResponseOrBuilder()
      Результат подписки на поток обезличенных сделок.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeTradesResponse subscribe_trades_response = 3;
      Specified by:
      getSubscribeTradesResponseOrBuilder in interface MarketDataResponseOrBuilder
    • hasSubscribeInfoResponse

      public boolean hasSubscribeInfoResponse()
      Результат подписки на торговые статусы инструментов.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeInfoResponse subscribe_info_response = 4;
      Specified by:
      hasSubscribeInfoResponse in interface MarketDataResponseOrBuilder
      Returns:
      Whether the subscribeInfoResponse field is set.
    • getSubscribeInfoResponse

      public SubscribeInfoResponse getSubscribeInfoResponse()
      Результат подписки на торговые статусы инструментов.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeInfoResponse subscribe_info_response = 4;
      Specified by:
      getSubscribeInfoResponse in interface MarketDataResponseOrBuilder
      Returns:
      The subscribeInfoResponse.
    • getSubscribeInfoResponseOrBuilder

      public SubscribeInfoResponseOrBuilder getSubscribeInfoResponseOrBuilder()
      Результат подписки на торговые статусы инструментов.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeInfoResponse subscribe_info_response = 4;
      Specified by:
      getSubscribeInfoResponseOrBuilder in interface MarketDataResponseOrBuilder
    • hasCandle

      public boolean hasCandle()
      Свеча.
       
      .tinkoff.public.invest.api.contract.v1.Candle candle = 5;
      Specified by:
      hasCandle in interface MarketDataResponseOrBuilder
      Returns:
      Whether the candle field is set.
    • getCandle

      public Candle getCandle()
      Свеча.
       
      .tinkoff.public.invest.api.contract.v1.Candle candle = 5;
      Specified by:
      getCandle in interface MarketDataResponseOrBuilder
      Returns:
      The candle.
    • getCandleOrBuilder

      public CandleOrBuilder getCandleOrBuilder()
      Свеча.
       
      .tinkoff.public.invest.api.contract.v1.Candle candle = 5;
      Specified by:
      getCandleOrBuilder in interface MarketDataResponseOrBuilder
    • hasTrade

      public boolean hasTrade()
      Сделки.
       
      .tinkoff.public.invest.api.contract.v1.Trade trade = 6;
      Specified by:
      hasTrade in interface MarketDataResponseOrBuilder
      Returns:
      Whether the trade field is set.
    • getTrade

      public Trade getTrade()
      Сделки.
       
      .tinkoff.public.invest.api.contract.v1.Trade trade = 6;
      Specified by:
      getTrade in interface MarketDataResponseOrBuilder
      Returns:
      The trade.
    • getTradeOrBuilder

      public TradeOrBuilder getTradeOrBuilder()
      Сделки.
       
      .tinkoff.public.invest.api.contract.v1.Trade trade = 6;
      Specified by:
      getTradeOrBuilder in interface MarketDataResponseOrBuilder
    • hasOrderbook

      public boolean hasOrderbook()
      Стакан.
       
      .tinkoff.public.invest.api.contract.v1.OrderBook orderbook = 7;
      Specified by:
      hasOrderbook in interface MarketDataResponseOrBuilder
      Returns:
      Whether the orderbook field is set.
    • getOrderbook

      public OrderBook getOrderbook()
      Стакан.
       
      .tinkoff.public.invest.api.contract.v1.OrderBook orderbook = 7;
      Specified by:
      getOrderbook in interface MarketDataResponseOrBuilder
      Returns:
      The orderbook.
    • getOrderbookOrBuilder

      public OrderBookOrBuilder getOrderbookOrBuilder()
      Стакан.
       
      .tinkoff.public.invest.api.contract.v1.OrderBook orderbook = 7;
      Specified by:
      getOrderbookOrBuilder in interface MarketDataResponseOrBuilder
    • hasTradingStatus

      public boolean hasTradingStatus()
      Торговый статус.
       
      .tinkoff.public.invest.api.contract.v1.TradingStatus trading_status = 8;
      Specified by:
      hasTradingStatus in interface MarketDataResponseOrBuilder
      Returns:
      Whether the tradingStatus field is set.
    • getTradingStatus

      public TradingStatus getTradingStatus()
      Торговый статус.
       
      .tinkoff.public.invest.api.contract.v1.TradingStatus trading_status = 8;
      Specified by:
      getTradingStatus in interface MarketDataResponseOrBuilder
      Returns:
      The tradingStatus.
    • getTradingStatusOrBuilder

      public TradingStatusOrBuilder getTradingStatusOrBuilder()
      Торговый статус.
       
      .tinkoff.public.invest.api.contract.v1.TradingStatus trading_status = 8;
      Specified by:
      getTradingStatusOrBuilder in interface MarketDataResponseOrBuilder
    • hasPing

      public boolean hasPing()
      Проверка активности стрима.
       
      .tinkoff.public.invest.api.contract.v1.Ping ping = 9;
      Specified by:
      hasPing in interface MarketDataResponseOrBuilder
      Returns:
      Whether the ping field is set.
    • getPing

      public Ping getPing()
      Проверка активности стрима.
       
      .tinkoff.public.invest.api.contract.v1.Ping ping = 9;
      Specified by:
      getPing in interface MarketDataResponseOrBuilder
      Returns:
      The ping.
    • getPingOrBuilder

      public PingOrBuilder getPingOrBuilder()
      Проверка активности стрима.
       
      .tinkoff.public.invest.api.contract.v1.Ping ping = 9;
      Specified by:
      getPingOrBuilder in interface MarketDataResponseOrBuilder
    • hasSubscribeLastPriceResponse

      public boolean hasSubscribeLastPriceResponse()
      Результат подписки на цены последние сделок по инструментам.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceResponse subscribe_last_price_response = 10;
      Specified by:
      hasSubscribeLastPriceResponse in interface MarketDataResponseOrBuilder
      Returns:
      Whether the subscribeLastPriceResponse field is set.
    • getSubscribeLastPriceResponse

      public SubscribeLastPriceResponse getSubscribeLastPriceResponse()
      Результат подписки на цены последние сделок по инструментам.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceResponse subscribe_last_price_response = 10;
      Specified by:
      getSubscribeLastPriceResponse in interface MarketDataResponseOrBuilder
      Returns:
      The subscribeLastPriceResponse.
    • getSubscribeLastPriceResponseOrBuilder

      public SubscribeLastPriceResponseOrBuilder getSubscribeLastPriceResponseOrBuilder()
      Результат подписки на цены последние сделок по инструментам.
       
      .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceResponse subscribe_last_price_response = 10;
      Specified by:
      getSubscribeLastPriceResponseOrBuilder in interface MarketDataResponseOrBuilder
    • hasLastPrice

      public boolean hasLastPrice()
      Цена последней сделки.
       
      .tinkoff.public.invest.api.contract.v1.LastPrice last_price = 11;
      Specified by:
      hasLastPrice in interface MarketDataResponseOrBuilder
      Returns:
      Whether the lastPrice field is set.
    • getLastPrice

      public LastPrice getLastPrice()
      Цена последней сделки.
       
      .tinkoff.public.invest.api.contract.v1.LastPrice last_price = 11;
      Specified by:
      getLastPrice in interface MarketDataResponseOrBuilder
      Returns:
      The lastPrice.
    • getLastPriceOrBuilder

      public LastPriceOrBuilder getLastPriceOrBuilder()
      Цена последней сделки.
       
      .tinkoff.public.invest.api.contract.v1.LastPrice last_price = 11;
      Specified by:
      getLastPriceOrBuilder in interface MarketDataResponseOrBuilder
    • 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 MarketDataResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static MarketDataResponse.Builder newBuilder()
    • newBuilder

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

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

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

      public static MarketDataResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<MarketDataResponse> 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 MarketDataResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder