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;
}
}