implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.MarketDataServerSideStreamRequest)
ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.class, ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
subscribeCandlesRequest_ = null;
if (subscribeCandlesRequestBuilder_ != null) {
subscribeCandlesRequestBuilder_.dispose();
subscribeCandlesRequestBuilder_ = null;
}
subscribeOrderBookRequest_ = null;
if (subscribeOrderBookRequestBuilder_ != null) {
subscribeOrderBookRequestBuilder_.dispose();
subscribeOrderBookRequestBuilder_ = null;
}
subscribeTradesRequest_ = null;
if (subscribeTradesRequestBuilder_ != null) {
subscribeTradesRequestBuilder_.dispose();
subscribeTradesRequestBuilder_ = null;
}
subscribeInfoRequest_ = null;
if (subscribeInfoRequestBuilder_ != null) {
subscribeInfoRequestBuilder_.dispose();
subscribeInfoRequestBuilder_ = null;
}
subscribeLastPriceRequest_ = null;
if (subscribeLastPriceRequestBuilder_ != null) {
subscribeLastPriceRequestBuilder_.dispose();
subscribeLastPriceRequestBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_MarketDataServerSideStreamRequest_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest build() {
ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest buildPartial() {
ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest result = new ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.subscribeCandlesRequest_ = subscribeCandlesRequestBuilder_ == null
? subscribeCandlesRequest_
: subscribeCandlesRequestBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.subscribeOrderBookRequest_ = subscribeOrderBookRequestBuilder_ == null
? subscribeOrderBookRequest_
: subscribeOrderBookRequestBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.subscribeTradesRequest_ = subscribeTradesRequestBuilder_ == null
? subscribeTradesRequest_
: subscribeTradesRequestBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.subscribeInfoRequest_ = subscribeInfoRequestBuilder_ == null
? subscribeInfoRequest_
: subscribeInfoRequestBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.subscribeLastPriceRequest_ = subscribeLastPriceRequestBuilder_ == null
? subscribeLastPriceRequest_
: subscribeLastPriceRequestBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest other) {
if (other == ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest.getDefaultInstance()) return this;
if (other.hasSubscribeCandlesRequest()) {
mergeSubscribeCandlesRequest(other.getSubscribeCandlesRequest());
}
if (other.hasSubscribeOrderBookRequest()) {
mergeSubscribeOrderBookRequest(other.getSubscribeOrderBookRequest());
}
if (other.hasSubscribeTradesRequest()) {
mergeSubscribeTradesRequest(other.getSubscribeTradesRequest());
}
if (other.hasSubscribeInfoRequest()) {
mergeSubscribeInfoRequest(other.getSubscribeInfoRequest());
}
if (other.hasSubscribeLastPriceRequest()) {
mergeSubscribeLastPriceRequest(other.getSubscribeLastPriceRequest());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getSubscribeCandlesRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getSubscribeOrderBookRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getSubscribeTradesRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getSubscribeInfoRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getSubscribeLastPriceRequestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest subscribeCandlesRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder> subscribeCandlesRequestBuilder_;
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
* @return Whether the subscribeCandlesRequest field is set.
*/
public boolean hasSubscribeCandlesRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
* @return The subscribeCandlesRequest.
*/
public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest getSubscribeCandlesRequest() {
if (subscribeCandlesRequestBuilder_ == null) {
return subscribeCandlesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance() : subscribeCandlesRequest_;
} else {
return subscribeCandlesRequestBuilder_.getMessage();
}
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
*/
public Builder setSubscribeCandlesRequest(ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest value) {
if (subscribeCandlesRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribeCandlesRequest_ = value;
} else {
subscribeCandlesRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
*/
public Builder setSubscribeCandlesRequest(
ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder builderForValue) {
if (subscribeCandlesRequestBuilder_ == null) {
subscribeCandlesRequest_ = builderForValue.build();
} else {
subscribeCandlesRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
*/
public Builder mergeSubscribeCandlesRequest(ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest value) {
if (subscribeCandlesRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
subscribeCandlesRequest_ != null &&
subscribeCandlesRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance()) {
getSubscribeCandlesRequestBuilder().mergeFrom(value);
} else {
subscribeCandlesRequest_ = value;
}
} else {
subscribeCandlesRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
*/
public Builder clearSubscribeCandlesRequest() {
bitField0_ = (bitField0_ & ~0x00000001);
subscribeCandlesRequest_ = null;
if (subscribeCandlesRequestBuilder_ != null) {
subscribeCandlesRequestBuilder_.dispose();
subscribeCandlesRequestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder getSubscribeCandlesRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSubscribeCandlesRequestFieldBuilder().getBuilder();
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder getSubscribeCandlesRequestOrBuilder() {
if (subscribeCandlesRequestBuilder_ != null) {
return subscribeCandlesRequestBuilder_.getMessageOrBuilder();
} else {
return subscribeCandlesRequest_ == null ?
ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.getDefaultInstance() : subscribeCandlesRequest_;
}
}
/**
*
*Запрос подписки на свечи.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeCandlesRequest subscribe_candles_request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder>
getSubscribeCandlesRequestFieldBuilder() {
if (subscribeCandlesRequestBuilder_ == null) {
subscribeCandlesRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeCandlesRequestOrBuilder>(
getSubscribeCandlesRequest(),
getParentForChildren(),
isClean());
subscribeCandlesRequest_ = null;
}
return subscribeCandlesRequestBuilder_;
}
private ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest subscribeOrderBookRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder> subscribeOrderBookRequestBuilder_;
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
* @return Whether the subscribeOrderBookRequest field is set.
*/
public boolean hasSubscribeOrderBookRequest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
* @return The subscribeOrderBookRequest.
*/
public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest getSubscribeOrderBookRequest() {
if (subscribeOrderBookRequestBuilder_ == null) {
return subscribeOrderBookRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance() : subscribeOrderBookRequest_;
} else {
return subscribeOrderBookRequestBuilder_.getMessage();
}
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
*/
public Builder setSubscribeOrderBookRequest(ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest value) {
if (subscribeOrderBookRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribeOrderBookRequest_ = value;
} else {
subscribeOrderBookRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
*/
public Builder setSubscribeOrderBookRequest(
ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder builderForValue) {
if (subscribeOrderBookRequestBuilder_ == null) {
subscribeOrderBookRequest_ = builderForValue.build();
} else {
subscribeOrderBookRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
*/
public Builder mergeSubscribeOrderBookRequest(ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest value) {
if (subscribeOrderBookRequestBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
subscribeOrderBookRequest_ != null &&
subscribeOrderBookRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance()) {
getSubscribeOrderBookRequestBuilder().mergeFrom(value);
} else {
subscribeOrderBookRequest_ = value;
}
} else {
subscribeOrderBookRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
*/
public Builder clearSubscribeOrderBookRequest() {
bitField0_ = (bitField0_ & ~0x00000002);
subscribeOrderBookRequest_ = null;
if (subscribeOrderBookRequestBuilder_ != null) {
subscribeOrderBookRequestBuilder_.dispose();
subscribeOrderBookRequestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder getSubscribeOrderBookRequestBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSubscribeOrderBookRequestFieldBuilder().getBuilder();
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder getSubscribeOrderBookRequestOrBuilder() {
if (subscribeOrderBookRequestBuilder_ != null) {
return subscribeOrderBookRequestBuilder_.getMessageOrBuilder();
} else {
return subscribeOrderBookRequest_ == null ?
ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.getDefaultInstance() : subscribeOrderBookRequest_;
}
}
/**
*
*Запрос подписки на стаканы.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeOrderBookRequest subscribe_order_book_request = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder>
getSubscribeOrderBookRequestFieldBuilder() {
if (subscribeOrderBookRequestBuilder_ == null) {
subscribeOrderBookRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeOrderBookRequestOrBuilder>(
getSubscribeOrderBookRequest(),
getParentForChildren(),
isClean());
subscribeOrderBookRequest_ = null;
}
return subscribeOrderBookRequestBuilder_;
}
private ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest subscribeTradesRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder> subscribeTradesRequestBuilder_;
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
* @return Whether the subscribeTradesRequest field is set.
*/
public boolean hasSubscribeTradesRequest() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
* @return The subscribeTradesRequest.
*/
public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest getSubscribeTradesRequest() {
if (subscribeTradesRequestBuilder_ == null) {
return subscribeTradesRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance() : subscribeTradesRequest_;
} else {
return subscribeTradesRequestBuilder_.getMessage();
}
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
*/
public Builder setSubscribeTradesRequest(ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest value) {
if (subscribeTradesRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribeTradesRequest_ = value;
} else {
subscribeTradesRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
*/
public Builder setSubscribeTradesRequest(
ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder builderForValue) {
if (subscribeTradesRequestBuilder_ == null) {
subscribeTradesRequest_ = builderForValue.build();
} else {
subscribeTradesRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
*/
public Builder mergeSubscribeTradesRequest(ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest value) {
if (subscribeTradesRequestBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
subscribeTradesRequest_ != null &&
subscribeTradesRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance()) {
getSubscribeTradesRequestBuilder().mergeFrom(value);
} else {
subscribeTradesRequest_ = value;
}
} else {
subscribeTradesRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
*/
public Builder clearSubscribeTradesRequest() {
bitField0_ = (bitField0_ & ~0x00000004);
subscribeTradesRequest_ = null;
if (subscribeTradesRequestBuilder_ != null) {
subscribeTradesRequestBuilder_.dispose();
subscribeTradesRequestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder getSubscribeTradesRequestBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getSubscribeTradesRequestFieldBuilder().getBuilder();
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder getSubscribeTradesRequestOrBuilder() {
if (subscribeTradesRequestBuilder_ != null) {
return subscribeTradesRequestBuilder_.getMessageOrBuilder();
} else {
return subscribeTradesRequest_ == null ?
ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.getDefaultInstance() : subscribeTradesRequest_;
}
}
/**
*
*Запрос подписки на ленту обезличенных сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeTradesRequest subscribe_trades_request = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder>
getSubscribeTradesRequestFieldBuilder() {
if (subscribeTradesRequestBuilder_ == null) {
subscribeTradesRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeTradesRequestOrBuilder>(
getSubscribeTradesRequest(),
getParentForChildren(),
isClean());
subscribeTradesRequest_ = null;
}
return subscribeTradesRequestBuilder_;
}
private ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest subscribeInfoRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder> subscribeInfoRequestBuilder_;
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
* @return Whether the subscribeInfoRequest field is set.
*/
public boolean hasSubscribeInfoRequest() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
* @return The subscribeInfoRequest.
*/
public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest getSubscribeInfoRequest() {
if (subscribeInfoRequestBuilder_ == null) {
return subscribeInfoRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance() : subscribeInfoRequest_;
} else {
return subscribeInfoRequestBuilder_.getMessage();
}
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
*/
public Builder setSubscribeInfoRequest(ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest value) {
if (subscribeInfoRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribeInfoRequest_ = value;
} else {
subscribeInfoRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
*/
public Builder setSubscribeInfoRequest(
ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder builderForValue) {
if (subscribeInfoRequestBuilder_ == null) {
subscribeInfoRequest_ = builderForValue.build();
} else {
subscribeInfoRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
*/
public Builder mergeSubscribeInfoRequest(ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest value) {
if (subscribeInfoRequestBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
subscribeInfoRequest_ != null &&
subscribeInfoRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance()) {
getSubscribeInfoRequestBuilder().mergeFrom(value);
} else {
subscribeInfoRequest_ = value;
}
} else {
subscribeInfoRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
*/
public Builder clearSubscribeInfoRequest() {
bitField0_ = (bitField0_ & ~0x00000008);
subscribeInfoRequest_ = null;
if (subscribeInfoRequestBuilder_ != null) {
subscribeInfoRequestBuilder_.dispose();
subscribeInfoRequestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder getSubscribeInfoRequestBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getSubscribeInfoRequestFieldBuilder().getBuilder();
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder getSubscribeInfoRequestOrBuilder() {
if (subscribeInfoRequestBuilder_ != null) {
return subscribeInfoRequestBuilder_.getMessageOrBuilder();
} else {
return subscribeInfoRequest_ == null ?
ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.getDefaultInstance() : subscribeInfoRequest_;
}
}
/**
*
*Запрос подписки на торговые статусы инструментов.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeInfoRequest subscribe_info_request = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder>
getSubscribeInfoRequestFieldBuilder() {
if (subscribeInfoRequestBuilder_ == null) {
subscribeInfoRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeInfoRequestOrBuilder>(
getSubscribeInfoRequest(),
getParentForChildren(),
isClean());
subscribeInfoRequest_ = null;
}
return subscribeInfoRequestBuilder_;
}
private ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest subscribeLastPriceRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder> subscribeLastPriceRequestBuilder_;
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
* @return Whether the subscribeLastPriceRequest field is set.
*/
public boolean hasSubscribeLastPriceRequest() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
* @return The subscribeLastPriceRequest.
*/
public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest getSubscribeLastPriceRequest() {
if (subscribeLastPriceRequestBuilder_ == null) {
return subscribeLastPriceRequest_ == null ? ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance() : subscribeLastPriceRequest_;
} else {
return subscribeLastPriceRequestBuilder_.getMessage();
}
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
*/
public Builder setSubscribeLastPriceRequest(ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest value) {
if (subscribeLastPriceRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribeLastPriceRequest_ = value;
} else {
subscribeLastPriceRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
*/
public Builder setSubscribeLastPriceRequest(
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder builderForValue) {
if (subscribeLastPriceRequestBuilder_ == null) {
subscribeLastPriceRequest_ = builderForValue.build();
} else {
subscribeLastPriceRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
*/
public Builder mergeSubscribeLastPriceRequest(ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest value) {
if (subscribeLastPriceRequestBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
subscribeLastPriceRequest_ != null &&
subscribeLastPriceRequest_ != ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance()) {
getSubscribeLastPriceRequestBuilder().mergeFrom(value);
} else {
subscribeLastPriceRequest_ = value;
}
} else {
subscribeLastPriceRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
*/
public Builder clearSubscribeLastPriceRequest() {
bitField0_ = (bitField0_ & ~0x00000010);
subscribeLastPriceRequest_ = null;
if (subscribeLastPriceRequestBuilder_ != null) {
subscribeLastPriceRequestBuilder_.dispose();
subscribeLastPriceRequestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder getSubscribeLastPriceRequestBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getSubscribeLastPriceRequestFieldBuilder().getBuilder();
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
*/
public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder getSubscribeLastPriceRequestOrBuilder() {
if (subscribeLastPriceRequestBuilder_ != null) {
return subscribeLastPriceRequestBuilder_.getMessageOrBuilder();
} else {
return subscribeLastPriceRequest_ == null ?
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.getDefaultInstance() : subscribeLastPriceRequest_;
}
}
/**
*
*Запрос подписки на цены последних сделок.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscribeLastPriceRequest subscribe_last_price_request = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder>
getSubscribeLastPriceRequestFieldBuilder() {
if (subscribeLastPriceRequestBuilder_ == null) {
subscribeLastPriceRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequest.Builder, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceRequestOrBuilder>(
getSubscribeLastPriceRequest(),
getParentForChildren(),
isClean());
subscribeLastPriceRequest_ = null;
}
return subscribeLastPriceRequestBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.MarketDataServerSideStreamRequest)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.MarketDataServerSideStreamRequest)
private static final ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest();
}
public static ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MarketDataServerSideStreamRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MarketDataServerSideStreamRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}