ru.tinkoff.piapi.contract.v1.InstrumentShort Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: instruments.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Краткая информация об инструменте.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.InstrumentShort}
*/
public final class InstrumentShort extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.InstrumentShort)
InstrumentShortOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstrumentShort.newBuilder() to construct.
private InstrumentShort(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstrumentShort() {
isin_ = "";
figi_ = "";
ticker_ = "";
classCode_ = "";
instrumentType_ = "";
name_ = "";
uid_ = "";
positionUid_ = "";
instrumentKind_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InstrumentShort();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_InstrumentShort_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_InstrumentShort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.InstrumentShort.class, ru.tinkoff.piapi.contract.v1.InstrumentShort.Builder.class);
}
public static final int ISIN_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object isin_ = "";
/**
*
*Isin инструмента.
*
*
* string isin = 1;
* @return The isin.
*/
@java.lang.Override
public java.lang.String getIsin() {
java.lang.Object ref = isin_;
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();
isin_ = s;
return s;
}
}
/**
*
*Isin инструмента.
*
*
* string isin = 1;
* @return The bytes for isin.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIsinBytes() {
java.lang.Object ref = isin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
isin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIGI_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object figi_ = "";
/**
*
*Figi инструмента.
*
*
* string figi = 2;
* @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 = 2;
* @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 TICKER_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object ticker_ = "";
/**
*
*Ticker инструмента.
*
*
* string ticker = 3;
* @return The ticker.
*/
@java.lang.Override
public java.lang.String getTicker() {
java.lang.Object ref = ticker_;
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();
ticker_ = s;
return s;
}
}
/**
*
*Ticker инструмента.
*
*
* string ticker = 3;
* @return The bytes for ticker.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTickerBytes() {
java.lang.Object ref = ticker_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ticker_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLASS_CODE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object classCode_ = "";
/**
*
*ClassCode инструмента.
*
*
* string class_code = 4;
* @return The classCode.
*/
@java.lang.Override
public java.lang.String getClassCode() {
java.lang.Object ref = classCode_;
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();
classCode_ = s;
return s;
}
}
/**
*
*ClassCode инструмента.
*
*
* string class_code = 4;
* @return The bytes for classCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassCodeBytes() {
java.lang.Object ref = classCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTRUMENT_TYPE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object instrumentType_ = "";
/**
*
*Тип инструмента.
*
*
* string instrument_type = 5;
* @return The instrumentType.
*/
@java.lang.Override
public java.lang.String getInstrumentType() {
java.lang.Object ref = instrumentType_;
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();
instrumentType_ = s;
return s;
}
}
/**
*
*Тип инструмента.
*
*
* string instrument_type = 5;
* @return The bytes for instrumentType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstrumentTypeBytes() {
java.lang.Object ref = instrumentType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instrumentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*Название инструмента.
*
*
* string name = 6;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*Название инструмента.
*
*
* string name = 6;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 7;
* @return The uid.
*/
@java.lang.Override
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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();
uid_ = s;
return s;
}
}
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 7;
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POSITION_UID_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object positionUid_ = "";
/**
*
*Уникальный идентификатор позиции инструмента.
*
*
* string position_uid = 8;
* @return The positionUid.
*/
@java.lang.Override
public java.lang.String getPositionUid() {
java.lang.Object ref = positionUid_;
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();
positionUid_ = s;
return s;
}
}
/**
*
*Уникальный идентификатор позиции инструмента.
*
*
* string position_uid = 8;
* @return The bytes for positionUid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPositionUidBytes() {
java.lang.Object ref = positionUid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
positionUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTRUMENT_KIND_FIELD_NUMBER = 10;
private int instrumentKind_ = 0;
/**
*
*Тип инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 10;
* @return The enum numeric value on the wire for instrumentKind.
*/
@java.lang.Override public int getInstrumentKindValue() {
return instrumentKind_;
}
/**
*
*Тип инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 10;
* @return The instrumentKind.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.InstrumentType getInstrumentKind() {
ru.tinkoff.piapi.contract.v1.InstrumentType result = ru.tinkoff.piapi.contract.v1.InstrumentType.forNumber(instrumentKind_);
return result == null ? ru.tinkoff.piapi.contract.v1.InstrumentType.UNRECOGNIZED : result;
}
public static final int API_TRADE_AVAILABLE_FLAG_FIELD_NUMBER = 11;
private boolean apiTradeAvailableFlag_ = false;
/**
*
*Параметр указывает на возможность торговать инструментом через API.
*
*
* bool api_trade_available_flag = 11;
* @return The apiTradeAvailableFlag.
*/
@java.lang.Override
public boolean getApiTradeAvailableFlag() {
return apiTradeAvailableFlag_;
}
public static final int FOR_IIS_FLAG_FIELD_NUMBER = 12;
private boolean forIisFlag_ = false;
/**
*
*Признак доступности для ИИС.
*
*
* bool for_iis_flag = 12;
* @return The forIisFlag.
*/
@java.lang.Override
public boolean getForIisFlag() {
return forIisFlag_;
}
public static final int FIRST_1MIN_CANDLE_DATE_FIELD_NUMBER = 26;
private com.google.protobuf.Timestamp first1MinCandleDate_;
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
* @return Whether the first1minCandleDate field is set.
*/
@java.lang.Override
public boolean hasFirst1MinCandleDate() {
return first1MinCandleDate_ != null;
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
* @return The first1minCandleDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getFirst1MinCandleDate() {
return first1MinCandleDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : first1MinCandleDate_;
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFirst1MinCandleDateOrBuilder() {
return first1MinCandleDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : first1MinCandleDate_;
}
public static final int FIRST_1DAY_CANDLE_DATE_FIELD_NUMBER = 27;
private com.google.protobuf.Timestamp first1DayCandleDate_;
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
* @return Whether the first1dayCandleDate field is set.
*/
@java.lang.Override
public boolean hasFirst1DayCandleDate() {
return first1DayCandleDate_ != null;
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
* @return The first1dayCandleDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getFirst1DayCandleDate() {
return first1DayCandleDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : first1DayCandleDate_;
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFirst1DayCandleDateOrBuilder() {
return first1DayCandleDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : first1DayCandleDate_;
}
public static final int FOR_QUAL_INVESTOR_FLAG_FIELD_NUMBER = 28;
private boolean forQualInvestorFlag_ = false;
/**
*
*Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
*
*
* bool for_qual_investor_flag = 28;
* @return The forQualInvestorFlag.
*/
@java.lang.Override
public boolean getForQualInvestorFlag() {
return forQualInvestorFlag_;
}
public static final int WEEKEND_FLAG_FIELD_NUMBER = 29;
private boolean weekendFlag_ = false;
/**
*
*Флаг отображающий доступность торговли инструментом по выходным
*
*
* bool weekend_flag = 29;
* @return The weekendFlag.
*/
@java.lang.Override
public boolean getWeekendFlag() {
return weekendFlag_;
}
public static final int BLOCKED_TCA_FLAG_FIELD_NUMBER = 30;
private boolean blockedTcaFlag_ = false;
/**
*
*Флаг заблокированного ТКС
*
*
* bool blocked_tca_flag = 30;
* @return The blockedTcaFlag.
*/
@java.lang.Override
public boolean getBlockedTcaFlag() {
return blockedTcaFlag_;
}
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(isin_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, isin_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, figi_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ticker_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ticker_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, classCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, instrumentType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(positionUid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, positionUid_);
}
if (instrumentKind_ != ru.tinkoff.piapi.contract.v1.InstrumentType.INSTRUMENT_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(10, instrumentKind_);
}
if (apiTradeAvailableFlag_ != false) {
output.writeBool(11, apiTradeAvailableFlag_);
}
if (forIisFlag_ != false) {
output.writeBool(12, forIisFlag_);
}
if (first1MinCandleDate_ != null) {
output.writeMessage(26, getFirst1MinCandleDate());
}
if (first1DayCandleDate_ != null) {
output.writeMessage(27, getFirst1DayCandleDate());
}
if (forQualInvestorFlag_ != false) {
output.writeBool(28, forQualInvestorFlag_);
}
if (weekendFlag_ != false) {
output.writeBool(29, weekendFlag_);
}
if (blockedTcaFlag_ != false) {
output.writeBool(30, blockedTcaFlag_);
}
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(isin_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, isin_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, figi_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ticker_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ticker_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, classCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, instrumentType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(positionUid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, positionUid_);
}
if (instrumentKind_ != ru.tinkoff.piapi.contract.v1.InstrumentType.INSTRUMENT_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, instrumentKind_);
}
if (apiTradeAvailableFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, apiTradeAvailableFlag_);
}
if (forIisFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, forIisFlag_);
}
if (first1MinCandleDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getFirst1MinCandleDate());
}
if (first1DayCandleDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, getFirst1DayCandleDate());
}
if (forQualInvestorFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(28, forQualInvestorFlag_);
}
if (weekendFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(29, weekendFlag_);
}
if (blockedTcaFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(30, blockedTcaFlag_);
}
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.InstrumentShort)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.InstrumentShort other = (ru.tinkoff.piapi.contract.v1.InstrumentShort) obj;
if (!getIsin()
.equals(other.getIsin())) return false;
if (!getFigi()
.equals(other.getFigi())) return false;
if (!getTicker()
.equals(other.getTicker())) return false;
if (!getClassCode()
.equals(other.getClassCode())) return false;
if (!getInstrumentType()
.equals(other.getInstrumentType())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getUid()
.equals(other.getUid())) return false;
if (!getPositionUid()
.equals(other.getPositionUid())) return false;
if (instrumentKind_ != other.instrumentKind_) return false;
if (getApiTradeAvailableFlag()
!= other.getApiTradeAvailableFlag()) return false;
if (getForIisFlag()
!= other.getForIisFlag()) return false;
if (hasFirst1MinCandleDate() != other.hasFirst1MinCandleDate()) return false;
if (hasFirst1MinCandleDate()) {
if (!getFirst1MinCandleDate()
.equals(other.getFirst1MinCandleDate())) return false;
}
if (hasFirst1DayCandleDate() != other.hasFirst1DayCandleDate()) return false;
if (hasFirst1DayCandleDate()) {
if (!getFirst1DayCandleDate()
.equals(other.getFirst1DayCandleDate())) return false;
}
if (getForQualInvestorFlag()
!= other.getForQualInvestorFlag()) return false;
if (getWeekendFlag()
!= other.getWeekendFlag()) return false;
if (getBlockedTcaFlag()
!= other.getBlockedTcaFlag()) 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) + ISIN_FIELD_NUMBER;
hash = (53 * hash) + getIsin().hashCode();
hash = (37 * hash) + FIGI_FIELD_NUMBER;
hash = (53 * hash) + getFigi().hashCode();
hash = (37 * hash) + TICKER_FIELD_NUMBER;
hash = (53 * hash) + getTicker().hashCode();
hash = (37 * hash) + CLASS_CODE_FIELD_NUMBER;
hash = (53 * hash) + getClassCode().hashCode();
hash = (37 * hash) + INSTRUMENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentType().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
hash = (37 * hash) + POSITION_UID_FIELD_NUMBER;
hash = (53 * hash) + getPositionUid().hashCode();
hash = (37 * hash) + INSTRUMENT_KIND_FIELD_NUMBER;
hash = (53 * hash) + instrumentKind_;
hash = (37 * hash) + API_TRADE_AVAILABLE_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getApiTradeAvailableFlag());
hash = (37 * hash) + FOR_IIS_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForIisFlag());
if (hasFirst1MinCandleDate()) {
hash = (37 * hash) + FIRST_1MIN_CANDLE_DATE_FIELD_NUMBER;
hash = (53 * hash) + getFirst1MinCandleDate().hashCode();
}
if (hasFirst1DayCandleDate()) {
hash = (37 * hash) + FIRST_1DAY_CANDLE_DATE_FIELD_NUMBER;
hash = (53 * hash) + getFirst1DayCandleDate().hashCode();
}
hash = (37 * hash) + FOR_QUAL_INVESTOR_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForQualInvestorFlag());
hash = (37 * hash) + WEEKEND_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getWeekendFlag());
hash = (37 * hash) + BLOCKED_TCA_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBlockedTcaFlag());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.InstrumentShort parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.InstrumentShort 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.InstrumentShort parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.InstrumentShort 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.InstrumentShort parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.InstrumentShort 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.InstrumentShort parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.InstrumentShort 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.InstrumentShort parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.InstrumentShort 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.InstrumentShort 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.InstrumentShort 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.InstrumentShort 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.InstrumentShort}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.InstrumentShort)
ru.tinkoff.piapi.contract.v1.InstrumentShortOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_InstrumentShort_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_InstrumentShort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.InstrumentShort.class, ru.tinkoff.piapi.contract.v1.InstrumentShort.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.InstrumentShort.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
isin_ = "";
figi_ = "";
ticker_ = "";
classCode_ = "";
instrumentType_ = "";
name_ = "";
uid_ = "";
positionUid_ = "";
instrumentKind_ = 0;
apiTradeAvailableFlag_ = false;
forIisFlag_ = false;
first1MinCandleDate_ = null;
if (first1MinCandleDateBuilder_ != null) {
first1MinCandleDateBuilder_.dispose();
first1MinCandleDateBuilder_ = null;
}
first1DayCandleDate_ = null;
if (first1DayCandleDateBuilder_ != null) {
first1DayCandleDateBuilder_.dispose();
first1DayCandleDateBuilder_ = null;
}
forQualInvestorFlag_ = false;
weekendFlag_ = false;
blockedTcaFlag_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_InstrumentShort_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.InstrumentShort getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.InstrumentShort.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.InstrumentShort build() {
ru.tinkoff.piapi.contract.v1.InstrumentShort result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.InstrumentShort buildPartial() {
ru.tinkoff.piapi.contract.v1.InstrumentShort result = new ru.tinkoff.piapi.contract.v1.InstrumentShort(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.InstrumentShort result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.isin_ = isin_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.figi_ = figi_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ticker_ = ticker_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.classCode_ = classCode_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.instrumentType_ = instrumentType_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.positionUid_ = positionUid_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.instrumentKind_ = instrumentKind_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.apiTradeAvailableFlag_ = apiTradeAvailableFlag_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.forIisFlag_ = forIisFlag_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.first1MinCandleDate_ = first1MinCandleDateBuilder_ == null
? first1MinCandleDate_
: first1MinCandleDateBuilder_.build();
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.first1DayCandleDate_ = first1DayCandleDateBuilder_ == null
? first1DayCandleDate_
: first1DayCandleDateBuilder_.build();
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.forQualInvestorFlag_ = forQualInvestorFlag_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.weekendFlag_ = weekendFlag_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.blockedTcaFlag_ = blockedTcaFlag_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.InstrumentShort) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.InstrumentShort)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.InstrumentShort other) {
if (other == ru.tinkoff.piapi.contract.v1.InstrumentShort.getDefaultInstance()) return this;
if (!other.getIsin().isEmpty()) {
isin_ = other.isin_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getFigi().isEmpty()) {
figi_ = other.figi_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getTicker().isEmpty()) {
ticker_ = other.ticker_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getClassCode().isEmpty()) {
classCode_ = other.classCode_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getInstrumentType().isEmpty()) {
instrumentType_ = other.instrumentType_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getPositionUid().isEmpty()) {
positionUid_ = other.positionUid_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.instrumentKind_ != 0) {
setInstrumentKindValue(other.getInstrumentKindValue());
}
if (other.getApiTradeAvailableFlag() != false) {
setApiTradeAvailableFlag(other.getApiTradeAvailableFlag());
}
if (other.getForIisFlag() != false) {
setForIisFlag(other.getForIisFlag());
}
if (other.hasFirst1MinCandleDate()) {
mergeFirst1MinCandleDate(other.getFirst1MinCandleDate());
}
if (other.hasFirst1DayCandleDate()) {
mergeFirst1DayCandleDate(other.getFirst1DayCandleDate());
}
if (other.getForQualInvestorFlag() != false) {
setForQualInvestorFlag(other.getForQualInvestorFlag());
}
if (other.getWeekendFlag() != false) {
setWeekendFlag(other.getWeekendFlag());
}
if (other.getBlockedTcaFlag() != false) {
setBlockedTcaFlag(other.getBlockedTcaFlag());
}
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: {
isin_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
figi_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
ticker_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
classCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
instrumentType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
positionUid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 80: {
instrumentKind_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 80
case 88: {
apiTradeAvailableFlag_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 88
case 96: {
forIisFlag_ = input.readBool();
bitField0_ |= 0x00000400;
break;
} // case 96
case 210: {
input.readMessage(
getFirst1MinCandleDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 210
case 218: {
input.readMessage(
getFirst1DayCandleDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 218
case 224: {
forQualInvestorFlag_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 224
case 232: {
weekendFlag_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 232
case 240: {
blockedTcaFlag_ = input.readBool();
bitField0_ |= 0x00008000;
break;
} // case 240
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 isin_ = "";
/**
*
*Isin инструмента.
*
*
* string isin = 1;
* @return The isin.
*/
public java.lang.String getIsin() {
java.lang.Object ref = isin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
isin_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Isin инструмента.
*
*
* string isin = 1;
* @return The bytes for isin.
*/
public com.google.protobuf.ByteString
getIsinBytes() {
java.lang.Object ref = isin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
isin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Isin инструмента.
*
*
* string isin = 1;
* @param value The isin to set.
* @return This builder for chaining.
*/
public Builder setIsin(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
isin_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Isin инструмента.
*
*
* string isin = 1;
* @return This builder for chaining.
*/
public Builder clearIsin() {
isin_ = getDefaultInstance().getIsin();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Isin инструмента.
*
*
* string isin = 1;
* @param value The bytes for isin to set.
* @return This builder for chaining.
*/
public Builder setIsinBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
isin_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object figi_ = "";
/**
*
*Figi инструмента.
*
*
* string figi = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Figi инструмента.
*
*
* string figi = 2;
* @return This builder for chaining.
*/
public Builder clearFigi() {
figi_ = getDefaultInstance().getFigi();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*Figi инструмента.
*
*
* string figi = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object ticker_ = "";
/**
*
*Ticker инструмента.
*
*
* string ticker = 3;
* @return The ticker.
*/
public java.lang.String getTicker() {
java.lang.Object ref = ticker_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ticker_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Ticker инструмента.
*
*
* string ticker = 3;
* @return The bytes for ticker.
*/
public com.google.protobuf.ByteString
getTickerBytes() {
java.lang.Object ref = ticker_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ticker_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Ticker инструмента.
*
*
* string ticker = 3;
* @param value The ticker to set.
* @return This builder for chaining.
*/
public Builder setTicker(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ticker_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Ticker инструмента.
*
*
* string ticker = 3;
* @return This builder for chaining.
*/
public Builder clearTicker() {
ticker_ = getDefaultInstance().getTicker();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*Ticker инструмента.
*
*
* string ticker = 3;
* @param value The bytes for ticker to set.
* @return This builder for chaining.
*/
public Builder setTickerBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ticker_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object classCode_ = "";
/**
*
*ClassCode инструмента.
*
*
* string class_code = 4;
* @return The classCode.
*/
public java.lang.String getClassCode() {
java.lang.Object ref = classCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*ClassCode инструмента.
*
*
* string class_code = 4;
* @return The bytes for classCode.
*/
public com.google.protobuf.ByteString
getClassCodeBytes() {
java.lang.Object ref = classCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*ClassCode инструмента.
*
*
* string class_code = 4;
* @param value The classCode to set.
* @return This builder for chaining.
*/
public Builder setClassCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
classCode_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*ClassCode инструмента.
*
*
* string class_code = 4;
* @return This builder for chaining.
*/
public Builder clearClassCode() {
classCode_ = getDefaultInstance().getClassCode();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*ClassCode инструмента.
*
*
* string class_code = 4;
* @param value The bytes for classCode to set.
* @return This builder for chaining.
*/
public Builder setClassCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
classCode_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object instrumentType_ = "";
/**
*
*Тип инструмента.
*
*
* string instrument_type = 5;
* @return The instrumentType.
*/
public java.lang.String getInstrumentType() {
java.lang.Object ref = instrumentType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instrumentType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Тип инструмента.
*
*
* string instrument_type = 5;
* @return The bytes for instrumentType.
*/
public com.google.protobuf.ByteString
getInstrumentTypeBytes() {
java.lang.Object ref = instrumentType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instrumentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Тип инструмента.
*
*
* string instrument_type = 5;
* @param value The instrumentType to set.
* @return This builder for chaining.
*/
public Builder setInstrumentType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instrumentType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Тип инструмента.
*
*
* string instrument_type = 5;
* @return This builder for chaining.
*/
public Builder clearInstrumentType() {
instrumentType_ = getDefaultInstance().getInstrumentType();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Тип инструмента.
*
*
* string instrument_type = 5;
* @param value The bytes for instrumentType to set.
* @return This builder for chaining.
*/
public Builder setInstrumentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instrumentType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*Название инструмента.
*
*
* string name = 6;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Название инструмента.
*
*
* string name = 6;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Название инструмента.
*
*
* string name = 6;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Название инструмента.
*
*
* string name = 6;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*Название инструмента.
*
*
* string name = 6;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 7;
* @return The uid.
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 7;
* @return The bytes for uid.
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 7;
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
uid_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 7;
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 7;
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object positionUid_ = "";
/**
*
*Уникальный идентификатор позиции инструмента.
*
*
* string position_uid = 8;
* @return The positionUid.
*/
public java.lang.String getPositionUid() {
java.lang.Object ref = positionUid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
positionUid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Уникальный идентификатор позиции инструмента.
*
*
* string position_uid = 8;
* @return The bytes for positionUid.
*/
public com.google.protobuf.ByteString
getPositionUidBytes() {
java.lang.Object ref = positionUid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
positionUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Уникальный идентификатор позиции инструмента.
*
*
* string position_uid = 8;
* @param value The positionUid to set.
* @return This builder for chaining.
*/
public Builder setPositionUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
positionUid_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Уникальный идентификатор позиции инструмента.
*
*
* string position_uid = 8;
* @return This builder for chaining.
*/
public Builder clearPositionUid() {
positionUid_ = getDefaultInstance().getPositionUid();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
*Уникальный идентификатор позиции инструмента.
*
*
* string position_uid = 8;
* @param value The bytes for positionUid to set.
* @return This builder for chaining.
*/
public Builder setPositionUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
positionUid_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private int instrumentKind_ = 0;
/**
*
*Тип инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 10;
* @return The enum numeric value on the wire for instrumentKind.
*/
@java.lang.Override public int getInstrumentKindValue() {
return instrumentKind_;
}
/**
*
*Тип инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 10;
* @param value The enum numeric value on the wire for instrumentKind to set.
* @return This builder for chaining.
*/
public Builder setInstrumentKindValue(int value) {
instrumentKind_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Тип инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 10;
* @return The instrumentKind.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.InstrumentType getInstrumentKind() {
ru.tinkoff.piapi.contract.v1.InstrumentType result = ru.tinkoff.piapi.contract.v1.InstrumentType.forNumber(instrumentKind_);
return result == null ? ru.tinkoff.piapi.contract.v1.InstrumentType.UNRECOGNIZED : result;
}
/**
*
*Тип инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 10;
* @param value The instrumentKind to set.
* @return This builder for chaining.
*/
public Builder setInstrumentKind(ru.tinkoff.piapi.contract.v1.InstrumentType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
instrumentKind_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Тип инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 10;
* @return This builder for chaining.
*/
public Builder clearInstrumentKind() {
bitField0_ = (bitField0_ & ~0x00000100);
instrumentKind_ = 0;
onChanged();
return this;
}
private boolean apiTradeAvailableFlag_ ;
/**
*
*Параметр указывает на возможность торговать инструментом через API.
*
*
* bool api_trade_available_flag = 11;
* @return The apiTradeAvailableFlag.
*/
@java.lang.Override
public boolean getApiTradeAvailableFlag() {
return apiTradeAvailableFlag_;
}
/**
*
*Параметр указывает на возможность торговать инструментом через API.
*
*
* bool api_trade_available_flag = 11;
* @param value The apiTradeAvailableFlag to set.
* @return This builder for chaining.
*/
public Builder setApiTradeAvailableFlag(boolean value) {
apiTradeAvailableFlag_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Параметр указывает на возможность торговать инструментом через API.
*
*
* bool api_trade_available_flag = 11;
* @return This builder for chaining.
*/
public Builder clearApiTradeAvailableFlag() {
bitField0_ = (bitField0_ & ~0x00000200);
apiTradeAvailableFlag_ = false;
onChanged();
return this;
}
private boolean forIisFlag_ ;
/**
*
*Признак доступности для ИИС.
*
*
* bool for_iis_flag = 12;
* @return The forIisFlag.
*/
@java.lang.Override
public boolean getForIisFlag() {
return forIisFlag_;
}
/**
*
*Признак доступности для ИИС.
*
*
* bool for_iis_flag = 12;
* @param value The forIisFlag to set.
* @return This builder for chaining.
*/
public Builder setForIisFlag(boolean value) {
forIisFlag_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Признак доступности для ИИС.
*
*
* bool for_iis_flag = 12;
* @return This builder for chaining.
*/
public Builder clearForIisFlag() {
bitField0_ = (bitField0_ & ~0x00000400);
forIisFlag_ = false;
onChanged();
return this;
}
private com.google.protobuf.Timestamp first1MinCandleDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> first1MinCandleDateBuilder_;
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
* @return Whether the first1minCandleDate field is set.
*/
public boolean hasFirst1MinCandleDate() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
* @return The first1minCandleDate.
*/
public com.google.protobuf.Timestamp getFirst1MinCandleDate() {
if (first1MinCandleDateBuilder_ == null) {
return first1MinCandleDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : first1MinCandleDate_;
} else {
return first1MinCandleDateBuilder_.getMessage();
}
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
public Builder setFirst1MinCandleDate(com.google.protobuf.Timestamp value) {
if (first1MinCandleDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
first1MinCandleDate_ = value;
} else {
first1MinCandleDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
public Builder setFirst1MinCandleDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (first1MinCandleDateBuilder_ == null) {
first1MinCandleDate_ = builderForValue.build();
} else {
first1MinCandleDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
public Builder mergeFirst1MinCandleDate(com.google.protobuf.Timestamp value) {
if (first1MinCandleDateBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
first1MinCandleDate_ != null &&
first1MinCandleDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getFirst1MinCandleDateBuilder().mergeFrom(value);
} else {
first1MinCandleDate_ = value;
}
} else {
first1MinCandleDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
public Builder clearFirst1MinCandleDate() {
bitField0_ = (bitField0_ & ~0x00000800);
first1MinCandleDate_ = null;
if (first1MinCandleDateBuilder_ != null) {
first1MinCandleDateBuilder_.dispose();
first1MinCandleDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
public com.google.protobuf.Timestamp.Builder getFirst1MinCandleDateBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getFirst1MinCandleDateFieldBuilder().getBuilder();
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
public com.google.protobuf.TimestampOrBuilder getFirst1MinCandleDateOrBuilder() {
if (first1MinCandleDateBuilder_ != null) {
return first1MinCandleDateBuilder_.getMessageOrBuilder();
} else {
return first1MinCandleDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : first1MinCandleDate_;
}
}
/**
*
*Дата первой минутной свечи.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 26;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getFirst1MinCandleDateFieldBuilder() {
if (first1MinCandleDateBuilder_ == null) {
first1MinCandleDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getFirst1MinCandleDate(),
getParentForChildren(),
isClean());
first1MinCandleDate_ = null;
}
return first1MinCandleDateBuilder_;
}
private com.google.protobuf.Timestamp first1DayCandleDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> first1DayCandleDateBuilder_;
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
* @return Whether the first1dayCandleDate field is set.
*/
public boolean hasFirst1DayCandleDate() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
* @return The first1dayCandleDate.
*/
public com.google.protobuf.Timestamp getFirst1DayCandleDate() {
if (first1DayCandleDateBuilder_ == null) {
return first1DayCandleDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : first1DayCandleDate_;
} else {
return first1DayCandleDateBuilder_.getMessage();
}
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
public Builder setFirst1DayCandleDate(com.google.protobuf.Timestamp value) {
if (first1DayCandleDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
first1DayCandleDate_ = value;
} else {
first1DayCandleDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
public Builder setFirst1DayCandleDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (first1DayCandleDateBuilder_ == null) {
first1DayCandleDate_ = builderForValue.build();
} else {
first1DayCandleDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
public Builder mergeFirst1DayCandleDate(com.google.protobuf.Timestamp value) {
if (first1DayCandleDateBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
first1DayCandleDate_ != null &&
first1DayCandleDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getFirst1DayCandleDateBuilder().mergeFrom(value);
} else {
first1DayCandleDate_ = value;
}
} else {
first1DayCandleDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
public Builder clearFirst1DayCandleDate() {
bitField0_ = (bitField0_ & ~0x00001000);
first1DayCandleDate_ = null;
if (first1DayCandleDateBuilder_ != null) {
first1DayCandleDateBuilder_.dispose();
first1DayCandleDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
public com.google.protobuf.Timestamp.Builder getFirst1DayCandleDateBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getFirst1DayCandleDateFieldBuilder().getBuilder();
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
public com.google.protobuf.TimestampOrBuilder getFirst1DayCandleDateOrBuilder() {
if (first1DayCandleDateBuilder_ != null) {
return first1DayCandleDateBuilder_.getMessageOrBuilder();
} else {
return first1DayCandleDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : first1DayCandleDate_;
}
}
/**
*
*Дата первой дневной свечи.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 27;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getFirst1DayCandleDateFieldBuilder() {
if (first1DayCandleDateBuilder_ == null) {
first1DayCandleDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getFirst1DayCandleDate(),
getParentForChildren(),
isClean());
first1DayCandleDate_ = null;
}
return first1DayCandleDateBuilder_;
}
private boolean forQualInvestorFlag_ ;
/**
*
*Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
*
*
* bool for_qual_investor_flag = 28;
* @return The forQualInvestorFlag.
*/
@java.lang.Override
public boolean getForQualInvestorFlag() {
return forQualInvestorFlag_;
}
/**
*
*Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
*
*
* bool for_qual_investor_flag = 28;
* @param value The forQualInvestorFlag to set.
* @return This builder for chaining.
*/
public Builder setForQualInvestorFlag(boolean value) {
forQualInvestorFlag_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
*
*
* bool for_qual_investor_flag = 28;
* @return This builder for chaining.
*/
public Builder clearForQualInvestorFlag() {
bitField0_ = (bitField0_ & ~0x00002000);
forQualInvestorFlag_ = false;
onChanged();
return this;
}
private boolean weekendFlag_ ;
/**
*
*Флаг отображающий доступность торговли инструментом по выходным
*
*
* bool weekend_flag = 29;
* @return The weekendFlag.
*/
@java.lang.Override
public boolean getWeekendFlag() {
return weekendFlag_;
}
/**
*
*Флаг отображающий доступность торговли инструментом по выходным
*
*
* bool weekend_flag = 29;
* @param value The weekendFlag to set.
* @return This builder for chaining.
*/
public Builder setWeekendFlag(boolean value) {
weekendFlag_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Флаг отображающий доступность торговли инструментом по выходным
*
*
* bool weekend_flag = 29;
* @return This builder for chaining.
*/
public Builder clearWeekendFlag() {
bitField0_ = (bitField0_ & ~0x00004000);
weekendFlag_ = false;
onChanged();
return this;
}
private boolean blockedTcaFlag_ ;
/**
*
*Флаг заблокированного ТКС
*
*
* bool blocked_tca_flag = 30;
* @return The blockedTcaFlag.
*/
@java.lang.Override
public boolean getBlockedTcaFlag() {
return blockedTcaFlag_;
}
/**
*
*Флаг заблокированного ТКС
*
*
* bool blocked_tca_flag = 30;
* @param value The blockedTcaFlag to set.
* @return This builder for chaining.
*/
public Builder setBlockedTcaFlag(boolean value) {
blockedTcaFlag_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Флаг заблокированного ТКС
*
*
* bool blocked_tca_flag = 30;
* @return This builder for chaining.
*/
public Builder clearBlockedTcaFlag() {
bitField0_ = (bitField0_ & ~0x00008000);
blockedTcaFlag_ = false;
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.InstrumentShort)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.InstrumentShort)
private static final ru.tinkoff.piapi.contract.v1.InstrumentShort DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.InstrumentShort();
}
public static ru.tinkoff.piapi.contract.v1.InstrumentShort getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstrumentShort 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.InstrumentShort getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}