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

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

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

package ru.tinkoff.piapi.contract.v1;

/**
 * Protobuf type {@code tinkoff.public.invest.api.contract.v1.MarketDataServerSideStreamRequest}
 */
public final class MarketDataServerSideStreamRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.MarketDataServerSideStreamRequest)
    MarketDataServerSideStreamRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MarketDataServerSideStreamRequest.newBuilder() to construct.
  private MarketDataServerSideStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private MarketDataServerSideStreamRequest() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new MarketDataServerSideStreamRequest();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.class, ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.Builder.class);
  }

  public static final int SUBSCRIBE_CANDLES_REQUEST_FIELD_NUMBER = 1;
  private ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest subscribeCandlesRequest_;
  /**
   * 
   *Запрос подписки на свечи.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; * @return Whether the subscribeCandlesRequest field is set. */ @java.lang.Override public boolean hasSubscribeCandlesRequest() { return subscribeCandlesRequest_ != null; } /** *
   *Запрос подписки на свечи.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; * @return The subscribeCandlesRequest. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest getSubscribeCandlesRequest() { return subscribeCandlesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance() : subscribeCandlesRequest_; } /** *
   *Запрос подписки на свечи.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder getSubscribeCandlesRequestOrBuilder() { return subscribeCandlesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance() : subscribeCandlesRequest_; } public static final int SUBSCRIBE_ORDER_BOOK_REQUEST_FIELD_NUMBER = 2; private ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest subscribeOrderBookRequest_; /** *
   *Запрос подписки на стаканы.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; * @return Whether the subscribeOrderBookRequest field is set. */ @java.lang.Override public boolean hasSubscribeOrderBookRequest() { return subscribeOrderBookRequest_ != null; } /** *
   *Запрос подписки на стаканы.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; * @return The subscribeOrderBookRequest. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest getSubscribeOrderBookRequest() { return subscribeOrderBookRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance() : subscribeOrderBookRequest_; } /** *
   *Запрос подписки на стаканы.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder getSubscribeOrderBookRequestOrBuilder() { return subscribeOrderBookRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance() : subscribeOrderBookRequest_; } public static final int SUBSCRIBE_TRADES_REQUEST_FIELD_NUMBER = 3; private ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest subscribeTradesRequest_; /** *
   *Запрос подписки на ленту обезличенных сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; * @return Whether the subscribeTradesRequest field is set. */ @java.lang.Override public boolean hasSubscribeTradesRequest() { return subscribeTradesRequest_ != null; } /** *
   *Запрос подписки на ленту обезличенных сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; * @return The subscribeTradesRequest. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest getSubscribeTradesRequest() { return subscribeTradesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance() : subscribeTradesRequest_; } /** *
   *Запрос подписки на ленту обезличенных сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder getSubscribeTradesRequestOrBuilder() { return subscribeTradesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance() : subscribeTradesRequest_; } public static final int SUBSCRIBE_INFO_REQUEST_FIELD_NUMBER = 4; private ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest subscribeInfoRequest_; /** *
   *Запрос подписки на торговые статусы инструментов.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; * @return Whether the subscribeInfoRequest field is set. */ @java.lang.Override public boolean hasSubscribeInfoRequest() { return subscribeInfoRequest_ != null; } /** *
   *Запрос подписки на торговые статусы инструментов.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; * @return The subscribeInfoRequest. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest getSubscribeInfoRequest() { return subscribeInfoRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance() : subscribeInfoRequest_; } /** *
   *Запрос подписки на торговые статусы инструментов.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder getSubscribeInfoRequestOrBuilder() { return subscribeInfoRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance() : subscribeInfoRequest_; } public static final int SUBSCRIBE_LAST_PRICE_REQUEST_FIELD_NUMBER = 5; private ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest subscribeLastPriceRequest_; /** *
   *Запрос подписки на цены последних сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; * @return Whether the subscribeLastPriceRequest field is set. */ @java.lang.Override public boolean hasSubscribeLastPriceRequest() { return subscribeLastPriceRequest_ != null; } /** *
   *Запрос подписки на цены последних сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; * @return The subscribeLastPriceRequest. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest getSubscribeLastPriceRequest() { return subscribeLastPriceRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance() : subscribeLastPriceRequest_; } /** *
   *Запрос подписки на цены последних сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder getSubscribeLastPriceRequestOrBuilder() { return subscribeLastPriceRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance() : subscribeLastPriceRequest_; } 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 (subscribeCandlesRequest_ != null) { output.writeMessage(1, getSubscribeCandlesRequest()); } if (subscribeOrderBookRequest_ != null) { output.writeMessage(2, getSubscribeOrderBookRequest()); } if (subscribeTradesRequest_ != null) { output.writeMessage(3, getSubscribeTradesRequest()); } if (subscribeInfoRequest_ != null) { output.writeMessage(4, getSubscribeInfoRequest()); } if (subscribeLastPriceRequest_ != null) { output.writeMessage(5, getSubscribeLastPriceRequest()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (subscribeCandlesRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSubscribeCandlesRequest()); } if (subscribeOrderBookRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSubscribeOrderBookRequest()); } if (subscribeTradesRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSubscribeTradesRequest()); } if (subscribeInfoRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSubscribeInfoRequest()); } if (subscribeLastPriceRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSubscribeLastPriceRequest()); } 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.MarketDataServerSideStreamRequest)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest other = (ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest) obj; if (hasSubscribeCandlesRequest() != other.hasSubscribeCandlesRequest()) return false; if (hasSubscribeCandlesRequest()) { if (!getSubscribeCandlesRequest() .equals(other.getSubscribeCandlesRequest())) return false; } if (hasSubscribeOrderBookRequest() != other.hasSubscribeOrderBookRequest()) return false; if (hasSubscribeOrderBookRequest()) { if (!getSubscribeOrderBookRequest() .equals(other.getSubscribeOrderBookRequest())) return false; } if (hasSubscribeTradesRequest() != other.hasSubscribeTradesRequest()) return false; if (hasSubscribeTradesRequest()) { if (!getSubscribeTradesRequest() .equals(other.getSubscribeTradesRequest())) return false; } if (hasSubscribeInfoRequest() != other.hasSubscribeInfoRequest()) return false; if (hasSubscribeInfoRequest()) { if (!getSubscribeInfoRequest() .equals(other.getSubscribeInfoRequest())) return false; } if (hasSubscribeLastPriceRequest() != other.hasSubscribeLastPriceRequest()) return false; if (hasSubscribeLastPriceRequest()) { if (!getSubscribeLastPriceRequest() .equals(other.getSubscribeLastPriceRequest())) 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 (hasSubscribeCandlesRequest()) { hash = (37 * hash) + SUBSCRIBE_CANDLES_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeCandlesRequest().hashCode(); } if (hasSubscribeOrderBookRequest()) { hash = (37 * hash) + SUBSCRIBE_ORDER_BOOK_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeOrderBookRequest().hashCode(); } if (hasSubscribeTradesRequest()) { hash = (37 * hash) + SUBSCRIBE_TRADES_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeTradesRequest().hashCode(); } if (hasSubscribeInfoRequest()) { hash = (37 * hash) + SUBSCRIBE_INFO_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeInfoRequest().hashCode(); } if (hasSubscribeLastPriceRequest()) { hash = (37 * hash) + SUBSCRIBE_LAST_PRICE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeLastPriceRequest().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.MarketDataServerSideStreamRequest) ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.class, ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; subscribeCandlesRequest_ = null; if (subscribeCandlesRequestBuilder_ != null) { subscribeCandlesRequestBuilder_.dispose(); subscribeCandlesRequestBuilder_ = null; } subscribeOrderBookRequest_ = null; if (subscribeOrderBookRequestBuilder_ != null) { subscribeOrderBookRequestBuilder_.dispose(); subscribeOrderBookRequestBuilder_ = null; } subscribeTradesRequest_ = null; if (subscribeTradesRequestBuilder_ != null) { subscribeTradesRequestBuilder_.dispose(); subscribeTradesRequestBuilder_ = null; } subscribeInfoRequest_ = null; if (subscribeInfoRequestBuilder_ != null) { subscribeInfoRequestBuilder_.dispose(); subscribeInfoRequestBuilder_ = null; } subscribeLastPriceRequest_ = null; if (subscribeLastPriceRequestBuilder_ != null) { subscribeLastPriceRequestBuilder_.dispose(); subscribeLastPriceRequestBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest build() { ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest buildPartial() { ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest result = new ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.subscribeCandlesRequest_ = subscribeCandlesRequestBuilder_ == null ? subscribeCandlesRequest_ : subscribeCandlesRequestBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.subscribeOrderBookRequest_ = subscribeOrderBookRequestBuilder_ == null ? subscribeOrderBookRequest_ : subscribeOrderBookRequestBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.subscribeTradesRequest_ = subscribeTradesRequestBuilder_ == null ? subscribeTradesRequest_ : subscribeTradesRequestBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.subscribeInfoRequest_ = subscribeInfoRequestBuilder_ == null ? subscribeInfoRequest_ : subscribeInfoRequestBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.subscribeLastPriceRequest_ = subscribeLastPriceRequestBuilder_ == null ? subscribeLastPriceRequest_ : subscribeLastPriceRequestBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest) { return mergeFrom((ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest other) { if (other == ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.getDefaultInstance()) return this; if (other.hasSubscribeCandlesRequest()) { mergeSubscribeCandlesRequest(other.getSubscribeCandlesRequest()); } if (other.hasSubscribeOrderBookRequest()) { mergeSubscribeOrderBookRequest(other.getSubscribeOrderBookRequest()); } if (other.hasSubscribeTradesRequest()) { mergeSubscribeTradesRequest(other.getSubscribeTradesRequest()); } if (other.hasSubscribeInfoRequest()) { mergeSubscribeInfoRequest(other.getSubscribeInfoRequest()); } if (other.hasSubscribeLastPriceRequest()) { mergeSubscribeLastPriceRequest(other.getSubscribeLastPriceRequest()); } 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( getSubscribeCandlesRequestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSubscribeOrderBookRequestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSubscribeTradesRequestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSubscribeInfoRequestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getSubscribeLastPriceRequestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 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.SubscribeCandlesRequest subscribeCandlesRequest_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder> subscribeCandlesRequestBuilder_; /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; * @return Whether the subscribeCandlesRequest field is set. */ public boolean hasSubscribeCandlesRequest() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; * @return The subscribeCandlesRequest. */ public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest getSubscribeCandlesRequest() { if (subscribeCandlesRequestBuilder_ == null) { return subscribeCandlesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance() : subscribeCandlesRequest_; } else { return subscribeCandlesRequestBuilder_.getMessage(); } } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public Builder setSubscribeCandlesRequest(ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest value) { if (subscribeCandlesRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subscribeCandlesRequest_ = value; } else { subscribeCandlesRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public Builder setSubscribeCandlesRequest( ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder builderForValue) { if (subscribeCandlesRequestBuilder_ == null) { subscribeCandlesRequest_ = builderForValue.build(); } else { subscribeCandlesRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public Builder mergeSubscribeCandlesRequest(ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest value) { if (subscribeCandlesRequestBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && subscribeCandlesRequest_ != null && subscribeCandlesRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance()) { getSubscribeCandlesRequestBuilder().mergeFrom(value); } else { subscribeCandlesRequest_ = value; } } else { subscribeCandlesRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public Builder clearSubscribeCandlesRequest() { bitField0_ = (bitField0_ & ~0x00000001); subscribeCandlesRequest_ = null; if (subscribeCandlesRequestBuilder_ != null) { subscribeCandlesRequestBuilder_.dispose(); subscribeCandlesRequestBuilder_ = null; } onChanged(); return this; } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder getSubscribeCandlesRequestBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSubscribeCandlesRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder getSubscribeCandlesRequestOrBuilder() { if (subscribeCandlesRequestBuilder_ != null) { return subscribeCandlesRequestBuilder_.getMessageOrBuilder(); } else { return subscribeCandlesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance() : subscribeCandlesRequest_; } } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder> getSubscribeCandlesRequestFieldBuilder() { if (subscribeCandlesRequestBuilder_ == null) { subscribeCandlesRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder>( getSubscribeCandlesRequest(), getParentForChildren(), isClean()); subscribeCandlesRequest_ = null; } return subscribeCandlesRequestBuilder_; } private ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest subscribeOrderBookRequest_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder> subscribeOrderBookRequestBuilder_; /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; * @return Whether the subscribeOrderBookRequest field is set. */ public boolean hasSubscribeOrderBookRequest() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; * @return The subscribeOrderBookRequest. */ public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest getSubscribeOrderBookRequest() { if (subscribeOrderBookRequestBuilder_ == null) { return subscribeOrderBookRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance() : subscribeOrderBookRequest_; } else { return subscribeOrderBookRequestBuilder_.getMessage(); } } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public Builder setSubscribeOrderBookRequest(ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest value) { if (subscribeOrderBookRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subscribeOrderBookRequest_ = value; } else { subscribeOrderBookRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public Builder setSubscribeOrderBookRequest( ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder builderForValue) { if (subscribeOrderBookRequestBuilder_ == null) { subscribeOrderBookRequest_ = builderForValue.build(); } else { subscribeOrderBookRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public Builder mergeSubscribeOrderBookRequest(ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest value) { if (subscribeOrderBookRequestBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && subscribeOrderBookRequest_ != null && subscribeOrderBookRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance()) { getSubscribeOrderBookRequestBuilder().mergeFrom(value); } else { subscribeOrderBookRequest_ = value; } } else { subscribeOrderBookRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public Builder clearSubscribeOrderBookRequest() { bitField0_ = (bitField0_ & ~0x00000002); subscribeOrderBookRequest_ = null; if (subscribeOrderBookRequestBuilder_ != null) { subscribeOrderBookRequestBuilder_.dispose(); subscribeOrderBookRequestBuilder_ = null; } onChanged(); return this; } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder getSubscribeOrderBookRequestBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSubscribeOrderBookRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder getSubscribeOrderBookRequestOrBuilder() { if (subscribeOrderBookRequestBuilder_ != null) { return subscribeOrderBookRequestBuilder_.getMessageOrBuilder(); } else { return subscribeOrderBookRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance() : subscribeOrderBookRequest_; } } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder> getSubscribeOrderBookRequestFieldBuilder() { if (subscribeOrderBookRequestBuilder_ == null) { subscribeOrderBookRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder>( getSubscribeOrderBookRequest(), getParentForChildren(), isClean()); subscribeOrderBookRequest_ = null; } return subscribeOrderBookRequestBuilder_; } private ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest subscribeTradesRequest_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder> subscribeTradesRequestBuilder_; /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; * @return Whether the subscribeTradesRequest field is set. */ public boolean hasSubscribeTradesRequest() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; * @return The subscribeTradesRequest. */ public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest getSubscribeTradesRequest() { if (subscribeTradesRequestBuilder_ == null) { return subscribeTradesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance() : subscribeTradesRequest_; } else { return subscribeTradesRequestBuilder_.getMessage(); } } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public Builder setSubscribeTradesRequest(ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest value) { if (subscribeTradesRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subscribeTradesRequest_ = value; } else { subscribeTradesRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public Builder setSubscribeTradesRequest( ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder builderForValue) { if (subscribeTradesRequestBuilder_ == null) { subscribeTradesRequest_ = builderForValue.build(); } else { subscribeTradesRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public Builder mergeSubscribeTradesRequest(ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest value) { if (subscribeTradesRequestBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && subscribeTradesRequest_ != null && subscribeTradesRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance()) { getSubscribeTradesRequestBuilder().mergeFrom(value); } else { subscribeTradesRequest_ = value; } } else { subscribeTradesRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public Builder clearSubscribeTradesRequest() { bitField0_ = (bitField0_ & ~0x00000004); subscribeTradesRequest_ = null; if (subscribeTradesRequestBuilder_ != null) { subscribeTradesRequestBuilder_.dispose(); subscribeTradesRequestBuilder_ = null; } onChanged(); return this; } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder getSubscribeTradesRequestBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSubscribeTradesRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder getSubscribeTradesRequestOrBuilder() { if (subscribeTradesRequestBuilder_ != null) { return subscribeTradesRequestBuilder_.getMessageOrBuilder(); } else { return subscribeTradesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance() : subscribeTradesRequest_; } } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder> getSubscribeTradesRequestFieldBuilder() { if (subscribeTradesRequestBuilder_ == null) { subscribeTradesRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder>( getSubscribeTradesRequest(), getParentForChildren(), isClean()); subscribeTradesRequest_ = null; } return subscribeTradesRequestBuilder_; } private ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest subscribeInfoRequest_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder> subscribeInfoRequestBuilder_; /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; * @return Whether the subscribeInfoRequest field is set. */ public boolean hasSubscribeInfoRequest() { return ((bitField0_ & 0x00000008) != 0); } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; * @return The subscribeInfoRequest. */ public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest getSubscribeInfoRequest() { if (subscribeInfoRequestBuilder_ == null) { return subscribeInfoRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance() : subscribeInfoRequest_; } else { return subscribeInfoRequestBuilder_.getMessage(); } } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public Builder setSubscribeInfoRequest(ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest value) { if (subscribeInfoRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subscribeInfoRequest_ = value; } else { subscribeInfoRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public Builder setSubscribeInfoRequest( ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder builderForValue) { if (subscribeInfoRequestBuilder_ == null) { subscribeInfoRequest_ = builderForValue.build(); } else { subscribeInfoRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public Builder mergeSubscribeInfoRequest(ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest value) { if (subscribeInfoRequestBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && subscribeInfoRequest_ != null && subscribeInfoRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance()) { getSubscribeInfoRequestBuilder().mergeFrom(value); } else { subscribeInfoRequest_ = value; } } else { subscribeInfoRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public Builder clearSubscribeInfoRequest() { bitField0_ = (bitField0_ & ~0x00000008); subscribeInfoRequest_ = null; if (subscribeInfoRequestBuilder_ != null) { subscribeInfoRequestBuilder_.dispose(); subscribeInfoRequestBuilder_ = null; } onChanged(); return this; } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder getSubscribeInfoRequestBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSubscribeInfoRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder getSubscribeInfoRequestOrBuilder() { if (subscribeInfoRequestBuilder_ != null) { return subscribeInfoRequestBuilder_.getMessageOrBuilder(); } else { return subscribeInfoRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance() : subscribeInfoRequest_; } } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder> getSubscribeInfoRequestFieldBuilder() { if (subscribeInfoRequestBuilder_ == null) { subscribeInfoRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder>( getSubscribeInfoRequest(), getParentForChildren(), isClean()); subscribeInfoRequest_ = null; } return subscribeInfoRequestBuilder_; } private ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest subscribeLastPriceRequest_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder> subscribeLastPriceRequestBuilder_; /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; * @return Whether the subscribeLastPriceRequest field is set. */ public boolean hasSubscribeLastPriceRequest() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; * @return The subscribeLastPriceRequest. */ public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest getSubscribeLastPriceRequest() { if (subscribeLastPriceRequestBuilder_ == null) { return subscribeLastPriceRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance() : subscribeLastPriceRequest_; } else { return subscribeLastPriceRequestBuilder_.getMessage(); } } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public Builder setSubscribeLastPriceRequest(ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest value) { if (subscribeLastPriceRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subscribeLastPriceRequest_ = value; } else { subscribeLastPriceRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public Builder setSubscribeLastPriceRequest( ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder builderForValue) { if (subscribeLastPriceRequestBuilder_ == null) { subscribeLastPriceRequest_ = builderForValue.build(); } else { subscribeLastPriceRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public Builder mergeSubscribeLastPriceRequest(ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest value) { if (subscribeLastPriceRequestBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && subscribeLastPriceRequest_ != null && subscribeLastPriceRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance()) { getSubscribeLastPriceRequestBuilder().mergeFrom(value); } else { subscribeLastPriceRequest_ = value; } } else { subscribeLastPriceRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public Builder clearSubscribeLastPriceRequest() { bitField0_ = (bitField0_ & ~0x00000010); subscribeLastPriceRequest_ = null; if (subscribeLastPriceRequestBuilder_ != null) { subscribeLastPriceRequestBuilder_.dispose(); subscribeLastPriceRequestBuilder_ = null; } onChanged(); return this; } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder getSubscribeLastPriceRequestBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSubscribeLastPriceRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder getSubscribeLastPriceRequestOrBuilder() { if (subscribeLastPriceRequestBuilder_ != null) { return subscribeLastPriceRequestBuilder_.getMessageOrBuilder(); } else { return subscribeLastPriceRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance() : subscribeLastPriceRequest_; } } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder> getSubscribeLastPriceRequestFieldBuilder() { if (subscribeLastPriceRequestBuilder_ == null) { subscribeLastPriceRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder>( getSubscribeLastPriceRequest(), getParentForChildren(), isClean()); subscribeLastPriceRequest_ = null; } return subscribeLastPriceRequestBuilder_; } @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.MarketDataServerSideStreamRequest) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.MarketDataServerSideStreamRequest) private static final ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest(); } public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketDataServerSideStreamRequest 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.MarketDataServerSideStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy