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

ru.tinkoff.piapi.contract.v1.MarketDataRequest 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.MarketDataRequest} */ public final class MarketDataRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.MarketDataRequest) MarketDataRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MarketDataRequest.newBuilder() to construct. private MarketDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketDataRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketDataRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataRequest_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_MarketDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.MarketDataRequest.class, ru.tinkoff.piapi.contract.v1.MarketDataRequest.Builder.class); } private int payloadCase_ = 0; @SuppressWarnings("serial") private java.lang.Object payload_; public enum PayloadCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SUBSCRIBE_CANDLES_REQUEST(1), SUBSCRIBE_ORDER_BOOK_REQUEST(2), SUBSCRIBE_TRADES_REQUEST(3), SUBSCRIBE_INFO_REQUEST(4), SUBSCRIBE_LAST_PRICE_REQUEST(5), GET_MY_SUBSCRIPTIONS(6), PAYLOAD_NOT_SET(0); private final int value; private PayloadCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PayloadCase valueOf(int value) { return forNumber(value); } public static PayloadCase forNumber(int value) { switch (value) { case 1: return SUBSCRIBE_CANDLES_REQUEST; case 2: return SUBSCRIBE_ORDER_BOOK_REQUEST; case 3: return SUBSCRIBE_TRADES_REQUEST; case 4: return SUBSCRIBE_INFO_REQUEST; case 5: return SUBSCRIBE_LAST_PRICE_REQUEST; case 6: return GET_MY_SUBSCRIPTIONS; case 0: return PAYLOAD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public static final int SUBSCRIBE_CANDLES_REQUEST_FIELD_NUMBER = 1; /** *
   *Запрос подписки на свечи.
   * 
* * .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 payloadCase_ == 1; } /** *
   *Запрос подписки на свечи.
   * 
* * .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() { if (payloadCase_ == 1) { return (ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance(); } /** *
   *Запрос подписки на свечи.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder getSubscribeCandlesRequestOrBuilder() { if (payloadCase_ == 1) { return (ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance(); } public static final int SUBSCRIBE_ORDER_BOOK_REQUEST_FIELD_NUMBER = 2; /** *
   *Запрос подписки на стаканы.
   * 
* * .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 payloadCase_ == 2; } /** *
   *Запрос подписки на стаканы.
   * 
* * .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() { if (payloadCase_ == 2) { return (ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance(); } /** *
   *Запрос подписки на стаканы.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder getSubscribeOrderBookRequestOrBuilder() { if (payloadCase_ == 2) { return (ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance(); } public static final int SUBSCRIBE_TRADES_REQUEST_FIELD_NUMBER = 3; /** *
   *Запрос подписки на ленту обезличенных сделок.
   * 
* * .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 payloadCase_ == 3; } /** *
   *Запрос подписки на ленту обезличенных сделок.
   * 
* * .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() { if (payloadCase_ == 3) { return (ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance(); } /** *
   *Запрос подписки на ленту обезличенных сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder getSubscribeTradesRequestOrBuilder() { if (payloadCase_ == 3) { return (ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance(); } public static final int SUBSCRIBE_INFO_REQUEST_FIELD_NUMBER = 4; /** *
   *Запрос подписки на торговые статусы инструментов.
   * 
* * .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 payloadCase_ == 4; } /** *
   *Запрос подписки на торговые статусы инструментов.
   * 
* * .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() { if (payloadCase_ == 4) { return (ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance(); } /** *
   *Запрос подписки на торговые статусы инструментов.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder getSubscribeInfoRequestOrBuilder() { if (payloadCase_ == 4) { return (ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance(); } public static final int SUBSCRIBE_LAST_PRICE_REQUEST_FIELD_NUMBER = 5; /** *
   *Запрос подписки на цены последних сделок.
   * 
* * .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 payloadCase_ == 5; } /** *
   *Запрос подписки на цены последних сделок.
   * 
* * .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() { if (payloadCase_ == 5) { return (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance(); } /** *
   *Запрос подписки на цены последних сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder getSubscribeLastPriceRequestOrBuilder() { if (payloadCase_ == 5) { return (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance(); } public static final int GET_MY_SUBSCRIPTIONS_FIELD_NUMBER = 6; /** *
   *Запрос своих подписок.
   * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; * @return Whether the getMySubscriptions field is set. */ @java.lang.Override public boolean hasGetMySubscriptions() { return payloadCase_ == 6; } /** *
   *Запрос своих подписок.
   * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; * @return The getMySubscriptions. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetMySubscriptions getGetMySubscriptions() { if (payloadCase_ == 6) { return (ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_; } return ru.tinkoff.piapi.contract.v1.GetMySubscriptions.getDefaultInstance(); } /** *
   *Запрос своих подписок.
   * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetMySubscriptionsOrBuilder getGetMySubscriptionsOrBuilder() { if (payloadCase_ == 6) { return (ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_; } return ru.tinkoff.piapi.contract.v1.GetMySubscriptions.getDefaultInstance(); } 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 (payloadCase_ == 1) { output.writeMessage(1, (ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_); } if (payloadCase_ == 2) { output.writeMessage(2, (ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_); } if (payloadCase_ == 3) { output.writeMessage(3, (ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_); } if (payloadCase_ == 4) { output.writeMessage(4, (ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_); } if (payloadCase_ == 5) { output.writeMessage(5, (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_); } if (payloadCase_ == 6) { output.writeMessage(6, (ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payloadCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_); } if (payloadCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_); } if (payloadCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_); } if (payloadCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_); } if (payloadCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_); } if (payloadCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_); } 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.MarketDataRequest)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.MarketDataRequest other = (ru.tinkoff.piapi.contract.v1.MarketDataRequest) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: if (!getSubscribeCandlesRequest() .equals(other.getSubscribeCandlesRequest())) return false; break; case 2: if (!getSubscribeOrderBookRequest() .equals(other.getSubscribeOrderBookRequest())) return false; break; case 3: if (!getSubscribeTradesRequest() .equals(other.getSubscribeTradesRequest())) return false; break; case 4: if (!getSubscribeInfoRequest() .equals(other.getSubscribeInfoRequest())) return false; break; case 5: if (!getSubscribeLastPriceRequest() .equals(other.getSubscribeLastPriceRequest())) return false; break; case 6: if (!getGetMySubscriptions() .equals(other.getGetMySubscriptions())) return false; break; case 0: default: } 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(); switch (payloadCase_) { case 1: hash = (37 * hash) + SUBSCRIBE_CANDLES_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeCandlesRequest().hashCode(); break; case 2: hash = (37 * hash) + SUBSCRIBE_ORDER_BOOK_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeOrderBookRequest().hashCode(); break; case 3: hash = (37 * hash) + SUBSCRIBE_TRADES_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeTradesRequest().hashCode(); break; case 4: hash = (37 * hash) + SUBSCRIBE_INFO_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeInfoRequest().hashCode(); break; case 5: hash = (37 * hash) + SUBSCRIBE_LAST_PRICE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getSubscribeLastPriceRequest().hashCode(); break; case 6: hash = (37 * hash) + GET_MY_SUBSCRIPTIONS_FIELD_NUMBER; hash = (53 * hash) + getGetMySubscriptions().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.MarketDataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.MarketDataRequest 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.MarketDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.MarketDataRequest 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.MarketDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.MarketDataRequest 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.MarketDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.MarketDataRequest 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.MarketDataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.MarketDataRequest 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.MarketDataRequest 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.MarketDataRequest 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.MarketDataRequest 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.MarketDataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.MarketDataRequest) ru.tinkoff.piapi.contract.v1.MarketDataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataRequest_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_MarketDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.MarketDataRequest.class, ru.tinkoff.piapi.contract.v1.MarketDataRequest.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.MarketDataRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (subscribeCandlesRequestBuilder_ != null) { subscribeCandlesRequestBuilder_.clear(); } if (subscribeOrderBookRequestBuilder_ != null) { subscribeOrderBookRequestBuilder_.clear(); } if (subscribeTradesRequestBuilder_ != null) { subscribeTradesRequestBuilder_.clear(); } if (subscribeInfoRequestBuilder_ != null) { subscribeInfoRequestBuilder_.clear(); } if (subscribeLastPriceRequestBuilder_ != null) { subscribeLastPriceRequestBuilder_.clear(); } if (getMySubscriptionsBuilder_ != null) { getMySubscriptionsBuilder_.clear(); } payloadCase_ = 0; payload_ = 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_MarketDataRequest_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.MarketDataRequest getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.MarketDataRequest.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.MarketDataRequest build() { ru.tinkoff.piapi.contract.v1.MarketDataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.MarketDataRequest buildPartial() { ru.tinkoff.piapi.contract.v1.MarketDataRequest result = new ru.tinkoff.piapi.contract.v1.MarketDataRequest(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.MarketDataRequest result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ru.tinkoff.piapi.contract.v1.MarketDataRequest result) { result.payloadCase_ = payloadCase_; result.payload_ = this.payload_; if (payloadCase_ == 1 && subscribeCandlesRequestBuilder_ != null) { result.payload_ = subscribeCandlesRequestBuilder_.build(); } if (payloadCase_ == 2 && subscribeOrderBookRequestBuilder_ != null) { result.payload_ = subscribeOrderBookRequestBuilder_.build(); } if (payloadCase_ == 3 && subscribeTradesRequestBuilder_ != null) { result.payload_ = subscribeTradesRequestBuilder_.build(); } if (payloadCase_ == 4 && subscribeInfoRequestBuilder_ != null) { result.payload_ = subscribeInfoRequestBuilder_.build(); } if (payloadCase_ == 5 && subscribeLastPriceRequestBuilder_ != null) { result.payload_ = subscribeLastPriceRequestBuilder_.build(); } if (payloadCase_ == 6 && getMySubscriptionsBuilder_ != null) { result.payload_ = getMySubscriptionsBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.MarketDataRequest) { return mergeFrom((ru.tinkoff.piapi.contract.v1.MarketDataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.MarketDataRequest other) { if (other == ru.tinkoff.piapi.contract.v1.MarketDataRequest.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case SUBSCRIBE_CANDLES_REQUEST: { mergeSubscribeCandlesRequest(other.getSubscribeCandlesRequest()); break; } case SUBSCRIBE_ORDER_BOOK_REQUEST: { mergeSubscribeOrderBookRequest(other.getSubscribeOrderBookRequest()); break; } case SUBSCRIBE_TRADES_REQUEST: { mergeSubscribeTradesRequest(other.getSubscribeTradesRequest()); break; } case SUBSCRIBE_INFO_REQUEST: { mergeSubscribeInfoRequest(other.getSubscribeInfoRequest()); break; } case SUBSCRIBE_LAST_PRICE_REQUEST: { mergeSubscribeLastPriceRequest(other.getSubscribeLastPriceRequest()); break; } case GET_MY_SUBSCRIPTIONS: { mergeGetMySubscriptions(other.getGetMySubscriptions()); break; } case PAYLOAD_NOT_SET: { break; } } 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); payloadCase_ = 1; break; } // case 10 case 18: { input.readMessage( getSubscribeOrderBookRequestFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 2; break; } // case 18 case 26: { input.readMessage( getSubscribeTradesRequestFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 3; break; } // case 26 case 34: { input.readMessage( getSubscribeInfoRequestFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 4; break; } // case 34 case 42: { input.readMessage( getSubscribeLastPriceRequestFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 5; break; } // case 42 case 50: { input.readMessage( getGetMySubscriptionsFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 6; break; } // case 50 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 payloadCase_ = 0; private java.lang.Object payload_; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public Builder clearPayload() { payloadCase_ = 0; payload_ = null; onChanged(); return this; } private int bitField0_; 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. */ @java.lang.Override public boolean hasSubscribeCandlesRequest() { return payloadCase_ == 1; } /** *
     *Запрос подписки на свечи.
     * 
* * .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() { if (subscribeCandlesRequestBuilder_ == null) { if (payloadCase_ == 1) { return (ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance(); } else { if (payloadCase_ == 1) { return subscribeCandlesRequestBuilder_.getMessage(); } return ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на свечи.
     * 
* * .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(); } payload_ = value; onChanged(); } else { subscribeCandlesRequestBuilder_.setMessage(value); } payloadCase_ = 1; 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) { payload_ = builderForValue.build(); onChanged(); } else { subscribeCandlesRequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 1; 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 (payloadCase_ == 1 && payload_ != ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance()) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.newBuilder((ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 1) { subscribeCandlesRequestBuilder_.mergeFrom(value); } else { subscribeCandlesRequestBuilder_.setMessage(value); } } payloadCase_ = 1; return this; } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public Builder clearSubscribeCandlesRequest() { if (subscribeCandlesRequestBuilder_ == null) { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; } subscribeCandlesRequestBuilder_.clear(); } return this; } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder getSubscribeCandlesRequestBuilder() { return getSubscribeCandlesRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на свечи.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder getSubscribeCandlesRequestOrBuilder() { if ((payloadCase_ == 1) && (subscribeCandlesRequestBuilder_ != null)) { return subscribeCandlesRequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 1) { return (ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на свечи.
     * 
* * .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) { if (!(payloadCase_ == 1)) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance(); } 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>( (ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; onChanged(); return subscribeCandlesRequestBuilder_; } 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. */ @java.lang.Override public boolean hasSubscribeOrderBookRequest() { return payloadCase_ == 2; } /** *
     *Запрос подписки на стаканы.
     * 
* * .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() { if (subscribeOrderBookRequestBuilder_ == null) { if (payloadCase_ == 2) { return (ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance(); } else { if (payloadCase_ == 2) { return subscribeOrderBookRequestBuilder_.getMessage(); } return ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на стаканы.
     * 
* * .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(); } payload_ = value; onChanged(); } else { subscribeOrderBookRequestBuilder_.setMessage(value); } payloadCase_ = 2; 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) { payload_ = builderForValue.build(); onChanged(); } else { subscribeOrderBookRequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 2; 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 (payloadCase_ == 2 && payload_ != ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance()) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.newBuilder((ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 2) { subscribeOrderBookRequestBuilder_.mergeFrom(value); } else { subscribeOrderBookRequestBuilder_.setMessage(value); } } payloadCase_ = 2; return this; } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public Builder clearSubscribeOrderBookRequest() { if (subscribeOrderBookRequestBuilder_ == null) { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; } subscribeOrderBookRequestBuilder_.clear(); } return this; } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder getSubscribeOrderBookRequestBuilder() { return getSubscribeOrderBookRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на стаканы.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder getSubscribeOrderBookRequestOrBuilder() { if ((payloadCase_ == 2) && (subscribeOrderBookRequestBuilder_ != null)) { return subscribeOrderBookRequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 2) { return (ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на стаканы.
     * 
* * .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) { if (!(payloadCase_ == 2)) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance(); } 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>( (ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; onChanged(); return subscribeOrderBookRequestBuilder_; } 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. */ @java.lang.Override public boolean hasSubscribeTradesRequest() { return payloadCase_ == 3; } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .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() { if (subscribeTradesRequestBuilder_ == null) { if (payloadCase_ == 3) { return (ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance(); } else { if (payloadCase_ == 3) { return subscribeTradesRequestBuilder_.getMessage(); } return ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .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(); } payload_ = value; onChanged(); } else { subscribeTradesRequestBuilder_.setMessage(value); } payloadCase_ = 3; 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) { payload_ = builderForValue.build(); onChanged(); } else { subscribeTradesRequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 3; 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 (payloadCase_ == 3 && payload_ != ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance()) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.newBuilder((ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 3) { subscribeTradesRequestBuilder_.mergeFrom(value); } else { subscribeTradesRequestBuilder_.setMessage(value); } } payloadCase_ = 3; return this; } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public Builder clearSubscribeTradesRequest() { if (subscribeTradesRequestBuilder_ == null) { if (payloadCase_ == 3) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 3) { payloadCase_ = 0; payload_ = null; } subscribeTradesRequestBuilder_.clear(); } return this; } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder getSubscribeTradesRequestBuilder() { return getSubscribeTradesRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder getSubscribeTradesRequestOrBuilder() { if ((payloadCase_ == 3) && (subscribeTradesRequestBuilder_ != null)) { return subscribeTradesRequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 3) { return (ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на ленту обезличенных сделок.
     * 
* * .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) { if (!(payloadCase_ == 3)) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance(); } 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>( (ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 3; onChanged(); return subscribeTradesRequestBuilder_; } 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. */ @java.lang.Override public boolean hasSubscribeInfoRequest() { return payloadCase_ == 4; } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .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() { if (subscribeInfoRequestBuilder_ == null) { if (payloadCase_ == 4) { return (ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance(); } else { if (payloadCase_ == 4) { return subscribeInfoRequestBuilder_.getMessage(); } return ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .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(); } payload_ = value; onChanged(); } else { subscribeInfoRequestBuilder_.setMessage(value); } payloadCase_ = 4; 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) { payload_ = builderForValue.build(); onChanged(); } else { subscribeInfoRequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 4; 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 (payloadCase_ == 4 && payload_ != ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance()) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.newBuilder((ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 4) { subscribeInfoRequestBuilder_.mergeFrom(value); } else { subscribeInfoRequestBuilder_.setMessage(value); } } payloadCase_ = 4; return this; } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public Builder clearSubscribeInfoRequest() { if (subscribeInfoRequestBuilder_ == null) { if (payloadCase_ == 4) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 4) { payloadCase_ = 0; payload_ = null; } subscribeInfoRequestBuilder_.clear(); } return this; } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder getSubscribeInfoRequestBuilder() { return getSubscribeInfoRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder getSubscribeInfoRequestOrBuilder() { if ((payloadCase_ == 4) && (subscribeInfoRequestBuilder_ != null)) { return subscribeInfoRequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 4) { return (ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на торговые статусы инструментов.
     * 
* * .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) { if (!(payloadCase_ == 4)) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance(); } 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>( (ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 4; onChanged(); return subscribeInfoRequestBuilder_; } 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. */ @java.lang.Override public boolean hasSubscribeLastPriceRequest() { return payloadCase_ == 5; } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .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() { if (subscribeLastPriceRequestBuilder_ == null) { if (payloadCase_ == 5) { return (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance(); } else { if (payloadCase_ == 5) { return subscribeLastPriceRequestBuilder_.getMessage(); } return ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .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(); } payload_ = value; onChanged(); } else { subscribeLastPriceRequestBuilder_.setMessage(value); } payloadCase_ = 5; 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) { payload_ = builderForValue.build(); onChanged(); } else { subscribeLastPriceRequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 5; 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 (payloadCase_ == 5 && payload_ != ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance()) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.newBuilder((ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 5) { subscribeLastPriceRequestBuilder_.mergeFrom(value); } else { subscribeLastPriceRequestBuilder_.setMessage(value); } } payloadCase_ = 5; return this; } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public Builder clearSubscribeLastPriceRequest() { if (subscribeLastPriceRequestBuilder_ == null) { if (payloadCase_ == 5) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 5) { payloadCase_ = 0; payload_ = null; } subscribeLastPriceRequestBuilder_.clear(); } return this; } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder getSubscribeLastPriceRequestBuilder() { return getSubscribeLastPriceRequestFieldBuilder().getBuilder(); } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder getSubscribeLastPriceRequestOrBuilder() { if ((payloadCase_ == 5) && (subscribeLastPriceRequestBuilder_ != null)) { return subscribeLastPriceRequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 5) { return (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_; } return ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance(); } } /** *
     *Запрос подписки на цены последних сделок.
     * 
* * .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) { if (!(payloadCase_ == 5)) { payload_ = ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance(); } 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>( (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 5; onChanged(); return subscribeLastPriceRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.GetMySubscriptions, ru.tinkoff.piapi.contract.v1.GetMySubscriptions.Builder, ru.tinkoff.piapi.contract.v1.GetMySubscriptionsOrBuilder> getMySubscriptionsBuilder_; /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; * @return Whether the getMySubscriptions field is set. */ @java.lang.Override public boolean hasGetMySubscriptions() { return payloadCase_ == 6; } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; * @return The getMySubscriptions. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetMySubscriptions getGetMySubscriptions() { if (getMySubscriptionsBuilder_ == null) { if (payloadCase_ == 6) { return (ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_; } return ru.tinkoff.piapi.contract.v1.GetMySubscriptions.getDefaultInstance(); } else { if (payloadCase_ == 6) { return getMySubscriptionsBuilder_.getMessage(); } return ru.tinkoff.piapi.contract.v1.GetMySubscriptions.getDefaultInstance(); } } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ public Builder setGetMySubscriptions(ru.tinkoff.piapi.contract.v1.GetMySubscriptions value) { if (getMySubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { getMySubscriptionsBuilder_.setMessage(value); } payloadCase_ = 6; return this; } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ public Builder setGetMySubscriptions( ru.tinkoff.piapi.contract.v1.GetMySubscriptions.Builder builderForValue) { if (getMySubscriptionsBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { getMySubscriptionsBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 6; return this; } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ public Builder mergeGetMySubscriptions(ru.tinkoff.piapi.contract.v1.GetMySubscriptions value) { if (getMySubscriptionsBuilder_ == null) { if (payloadCase_ == 6 && payload_ != ru.tinkoff.piapi.contract.v1.GetMySubscriptions.getDefaultInstance()) { payload_ = ru.tinkoff.piapi.contract.v1.GetMySubscriptions.newBuilder((ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 6) { getMySubscriptionsBuilder_.mergeFrom(value); } else { getMySubscriptionsBuilder_.setMessage(value); } } payloadCase_ = 6; return this; } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ public Builder clearGetMySubscriptions() { if (getMySubscriptionsBuilder_ == null) { if (payloadCase_ == 6) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 6) { payloadCase_ = 0; payload_ = null; } getMySubscriptionsBuilder_.clear(); } return this; } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ public ru.tinkoff.piapi.contract.v1.GetMySubscriptions.Builder getGetMySubscriptionsBuilder() { return getGetMySubscriptionsFieldBuilder().getBuilder(); } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetMySubscriptionsOrBuilder getGetMySubscriptionsOrBuilder() { if ((payloadCase_ == 6) && (getMySubscriptionsBuilder_ != null)) { return getMySubscriptionsBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 6) { return (ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_; } return ru.tinkoff.piapi.contract.v1.GetMySubscriptions.getDefaultInstance(); } } /** *
     *Запрос своих подписок.
     * 
* * .tinkoff.public.invest.api.contract.v1.GetMySubscriptions get_my_subscriptions = 6; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.GetMySubscriptions, ru.tinkoff.piapi.contract.v1.GetMySubscriptions.Builder, ru.tinkoff.piapi.contract.v1.GetMySubscriptionsOrBuilder> getGetMySubscriptionsFieldBuilder() { if (getMySubscriptionsBuilder_ == null) { if (!(payloadCase_ == 6)) { payload_ = ru.tinkoff.piapi.contract.v1.GetMySubscriptions.getDefaultInstance(); } getMySubscriptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.GetMySubscriptions, ru.tinkoff.piapi.contract.v1.GetMySubscriptions.Builder, ru.tinkoff.piapi.contract.v1.GetMySubscriptionsOrBuilder>( (ru.tinkoff.piapi.contract.v1.GetMySubscriptions) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 6; onChanged(); return getMySubscriptionsBuilder_; } @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.MarketDataRequest) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.MarketDataRequest) private static final ru.tinkoff.piapi.contract.v1.MarketDataRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.MarketDataRequest(); } public static ru.tinkoff.piapi.contract.v1.MarketDataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketDataRequest 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.MarketDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy