implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.Option)
ru.tinkoff.piapi.contract.v1.OptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_Option_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_Option_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.Option.class, ru.tinkoff.piapi.contract.v1.Option.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.Option.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bitField1_ = 0;
uid_ = "";
positionUid_ = "";
ticker_ = "";
classCode_ = "";
basicAssetPositionUid_ = "";
tradingStatus_ = 0;
realExchange_ = 0;
direction_ = 0;
paymentType_ = 0;
style_ = 0;
settlementType_ = 0;
name_ = "";
currency_ = "";
settlementCurrency_ = "";
assetType_ = "";
basicAsset_ = "";
exchange_ = "";
countryOfRisk_ = "";
countryOfRiskName_ = "";
sector_ = "";
lot_ = 0;
basicAssetSize_ = null;
if (basicAssetSizeBuilder_ != null) {
basicAssetSizeBuilder_.dispose();
basicAssetSizeBuilder_ = null;
}
klong_ = null;
if (klongBuilder_ != null) {
klongBuilder_.dispose();
klongBuilder_ = null;
}
kshort_ = null;
if (kshortBuilder_ != null) {
kshortBuilder_.dispose();
kshortBuilder_ = null;
}
dlong_ = null;
if (dlongBuilder_ != null) {
dlongBuilder_.dispose();
dlongBuilder_ = null;
}
dshort_ = null;
if (dshortBuilder_ != null) {
dshortBuilder_.dispose();
dshortBuilder_ = null;
}
dlongMin_ = null;
if (dlongMinBuilder_ != null) {
dlongMinBuilder_.dispose();
dlongMinBuilder_ = null;
}
dshortMin_ = null;
if (dshortMinBuilder_ != null) {
dshortMinBuilder_.dispose();
dshortMinBuilder_ = null;
}
minPriceIncrement_ = null;
if (minPriceIncrementBuilder_ != null) {
minPriceIncrementBuilder_.dispose();
minPriceIncrementBuilder_ = null;
}
strikePrice_ = null;
if (strikePriceBuilder_ != null) {
strikePriceBuilder_.dispose();
strikePriceBuilder_ = null;
}
expirationDate_ = null;
if (expirationDateBuilder_ != null) {
expirationDateBuilder_.dispose();
expirationDateBuilder_ = null;
}
firstTradeDate_ = null;
if (firstTradeDateBuilder_ != null) {
firstTradeDateBuilder_.dispose();
firstTradeDateBuilder_ = null;
}
lastTradeDate_ = null;
if (lastTradeDateBuilder_ != null) {
lastTradeDateBuilder_.dispose();
lastTradeDateBuilder_ = null;
}
first1MinCandleDate_ = null;
if (first1MinCandleDateBuilder_ != null) {
first1MinCandleDateBuilder_.dispose();
first1MinCandleDateBuilder_ = null;
}
first1DayCandleDate_ = null;
if (first1DayCandleDateBuilder_ != null) {
first1DayCandleDateBuilder_.dispose();
first1DayCandleDateBuilder_ = null;
}
shortEnabledFlag_ = false;
forIisFlag_ = false;
otcFlag_ = false;
buyAvailableFlag_ = false;
sellAvailableFlag_ = false;
forQualInvestorFlag_ = false;
weekendFlag_ = false;
blockedTcaFlag_ = false;
apiTradeAvailableFlag_ = 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_Option_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Option getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.Option.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Option build() {
ru.tinkoff.piapi.contract.v1.Option result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Option buildPartial() {
ru.tinkoff.piapi.contract.v1.Option result = new ru.tinkoff.piapi.contract.v1.Option(this);
if (bitField0_ != 0) { buildPartial0(result); }
if (bitField1_ != 0) { buildPartial1(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.Option result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.positionUid_ = positionUid_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ticker_ = ticker_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.classCode_ = classCode_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.basicAssetPositionUid_ = basicAssetPositionUid_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.tradingStatus_ = tradingStatus_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.realExchange_ = realExchange_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.direction_ = direction_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.paymentType_ = paymentType_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.style_ = style_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.settlementType_ = settlementType_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.currency_ = currency_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.settlementCurrency_ = settlementCurrency_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.assetType_ = assetType_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.basicAsset_ = basicAsset_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.exchange_ = exchange_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.countryOfRisk_ = countryOfRisk_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.countryOfRiskName_ = countryOfRiskName_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.sector_ = sector_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.lot_ = lot_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.basicAssetSize_ = basicAssetSizeBuilder_ == null
? basicAssetSize_
: basicAssetSizeBuilder_.build();
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.klong_ = klongBuilder_ == null
? klong_
: klongBuilder_.build();
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.kshort_ = kshortBuilder_ == null
? kshort_
: kshortBuilder_.build();
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.dlong_ = dlongBuilder_ == null
? dlong_
: dlongBuilder_.build();
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.dshort_ = dshortBuilder_ == null
? dshort_
: dshortBuilder_.build();
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.dlongMin_ = dlongMinBuilder_ == null
? dlongMin_
: dlongMinBuilder_.build();
}
if (((from_bitField0_ & 0x08000000) != 0)) {
result.dshortMin_ = dshortMinBuilder_ == null
? dshortMin_
: dshortMinBuilder_.build();
}
if (((from_bitField0_ & 0x10000000) != 0)) {
result.minPriceIncrement_ = minPriceIncrementBuilder_ == null
? minPriceIncrement_
: minPriceIncrementBuilder_.build();
}
if (((from_bitField0_ & 0x20000000) != 0)) {
result.strikePrice_ = strikePriceBuilder_ == null
? strikePrice_
: strikePriceBuilder_.build();
}
if (((from_bitField0_ & 0x40000000) != 0)) {
result.expirationDate_ = expirationDateBuilder_ == null
? expirationDate_
: expirationDateBuilder_.build();
}
if (((from_bitField0_ & 0x80000000) != 0)) {
result.firstTradeDate_ = firstTradeDateBuilder_ == null
? firstTradeDate_
: firstTradeDateBuilder_.build();
}
}
private void buildPartial1(ru.tinkoff.piapi.contract.v1.Option result) {
int from_bitField1_ = bitField1_;
if (((from_bitField1_ & 0x00000001) != 0)) {
result.lastTradeDate_ = lastTradeDateBuilder_ == null
? lastTradeDate_
: lastTradeDateBuilder_.build();
}
if (((from_bitField1_ & 0x00000002) != 0)) {
result.first1MinCandleDate_ = first1MinCandleDateBuilder_ == null
? first1MinCandleDate_
: first1MinCandleDateBuilder_.build();
}
if (((from_bitField1_ & 0x00000004) != 0)) {
result.first1DayCandleDate_ = first1DayCandleDateBuilder_ == null
? first1DayCandleDate_
: first1DayCandleDateBuilder_.build();
}
if (((from_bitField1_ & 0x00000008) != 0)) {
result.shortEnabledFlag_ = shortEnabledFlag_;
}
if (((from_bitField1_ & 0x00000010) != 0)) {
result.forIisFlag_ = forIisFlag_;
}
if (((from_bitField1_ & 0x00000020) != 0)) {
result.otcFlag_ = otcFlag_;
}
if (((from_bitField1_ & 0x00000040) != 0)) {
result.buyAvailableFlag_ = buyAvailableFlag_;
}
if (((from_bitField1_ & 0x00000080) != 0)) {
result.sellAvailableFlag_ = sellAvailableFlag_;
}
if (((from_bitField1_ & 0x00000100) != 0)) {
result.forQualInvestorFlag_ = forQualInvestorFlag_;
}
if (((from_bitField1_ & 0x00000200) != 0)) {
result.weekendFlag_ = weekendFlag_;
}
if (((from_bitField1_ & 0x00000400) != 0)) {
result.blockedTcaFlag_ = blockedTcaFlag_;
}
if (((from_bitField1_ & 0x00000800) != 0)) {
result.apiTradeAvailableFlag_ = apiTradeAvailableFlag_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.Option) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.Option)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.Option other) {
if (other == ru.tinkoff.piapi.contract.v1.Option.getDefaultInstance()) return this;
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getPositionUid().isEmpty()) {
positionUid_ = other.positionUid_;
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.getBasicAssetPositionUid().isEmpty()) {
basicAssetPositionUid_ = other.basicAssetPositionUid_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.tradingStatus_ != 0) {
setTradingStatusValue(other.getTradingStatusValue());
}
if (other.realExchange_ != 0) {
setRealExchangeValue(other.getRealExchangeValue());
}
if (other.direction_ != 0) {
setDirectionValue(other.getDirectionValue());
}
if (other.paymentType_ != 0) {
setPaymentTypeValue(other.getPaymentTypeValue());
}
if (other.style_ != 0) {
setStyleValue(other.getStyleValue());
}
if (other.settlementType_ != 0) {
setSettlementTypeValue(other.getSettlementTypeValue());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000800;
onChanged();
}
if (!other.getCurrency().isEmpty()) {
currency_ = other.currency_;
bitField0_ |= 0x00001000;
onChanged();
}
if (!other.getSettlementCurrency().isEmpty()) {
settlementCurrency_ = other.settlementCurrency_;
bitField0_ |= 0x00002000;
onChanged();
}
if (!other.getAssetType().isEmpty()) {
assetType_ = other.assetType_;
bitField0_ |= 0x00004000;
onChanged();
}
if (!other.getBasicAsset().isEmpty()) {
basicAsset_ = other.basicAsset_;
bitField0_ |= 0x00008000;
onChanged();
}
if (!other.getExchange().isEmpty()) {
exchange_ = other.exchange_;
bitField0_ |= 0x00010000;
onChanged();
}
if (!other.getCountryOfRisk().isEmpty()) {
countryOfRisk_ = other.countryOfRisk_;
bitField0_ |= 0x00020000;
onChanged();
}
if (!other.getCountryOfRiskName().isEmpty()) {
countryOfRiskName_ = other.countryOfRiskName_;
bitField0_ |= 0x00040000;
onChanged();
}
if (!other.getSector().isEmpty()) {
sector_ = other.sector_;
bitField0_ |= 0x00080000;
onChanged();
}
if (other.getLot() != 0) {
setLot(other.getLot());
}
if (other.hasBasicAssetSize()) {
mergeBasicAssetSize(other.getBasicAssetSize());
}
if (other.hasKlong()) {
mergeKlong(other.getKlong());
}
if (other.hasKshort()) {
mergeKshort(other.getKshort());
}
if (other.hasDlong()) {
mergeDlong(other.getDlong());
}
if (other.hasDshort()) {
mergeDshort(other.getDshort());
}
if (other.hasDlongMin()) {
mergeDlongMin(other.getDlongMin());
}
if (other.hasDshortMin()) {
mergeDshortMin(other.getDshortMin());
}
if (other.hasMinPriceIncrement()) {
mergeMinPriceIncrement(other.getMinPriceIncrement());
}
if (other.hasStrikePrice()) {
mergeStrikePrice(other.getStrikePrice());
}
if (other.hasExpirationDate()) {
mergeExpirationDate(other.getExpirationDate());
}
if (other.hasFirstTradeDate()) {
mergeFirstTradeDate(other.getFirstTradeDate());
}
if (other.hasLastTradeDate()) {
mergeLastTradeDate(other.getLastTradeDate());
}
if (other.hasFirst1MinCandleDate()) {
mergeFirst1MinCandleDate(other.getFirst1MinCandleDate());
}
if (other.hasFirst1DayCandleDate()) {
mergeFirst1DayCandleDate(other.getFirst1DayCandleDate());
}
if (other.getShortEnabledFlag() != false) {
setShortEnabledFlag(other.getShortEnabledFlag());
}
if (other.getForIisFlag() != false) {
setForIisFlag(other.getForIisFlag());
}
if (other.getOtcFlag() != false) {
setOtcFlag(other.getOtcFlag());
}
if (other.getBuyAvailableFlag() != false) {
setBuyAvailableFlag(other.getBuyAvailableFlag());
}
if (other.getSellAvailableFlag() != false) {
setSellAvailableFlag(other.getSellAvailableFlag());
}
if (other.getForQualInvestorFlag() != false) {
setForQualInvestorFlag(other.getForQualInvestorFlag());
}
if (other.getWeekendFlag() != false) {
setWeekendFlag(other.getWeekendFlag());
}
if (other.getBlockedTcaFlag() != false) {
setBlockedTcaFlag(other.getBlockedTcaFlag());
}
if (other.getApiTradeAvailableFlag() != false) {
setApiTradeAvailableFlag(other.getApiTradeAvailableFlag());
}
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: {
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
positionUid_ = 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: {
basicAssetPositionUid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 168: {
tradingStatus_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 168
case 248: {
realExchange_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 248
case 328: {
direction_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 328
case 336: {
paymentType_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 336
case 344: {
style_ = input.readEnum();
bitField0_ |= 0x00000200;
break;
} // case 344
case 352: {
settlementType_ = input.readEnum();
bitField0_ |= 0x00000400;
break;
} // case 352
case 810: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 810
case 890: {
currency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00001000;
break;
} // case 890
case 898: {
settlementCurrency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 898
case 1050: {
assetType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 1050
case 1058: {
basicAsset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 1058
case 1130: {
exchange_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 1130
case 1210: {
countryOfRisk_ = input.readStringRequireUtf8();
bitField0_ |= 0x00020000;
break;
} // case 1210
case 1218: {
countryOfRiskName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00040000;
break;
} // case 1218
case 1290: {
sector_ = input.readStringRequireUtf8();
bitField0_ |= 0x00080000;
break;
} // case 1290
case 1608: {
lot_ = input.readInt32();
bitField0_ |= 0x00100000;
break;
} // case 1608
case 1690: {
input.readMessage(
getBasicAssetSizeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00200000;
break;
} // case 1690
case 1770: {
input.readMessage(
getKlongFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00400000;
break;
} // case 1770
case 1778: {
input.readMessage(
getKshortFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00800000;
break;
} // case 1778
case 1786: {
input.readMessage(
getDlongFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x01000000;
break;
} // case 1786
case 1794: {
input.readMessage(
getDshortFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x02000000;
break;
} // case 1794
case 1802: {
input.readMessage(
getDlongMinFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x04000000;
break;
} // case 1802
case 1810: {
input.readMessage(
getDshortMinFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x08000000;
break;
} // case 1810
case 1850: {
input.readMessage(
getMinPriceIncrementFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x10000000;
break;
} // case 1850
case 1930: {
input.readMessage(
getStrikePriceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x20000000;
break;
} // case 1930
case 2410: {
input.readMessage(
getExpirationDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x40000000;
break;
} // case 2410
case 2490: {
input.readMessage(
getFirstTradeDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x80000000;
break;
} // case 2490
case 2498: {
input.readMessage(
getLastTradeDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000001;
break;
} // case 2498
case 2570: {
input.readMessage(
getFirst1MinCandleDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000002;
break;
} // case 2570
case 2578: {
input.readMessage(
getFirst1DayCandleDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000004;
break;
} // case 2578
case 3208: {
shortEnabledFlag_ = input.readBool();
bitField1_ |= 0x00000008;
break;
} // case 3208
case 3216: {
forIisFlag_ = input.readBool();
bitField1_ |= 0x00000010;
break;
} // case 3216
case 3224: {
otcFlag_ = input.readBool();
bitField1_ |= 0x00000020;
break;
} // case 3224
case 3232: {
buyAvailableFlag_ = input.readBool();
bitField1_ |= 0x00000040;
break;
} // case 3232
case 3240: {
sellAvailableFlag_ = input.readBool();
bitField1_ |= 0x00000080;
break;
} // case 3240
case 3248: {
forQualInvestorFlag_ = input.readBool();
bitField1_ |= 0x00000100;
break;
} // case 3248
case 3256: {
weekendFlag_ = input.readBool();
bitField1_ |= 0x00000200;
break;
} // case 3256
case 3264: {
blockedTcaFlag_ = input.readBool();
bitField1_ |= 0x00000400;
break;
} // case 3264
case 3272: {
apiTradeAvailableFlag_ = input.readBool();
bitField1_ |= 0x00000800;
break;
} // case 3272
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 int bitField1_;
private java.lang.Object uid_ = "";
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 1;
* @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 = 1;
* @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 = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 1;
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Уникальный идентификатор инструмента.
*
*
* string uid = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object positionUid_ = "";
/**
*
*Уникальный идентификатор позиции.
*
*
* string position_uid = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Уникальный идентификатор позиции.
*
*
* string position_uid = 2;
* @return This builder for chaining.
*/
public Builder clearPositionUid() {
positionUid_ = getDefaultInstance().getPositionUid();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*Уникальный идентификатор позиции.
*
*
* string position_uid = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object 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;
}
}
/**
*
*Тикер инструмента.
*
*
* 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;
}
}
/**
*
*Тикер инструмента.
*
*
* 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;
}
/**
*
*Тикер инструмента.
*
*
* string ticker = 3;
* @return This builder for chaining.
*/
public Builder clearTicker() {
ticker_ = getDefaultInstance().getTicker();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*Тикер инструмента.
*
*
* 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_ = "";
/**
*
*Класс-код.
*
*
* 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;
}
}
/**
*
*Класс-код.
*
*
* 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;
}
}
/**
*
*Класс-код.
*
*
* 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;
}
/**
*
*Класс-код.
*
*
* string class_code = 4;
* @return This builder for chaining.
*/
public Builder clearClassCode() {
classCode_ = getDefaultInstance().getClassCode();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*Класс-код.
*
*
* 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 basicAssetPositionUid_ = "";
/**
*
*Уникальный идентификатор позиции основного инструмента.
*
*
* string basic_asset_position_uid = 5;
* @return The basicAssetPositionUid.
*/
public java.lang.String getBasicAssetPositionUid() {
java.lang.Object ref = basicAssetPositionUid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
basicAssetPositionUid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Уникальный идентификатор позиции основного инструмента.
*
*
* string basic_asset_position_uid = 5;
* @return The bytes for basicAssetPositionUid.
*/
public com.google.protobuf.ByteString
getBasicAssetPositionUidBytes() {
java.lang.Object ref = basicAssetPositionUid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
basicAssetPositionUid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Уникальный идентификатор позиции основного инструмента.
*
*
* string basic_asset_position_uid = 5;
* @param value The basicAssetPositionUid to set.
* @return This builder for chaining.
*/
public Builder setBasicAssetPositionUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
basicAssetPositionUid_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Уникальный идентификатор позиции основного инструмента.
*
*
* string basic_asset_position_uid = 5;
* @return This builder for chaining.
*/
public Builder clearBasicAssetPositionUid() {
basicAssetPositionUid_ = getDefaultInstance().getBasicAssetPositionUid();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Уникальный идентификатор позиции основного инструмента.
*
*
* string basic_asset_position_uid = 5;
* @param value The bytes for basicAssetPositionUid to set.
* @return This builder for chaining.
*/
public Builder setBasicAssetPositionUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
basicAssetPositionUid_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private int tradingStatus_ = 0;
/**
*
*Текущий режим торгов инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.SecurityTradingStatus trading_status = 21;
* @return The enum numeric value on the wire for tradingStatus.
*/
@java.lang.Override public int getTradingStatusValue() {
return tradingStatus_;
}
/**
*
*Текущий режим торгов инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.SecurityTradingStatus trading_status = 21;
* @param value The enum numeric value on the wire for tradingStatus to set.
* @return This builder for chaining.
*/
public Builder setTradingStatusValue(int value) {
tradingStatus_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Текущий режим торгов инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.SecurityTradingStatus trading_status = 21;
* @return The tradingStatus.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.SecurityTradingStatus getTradingStatus() {
ru.tinkoff.piapi.contract.v1.SecurityTradingStatus result = ru.tinkoff.piapi.contract.v1.SecurityTradingStatus.forNumber(tradingStatus_);
return result == null ? ru.tinkoff.piapi.contract.v1.SecurityTradingStatus.UNRECOGNIZED : result;
}
/**
*
*Текущий режим торгов инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.SecurityTradingStatus trading_status = 21;
* @param value The tradingStatus to set.
* @return This builder for chaining.
*/
public Builder setTradingStatus(ru.tinkoff.piapi.contract.v1.SecurityTradingStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
tradingStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Текущий режим торгов инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.SecurityTradingStatus trading_status = 21;
* @return This builder for chaining.
*/
public Builder clearTradingStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
tradingStatus_ = 0;
onChanged();
return this;
}
private int realExchange_ = 0;
/**
*
*Реальная площадка исполнения расчётов (биржа). Допустимые значения: [REAL_EXCHANGE_MOEX, REAL_EXCHANGE_RTS]
*
*
* .tinkoff.public.invest.api.contract.v1.RealExchange real_exchange = 31;
* @return The enum numeric value on the wire for realExchange.
*/
@java.lang.Override public int getRealExchangeValue() {
return realExchange_;
}
/**
*
*Реальная площадка исполнения расчётов (биржа). Допустимые значения: [REAL_EXCHANGE_MOEX, REAL_EXCHANGE_RTS]
*
*
* .tinkoff.public.invest.api.contract.v1.RealExchange real_exchange = 31;
* @param value The enum numeric value on the wire for realExchange to set.
* @return This builder for chaining.
*/
public Builder setRealExchangeValue(int value) {
realExchange_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Реальная площадка исполнения расчётов (биржа). Допустимые значения: [REAL_EXCHANGE_MOEX, REAL_EXCHANGE_RTS]
*
*
* .tinkoff.public.invest.api.contract.v1.RealExchange real_exchange = 31;
* @return The realExchange.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.RealExchange getRealExchange() {
ru.tinkoff.piapi.contract.v1.RealExchange result = ru.tinkoff.piapi.contract.v1.RealExchange.forNumber(realExchange_);
return result == null ? ru.tinkoff.piapi.contract.v1.RealExchange.UNRECOGNIZED : result;
}
/**
*
*Реальная площадка исполнения расчётов (биржа). Допустимые значения: [REAL_EXCHANGE_MOEX, REAL_EXCHANGE_RTS]
*
*
* .tinkoff.public.invest.api.contract.v1.RealExchange real_exchange = 31;
* @param value The realExchange to set.
* @return This builder for chaining.
*/
public Builder setRealExchange(ru.tinkoff.piapi.contract.v1.RealExchange value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
realExchange_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Реальная площадка исполнения расчётов (биржа). Допустимые значения: [REAL_EXCHANGE_MOEX, REAL_EXCHANGE_RTS]
*
*
* .tinkoff.public.invest.api.contract.v1.RealExchange real_exchange = 31;
* @return This builder for chaining.
*/
public Builder clearRealExchange() {
bitField0_ = (bitField0_ & ~0x00000040);
realExchange_ = 0;
onChanged();
return this;
}
private int direction_ = 0;
/**
*
*Направление опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionDirection direction = 41;
* @return The enum numeric value on the wire for direction.
*/
@java.lang.Override public int getDirectionValue() {
return direction_;
}
/**
*
*Направление опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionDirection direction = 41;
* @param value The enum numeric value on the wire for direction to set.
* @return This builder for chaining.
*/
public Builder setDirectionValue(int value) {
direction_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Направление опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionDirection direction = 41;
* @return The direction.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OptionDirection getDirection() {
ru.tinkoff.piapi.contract.v1.OptionDirection result = ru.tinkoff.piapi.contract.v1.OptionDirection.forNumber(direction_);
return result == null ? ru.tinkoff.piapi.contract.v1.OptionDirection.UNRECOGNIZED : result;
}
/**
*
*Направление опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionDirection direction = 41;
* @param value The direction to set.
* @return This builder for chaining.
*/
public Builder setDirection(ru.tinkoff.piapi.contract.v1.OptionDirection value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
direction_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Направление опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionDirection direction = 41;
* @return This builder for chaining.
*/
public Builder clearDirection() {
bitField0_ = (bitField0_ & ~0x00000080);
direction_ = 0;
onChanged();
return this;
}
private int paymentType_ = 0;
/**
*
*Тип расчетов по опциону.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionPaymentType payment_type = 42;
* @return The enum numeric value on the wire for paymentType.
*/
@java.lang.Override public int getPaymentTypeValue() {
return paymentType_;
}
/**
*
*Тип расчетов по опциону.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionPaymentType payment_type = 42;
* @param value The enum numeric value on the wire for paymentType to set.
* @return This builder for chaining.
*/
public Builder setPaymentTypeValue(int value) {
paymentType_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Тип расчетов по опциону.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionPaymentType payment_type = 42;
* @return The paymentType.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OptionPaymentType getPaymentType() {
ru.tinkoff.piapi.contract.v1.OptionPaymentType result = ru.tinkoff.piapi.contract.v1.OptionPaymentType.forNumber(paymentType_);
return result == null ? ru.tinkoff.piapi.contract.v1.OptionPaymentType.UNRECOGNIZED : result;
}
/**
*
*Тип расчетов по опциону.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionPaymentType payment_type = 42;
* @param value The paymentType to set.
* @return This builder for chaining.
*/
public Builder setPaymentType(ru.tinkoff.piapi.contract.v1.OptionPaymentType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
paymentType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Тип расчетов по опциону.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionPaymentType payment_type = 42;
* @return This builder for chaining.
*/
public Builder clearPaymentType() {
bitField0_ = (bitField0_ & ~0x00000100);
paymentType_ = 0;
onChanged();
return this;
}
private int style_ = 0;
/**
*
*Стиль опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionStyle style = 43;
* @return The enum numeric value on the wire for style.
*/
@java.lang.Override public int getStyleValue() {
return style_;
}
/**
*
*Стиль опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionStyle style = 43;
* @param value The enum numeric value on the wire for style to set.
* @return This builder for chaining.
*/
public Builder setStyleValue(int value) {
style_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Стиль опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionStyle style = 43;
* @return The style.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OptionStyle getStyle() {
ru.tinkoff.piapi.contract.v1.OptionStyle result = ru.tinkoff.piapi.contract.v1.OptionStyle.forNumber(style_);
return result == null ? ru.tinkoff.piapi.contract.v1.OptionStyle.UNRECOGNIZED : result;
}
/**
*
*Стиль опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionStyle style = 43;
* @param value The style to set.
* @return This builder for chaining.
*/
public Builder setStyle(ru.tinkoff.piapi.contract.v1.OptionStyle value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
style_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Стиль опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionStyle style = 43;
* @return This builder for chaining.
*/
public Builder clearStyle() {
bitField0_ = (bitField0_ & ~0x00000200);
style_ = 0;
onChanged();
return this;
}
private int settlementType_ = 0;
/**
*
*Способ исполнения опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionSettlementType settlement_type = 44;
* @return The enum numeric value on the wire for settlementType.
*/
@java.lang.Override public int getSettlementTypeValue() {
return settlementType_;
}
/**
*
*Способ исполнения опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionSettlementType settlement_type = 44;
* @param value The enum numeric value on the wire for settlementType to set.
* @return This builder for chaining.
*/
public Builder setSettlementTypeValue(int value) {
settlementType_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Способ исполнения опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionSettlementType settlement_type = 44;
* @return The settlementType.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OptionSettlementType getSettlementType() {
ru.tinkoff.piapi.contract.v1.OptionSettlementType result = ru.tinkoff.piapi.contract.v1.OptionSettlementType.forNumber(settlementType_);
return result == null ? ru.tinkoff.piapi.contract.v1.OptionSettlementType.UNRECOGNIZED : result;
}
/**
*
*Способ исполнения опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionSettlementType settlement_type = 44;
* @param value The settlementType to set.
* @return This builder for chaining.
*/
public Builder setSettlementType(ru.tinkoff.piapi.contract.v1.OptionSettlementType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
settlementType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Способ исполнения опциона.
*
*
* .tinkoff.public.invest.api.contract.v1.OptionSettlementType settlement_type = 44;
* @return This builder for chaining.
*/
public Builder clearSettlementType() {
bitField0_ = (bitField0_ & ~0x00000400);
settlementType_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*Название инструмента.
*
*
* string name = 101;
* @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 = 101;
* @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 = 101;
* @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_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Название инструмента.
*
*
* string name = 101;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*Название инструмента.
*
*
* string name = 101;
* @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_ |= 0x00000800;
onChanged();
return this;
}
private java.lang.Object currency_ = "";
/**
*
*Валюта.
*
*
* string currency = 111;
* @return The currency.
*/
public java.lang.String getCurrency() {
java.lang.Object ref = currency_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currency_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Валюта.
*
*
* string currency = 111;
* @return The bytes for currency.
*/
public com.google.protobuf.ByteString
getCurrencyBytes() {
java.lang.Object ref = currency_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currency_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Валюта.
*
*
* string currency = 111;
* @param value The currency to set.
* @return This builder for chaining.
*/
public Builder setCurrency(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
currency_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Валюта.
*
*
* string currency = 111;
* @return This builder for chaining.
*/
public Builder clearCurrency() {
currency_ = getDefaultInstance().getCurrency();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
*Валюта.
*
*
* string currency = 111;
* @param value The bytes for currency to set.
* @return This builder for chaining.
*/
public Builder setCurrencyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
currency_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private java.lang.Object settlementCurrency_ = "";
/**
*
*Валюта, в которой оценивается контракт.
*
*
* string settlement_currency = 112;
* @return The settlementCurrency.
*/
public java.lang.String getSettlementCurrency() {
java.lang.Object ref = settlementCurrency_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
settlementCurrency_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Валюта, в которой оценивается контракт.
*
*
* string settlement_currency = 112;
* @return The bytes for settlementCurrency.
*/
public com.google.protobuf.ByteString
getSettlementCurrencyBytes() {
java.lang.Object ref = settlementCurrency_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
settlementCurrency_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Валюта, в которой оценивается контракт.
*
*
* string settlement_currency = 112;
* @param value The settlementCurrency to set.
* @return This builder for chaining.
*/
public Builder setSettlementCurrency(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
settlementCurrency_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Валюта, в которой оценивается контракт.
*
*
* string settlement_currency = 112;
* @return This builder for chaining.
*/
public Builder clearSettlementCurrency() {
settlementCurrency_ = getDefaultInstance().getSettlementCurrency();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
*
*Валюта, в которой оценивается контракт.
*
*
* string settlement_currency = 112;
* @param value The bytes for settlementCurrency to set.
* @return This builder for chaining.
*/
public Builder setSettlementCurrencyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
settlementCurrency_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private java.lang.Object assetType_ = "";
/**
*
*Тип актива.
*
*
* string asset_type = 131;
* @return The assetType.
*/
public java.lang.String getAssetType() {
java.lang.Object ref = assetType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
assetType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Тип актива.
*
*
* string asset_type = 131;
* @return The bytes for assetType.
*/
public com.google.protobuf.ByteString
getAssetTypeBytes() {
java.lang.Object ref = assetType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
assetType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Тип актива.
*
*
* string asset_type = 131;
* @param value The assetType to set.
* @return This builder for chaining.
*/
public Builder setAssetType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
assetType_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Тип актива.
*
*
* string asset_type = 131;
* @return This builder for chaining.
*/
public Builder clearAssetType() {
assetType_ = getDefaultInstance().getAssetType();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
*Тип актива.
*
*
* string asset_type = 131;
* @param value The bytes for assetType to set.
* @return This builder for chaining.
*/
public Builder setAssetTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
assetType_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
private java.lang.Object basicAsset_ = "";
/**
*
*Основной актив.
*
*
* string basic_asset = 132;
* @return The basicAsset.
*/
public java.lang.String getBasicAsset() {
java.lang.Object ref = basicAsset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
basicAsset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Основной актив.
*
*
* string basic_asset = 132;
* @return The bytes for basicAsset.
*/
public com.google.protobuf.ByteString
getBasicAssetBytes() {
java.lang.Object ref = basicAsset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
basicAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Основной актив.
*
*
* string basic_asset = 132;
* @param value The basicAsset to set.
* @return This builder for chaining.
*/
public Builder setBasicAsset(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
basicAsset_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Основной актив.
*
*
* string basic_asset = 132;
* @return This builder for chaining.
*/
public Builder clearBasicAsset() {
basicAsset_ = getDefaultInstance().getBasicAsset();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
*
*Основной актив.
*
*
* string basic_asset = 132;
* @param value The bytes for basicAsset to set.
* @return This builder for chaining.
*/
public Builder setBasicAssetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
basicAsset_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
private java.lang.Object exchange_ = "";
/**
*
* Tорговая площадка (секция биржи).
*
*
* string exchange = 141;
* @return The exchange.
*/
public java.lang.String getExchange() {
java.lang.Object ref = exchange_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
exchange_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Tорговая площадка (секция биржи).
*
*
* string exchange = 141;
* @return The bytes for exchange.
*/
public com.google.protobuf.ByteString
getExchangeBytes() {
java.lang.Object ref = exchange_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exchange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Tорговая площадка (секция биржи).
*
*
* string exchange = 141;
* @param value The exchange to set.
* @return This builder for chaining.
*/
public Builder setExchange(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
exchange_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
* Tорговая площадка (секция биржи).
*
*
* string exchange = 141;
* @return This builder for chaining.
*/
public Builder clearExchange() {
exchange_ = getDefaultInstance().getExchange();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
*
* Tорговая площадка (секция биржи).
*
*
* string exchange = 141;
* @param value The bytes for exchange to set.
* @return This builder for chaining.
*/
public Builder setExchangeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
exchange_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private java.lang.Object countryOfRisk_ = "";
/**
*
*Код страны рисков.
*
*
* string country_of_risk = 151;
* @return The countryOfRisk.
*/
public java.lang.String getCountryOfRisk() {
java.lang.Object ref = countryOfRisk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryOfRisk_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Код страны рисков.
*
*
* string country_of_risk = 151;
* @return The bytes for countryOfRisk.
*/
public com.google.protobuf.ByteString
getCountryOfRiskBytes() {
java.lang.Object ref = countryOfRisk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryOfRisk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Код страны рисков.
*
*
* string country_of_risk = 151;
* @param value The countryOfRisk to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRisk(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
countryOfRisk_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Код страны рисков.
*
*
* string country_of_risk = 151;
* @return This builder for chaining.
*/
public Builder clearCountryOfRisk() {
countryOfRisk_ = getDefaultInstance().getCountryOfRisk();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
*
*Код страны рисков.
*
*
* string country_of_risk = 151;
* @param value The bytes for countryOfRisk to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRiskBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
countryOfRisk_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
private java.lang.Object countryOfRiskName_ = "";
/**
*
*Наименование страны рисков.
*
*
* string country_of_risk_name = 152;
* @return The countryOfRiskName.
*/
public java.lang.String getCountryOfRiskName() {
java.lang.Object ref = countryOfRiskName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryOfRiskName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Наименование страны рисков.
*
*
* string country_of_risk_name = 152;
* @return The bytes for countryOfRiskName.
*/
public com.google.protobuf.ByteString
getCountryOfRiskNameBytes() {
java.lang.Object ref = countryOfRiskName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryOfRiskName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Наименование страны рисков.
*
*
* string country_of_risk_name = 152;
* @param value The countryOfRiskName to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRiskName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
countryOfRiskName_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*Наименование страны рисков.
*
*
* string country_of_risk_name = 152;
* @return This builder for chaining.
*/
public Builder clearCountryOfRiskName() {
countryOfRiskName_ = getDefaultInstance().getCountryOfRiskName();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
*
*Наименование страны рисков.
*
*
* string country_of_risk_name = 152;
* @param value The bytes for countryOfRiskName to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRiskNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
countryOfRiskName_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
private java.lang.Object sector_ = "";
/**
*
*Сектор экономики.
*
*
* string sector = 161;
* @return The sector.
*/
public java.lang.String getSector() {
java.lang.Object ref = sector_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sector_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Сектор экономики.
*
*
* string sector = 161;
* @return The bytes for sector.
*/
public com.google.protobuf.ByteString
getSectorBytes() {
java.lang.Object ref = sector_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sector_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Сектор экономики.
*
*
* string sector = 161;
* @param value The sector to set.
* @return This builder for chaining.
*/
public Builder setSector(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sector_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*Сектор экономики.
*
*
* string sector = 161;
* @return This builder for chaining.
*/
public Builder clearSector() {
sector_ = getDefaultInstance().getSector();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
/**
*
*Сектор экономики.
*
*
* string sector = 161;
* @param value The bytes for sector to set.
* @return This builder for chaining.
*/
public Builder setSectorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sector_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
private int lot_ ;
/**
*
*Количество бумаг в лоте.
*
*
* int32 lot = 201;
* @return The lot.
*/
@java.lang.Override
public int getLot() {
return lot_;
}
/**
*
*Количество бумаг в лоте.
*
*
* int32 lot = 201;
* @param value The lot to set.
* @return This builder for chaining.
*/
public Builder setLot(int value) {
lot_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*Количество бумаг в лоте.
*
*
* int32 lot = 201;
* @return This builder for chaining.
*/
public Builder clearLot() {
bitField0_ = (bitField0_ & ~0x00100000);
lot_ = 0;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation basicAssetSize_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> basicAssetSizeBuilder_;
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
* @return Whether the basicAssetSize field is set.
*/
public boolean hasBasicAssetSize() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
* @return The basicAssetSize.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getBasicAssetSize() {
if (basicAssetSizeBuilder_ == null) {
return basicAssetSize_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : basicAssetSize_;
} else {
return basicAssetSizeBuilder_.getMessage();
}
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
*/
public Builder setBasicAssetSize(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (basicAssetSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
basicAssetSize_ = value;
} else {
basicAssetSizeBuilder_.setMessage(value);
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
*/
public Builder setBasicAssetSize(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (basicAssetSizeBuilder_ == null) {
basicAssetSize_ = builderForValue.build();
} else {
basicAssetSizeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
*/
public Builder mergeBasicAssetSize(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (basicAssetSizeBuilder_ == null) {
if (((bitField0_ & 0x00200000) != 0) &&
basicAssetSize_ != null &&
basicAssetSize_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getBasicAssetSizeBuilder().mergeFrom(value);
} else {
basicAssetSize_ = value;
}
} else {
basicAssetSizeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
*/
public Builder clearBasicAssetSize() {
bitField0_ = (bitField0_ & ~0x00200000);
basicAssetSize_ = null;
if (basicAssetSizeBuilder_ != null) {
basicAssetSizeBuilder_.dispose();
basicAssetSizeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getBasicAssetSizeBuilder() {
bitField0_ |= 0x00200000;
onChanged();
return getBasicAssetSizeFieldBuilder().getBuilder();
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getBasicAssetSizeOrBuilder() {
if (basicAssetSizeBuilder_ != null) {
return basicAssetSizeBuilder_.getMessageOrBuilder();
} else {
return basicAssetSize_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : basicAssetSize_;
}
}
/**
*
*Размер основного актива.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation basic_asset_size = 211;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getBasicAssetSizeFieldBuilder() {
if (basicAssetSizeBuilder_ == null) {
basicAssetSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getBasicAssetSize(),
getParentForChildren(),
isClean());
basicAssetSize_ = null;
}
return basicAssetSizeBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation klong_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> klongBuilder_;
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
* @return Whether the klong field is set.
*/
public boolean hasKlong() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
* @return The klong.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getKlong() {
if (klongBuilder_ == null) {
return klong_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : klong_;
} else {
return klongBuilder_.getMessage();
}
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
*/
public Builder setKlong(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (klongBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
klong_ = value;
} else {
klongBuilder_.setMessage(value);
}
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
*/
public Builder setKlong(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (klongBuilder_ == null) {
klong_ = builderForValue.build();
} else {
klongBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
*/
public Builder mergeKlong(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (klongBuilder_ == null) {
if (((bitField0_ & 0x00400000) != 0) &&
klong_ != null &&
klong_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getKlongBuilder().mergeFrom(value);
} else {
klong_ = value;
}
} else {
klongBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
*/
public Builder clearKlong() {
bitField0_ = (bitField0_ & ~0x00400000);
klong_ = null;
if (klongBuilder_ != null) {
klongBuilder_.dispose();
klongBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getKlongBuilder() {
bitField0_ |= 0x00400000;
onChanged();
return getKlongFieldBuilder().getBuilder();
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getKlongOrBuilder() {
if (klongBuilder_ != null) {
return klongBuilder_.getMessageOrBuilder();
} else {
return klong_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : klong_;
}
}
/**
*
*Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation klong = 221;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getKlongFieldBuilder() {
if (klongBuilder_ == null) {
klongBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getKlong(),
getParentForChildren(),
isClean());
klong_ = null;
}
return klongBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation kshort_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> kshortBuilder_;
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
* @return Whether the kshort field is set.
*/
public boolean hasKshort() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
* @return The kshort.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getKshort() {
if (kshortBuilder_ == null) {
return kshort_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : kshort_;
} else {
return kshortBuilder_.getMessage();
}
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
*/
public Builder setKshort(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (kshortBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kshort_ = value;
} else {
kshortBuilder_.setMessage(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
*/
public Builder setKshort(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (kshortBuilder_ == null) {
kshort_ = builderForValue.build();
} else {
kshortBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
*/
public Builder mergeKshort(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (kshortBuilder_ == null) {
if (((bitField0_ & 0x00800000) != 0) &&
kshort_ != null &&
kshort_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getKshortBuilder().mergeFrom(value);
} else {
kshort_ = value;
}
} else {
kshortBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
*/
public Builder clearKshort() {
bitField0_ = (bitField0_ & ~0x00800000);
kshort_ = null;
if (kshortBuilder_ != null) {
kshortBuilder_.dispose();
kshortBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getKshortBuilder() {
bitField0_ |= 0x00800000;
onChanged();
return getKshortFieldBuilder().getBuilder();
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getKshortOrBuilder() {
if (kshortBuilder_ != null) {
return kshortBuilder_.getMessageOrBuilder();
} else {
return kshort_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : kshort_;
}
}
/**
*
*Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР). 1 – клиент с повышенным уровнем риска (КПУР)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation kshort = 222;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getKshortFieldBuilder() {
if (kshortBuilder_ == null) {
kshortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getKshort(),
getParentForChildren(),
isClean());
kshort_ = null;
}
return kshortBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation dlong_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dlongBuilder_;
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
* @return Whether the dlong field is set.
*/
public boolean hasDlong() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
* @return The dlong.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getDlong() {
if (dlongBuilder_ == null) {
return dlong_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dlong_;
} else {
return dlongBuilder_.getMessage();
}
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
*/
public Builder setDlong(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dlongBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dlong_ = value;
} else {
dlongBuilder_.setMessage(value);
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
*/
public Builder setDlong(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (dlongBuilder_ == null) {
dlong_ = builderForValue.build();
} else {
dlongBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
*/
public Builder mergeDlong(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dlongBuilder_ == null) {
if (((bitField0_ & 0x01000000) != 0) &&
dlong_ != null &&
dlong_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getDlongBuilder().mergeFrom(value);
} else {
dlong_ = value;
}
} else {
dlongBuilder_.mergeFrom(value);
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
*/
public Builder clearDlong() {
bitField0_ = (bitField0_ & ~0x01000000);
dlong_ = null;
if (dlongBuilder_ != null) {
dlongBuilder_.dispose();
dlongBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDlongBuilder() {
bitField0_ |= 0x01000000;
onChanged();
return getDlongFieldBuilder().getBuilder();
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDlongOrBuilder() {
if (dlongBuilder_ != null) {
return dlongBuilder_.getMessageOrBuilder();
} else {
return dlong_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dlong_;
}
}
/**
*
*Ставка риска начальной маржи для КСУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong = 223;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getDlongFieldBuilder() {
if (dlongBuilder_ == null) {
dlongBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getDlong(),
getParentForChildren(),
isClean());
dlong_ = null;
}
return dlongBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation dshort_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dshortBuilder_;
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
* @return Whether the dshort field is set.
*/
public boolean hasDshort() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
* @return The dshort.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getDshort() {
if (dshortBuilder_ == null) {
return dshort_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dshort_;
} else {
return dshortBuilder_.getMessage();
}
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
*/
public Builder setDshort(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dshortBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dshort_ = value;
} else {
dshortBuilder_.setMessage(value);
}
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
*/
public Builder setDshort(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (dshortBuilder_ == null) {
dshort_ = builderForValue.build();
} else {
dshortBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
*/
public Builder mergeDshort(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dshortBuilder_ == null) {
if (((bitField0_ & 0x02000000) != 0) &&
dshort_ != null &&
dshort_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getDshortBuilder().mergeFrom(value);
} else {
dshort_ = value;
}
} else {
dshortBuilder_.mergeFrom(value);
}
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
*/
public Builder clearDshort() {
bitField0_ = (bitField0_ & ~0x02000000);
dshort_ = null;
if (dshortBuilder_ != null) {
dshortBuilder_.dispose();
dshortBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDshortBuilder() {
bitField0_ |= 0x02000000;
onChanged();
return getDshortFieldBuilder().getBuilder();
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDshortOrBuilder() {
if (dshortBuilder_ != null) {
return dshortBuilder_.getMessageOrBuilder();
} else {
return dshort_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dshort_;
}
}
/**
*
*Ставка риска начальной маржи для КСУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort = 224;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getDshortFieldBuilder() {
if (dshortBuilder_ == null) {
dshortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getDshort(),
getParentForChildren(),
isClean());
dshort_ = null;
}
return dshortBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation dlongMin_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dlongMinBuilder_;
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
* @return Whether the dlongMin field is set.
*/
public boolean hasDlongMin() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
* @return The dlongMin.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getDlongMin() {
if (dlongMinBuilder_ == null) {
return dlongMin_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dlongMin_;
} else {
return dlongMinBuilder_.getMessage();
}
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
*/
public Builder setDlongMin(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dlongMinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dlongMin_ = value;
} else {
dlongMinBuilder_.setMessage(value);
}
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
*/
public Builder setDlongMin(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (dlongMinBuilder_ == null) {
dlongMin_ = builderForValue.build();
} else {
dlongMinBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
*/
public Builder mergeDlongMin(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dlongMinBuilder_ == null) {
if (((bitField0_ & 0x04000000) != 0) &&
dlongMin_ != null &&
dlongMin_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getDlongMinBuilder().mergeFrom(value);
} else {
dlongMin_ = value;
}
} else {
dlongMinBuilder_.mergeFrom(value);
}
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
*/
public Builder clearDlongMin() {
bitField0_ = (bitField0_ & ~0x04000000);
dlongMin_ = null;
if (dlongMinBuilder_ != null) {
dlongMinBuilder_.dispose();
dlongMinBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDlongMinBuilder() {
bitField0_ |= 0x04000000;
onChanged();
return getDlongMinFieldBuilder().getBuilder();
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDlongMinOrBuilder() {
if (dlongMinBuilder_ != null) {
return dlongMinBuilder_.getMessageOrBuilder();
} else {
return dlongMin_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dlongMin_;
}
}
/**
*
*Ставка риска начальной маржи для КПУР лонг. Подробнее: [ставка риска в лонг](https://help.tinkoff.ru/margin-trade/long/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dlong_min = 225;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getDlongMinFieldBuilder() {
if (dlongMinBuilder_ == null) {
dlongMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getDlongMin(),
getParentForChildren(),
isClean());
dlongMin_ = null;
}
return dlongMinBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation dshortMin_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dshortMinBuilder_;
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
* @return Whether the dshortMin field is set.
*/
public boolean hasDshortMin() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
* @return The dshortMin.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getDshortMin() {
if (dshortMinBuilder_ == null) {
return dshortMin_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dshortMin_;
} else {
return dshortMinBuilder_.getMessage();
}
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
*/
public Builder setDshortMin(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dshortMinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dshortMin_ = value;
} else {
dshortMinBuilder_.setMessage(value);
}
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
*/
public Builder setDshortMin(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (dshortMinBuilder_ == null) {
dshortMin_ = builderForValue.build();
} else {
dshortMinBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
*/
public Builder mergeDshortMin(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dshortMinBuilder_ == null) {
if (((bitField0_ & 0x08000000) != 0) &&
dshortMin_ != null &&
dshortMin_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getDshortMinBuilder().mergeFrom(value);
} else {
dshortMin_ = value;
}
} else {
dshortMinBuilder_.mergeFrom(value);
}
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
*/
public Builder clearDshortMin() {
bitField0_ = (bitField0_ & ~0x08000000);
dshortMin_ = null;
if (dshortMinBuilder_ != null) {
dshortMinBuilder_.dispose();
dshortMinBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDshortMinBuilder() {
bitField0_ |= 0x08000000;
onChanged();
return getDshortMinFieldBuilder().getBuilder();
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDshortMinOrBuilder() {
if (dshortMinBuilder_ != null) {
return dshortMinBuilder_.getMessageOrBuilder();
} else {
return dshortMin_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dshortMin_;
}
}
/**
*
*Ставка риска начальной маржи для КПУР шорт. Подробнее: [ставка риска в шорт](https://help.tinkoff.ru/margin-trade/short/risk-rate/)
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dshort_min = 226;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getDshortMinFieldBuilder() {
if (dshortMinBuilder_ == null) {
dshortMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getDshortMin(),
getParentForChildren(),
isClean());
dshortMin_ = null;
}
return dshortMinBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation minPriceIncrement_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> minPriceIncrementBuilder_;
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
* @return Whether the minPriceIncrement field is set.
*/
public boolean hasMinPriceIncrement() {
return ((bitField0_ & 0x10000000) != 0);
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
* @return The minPriceIncrement.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getMinPriceIncrement() {
if (minPriceIncrementBuilder_ == null) {
return minPriceIncrement_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrement_;
} else {
return minPriceIncrementBuilder_.getMessage();
}
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
*/
public Builder setMinPriceIncrement(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (minPriceIncrementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
minPriceIncrement_ = value;
} else {
minPriceIncrementBuilder_.setMessage(value);
}
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
*/
public Builder setMinPriceIncrement(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (minPriceIncrementBuilder_ == null) {
minPriceIncrement_ = builderForValue.build();
} else {
minPriceIncrementBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
*/
public Builder mergeMinPriceIncrement(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (minPriceIncrementBuilder_ == null) {
if (((bitField0_ & 0x10000000) != 0) &&
minPriceIncrement_ != null &&
minPriceIncrement_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getMinPriceIncrementBuilder().mergeFrom(value);
} else {
minPriceIncrement_ = value;
}
} else {
minPriceIncrementBuilder_.mergeFrom(value);
}
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
*/
public Builder clearMinPriceIncrement() {
bitField0_ = (bitField0_ & ~0x10000000);
minPriceIncrement_ = null;
if (minPriceIncrementBuilder_ != null) {
minPriceIncrementBuilder_.dispose();
minPriceIncrementBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getMinPriceIncrementBuilder() {
bitField0_ |= 0x10000000;
onChanged();
return getMinPriceIncrementFieldBuilder().getBuilder();
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getMinPriceIncrementOrBuilder() {
if (minPriceIncrementBuilder_ != null) {
return minPriceIncrementBuilder_.getMessageOrBuilder();
} else {
return minPriceIncrement_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrement_;
}
}
/**
*
*Минимальный шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 231;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getMinPriceIncrementFieldBuilder() {
if (minPriceIncrementBuilder_ == null) {
minPriceIncrementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getMinPriceIncrement(),
getParentForChildren(),
isClean());
minPriceIncrement_ = null;
}
return minPriceIncrementBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue strikePrice_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> strikePriceBuilder_;
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
* @return Whether the strikePrice field is set.
*/
public boolean hasStrikePrice() {
return ((bitField0_ & 0x20000000) != 0);
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
* @return The strikePrice.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getStrikePrice() {
if (strikePriceBuilder_ == null) {
return strikePrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : strikePrice_;
} else {
return strikePriceBuilder_.getMessage();
}
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
*/
public Builder setStrikePrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (strikePriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
strikePrice_ = value;
} else {
strikePriceBuilder_.setMessage(value);
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
*/
public Builder setStrikePrice(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (strikePriceBuilder_ == null) {
strikePrice_ = builderForValue.build();
} else {
strikePriceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
*/
public Builder mergeStrikePrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (strikePriceBuilder_ == null) {
if (((bitField0_ & 0x20000000) != 0) &&
strikePrice_ != null &&
strikePrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getStrikePriceBuilder().mergeFrom(value);
} else {
strikePrice_ = value;
}
} else {
strikePriceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
*/
public Builder clearStrikePrice() {
bitField0_ = (bitField0_ & ~0x20000000);
strikePrice_ = null;
if (strikePriceBuilder_ != null) {
strikePriceBuilder_.dispose();
strikePriceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getStrikePriceBuilder() {
bitField0_ |= 0x20000000;
onChanged();
return getStrikePriceFieldBuilder().getBuilder();
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getStrikePriceOrBuilder() {
if (strikePriceBuilder_ != null) {
return strikePriceBuilder_.getMessageOrBuilder();
} else {
return strikePrice_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : strikePrice_;
}
}
/**
*
*Цена страйка.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue strike_price = 241;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getStrikePriceFieldBuilder() {
if (strikePriceBuilder_ == null) {
strikePriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getStrikePrice(),
getParentForChildren(),
isClean());
strikePrice_ = null;
}
return strikePriceBuilder_;
}
private com.google.protobuf.Timestamp expirationDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationDateBuilder_;
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
* @return Whether the expirationDate field is set.
*/
public boolean hasExpirationDate() {
return ((bitField0_ & 0x40000000) != 0);
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
* @return The expirationDate.
*/
public com.google.protobuf.Timestamp getExpirationDate() {
if (expirationDateBuilder_ == null) {
return expirationDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationDate_;
} else {
return expirationDateBuilder_.getMessage();
}
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
*/
public Builder setExpirationDate(com.google.protobuf.Timestamp value) {
if (expirationDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationDate_ = value;
} else {
expirationDateBuilder_.setMessage(value);
}
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
*/
public Builder setExpirationDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (expirationDateBuilder_ == null) {
expirationDate_ = builderForValue.build();
} else {
expirationDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
*/
public Builder mergeExpirationDate(com.google.protobuf.Timestamp value) {
if (expirationDateBuilder_ == null) {
if (((bitField0_ & 0x40000000) != 0) &&
expirationDate_ != null &&
expirationDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getExpirationDateBuilder().mergeFrom(value);
} else {
expirationDate_ = value;
}
} else {
expirationDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
*/
public Builder clearExpirationDate() {
bitField0_ = (bitField0_ & ~0x40000000);
expirationDate_ = null;
if (expirationDateBuilder_ != null) {
expirationDateBuilder_.dispose();
expirationDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
*/
public com.google.protobuf.Timestamp.Builder getExpirationDateBuilder() {
bitField0_ |= 0x40000000;
onChanged();
return getExpirationDateFieldBuilder().getBuilder();
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
*/
public com.google.protobuf.TimestampOrBuilder getExpirationDateOrBuilder() {
if (expirationDateBuilder_ != null) {
return expirationDateBuilder_.getMessageOrBuilder();
} else {
return expirationDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : expirationDate_;
}
}
/**
*
*Дата истечения срока в формате UTC.
*
*
* .google.protobuf.Timestamp expiration_date = 301;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getExpirationDateFieldBuilder() {
if (expirationDateBuilder_ == null) {
expirationDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getExpirationDate(),
getParentForChildren(),
isClean());
expirationDate_ = null;
}
return expirationDateBuilder_;
}
private com.google.protobuf.Timestamp firstTradeDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> firstTradeDateBuilder_;
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
* @return Whether the firstTradeDate field is set.
*/
public boolean hasFirstTradeDate() {
return ((bitField0_ & 0x80000000) != 0);
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
* @return The firstTradeDate.
*/
public com.google.protobuf.Timestamp getFirstTradeDate() {
if (firstTradeDateBuilder_ == null) {
return firstTradeDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstTradeDate_;
} else {
return firstTradeDateBuilder_.getMessage();
}
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
*/
public Builder setFirstTradeDate(com.google.protobuf.Timestamp value) {
if (firstTradeDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
firstTradeDate_ = value;
} else {
firstTradeDateBuilder_.setMessage(value);
}
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
*/
public Builder setFirstTradeDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (firstTradeDateBuilder_ == null) {
firstTradeDate_ = builderForValue.build();
} else {
firstTradeDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
*/
public Builder mergeFirstTradeDate(com.google.protobuf.Timestamp value) {
if (firstTradeDateBuilder_ == null) {
if (((bitField0_ & 0x80000000) != 0) &&
firstTradeDate_ != null &&
firstTradeDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getFirstTradeDateBuilder().mergeFrom(value);
} else {
firstTradeDate_ = value;
}
} else {
firstTradeDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
*/
public Builder clearFirstTradeDate() {
bitField0_ = (bitField0_ & ~0x80000000);
firstTradeDate_ = null;
if (firstTradeDateBuilder_ != null) {
firstTradeDateBuilder_.dispose();
firstTradeDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
*/
public com.google.protobuf.Timestamp.Builder getFirstTradeDateBuilder() {
bitField0_ |= 0x80000000;
onChanged();
return getFirstTradeDateFieldBuilder().getBuilder();
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
*/
public com.google.protobuf.TimestampOrBuilder getFirstTradeDateOrBuilder() {
if (firstTradeDateBuilder_ != null) {
return firstTradeDateBuilder_.getMessageOrBuilder();
} else {
return firstTradeDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : firstTradeDate_;
}
}
/**
*
*Дата начала обращения контракта в формате UTC.
*
*
* .google.protobuf.Timestamp first_trade_date = 311;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getFirstTradeDateFieldBuilder() {
if (firstTradeDateBuilder_ == null) {
firstTradeDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getFirstTradeDate(),
getParentForChildren(),
isClean());
firstTradeDate_ = null;
}
return firstTradeDateBuilder_;
}
private com.google.protobuf.Timestamp lastTradeDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastTradeDateBuilder_;
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
* @return Whether the lastTradeDate field is set.
*/
public boolean hasLastTradeDate() {
return ((bitField1_ & 0x00000001) != 0);
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
* @return The lastTradeDate.
*/
public com.google.protobuf.Timestamp getLastTradeDate() {
if (lastTradeDateBuilder_ == null) {
return lastTradeDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTradeDate_;
} else {
return lastTradeDateBuilder_.getMessage();
}
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
*/
public Builder setLastTradeDate(com.google.protobuf.Timestamp value) {
if (lastTradeDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastTradeDate_ = value;
} else {
lastTradeDateBuilder_.setMessage(value);
}
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
*/
public Builder setLastTradeDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastTradeDateBuilder_ == null) {
lastTradeDate_ = builderForValue.build();
} else {
lastTradeDateBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
*/
public Builder mergeLastTradeDate(com.google.protobuf.Timestamp value) {
if (lastTradeDateBuilder_ == null) {
if (((bitField1_ & 0x00000001) != 0) &&
lastTradeDate_ != null &&
lastTradeDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLastTradeDateBuilder().mergeFrom(value);
} else {
lastTradeDate_ = value;
}
} else {
lastTradeDateBuilder_.mergeFrom(value);
}
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
*/
public Builder clearLastTradeDate() {
bitField1_ = (bitField1_ & ~0x00000001);
lastTradeDate_ = null;
if (lastTradeDateBuilder_ != null) {
lastTradeDateBuilder_.dispose();
lastTradeDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
*/
public com.google.protobuf.Timestamp.Builder getLastTradeDateBuilder() {
bitField1_ |= 0x00000001;
onChanged();
return getLastTradeDateFieldBuilder().getBuilder();
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
*/
public com.google.protobuf.TimestampOrBuilder getLastTradeDateOrBuilder() {
if (lastTradeDateBuilder_ != null) {
return lastTradeDateBuilder_.getMessageOrBuilder();
} else {
return lastTradeDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastTradeDate_;
}
}
/**
*
*Дата исполнения в формате UTC.
*
*
* .google.protobuf.Timestamp last_trade_date = 312;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastTradeDateFieldBuilder() {
if (lastTradeDateBuilder_ == null) {
lastTradeDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastTradeDate(),
getParentForChildren(),
isClean());
lastTradeDate_ = null;
}
return lastTradeDateBuilder_;
}
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_;
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
* @return Whether the first1minCandleDate field is set.
*/
public boolean hasFirst1MinCandleDate() {
return ((bitField1_ & 0x00000002) != 0);
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
* @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();
}
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
*/
public Builder setFirst1MinCandleDate(com.google.protobuf.Timestamp value) {
if (first1MinCandleDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
first1MinCandleDate_ = value;
} else {
first1MinCandleDateBuilder_.setMessage(value);
}
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
*/
public Builder setFirst1MinCandleDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (first1MinCandleDateBuilder_ == null) {
first1MinCandleDate_ = builderForValue.build();
} else {
first1MinCandleDateBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
*/
public Builder mergeFirst1MinCandleDate(com.google.protobuf.Timestamp value) {
if (first1MinCandleDateBuilder_ == null) {
if (((bitField1_ & 0x00000002) != 0) &&
first1MinCandleDate_ != null &&
first1MinCandleDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getFirst1MinCandleDateBuilder().mergeFrom(value);
} else {
first1MinCandleDate_ = value;
}
} else {
first1MinCandleDateBuilder_.mergeFrom(value);
}
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
*/
public Builder clearFirst1MinCandleDate() {
bitField1_ = (bitField1_ & ~0x00000002);
first1MinCandleDate_ = null;
if (first1MinCandleDateBuilder_ != null) {
first1MinCandleDateBuilder_.dispose();
first1MinCandleDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
*/
public com.google.protobuf.Timestamp.Builder getFirst1MinCandleDateBuilder() {
bitField1_ |= 0x00000002;
onChanged();
return getFirst1MinCandleDateFieldBuilder().getBuilder();
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
*/
public com.google.protobuf.TimestampOrBuilder getFirst1MinCandleDateOrBuilder() {
if (first1MinCandleDateBuilder_ != null) {
return first1MinCandleDateBuilder_.getMessageOrBuilder();
} else {
return first1MinCandleDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : first1MinCandleDate_;
}
}
/**
*
*Дата первой минутной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1min_candle_date = 321;
*/
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_;
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
* @return Whether the first1dayCandleDate field is set.
*/
public boolean hasFirst1DayCandleDate() {
return ((bitField1_ & 0x00000004) != 0);
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
* @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();
}
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
*/
public Builder setFirst1DayCandleDate(com.google.protobuf.Timestamp value) {
if (first1DayCandleDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
first1DayCandleDate_ = value;
} else {
first1DayCandleDateBuilder_.setMessage(value);
}
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
*/
public Builder setFirst1DayCandleDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (first1DayCandleDateBuilder_ == null) {
first1DayCandleDate_ = builderForValue.build();
} else {
first1DayCandleDateBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
*/
public Builder mergeFirst1DayCandleDate(com.google.protobuf.Timestamp value) {
if (first1DayCandleDateBuilder_ == null) {
if (((bitField1_ & 0x00000004) != 0) &&
first1DayCandleDate_ != null &&
first1DayCandleDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getFirst1DayCandleDateBuilder().mergeFrom(value);
} else {
first1DayCandleDate_ = value;
}
} else {
first1DayCandleDateBuilder_.mergeFrom(value);
}
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
*/
public Builder clearFirst1DayCandleDate() {
bitField1_ = (bitField1_ & ~0x00000004);
first1DayCandleDate_ = null;
if (first1DayCandleDateBuilder_ != null) {
first1DayCandleDateBuilder_.dispose();
first1DayCandleDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
*/
public com.google.protobuf.Timestamp.Builder getFirst1DayCandleDateBuilder() {
bitField1_ |= 0x00000004;
onChanged();
return getFirst1DayCandleDateFieldBuilder().getBuilder();
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
*/
public com.google.protobuf.TimestampOrBuilder getFirst1DayCandleDateOrBuilder() {
if (first1DayCandleDateBuilder_ != null) {
return first1DayCandleDateBuilder_.getMessageOrBuilder();
} else {
return first1DayCandleDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : first1DayCandleDate_;
}
}
/**
*
*Дата первой дневной свечи в формате UTC.
*
*
* .google.protobuf.Timestamp first_1day_candle_date = 322;
*/
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 shortEnabledFlag_ ;
/**
*
*Признак доступности для операций шорт.
*
*
* bool short_enabled_flag = 401;
* @return The shortEnabledFlag.
*/
@java.lang.Override
public boolean getShortEnabledFlag() {
return shortEnabledFlag_;
}
/**
*
*Признак доступности для операций шорт.
*
*
* bool short_enabled_flag = 401;
* @param value The shortEnabledFlag to set.
* @return This builder for chaining.
*/
public Builder setShortEnabledFlag(boolean value) {
shortEnabledFlag_ = value;
bitField1_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Признак доступности для операций шорт.
*
*
* bool short_enabled_flag = 401;
* @return This builder for chaining.
*/
public Builder clearShortEnabledFlag() {
bitField1_ = (bitField1_ & ~0x00000008);
shortEnabledFlag_ = false;
onChanged();
return this;
}
private boolean forIisFlag_ ;
/**
*
*Возможность покупки/продажи на ИИС.
*
*
* bool for_iis_flag = 402;
* @return The forIisFlag.
*/
@java.lang.Override
public boolean getForIisFlag() {
return forIisFlag_;
}
/**
*
*Возможность покупки/продажи на ИИС.
*
*
* bool for_iis_flag = 402;
* @param value The forIisFlag to set.
* @return This builder for chaining.
*/
public Builder setForIisFlag(boolean value) {
forIisFlag_ = value;
bitField1_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Возможность покупки/продажи на ИИС.
*
*
* bool for_iis_flag = 402;
* @return This builder for chaining.
*/
public Builder clearForIisFlag() {
bitField1_ = (bitField1_ & ~0x00000010);
forIisFlag_ = false;
onChanged();
return this;
}
private boolean otcFlag_ ;
/**
*
*Признак внебиржевой ценной бумаги.
*
*
* bool otc_flag = 403;
* @return The otcFlag.
*/
@java.lang.Override
public boolean getOtcFlag() {
return otcFlag_;
}
/**
*
*Признак внебиржевой ценной бумаги.
*
*
* bool otc_flag = 403;
* @param value The otcFlag to set.
* @return This builder for chaining.
*/
public Builder setOtcFlag(boolean value) {
otcFlag_ = value;
bitField1_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Признак внебиржевой ценной бумаги.
*
*
* bool otc_flag = 403;
* @return This builder for chaining.
*/
public Builder clearOtcFlag() {
bitField1_ = (bitField1_ & ~0x00000020);
otcFlag_ = false;
onChanged();
return this;
}
private boolean buyAvailableFlag_ ;
/**
*
*Признак доступности для покупки.
*
*
* bool buy_available_flag = 404;
* @return The buyAvailableFlag.
*/
@java.lang.Override
public boolean getBuyAvailableFlag() {
return buyAvailableFlag_;
}
/**
*
*Признак доступности для покупки.
*
*
* bool buy_available_flag = 404;
* @param value The buyAvailableFlag to set.
* @return This builder for chaining.
*/
public Builder setBuyAvailableFlag(boolean value) {
buyAvailableFlag_ = value;
bitField1_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Признак доступности для покупки.
*
*
* bool buy_available_flag = 404;
* @return This builder for chaining.
*/
public Builder clearBuyAvailableFlag() {
bitField1_ = (bitField1_ & ~0x00000040);
buyAvailableFlag_ = false;
onChanged();
return this;
}
private boolean sellAvailableFlag_ ;
/**
*
*Признак доступности для продажи.
*
*
* bool sell_available_flag = 405;
* @return The sellAvailableFlag.
*/
@java.lang.Override
public boolean getSellAvailableFlag() {
return sellAvailableFlag_;
}
/**
*
*Признак доступности для продажи.
*
*
* bool sell_available_flag = 405;
* @param value The sellAvailableFlag to set.
* @return This builder for chaining.
*/
public Builder setSellAvailableFlag(boolean value) {
sellAvailableFlag_ = value;
bitField1_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Признак доступности для продажи.
*
*
* bool sell_available_flag = 405;
* @return This builder for chaining.
*/
public Builder clearSellAvailableFlag() {
bitField1_ = (bitField1_ & ~0x00000080);
sellAvailableFlag_ = false;
onChanged();
return this;
}
private boolean forQualInvestorFlag_ ;
/**
*
*Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
*
*
* bool for_qual_investor_flag = 406;
* @return The forQualInvestorFlag.
*/
@java.lang.Override
public boolean getForQualInvestorFlag() {
return forQualInvestorFlag_;
}
/**
*
*Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
*
*
* bool for_qual_investor_flag = 406;
* @param value The forQualInvestorFlag to set.
* @return This builder for chaining.
*/
public Builder setForQualInvestorFlag(boolean value) {
forQualInvestorFlag_ = value;
bitField1_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.
*
*
* bool for_qual_investor_flag = 406;
* @return This builder for chaining.
*/
public Builder clearForQualInvestorFlag() {
bitField1_ = (bitField1_ & ~0x00000100);
forQualInvestorFlag_ = false;
onChanged();
return this;
}
private boolean weekendFlag_ ;
/**
*
*Флаг отображающий доступность торговли инструментом по выходным.
*
*
* bool weekend_flag = 407;
* @return The weekendFlag.
*/
@java.lang.Override
public boolean getWeekendFlag() {
return weekendFlag_;
}
/**
*
*Флаг отображающий доступность торговли инструментом по выходным.
*
*
* bool weekend_flag = 407;
* @param value The weekendFlag to set.
* @return This builder for chaining.
*/
public Builder setWeekendFlag(boolean value) {
weekendFlag_ = value;
bitField1_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Флаг отображающий доступность торговли инструментом по выходным.
*
*
* bool weekend_flag = 407;
* @return This builder for chaining.
*/
public Builder clearWeekendFlag() {
bitField1_ = (bitField1_ & ~0x00000200);
weekendFlag_ = false;
onChanged();
return this;
}
private boolean blockedTcaFlag_ ;
/**
*
*Флаг заблокированного ТКС.
*
*
* bool blocked_tca_flag = 408;
* @return The blockedTcaFlag.
*/
@java.lang.Override
public boolean getBlockedTcaFlag() {
return blockedTcaFlag_;
}
/**
*
*Флаг заблокированного ТКС.
*
*
* bool blocked_tca_flag = 408;
* @param value The blockedTcaFlag to set.
* @return This builder for chaining.
*/
public Builder setBlockedTcaFlag(boolean value) {
blockedTcaFlag_ = value;
bitField1_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Флаг заблокированного ТКС.
*
*
* bool blocked_tca_flag = 408;
* @return This builder for chaining.
*/
public Builder clearBlockedTcaFlag() {
bitField1_ = (bitField1_ & ~0x00000400);
blockedTcaFlag_ = false;
onChanged();
return this;
}
private boolean apiTradeAvailableFlag_ ;
/**
*
*Параметр указывает на возможность торговать инструментом через API.
*
*
* bool api_trade_available_flag = 409;
* @return The apiTradeAvailableFlag.
*/
@java.lang.Override
public boolean getApiTradeAvailableFlag() {
return apiTradeAvailableFlag_;
}
/**
*
*Параметр указывает на возможность торговать инструментом через API.
*
*
* bool api_trade_available_flag = 409;
* @param value The apiTradeAvailableFlag to set.
* @return This builder for chaining.
*/
public Builder setApiTradeAvailableFlag(boolean value) {
apiTradeAvailableFlag_ = value;
bitField1_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Параметр указывает на возможность торговать инструментом через API.
*
*
* bool api_trade_available_flag = 409;
* @return This builder for chaining.
*/
public Builder clearApiTradeAvailableFlag() {
bitField1_ = (bitField1_ & ~0x00000800);
apiTradeAvailableFlag_ = 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.Option)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.Option)
private static final ru.tinkoff.piapi.contract.v1.Option DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.Option();
}
public static ru.tinkoff.piapi.contract.v1.Option getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser () {
@java.lang.Override
public Option 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.Option getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}