![JAR search and dependency download from the Maven repository](/logo.png)
ru.tinkoff.piapi.contract.v1.OrderBook Maven / Gradle / Ivy
// 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.OrderBook}
*/
public final class OrderBook extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.OrderBook)
OrderBookOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrderBook.newBuilder() to construct.
private OrderBook(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OrderBook() {
figi_ = "";
bids_ = java.util.Collections.emptyList();
asks_ = java.util.Collections.emptyList();
instrumentUid_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OrderBook();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_OrderBook_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_OrderBook_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.OrderBook.class, ru.tinkoff.piapi.contract.v1.OrderBook.Builder.class);
}
public static final int FIGI_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object figi_ = "";
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 1;
* @return The figi.
*/
@java.lang.Override
public java.lang.String getFigi() {
java.lang.Object ref = figi_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
figi_ = s;
return s;
}
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 1;
* @return The bytes for figi.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFigiBytes() {
java.lang.Object ref = figi_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
figi_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPTH_FIELD_NUMBER = 2;
private int depth_ = 0;
/**
*
*Глубина стакана.
*
*
* int32 depth = 2;
* @return The depth.
*/
@java.lang.Override
public int getDepth() {
return depth_;
}
public static final int IS_CONSISTENT_FIELD_NUMBER = 3;
private boolean isConsistent_ = false;
/**
*
*Флаг консистентности стакана. **false** значит не все заявки попали в стакан по причинам сетевых задержек или нарушения порядка доставки.
*
*
* bool is_consistent = 3;
* @return The isConsistent.
*/
@java.lang.Override
public boolean getIsConsistent() {
return isConsistent_;
}
public static final int BIDS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List bids_;
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
@java.lang.Override
public java.util.List getBidsList() {
return bids_;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.OrderOrBuilder>
getBidsOrBuilderList() {
return bids_;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
@java.lang.Override
public int getBidsCount() {
return bids_.size();
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Order getBids(int index) {
return bids_.get(index);
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderOrBuilder getBidsOrBuilder(
int index) {
return bids_.get(index);
}
public static final int ASKS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List asks_;
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
@java.lang.Override
public java.util.List getAsksList() {
return asks_;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.OrderOrBuilder>
getAsksOrBuilderList() {
return asks_;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
@java.lang.Override
public int getAsksCount() {
return asks_.size();
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Order getAsks(int index) {
return asks_.get(index);
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderOrBuilder getAsksOrBuilder(
int index) {
return asks_.get(index);
}
public static final int TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp time_;
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
* @return Whether the time field is set.
*/
@java.lang.Override
public boolean hasTime() {
return time_ != null;
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
* @return The time.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTime() {
return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
}
public static final int LIMIT_UP_FIELD_NUMBER = 7;
private ru.tinkoff.piapi.contract.v1.Quotation limitUp_;
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
* @return Whether the limitUp field is set.
*/
@java.lang.Override
public boolean hasLimitUp() {
return limitUp_ != null;
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
* @return The limitUp.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getLimitUp() {
return limitUp_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitUp_;
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getLimitUpOrBuilder() {
return limitUp_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitUp_;
}
public static final int LIMIT_DOWN_FIELD_NUMBER = 8;
private ru.tinkoff.piapi.contract.v1.Quotation limitDown_;
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
* @return Whether the limitDown field is set.
*/
@java.lang.Override
public boolean hasLimitDown() {
return limitDown_ != null;
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
* @return The limitDown.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getLimitDown() {
return limitDown_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitDown_;
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getLimitDownOrBuilder() {
return limitDown_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitDown_;
}
public static final int INSTRUMENT_UID_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object instrumentUid_ = "";
/**
*
*Uid инструмента
*
*
* string instrument_uid = 9;
* @return The instrumentUid.
*/
@java.lang.Override
public java.lang.String getInstrumentUid() {
java.lang.Object ref = instrumentUid_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instrumentUid_ = s;
return s;
}
}
/**
*
*Uid инструмента
*
*
* string instrument_uid = 9;
* @return The bytes for instrumentUid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstrumentUidBytes() {
java.lang.Object ref = instrumentUid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instrumentUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, figi_);
}
if (depth_ != 0) {
output.writeInt32(2, depth_);
}
if (isConsistent_ != false) {
output.writeBool(3, isConsistent_);
}
for (int i = 0; i < bids_.size(); i++) {
output.writeMessage(4, bids_.get(i));
}
for (int i = 0; i < asks_.size(); i++) {
output.writeMessage(5, asks_.get(i));
}
if (time_ != null) {
output.writeMessage(6, getTime());
}
if (limitUp_ != null) {
output.writeMessage(7, getLimitUp());
}
if (limitDown_ != null) {
output.writeMessage(8, getLimitDown());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, instrumentUid_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, figi_);
}
if (depth_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, depth_);
}
if (isConsistent_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isConsistent_);
}
for (int i = 0; i < bids_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, bids_.get(i));
}
for (int i = 0; i < asks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, asks_.get(i));
}
if (time_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTime());
}
if (limitUp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLimitUp());
}
if (limitDown_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLimitDown());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, instrumentUid_);
}
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.OrderBook)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.OrderBook other = (ru.tinkoff.piapi.contract.v1.OrderBook) obj;
if (!getFigi()
.equals(other.getFigi())) return false;
if (getDepth()
!= other.getDepth()) return false;
if (getIsConsistent()
!= other.getIsConsistent()) return false;
if (!getBidsList()
.equals(other.getBidsList())) return false;
if (!getAsksList()
.equals(other.getAsksList())) return false;
if (hasTime() != other.hasTime()) return false;
if (hasTime()) {
if (!getTime()
.equals(other.getTime())) return false;
}
if (hasLimitUp() != other.hasLimitUp()) return false;
if (hasLimitUp()) {
if (!getLimitUp()
.equals(other.getLimitUp())) return false;
}
if (hasLimitDown() != other.hasLimitDown()) return false;
if (hasLimitDown()) {
if (!getLimitDown()
.equals(other.getLimitDown())) return false;
}
if (!getInstrumentUid()
.equals(other.getInstrumentUid())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FIGI_FIELD_NUMBER;
hash = (53 * hash) + getFigi().hashCode();
hash = (37 * hash) + DEPTH_FIELD_NUMBER;
hash = (53 * hash) + getDepth();
hash = (37 * hash) + IS_CONSISTENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsConsistent());
if (getBidsCount() > 0) {
hash = (37 * hash) + BIDS_FIELD_NUMBER;
hash = (53 * hash) + getBidsList().hashCode();
}
if (getAsksCount() > 0) {
hash = (37 * hash) + ASKS_FIELD_NUMBER;
hash = (53 * hash) + getAsksList().hashCode();
}
if (hasTime()) {
hash = (37 * hash) + TIME_FIELD_NUMBER;
hash = (53 * hash) + getTime().hashCode();
}
if (hasLimitUp()) {
hash = (37 * hash) + LIMIT_UP_FIELD_NUMBER;
hash = (53 * hash) + getLimitUp().hashCode();
}
if (hasLimitDown()) {
hash = (37 * hash) + LIMIT_DOWN_FIELD_NUMBER;
hash = (53 * hash) + getLimitDown().hashCode();
}
hash = (37 * hash) + INSTRUMENT_UID_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentUid().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.OrderBook parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.OrderBook 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.OrderBook parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.OrderBook 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.OrderBook parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.OrderBook 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.OrderBook parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.OrderBook 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.OrderBook parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.OrderBook 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.OrderBook 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.OrderBook 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.OrderBook 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.OrderBook}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.OrderBook)
ru.tinkoff.piapi.contract.v1.OrderBookOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_OrderBook_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_OrderBook_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.OrderBook.class, ru.tinkoff.piapi.contract.v1.OrderBook.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.OrderBook.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
figi_ = "";
depth_ = 0;
isConsistent_ = false;
if (bidsBuilder_ == null) {
bids_ = java.util.Collections.emptyList();
} else {
bids_ = null;
bidsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (asksBuilder_ == null) {
asks_ = java.util.Collections.emptyList();
} else {
asks_ = null;
asksBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
time_ = null;
if (timeBuilder_ != null) {
timeBuilder_.dispose();
timeBuilder_ = null;
}
limitUp_ = null;
if (limitUpBuilder_ != null) {
limitUpBuilder_.dispose();
limitUpBuilder_ = null;
}
limitDown_ = null;
if (limitDownBuilder_ != null) {
limitDownBuilder_.dispose();
limitDownBuilder_ = null;
}
instrumentUid_ = "";
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_OrderBook_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderBook getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.OrderBook.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderBook build() {
ru.tinkoff.piapi.contract.v1.OrderBook result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderBook buildPartial() {
ru.tinkoff.piapi.contract.v1.OrderBook result = new ru.tinkoff.piapi.contract.v1.OrderBook(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.OrderBook result) {
if (bidsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
bids_ = java.util.Collections.unmodifiableList(bids_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.bids_ = bids_;
} else {
result.bids_ = bidsBuilder_.build();
}
if (asksBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
asks_ = java.util.Collections.unmodifiableList(asks_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.asks_ = asks_;
} else {
result.asks_ = asksBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.OrderBook result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.figi_ = figi_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.depth_ = depth_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.isConsistent_ = isConsistent_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.time_ = timeBuilder_ == null
? time_
: timeBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.limitUp_ = limitUpBuilder_ == null
? limitUp_
: limitUpBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.limitDown_ = limitDownBuilder_ == null
? limitDown_
: limitDownBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.instrumentUid_ = instrumentUid_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.OrderBook) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.OrderBook)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.OrderBook other) {
if (other == ru.tinkoff.piapi.contract.v1.OrderBook.getDefaultInstance()) return this;
if (!other.getFigi().isEmpty()) {
figi_ = other.figi_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getDepth() != 0) {
setDepth(other.getDepth());
}
if (other.getIsConsistent() != false) {
setIsConsistent(other.getIsConsistent());
}
if (bidsBuilder_ == null) {
if (!other.bids_.isEmpty()) {
if (bids_.isEmpty()) {
bids_ = other.bids_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureBidsIsMutable();
bids_.addAll(other.bids_);
}
onChanged();
}
} else {
if (!other.bids_.isEmpty()) {
if (bidsBuilder_.isEmpty()) {
bidsBuilder_.dispose();
bidsBuilder_ = null;
bids_ = other.bids_;
bitField0_ = (bitField0_ & ~0x00000008);
bidsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBidsFieldBuilder() : null;
} else {
bidsBuilder_.addAllMessages(other.bids_);
}
}
}
if (asksBuilder_ == null) {
if (!other.asks_.isEmpty()) {
if (asks_.isEmpty()) {
asks_ = other.asks_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAsksIsMutable();
asks_.addAll(other.asks_);
}
onChanged();
}
} else {
if (!other.asks_.isEmpty()) {
if (asksBuilder_.isEmpty()) {
asksBuilder_.dispose();
asksBuilder_ = null;
asks_ = other.asks_;
bitField0_ = (bitField0_ & ~0x00000010);
asksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAsksFieldBuilder() : null;
} else {
asksBuilder_.addAllMessages(other.asks_);
}
}
}
if (other.hasTime()) {
mergeTime(other.getTime());
}
if (other.hasLimitUp()) {
mergeLimitUp(other.getLimitUp());
}
if (other.hasLimitDown()) {
mergeLimitDown(other.getLimitDown());
}
if (!other.getInstrumentUid().isEmpty()) {
instrumentUid_ = other.instrumentUid_;
bitField0_ |= 0x00000100;
onChanged();
}
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: {
figi_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
depth_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
isConsistent_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
ru.tinkoff.piapi.contract.v1.Order m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.Order.parser(),
extensionRegistry);
if (bidsBuilder_ == null) {
ensureBidsIsMutable();
bids_.add(m);
} else {
bidsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
ru.tinkoff.piapi.contract.v1.Order m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.Order.parser(),
extensionRegistry);
if (asksBuilder_ == null) {
ensureAsksIsMutable();
asks_.add(m);
} else {
asksBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
input.readMessage(
getTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getLimitUpFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getLimitDownFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
instrumentUid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
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 java.lang.Object figi_ = "";
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 1;
* @return The figi.
*/
public java.lang.String getFigi() {
java.lang.Object ref = figi_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
figi_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 1;
* @return The bytes for figi.
*/
public com.google.protobuf.ByteString
getFigiBytes() {
java.lang.Object ref = figi_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
figi_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 1;
* @param value The figi to set.
* @return This builder for chaining.
*/
public Builder setFigi(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
figi_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 1;
* @return This builder for chaining.
*/
public Builder clearFigi() {
figi_ = getDefaultInstance().getFigi();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 1;
* @param value The bytes for figi to set.
* @return This builder for chaining.
*/
public Builder setFigiBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
figi_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int depth_ ;
/**
*
*Глубина стакана.
*
*
* int32 depth = 2;
* @return The depth.
*/
@java.lang.Override
public int getDepth() {
return depth_;
}
/**
*
*Глубина стакана.
*
*
* int32 depth = 2;
* @param value The depth to set.
* @return This builder for chaining.
*/
public Builder setDepth(int value) {
depth_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Глубина стакана.
*
*
* int32 depth = 2;
* @return This builder for chaining.
*/
public Builder clearDepth() {
bitField0_ = (bitField0_ & ~0x00000002);
depth_ = 0;
onChanged();
return this;
}
private boolean isConsistent_ ;
/**
*
*Флаг консистентности стакана. **false** значит не все заявки попали в стакан по причинам сетевых задержек или нарушения порядка доставки.
*
*
* bool is_consistent = 3;
* @return The isConsistent.
*/
@java.lang.Override
public boolean getIsConsistent() {
return isConsistent_;
}
/**
*
*Флаг консистентности стакана. **false** значит не все заявки попали в стакан по причинам сетевых задержек или нарушения порядка доставки.
*
*
* bool is_consistent = 3;
* @param value The isConsistent to set.
* @return This builder for chaining.
*/
public Builder setIsConsistent(boolean value) {
isConsistent_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Флаг консистентности стакана. **false** значит не все заявки попали в стакан по причинам сетевых задержек или нарушения порядка доставки.
*
*
* bool is_consistent = 3;
* @return This builder for chaining.
*/
public Builder clearIsConsistent() {
bitField0_ = (bitField0_ & ~0x00000004);
isConsistent_ = false;
onChanged();
return this;
}
private java.util.List bids_ =
java.util.Collections.emptyList();
private void ensureBidsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
bids_ = new java.util.ArrayList(bids_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Order, ru.tinkoff.piapi.contract.v1.Order.Builder, ru.tinkoff.piapi.contract.v1.OrderOrBuilder> bidsBuilder_;
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public java.util.List getBidsList() {
if (bidsBuilder_ == null) {
return java.util.Collections.unmodifiableList(bids_);
} else {
return bidsBuilder_.getMessageList();
}
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public int getBidsCount() {
if (bidsBuilder_ == null) {
return bids_.size();
} else {
return bidsBuilder_.getCount();
}
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public ru.tinkoff.piapi.contract.v1.Order getBids(int index) {
if (bidsBuilder_ == null) {
return bids_.get(index);
} else {
return bidsBuilder_.getMessage(index);
}
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder setBids(
int index, ru.tinkoff.piapi.contract.v1.Order value) {
if (bidsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBidsIsMutable();
bids_.set(index, value);
onChanged();
} else {
bidsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder setBids(
int index, ru.tinkoff.piapi.contract.v1.Order.Builder builderForValue) {
if (bidsBuilder_ == null) {
ensureBidsIsMutable();
bids_.set(index, builderForValue.build());
onChanged();
} else {
bidsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder addBids(ru.tinkoff.piapi.contract.v1.Order value) {
if (bidsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBidsIsMutable();
bids_.add(value);
onChanged();
} else {
bidsBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder addBids(
int index, ru.tinkoff.piapi.contract.v1.Order value) {
if (bidsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBidsIsMutable();
bids_.add(index, value);
onChanged();
} else {
bidsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder addBids(
ru.tinkoff.piapi.contract.v1.Order.Builder builderForValue) {
if (bidsBuilder_ == null) {
ensureBidsIsMutable();
bids_.add(builderForValue.build());
onChanged();
} else {
bidsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder addBids(
int index, ru.tinkoff.piapi.contract.v1.Order.Builder builderForValue) {
if (bidsBuilder_ == null) {
ensureBidsIsMutable();
bids_.add(index, builderForValue.build());
onChanged();
} else {
bidsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder addAllBids(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.Order> values) {
if (bidsBuilder_ == null) {
ensureBidsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, bids_);
onChanged();
} else {
bidsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder clearBids() {
if (bidsBuilder_ == null) {
bids_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
bidsBuilder_.clear();
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public Builder removeBids(int index) {
if (bidsBuilder_ == null) {
ensureBidsIsMutable();
bids_.remove(index);
onChanged();
} else {
bidsBuilder_.remove(index);
}
return this;
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public ru.tinkoff.piapi.contract.v1.Order.Builder getBidsBuilder(
int index) {
return getBidsFieldBuilder().getBuilder(index);
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public ru.tinkoff.piapi.contract.v1.OrderOrBuilder getBidsOrBuilder(
int index) {
if (bidsBuilder_ == null) {
return bids_.get(index); } else {
return bidsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.OrderOrBuilder>
getBidsOrBuilderList() {
if (bidsBuilder_ != null) {
return bidsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(bids_);
}
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public ru.tinkoff.piapi.contract.v1.Order.Builder addBidsBuilder() {
return getBidsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.Order.getDefaultInstance());
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public ru.tinkoff.piapi.contract.v1.Order.Builder addBidsBuilder(
int index) {
return getBidsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.Order.getDefaultInstance());
}
/**
*
*Массив предложений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order bids = 4;
*/
public java.util.List
getBidsBuilderList() {
return getBidsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Order, ru.tinkoff.piapi.contract.v1.Order.Builder, ru.tinkoff.piapi.contract.v1.OrderOrBuilder>
getBidsFieldBuilder() {
if (bidsBuilder_ == null) {
bidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Order, ru.tinkoff.piapi.contract.v1.Order.Builder, ru.tinkoff.piapi.contract.v1.OrderOrBuilder>(
bids_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
bids_ = null;
}
return bidsBuilder_;
}
private java.util.List asks_ =
java.util.Collections.emptyList();
private void ensureAsksIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
asks_ = new java.util.ArrayList(asks_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Order, ru.tinkoff.piapi.contract.v1.Order.Builder, ru.tinkoff.piapi.contract.v1.OrderOrBuilder> asksBuilder_;
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public java.util.List getAsksList() {
if (asksBuilder_ == null) {
return java.util.Collections.unmodifiableList(asks_);
} else {
return asksBuilder_.getMessageList();
}
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public int getAsksCount() {
if (asksBuilder_ == null) {
return asks_.size();
} else {
return asksBuilder_.getCount();
}
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public ru.tinkoff.piapi.contract.v1.Order getAsks(int index) {
if (asksBuilder_ == null) {
return asks_.get(index);
} else {
return asksBuilder_.getMessage(index);
}
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder setAsks(
int index, ru.tinkoff.piapi.contract.v1.Order value) {
if (asksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAsksIsMutable();
asks_.set(index, value);
onChanged();
} else {
asksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder setAsks(
int index, ru.tinkoff.piapi.contract.v1.Order.Builder builderForValue) {
if (asksBuilder_ == null) {
ensureAsksIsMutable();
asks_.set(index, builderForValue.build());
onChanged();
} else {
asksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder addAsks(ru.tinkoff.piapi.contract.v1.Order value) {
if (asksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAsksIsMutable();
asks_.add(value);
onChanged();
} else {
asksBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder addAsks(
int index, ru.tinkoff.piapi.contract.v1.Order value) {
if (asksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAsksIsMutable();
asks_.add(index, value);
onChanged();
} else {
asksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder addAsks(
ru.tinkoff.piapi.contract.v1.Order.Builder builderForValue) {
if (asksBuilder_ == null) {
ensureAsksIsMutable();
asks_.add(builderForValue.build());
onChanged();
} else {
asksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder addAsks(
int index, ru.tinkoff.piapi.contract.v1.Order.Builder builderForValue) {
if (asksBuilder_ == null) {
ensureAsksIsMutable();
asks_.add(index, builderForValue.build());
onChanged();
} else {
asksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder addAllAsks(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.Order> values) {
if (asksBuilder_ == null) {
ensureAsksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, asks_);
onChanged();
} else {
asksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder clearAsks() {
if (asksBuilder_ == null) {
asks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
asksBuilder_.clear();
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public Builder removeAsks(int index) {
if (asksBuilder_ == null) {
ensureAsksIsMutable();
asks_.remove(index);
onChanged();
} else {
asksBuilder_.remove(index);
}
return this;
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public ru.tinkoff.piapi.contract.v1.Order.Builder getAsksBuilder(
int index) {
return getAsksFieldBuilder().getBuilder(index);
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public ru.tinkoff.piapi.contract.v1.OrderOrBuilder getAsksOrBuilder(
int index) {
if (asksBuilder_ == null) {
return asks_.get(index); } else {
return asksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.OrderOrBuilder>
getAsksOrBuilderList() {
if (asksBuilder_ != null) {
return asksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(asks_);
}
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public ru.tinkoff.piapi.contract.v1.Order.Builder addAsksBuilder() {
return getAsksFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.Order.getDefaultInstance());
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public ru.tinkoff.piapi.contract.v1.Order.Builder addAsksBuilder(
int index) {
return getAsksFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.Order.getDefaultInstance());
}
/**
*
*Массив спроса.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Order asks = 5;
*/
public java.util.List
getAsksBuilderList() {
return getAsksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Order, ru.tinkoff.piapi.contract.v1.Order.Builder, ru.tinkoff.piapi.contract.v1.OrderOrBuilder>
getAsksFieldBuilder() {
if (asksBuilder_ == null) {
asksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Order, ru.tinkoff.piapi.contract.v1.Order.Builder, ru.tinkoff.piapi.contract.v1.OrderOrBuilder>(
asks_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
asks_ = null;
}
return asksBuilder_;
}
private com.google.protobuf.Timestamp time_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_;
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
* @return Whether the time field is set.
*/
public boolean hasTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
* @return The time.
*/
public com.google.protobuf.Timestamp getTime() {
if (timeBuilder_ == null) {
return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
} else {
return timeBuilder_.getMessage();
}
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
public Builder setTime(com.google.protobuf.Timestamp value) {
if (timeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
time_ = value;
} else {
timeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
public Builder setTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timeBuilder_ == null) {
time_ = builderForValue.build();
} else {
timeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
public Builder mergeTime(com.google.protobuf.Timestamp value) {
if (timeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
time_ != null &&
time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimeBuilder().mergeFrom(value);
} else {
time_ = value;
}
} else {
timeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
public Builder clearTime() {
bitField0_ = (bitField0_ & ~0x00000020);
time_ = null;
if (timeBuilder_ != null) {
timeBuilder_.dispose();
timeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTimeFieldBuilder().getBuilder();
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
if (timeBuilder_ != null) {
return timeBuilder_.getMessageOrBuilder();
} else {
return time_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : time_;
}
}
/**
*
*Время формирования стакана в часовом поясе UTC по времени биржи.
*
*
* .google.protobuf.Timestamp time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimeFieldBuilder() {
if (timeBuilder_ == null) {
timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTime(),
getParentForChildren(),
isClean());
time_ = null;
}
return timeBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation limitUp_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> limitUpBuilder_;
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
* @return Whether the limitUp field is set.
*/
public boolean hasLimitUp() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
* @return The limitUp.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getLimitUp() {
if (limitUpBuilder_ == null) {
return limitUp_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitUp_;
} else {
return limitUpBuilder_.getMessage();
}
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
public Builder setLimitUp(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (limitUpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
limitUp_ = value;
} else {
limitUpBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
public Builder setLimitUp(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (limitUpBuilder_ == null) {
limitUp_ = builderForValue.build();
} else {
limitUpBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
public Builder mergeLimitUp(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (limitUpBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
limitUp_ != null &&
limitUp_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getLimitUpBuilder().mergeFrom(value);
} else {
limitUp_ = value;
}
} else {
limitUpBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
public Builder clearLimitUp() {
bitField0_ = (bitField0_ & ~0x00000040);
limitUp_ = null;
if (limitUpBuilder_ != null) {
limitUpBuilder_.dispose();
limitUpBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getLimitUpBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getLimitUpFieldBuilder().getBuilder();
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getLimitUpOrBuilder() {
if (limitUpBuilder_ != null) {
return limitUpBuilder_.getMessageOrBuilder();
} else {
return limitUp_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitUp_;
}
}
/**
*
*Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getLimitUpFieldBuilder() {
if (limitUpBuilder_ == null) {
limitUpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getLimitUp(),
getParentForChildren(),
isClean());
limitUp_ = null;
}
return limitUpBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation limitDown_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> limitDownBuilder_;
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
* @return Whether the limitDown field is set.
*/
public boolean hasLimitDown() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
* @return The limitDown.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getLimitDown() {
if (limitDownBuilder_ == null) {
return limitDown_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitDown_;
} else {
return limitDownBuilder_.getMessage();
}
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
public Builder setLimitDown(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (limitDownBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
limitDown_ = value;
} else {
limitDownBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
public Builder setLimitDown(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (limitDownBuilder_ == null) {
limitDown_ = builderForValue.build();
} else {
limitDownBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
public Builder mergeLimitDown(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (limitDownBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
limitDown_ != null &&
limitDown_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getLimitDownBuilder().mergeFrom(value);
} else {
limitDown_ = value;
}
} else {
limitDownBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
public Builder clearLimitDown() {
bitField0_ = (bitField0_ & ~0x00000080);
limitDown_ = null;
if (limitDownBuilder_ != null) {
limitDownBuilder_.dispose();
limitDownBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getLimitDownBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getLimitDownFieldBuilder().getBuilder();
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getLimitDownOrBuilder() {
if (limitDownBuilder_ != null) {
return limitDownBuilder_.getMessageOrBuilder();
} else {
return limitDown_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : limitDown_;
}
}
/**
*
*Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://russianinvestments.github.io/investAPI/faq_marketdata/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getLimitDownFieldBuilder() {
if (limitDownBuilder_ == null) {
limitDownBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getLimitDown(),
getParentForChildren(),
isClean());
limitDown_ = null;
}
return limitDownBuilder_;
}
private java.lang.Object instrumentUid_ = "";
/**
*
*Uid инструмента
*
*
* string instrument_uid = 9;
* @return The instrumentUid.
*/
public java.lang.String getInstrumentUid() {
java.lang.Object ref = instrumentUid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instrumentUid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Uid инструмента
*
*
* string instrument_uid = 9;
* @return The bytes for instrumentUid.
*/
public com.google.protobuf.ByteString
getInstrumentUidBytes() {
java.lang.Object ref = instrumentUid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instrumentUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Uid инструмента
*
*
* string instrument_uid = 9;
* @param value The instrumentUid to set.
* @return This builder for chaining.
*/
public Builder setInstrumentUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instrumentUid_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Uid инструмента
*
*
* string instrument_uid = 9;
* @return This builder for chaining.
*/
public Builder clearInstrumentUid() {
instrumentUid_ = getDefaultInstance().getInstrumentUid();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*Uid инструмента
*
*
* string instrument_uid = 9;
* @param value The bytes for instrumentUid to set.
* @return This builder for chaining.
*/
public Builder setInstrumentUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instrumentUid_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
@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.OrderBook)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.OrderBook)
private static final ru.tinkoff.piapi.contract.v1.OrderBook DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.OrderBook();
}
public static ru.tinkoff.piapi.contract.v1.OrderBook getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrderBook 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.OrderBook getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy