implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AssetEtf)
ru.tinkoff.piapi.contract.v1.AssetEtfOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetEtf_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_AssetEtf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AssetEtf.class, ru.tinkoff.piapi.contract.v1.AssetEtf.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.AssetEtf.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
totalExpense_ = null;
if (totalExpenseBuilder_ != null) {
totalExpenseBuilder_.dispose();
totalExpenseBuilder_ = null;
}
hurdleRate_ = null;
if (hurdleRateBuilder_ != null) {
hurdleRateBuilder_.dispose();
hurdleRateBuilder_ = null;
}
performanceFee_ = null;
if (performanceFeeBuilder_ != null) {
performanceFeeBuilder_.dispose();
performanceFeeBuilder_ = null;
}
fixedCommission_ = null;
if (fixedCommissionBuilder_ != null) {
fixedCommissionBuilder_.dispose();
fixedCommissionBuilder_ = null;
}
paymentType_ = "";
watermarkFlag_ = false;
buyPremium_ = null;
if (buyPremiumBuilder_ != null) {
buyPremiumBuilder_.dispose();
buyPremiumBuilder_ = null;
}
sellDiscount_ = null;
if (sellDiscountBuilder_ != null) {
sellDiscountBuilder_.dispose();
sellDiscountBuilder_ = null;
}
rebalancingFlag_ = false;
rebalancingFreq_ = "";
managementType_ = "";
primaryIndex_ = "";
focusType_ = "";
leveragedFlag_ = false;
numShare_ = null;
if (numShareBuilder_ != null) {
numShareBuilder_.dispose();
numShareBuilder_ = null;
}
ucitsFlag_ = false;
releasedDate_ = null;
if (releasedDateBuilder_ != null) {
releasedDateBuilder_.dispose();
releasedDateBuilder_ = null;
}
description_ = "";
primaryIndexDescription_ = "";
primaryIndexCompany_ = "";
indexRecoveryPeriod_ = null;
if (indexRecoveryPeriodBuilder_ != null) {
indexRecoveryPeriodBuilder_.dispose();
indexRecoveryPeriodBuilder_ = null;
}
inavCode_ = "";
divYieldFlag_ = false;
expenseCommission_ = null;
if (expenseCommissionBuilder_ != null) {
expenseCommissionBuilder_.dispose();
expenseCommissionBuilder_ = null;
}
primaryIndexTrackingError_ = null;
if (primaryIndexTrackingErrorBuilder_ != null) {
primaryIndexTrackingErrorBuilder_.dispose();
primaryIndexTrackingErrorBuilder_ = null;
}
rebalancingPlan_ = "";
taxRate_ = "";
if (rebalancingDatesBuilder_ == null) {
rebalancingDates_ = java.util.Collections.emptyList();
} else {
rebalancingDates_ = null;
rebalancingDatesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x08000000);
issueKind_ = "";
nominal_ = null;
if (nominalBuilder_ != null) {
nominalBuilder_.dispose();
nominalBuilder_ = null;
}
nominalCurrency_ = "";
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_AssetEtf_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetEtf getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.AssetEtf.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetEtf build() {
ru.tinkoff.piapi.contract.v1.AssetEtf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetEtf buildPartial() {
ru.tinkoff.piapi.contract.v1.AssetEtf result = new ru.tinkoff.piapi.contract.v1.AssetEtf(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.AssetEtf result) {
if (rebalancingDatesBuilder_ == null) {
if (((bitField0_ & 0x08000000) != 0)) {
rebalancingDates_ = java.util.Collections.unmodifiableList(rebalancingDates_);
bitField0_ = (bitField0_ & ~0x08000000);
}
result.rebalancingDates_ = rebalancingDates_;
} else {
result.rebalancingDates_ = rebalancingDatesBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.AssetEtf result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.totalExpense_ = totalExpenseBuilder_ == null
? totalExpense_
: totalExpenseBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hurdleRate_ = hurdleRateBuilder_ == null
? hurdleRate_
: hurdleRateBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.performanceFee_ = performanceFeeBuilder_ == null
? performanceFee_
: performanceFeeBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.fixedCommission_ = fixedCommissionBuilder_ == null
? fixedCommission_
: fixedCommissionBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.paymentType_ = paymentType_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.watermarkFlag_ = watermarkFlag_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.buyPremium_ = buyPremiumBuilder_ == null
? buyPremium_
: buyPremiumBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.sellDiscount_ = sellDiscountBuilder_ == null
? sellDiscount_
: sellDiscountBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.rebalancingFlag_ = rebalancingFlag_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.rebalancingFreq_ = rebalancingFreq_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.managementType_ = managementType_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.primaryIndex_ = primaryIndex_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.focusType_ = focusType_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.leveragedFlag_ = leveragedFlag_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.numShare_ = numShareBuilder_ == null
? numShare_
: numShareBuilder_.build();
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.ucitsFlag_ = ucitsFlag_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.releasedDate_ = releasedDateBuilder_ == null
? releasedDate_
: releasedDateBuilder_.build();
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.primaryIndexDescription_ = primaryIndexDescription_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.primaryIndexCompany_ = primaryIndexCompany_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.indexRecoveryPeriod_ = indexRecoveryPeriodBuilder_ == null
? indexRecoveryPeriod_
: indexRecoveryPeriodBuilder_.build();
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.inavCode_ = inavCode_;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.divYieldFlag_ = divYieldFlag_;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.expenseCommission_ = expenseCommissionBuilder_ == null
? expenseCommission_
: expenseCommissionBuilder_.build();
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.primaryIndexTrackingError_ = primaryIndexTrackingErrorBuilder_ == null
? primaryIndexTrackingError_
: primaryIndexTrackingErrorBuilder_.build();
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.rebalancingPlan_ = rebalancingPlan_;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.taxRate_ = taxRate_;
}
if (((from_bitField0_ & 0x10000000) != 0)) {
result.issueKind_ = issueKind_;
}
if (((from_bitField0_ & 0x20000000) != 0)) {
result.nominal_ = nominalBuilder_ == null
? nominal_
: nominalBuilder_.build();
}
if (((from_bitField0_ & 0x40000000) != 0)) {
result.nominalCurrency_ = nominalCurrency_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.AssetEtf) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.AssetEtf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AssetEtf other) {
if (other == ru.tinkoff.piapi.contract.v1.AssetEtf.getDefaultInstance()) return this;
if (other.hasTotalExpense()) {
mergeTotalExpense(other.getTotalExpense());
}
if (other.hasHurdleRate()) {
mergeHurdleRate(other.getHurdleRate());
}
if (other.hasPerformanceFee()) {
mergePerformanceFee(other.getPerformanceFee());
}
if (other.hasFixedCommission()) {
mergeFixedCommission(other.getFixedCommission());
}
if (!other.getPaymentType().isEmpty()) {
paymentType_ = other.paymentType_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getWatermarkFlag() != false) {
setWatermarkFlag(other.getWatermarkFlag());
}
if (other.hasBuyPremium()) {
mergeBuyPremium(other.getBuyPremium());
}
if (other.hasSellDiscount()) {
mergeSellDiscount(other.getSellDiscount());
}
if (other.getRebalancingFlag() != false) {
setRebalancingFlag(other.getRebalancingFlag());
}
if (!other.getRebalancingFreq().isEmpty()) {
rebalancingFreq_ = other.rebalancingFreq_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getManagementType().isEmpty()) {
managementType_ = other.managementType_;
bitField0_ |= 0x00000400;
onChanged();
}
if (!other.getPrimaryIndex().isEmpty()) {
primaryIndex_ = other.primaryIndex_;
bitField0_ |= 0x00000800;
onChanged();
}
if (!other.getFocusType().isEmpty()) {
focusType_ = other.focusType_;
bitField0_ |= 0x00001000;
onChanged();
}
if (other.getLeveragedFlag() != false) {
setLeveragedFlag(other.getLeveragedFlag());
}
if (other.hasNumShare()) {
mergeNumShare(other.getNumShare());
}
if (other.getUcitsFlag() != false) {
setUcitsFlag(other.getUcitsFlag());
}
if (other.hasReleasedDate()) {
mergeReleasedDate(other.getReleasedDate());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00020000;
onChanged();
}
if (!other.getPrimaryIndexDescription().isEmpty()) {
primaryIndexDescription_ = other.primaryIndexDescription_;
bitField0_ |= 0x00040000;
onChanged();
}
if (!other.getPrimaryIndexCompany().isEmpty()) {
primaryIndexCompany_ = other.primaryIndexCompany_;
bitField0_ |= 0x00080000;
onChanged();
}
if (other.hasIndexRecoveryPeriod()) {
mergeIndexRecoveryPeriod(other.getIndexRecoveryPeriod());
}
if (!other.getInavCode().isEmpty()) {
inavCode_ = other.inavCode_;
bitField0_ |= 0x00200000;
onChanged();
}
if (other.getDivYieldFlag() != false) {
setDivYieldFlag(other.getDivYieldFlag());
}
if (other.hasExpenseCommission()) {
mergeExpenseCommission(other.getExpenseCommission());
}
if (other.hasPrimaryIndexTrackingError()) {
mergePrimaryIndexTrackingError(other.getPrimaryIndexTrackingError());
}
if (!other.getRebalancingPlan().isEmpty()) {
rebalancingPlan_ = other.rebalancingPlan_;
bitField0_ |= 0x02000000;
onChanged();
}
if (!other.getTaxRate().isEmpty()) {
taxRate_ = other.taxRate_;
bitField0_ |= 0x04000000;
onChanged();
}
if (rebalancingDatesBuilder_ == null) {
if (!other.rebalancingDates_.isEmpty()) {
if (rebalancingDates_.isEmpty()) {
rebalancingDates_ = other.rebalancingDates_;
bitField0_ = (bitField0_ & ~0x08000000);
} else {
ensureRebalancingDatesIsMutable();
rebalancingDates_.addAll(other.rebalancingDates_);
}
onChanged();
}
} else {
if (!other.rebalancingDates_.isEmpty()) {
if (rebalancingDatesBuilder_.isEmpty()) {
rebalancingDatesBuilder_.dispose();
rebalancingDatesBuilder_ = null;
rebalancingDates_ = other.rebalancingDates_;
bitField0_ = (bitField0_ & ~0x08000000);
rebalancingDatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRebalancingDatesFieldBuilder() : null;
} else {
rebalancingDatesBuilder_.addAllMessages(other.rebalancingDates_);
}
}
}
if (!other.getIssueKind().isEmpty()) {
issueKind_ = other.issueKind_;
bitField0_ |= 0x10000000;
onChanged();
}
if (other.hasNominal()) {
mergeNominal(other.getNominal());
}
if (!other.getNominalCurrency().isEmpty()) {
nominalCurrency_ = other.nominalCurrency_;
bitField0_ |= 0x40000000;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getTotalExpenseFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getHurdleRateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getPerformanceFeeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getFixedCommissionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
paymentType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
watermarkFlag_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
input.readMessage(
getBuyPremiumFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getSellDiscountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
rebalancingFlag_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
rebalancingFreq_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
managementType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
primaryIndex_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 98
case 106: {
focusType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00001000;
break;
} // case 106
case 112: {
leveragedFlag_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 112
case 122: {
input.readMessage(
getNumShareFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00004000;
break;
} // case 122
case 128: {
ucitsFlag_ = input.readBool();
bitField0_ |= 0x00008000;
break;
} // case 128
case 138: {
input.readMessage(
getReleasedDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00010000;
break;
} // case 138
case 146: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00020000;
break;
} // case 146
case 154: {
primaryIndexDescription_ = input.readStringRequireUtf8();
bitField0_ |= 0x00040000;
break;
} // case 154
case 162: {
primaryIndexCompany_ = input.readStringRequireUtf8();
bitField0_ |= 0x00080000;
break;
} // case 162
case 170: {
input.readMessage(
getIndexRecoveryPeriodFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00100000;
break;
} // case 170
case 178: {
inavCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00200000;
break;
} // case 178
case 184: {
divYieldFlag_ = input.readBool();
bitField0_ |= 0x00400000;
break;
} // case 184
case 194: {
input.readMessage(
getExpenseCommissionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00800000;
break;
} // case 194
case 202: {
input.readMessage(
getPrimaryIndexTrackingErrorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x01000000;
break;
} // case 202
case 210: {
rebalancingPlan_ = input.readStringRequireUtf8();
bitField0_ |= 0x02000000;
break;
} // case 210
case 218: {
taxRate_ = input.readStringRequireUtf8();
bitField0_ |= 0x04000000;
break;
} // case 218
case 226: {
com.google.protobuf.Timestamp m =
input.readMessage(
com.google.protobuf.Timestamp.parser(),
extensionRegistry);
if (rebalancingDatesBuilder_ == null) {
ensureRebalancingDatesIsMutable();
rebalancingDates_.add(m);
} else {
rebalancingDatesBuilder_.addMessage(m);
}
break;
} // case 226
case 234: {
issueKind_ = input.readStringRequireUtf8();
bitField0_ |= 0x10000000;
break;
} // case 234
case 242: {
input.readMessage(
getNominalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x20000000;
break;
} // case 242
case 250: {
nominalCurrency_ = input.readStringRequireUtf8();
bitField0_ |= 0x40000000;
break;
} // case 250
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private ru.tinkoff.piapi.contract.v1.Quotation totalExpense_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> totalExpenseBuilder_;
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
* @return Whether the totalExpense field is set.
*/
public boolean hasTotalExpense() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
* @return The totalExpense.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getTotalExpense() {
if (totalExpenseBuilder_ == null) {
return totalExpense_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : totalExpense_;
} else {
return totalExpenseBuilder_.getMessage();
}
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
*/
public Builder setTotalExpense(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (totalExpenseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
totalExpense_ = value;
} else {
totalExpenseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
*/
public Builder setTotalExpense(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (totalExpenseBuilder_ == null) {
totalExpense_ = builderForValue.build();
} else {
totalExpenseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
*/
public Builder mergeTotalExpense(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (totalExpenseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
totalExpense_ != null &&
totalExpense_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getTotalExpenseBuilder().mergeFrom(value);
} else {
totalExpense_ = value;
}
} else {
totalExpenseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
*/
public Builder clearTotalExpense() {
bitField0_ = (bitField0_ & ~0x00000001);
totalExpense_ = null;
if (totalExpenseBuilder_ != null) {
totalExpenseBuilder_.dispose();
totalExpenseBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getTotalExpenseBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTotalExpenseFieldBuilder().getBuilder();
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getTotalExpenseOrBuilder() {
if (totalExpenseBuilder_ != null) {
return totalExpenseBuilder_.getMessageOrBuilder();
} else {
return totalExpense_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : totalExpense_;
}
}
/**
*
*Суммарные расходы фонда (в %).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation total_expense = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getTotalExpenseFieldBuilder() {
if (totalExpenseBuilder_ == null) {
totalExpenseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getTotalExpense(),
getParentForChildren(),
isClean());
totalExpense_ = null;
}
return totalExpenseBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation hurdleRate_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> hurdleRateBuilder_;
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
* @return Whether the hurdleRate field is set.
*/
public boolean hasHurdleRate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
* @return The hurdleRate.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getHurdleRate() {
if (hurdleRateBuilder_ == null) {
return hurdleRate_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : hurdleRate_;
} else {
return hurdleRateBuilder_.getMessage();
}
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
*/
public Builder setHurdleRate(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (hurdleRateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hurdleRate_ = value;
} else {
hurdleRateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
*/
public Builder setHurdleRate(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (hurdleRateBuilder_ == null) {
hurdleRate_ = builderForValue.build();
} else {
hurdleRateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
*/
public Builder mergeHurdleRate(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (hurdleRateBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
hurdleRate_ != null &&
hurdleRate_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getHurdleRateBuilder().mergeFrom(value);
} else {
hurdleRate_ = value;
}
} else {
hurdleRateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
*/
public Builder clearHurdleRate() {
bitField0_ = (bitField0_ & ~0x00000002);
hurdleRate_ = null;
if (hurdleRateBuilder_ != null) {
hurdleRateBuilder_.dispose();
hurdleRateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getHurdleRateBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getHurdleRateFieldBuilder().getBuilder();
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getHurdleRateOrBuilder() {
if (hurdleRateBuilder_ != null) {
return hurdleRateBuilder_.getMessageOrBuilder();
} else {
return hurdleRate_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : hurdleRate_;
}
}
/**
*
*Барьерная ставка доходности после которой фонд имеет право на perfomance fee (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation hurdle_rate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getHurdleRateFieldBuilder() {
if (hurdleRateBuilder_ == null) {
hurdleRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getHurdleRate(),
getParentForChildren(),
isClean());
hurdleRate_ = null;
}
return hurdleRateBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation performanceFee_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> performanceFeeBuilder_;
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
* @return Whether the performanceFee field is set.
*/
public boolean hasPerformanceFee() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
* @return The performanceFee.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getPerformanceFee() {
if (performanceFeeBuilder_ == null) {
return performanceFee_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : performanceFee_;
} else {
return performanceFeeBuilder_.getMessage();
}
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
*/
public Builder setPerformanceFee(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (performanceFeeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
performanceFee_ = value;
} else {
performanceFeeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
*/
public Builder setPerformanceFee(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (performanceFeeBuilder_ == null) {
performanceFee_ = builderForValue.build();
} else {
performanceFeeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
*/
public Builder mergePerformanceFee(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (performanceFeeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
performanceFee_ != null &&
performanceFee_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getPerformanceFeeBuilder().mergeFrom(value);
} else {
performanceFee_ = value;
}
} else {
performanceFeeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
*/
public Builder clearPerformanceFee() {
bitField0_ = (bitField0_ & ~0x00000004);
performanceFee_ = null;
if (performanceFeeBuilder_ != null) {
performanceFeeBuilder_.dispose();
performanceFeeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getPerformanceFeeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPerformanceFeeFieldBuilder().getBuilder();
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getPerformanceFeeOrBuilder() {
if (performanceFeeBuilder_ != null) {
return performanceFeeBuilder_.getMessageOrBuilder();
} else {
return performanceFee_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : performanceFee_;
}
}
/**
*
*Комиссия за успешные результаты фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation performance_fee = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getPerformanceFeeFieldBuilder() {
if (performanceFeeBuilder_ == null) {
performanceFeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getPerformanceFee(),
getParentForChildren(),
isClean());
performanceFee_ = null;
}
return performanceFeeBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation fixedCommission_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> fixedCommissionBuilder_;
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
* @return Whether the fixedCommission field is set.
*/
public boolean hasFixedCommission() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
* @return The fixedCommission.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getFixedCommission() {
if (fixedCommissionBuilder_ == null) {
return fixedCommission_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : fixedCommission_;
} else {
return fixedCommissionBuilder_.getMessage();
}
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
*/
public Builder setFixedCommission(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (fixedCommissionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fixedCommission_ = value;
} else {
fixedCommissionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
*/
public Builder setFixedCommission(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (fixedCommissionBuilder_ == null) {
fixedCommission_ = builderForValue.build();
} else {
fixedCommissionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
*/
public Builder mergeFixedCommission(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (fixedCommissionBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
fixedCommission_ != null &&
fixedCommission_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getFixedCommissionBuilder().mergeFrom(value);
} else {
fixedCommission_ = value;
}
} else {
fixedCommissionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
*/
public Builder clearFixedCommission() {
bitField0_ = (bitField0_ & ~0x00000008);
fixedCommission_ = null;
if (fixedCommissionBuilder_ != null) {
fixedCommissionBuilder_.dispose();
fixedCommissionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getFixedCommissionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getFixedCommissionFieldBuilder().getBuilder();
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getFixedCommissionOrBuilder() {
if (fixedCommissionBuilder_ != null) {
return fixedCommissionBuilder_.getMessageOrBuilder();
} else {
return fixedCommission_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : fixedCommission_;
}
}
/**
*
*Фиксированная комиссия за управление (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation fixed_commission = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getFixedCommissionFieldBuilder() {
if (fixedCommissionBuilder_ == null) {
fixedCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getFixedCommission(),
getParentForChildren(),
isClean());
fixedCommission_ = null;
}
return fixedCommissionBuilder_;
}
private java.lang.Object paymentType_ = "";
/**
*
*Тип распределения доходов от выплат по бумагам.
*
*
* string payment_type = 5;
* @return The paymentType.
*/
public java.lang.String getPaymentType() {
java.lang.Object ref = paymentType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Тип распределения доходов от выплат по бумагам.
*
*
* string payment_type = 5;
* @return The bytes for paymentType.
*/
public com.google.protobuf.ByteString
getPaymentTypeBytes() {
java.lang.Object ref = paymentType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Тип распределения доходов от выплат по бумагам.
*
*
* string payment_type = 5;
* @param value The paymentType to set.
* @return This builder for chaining.
*/
public Builder setPaymentType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
paymentType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Тип распределения доходов от выплат по бумагам.
*
*
* string payment_type = 5;
* @return This builder for chaining.
*/
public Builder clearPaymentType() {
paymentType_ = getDefaultInstance().getPaymentType();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Тип распределения доходов от выплат по бумагам.
*
*
* string payment_type = 5;
* @param value The bytes for paymentType to set.
* @return This builder for chaining.
*/
public Builder setPaymentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
paymentType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private boolean watermarkFlag_ ;
/**
*
*Признак необходимости выхода фонда в плюс для получения комиссии.
*
*
* bool watermark_flag = 6;
* @return The watermarkFlag.
*/
@java.lang.Override
public boolean getWatermarkFlag() {
return watermarkFlag_;
}
/**
*
*Признак необходимости выхода фонда в плюс для получения комиссии.
*
*
* bool watermark_flag = 6;
* @param value The watermarkFlag to set.
* @return This builder for chaining.
*/
public Builder setWatermarkFlag(boolean value) {
watermarkFlag_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Признак необходимости выхода фонда в плюс для получения комиссии.
*
*
* bool watermark_flag = 6;
* @return This builder for chaining.
*/
public Builder clearWatermarkFlag() {
bitField0_ = (bitField0_ & ~0x00000020);
watermarkFlag_ = false;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation buyPremium_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> buyPremiumBuilder_;
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
* @return Whether the buyPremium field is set.
*/
public boolean hasBuyPremium() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
* @return The buyPremium.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getBuyPremium() {
if (buyPremiumBuilder_ == null) {
return buyPremium_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : buyPremium_;
} else {
return buyPremiumBuilder_.getMessage();
}
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
*/
public Builder setBuyPremium(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (buyPremiumBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buyPremium_ = value;
} else {
buyPremiumBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
*/
public Builder setBuyPremium(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (buyPremiumBuilder_ == null) {
buyPremium_ = builderForValue.build();
} else {
buyPremiumBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
*/
public Builder mergeBuyPremium(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (buyPremiumBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
buyPremium_ != null &&
buyPremium_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getBuyPremiumBuilder().mergeFrom(value);
} else {
buyPremium_ = value;
}
} else {
buyPremiumBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
*/
public Builder clearBuyPremium() {
bitField0_ = (bitField0_ & ~0x00000040);
buyPremium_ = null;
if (buyPremiumBuilder_ != null) {
buyPremiumBuilder_.dispose();
buyPremiumBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getBuyPremiumBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getBuyPremiumFieldBuilder().getBuilder();
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getBuyPremiumOrBuilder() {
if (buyPremiumBuilder_ != null) {
return buyPremiumBuilder_.getMessageOrBuilder();
} else {
return buyPremium_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : buyPremium_;
}
}
/**
*
*Премия (надбавка к цене) при покупке доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_premium = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getBuyPremiumFieldBuilder() {
if (buyPremiumBuilder_ == null) {
buyPremiumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getBuyPremium(),
getParentForChildren(),
isClean());
buyPremium_ = null;
}
return buyPremiumBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation sellDiscount_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> sellDiscountBuilder_;
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
* @return Whether the sellDiscount field is set.
*/
public boolean hasSellDiscount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
* @return The sellDiscount.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getSellDiscount() {
if (sellDiscountBuilder_ == null) {
return sellDiscount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : sellDiscount_;
} else {
return sellDiscountBuilder_.getMessage();
}
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
*/
public Builder setSellDiscount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (sellDiscountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sellDiscount_ = value;
} else {
sellDiscountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
*/
public Builder setSellDiscount(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (sellDiscountBuilder_ == null) {
sellDiscount_ = builderForValue.build();
} else {
sellDiscountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
*/
public Builder mergeSellDiscount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (sellDiscountBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
sellDiscount_ != null &&
sellDiscount_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getSellDiscountBuilder().mergeFrom(value);
} else {
sellDiscount_ = value;
}
} else {
sellDiscountBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
*/
public Builder clearSellDiscount() {
bitField0_ = (bitField0_ & ~0x00000080);
sellDiscount_ = null;
if (sellDiscountBuilder_ != null) {
sellDiscountBuilder_.dispose();
sellDiscountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getSellDiscountBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getSellDiscountFieldBuilder().getBuilder();
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getSellDiscountOrBuilder() {
if (sellDiscountBuilder_ != null) {
return sellDiscountBuilder_.getMessageOrBuilder();
} else {
return sellDiscount_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : sellDiscount_;
}
}
/**
*
*Ставка дисконта (вычет из цены) при продаже доли в фонде (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation sell_discount = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getSellDiscountFieldBuilder() {
if (sellDiscountBuilder_ == null) {
sellDiscountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getSellDiscount(),
getParentForChildren(),
isClean());
sellDiscount_ = null;
}
return sellDiscountBuilder_;
}
private boolean rebalancingFlag_ ;
/**
*
*Признак ребалансируемости портфеля фонда.
*
*
* bool rebalancing_flag = 9;
* @return The rebalancingFlag.
*/
@java.lang.Override
public boolean getRebalancingFlag() {
return rebalancingFlag_;
}
/**
*
*Признак ребалансируемости портфеля фонда.
*
*
* bool rebalancing_flag = 9;
* @param value The rebalancingFlag to set.
* @return This builder for chaining.
*/
public Builder setRebalancingFlag(boolean value) {
rebalancingFlag_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Признак ребалансируемости портфеля фонда.
*
*
* bool rebalancing_flag = 9;
* @return This builder for chaining.
*/
public Builder clearRebalancingFlag() {
bitField0_ = (bitField0_ & ~0x00000100);
rebalancingFlag_ = false;
onChanged();
return this;
}
private java.lang.Object rebalancingFreq_ = "";
/**
*
*Периодичность ребалансировки.
*
*
* string rebalancing_freq = 10;
* @return The rebalancingFreq.
*/
public java.lang.String getRebalancingFreq() {
java.lang.Object ref = rebalancingFreq_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rebalancingFreq_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Периодичность ребалансировки.
*
*
* string rebalancing_freq = 10;
* @return The bytes for rebalancingFreq.
*/
public com.google.protobuf.ByteString
getRebalancingFreqBytes() {
java.lang.Object ref = rebalancingFreq_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rebalancingFreq_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Периодичность ребалансировки.
*
*
* string rebalancing_freq = 10;
* @param value The rebalancingFreq to set.
* @return This builder for chaining.
*/
public Builder setRebalancingFreq(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rebalancingFreq_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Периодичность ребалансировки.
*
*
* string rebalancing_freq = 10;
* @return This builder for chaining.
*/
public Builder clearRebalancingFreq() {
rebalancingFreq_ = getDefaultInstance().getRebalancingFreq();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*Периодичность ребалансировки.
*
*
* string rebalancing_freq = 10;
* @param value The bytes for rebalancingFreq to set.
* @return This builder for chaining.
*/
public Builder setRebalancingFreqBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rebalancingFreq_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object managementType_ = "";
/**
*
*Тип управления.
*
*
* string management_type = 11;
* @return The managementType.
*/
public java.lang.String getManagementType() {
java.lang.Object ref = managementType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
managementType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Тип управления.
*
*
* string management_type = 11;
* @return The bytes for managementType.
*/
public com.google.protobuf.ByteString
getManagementTypeBytes() {
java.lang.Object ref = managementType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
managementType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Тип управления.
*
*
* string management_type = 11;
* @param value The managementType to set.
* @return This builder for chaining.
*/
public Builder setManagementType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
managementType_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Тип управления.
*
*
* string management_type = 11;
* @return This builder for chaining.
*/
public Builder clearManagementType() {
managementType_ = getDefaultInstance().getManagementType();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*Тип управления.
*
*
* string management_type = 11;
* @param value The bytes for managementType to set.
* @return This builder for chaining.
*/
public Builder setManagementTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
managementType_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object primaryIndex_ = "";
/**
*
*Индекс, который реплицирует (старается копировать) фонд.
*
*
* string primary_index = 12;
* @return The primaryIndex.
*/
public java.lang.String getPrimaryIndex() {
java.lang.Object ref = primaryIndex_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
primaryIndex_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Индекс, который реплицирует (старается копировать) фонд.
*
*
* string primary_index = 12;
* @return The bytes for primaryIndex.
*/
public com.google.protobuf.ByteString
getPrimaryIndexBytes() {
java.lang.Object ref = primaryIndex_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
primaryIndex_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Индекс, который реплицирует (старается копировать) фонд.
*
*
* string primary_index = 12;
* @param value The primaryIndex to set.
* @return This builder for chaining.
*/
public Builder setPrimaryIndex(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
primaryIndex_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Индекс, который реплицирует (старается копировать) фонд.
*
*
* string primary_index = 12;
* @return This builder for chaining.
*/
public Builder clearPrimaryIndex() {
primaryIndex_ = getDefaultInstance().getPrimaryIndex();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*Индекс, который реплицирует (старается копировать) фонд.
*
*
* string primary_index = 12;
* @param value The bytes for primaryIndex to set.
* @return This builder for chaining.
*/
public Builder setPrimaryIndexBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
primaryIndex_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private java.lang.Object focusType_ = "";
/**
*
*База ETF.
*
*
* string focus_type = 13;
* @return The focusType.
*/
public java.lang.String getFocusType() {
java.lang.Object ref = focusType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
focusType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*База ETF.
*
*
* string focus_type = 13;
* @return The bytes for focusType.
*/
public com.google.protobuf.ByteString
getFocusTypeBytes() {
java.lang.Object ref = focusType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
focusType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*База ETF.
*
*
* string focus_type = 13;
* @param value The focusType to set.
* @return This builder for chaining.
*/
public Builder setFocusType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
focusType_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*База ETF.
*
*
* string focus_type = 13;
* @return This builder for chaining.
*/
public Builder clearFocusType() {
focusType_ = getDefaultInstance().getFocusType();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
*База ETF.
*
*
* string focus_type = 13;
* @param value The bytes for focusType to set.
* @return This builder for chaining.
*/
public Builder setFocusTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
focusType_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private boolean leveragedFlag_ ;
/**
*
*Признак использования заемных активов (плечо).
*
*
* bool leveraged_flag = 14;
* @return The leveragedFlag.
*/
@java.lang.Override
public boolean getLeveragedFlag() {
return leveragedFlag_;
}
/**
*
*Признак использования заемных активов (плечо).
*
*
* bool leveraged_flag = 14;
* @param value The leveragedFlag to set.
* @return This builder for chaining.
*/
public Builder setLeveragedFlag(boolean value) {
leveragedFlag_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Признак использования заемных активов (плечо).
*
*
* bool leveraged_flag = 14;
* @return This builder for chaining.
*/
public Builder clearLeveragedFlag() {
bitField0_ = (bitField0_ & ~0x00002000);
leveragedFlag_ = false;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation numShare_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> numShareBuilder_;
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
* @return Whether the numShare field is set.
*/
public boolean hasNumShare() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
* @return The numShare.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getNumShare() {
if (numShareBuilder_ == null) {
return numShare_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : numShare_;
} else {
return numShareBuilder_.getMessage();
}
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
*/
public Builder setNumShare(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (numShareBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
numShare_ = value;
} else {
numShareBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
*/
public Builder setNumShare(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (numShareBuilder_ == null) {
numShare_ = builderForValue.build();
} else {
numShareBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
*/
public Builder mergeNumShare(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (numShareBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0) &&
numShare_ != null &&
numShare_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getNumShareBuilder().mergeFrom(value);
} else {
numShare_ = value;
}
} else {
numShareBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
*/
public Builder clearNumShare() {
bitField0_ = (bitField0_ & ~0x00004000);
numShare_ = null;
if (numShareBuilder_ != null) {
numShareBuilder_.dispose();
numShareBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getNumShareBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getNumShareFieldBuilder().getBuilder();
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getNumShareOrBuilder() {
if (numShareBuilder_ != null) {
return numShareBuilder_.getMessageOrBuilder();
} else {
return numShare_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : numShare_;
}
}
/**
*
*Количество акций в обращении.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation num_share = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getNumShareFieldBuilder() {
if (numShareBuilder_ == null) {
numShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getNumShare(),
getParentForChildren(),
isClean());
numShare_ = null;
}
return numShareBuilder_;
}
private boolean ucitsFlag_ ;
/**
*
*Признак обязательства по отчетности перед регулятором.
*
*
* bool ucits_flag = 16;
* @return The ucitsFlag.
*/
@java.lang.Override
public boolean getUcitsFlag() {
return ucitsFlag_;
}
/**
*
*Признак обязательства по отчетности перед регулятором.
*
*
* bool ucits_flag = 16;
* @param value The ucitsFlag to set.
* @return This builder for chaining.
*/
public Builder setUcitsFlag(boolean value) {
ucitsFlag_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Признак обязательства по отчетности перед регулятором.
*
*
* bool ucits_flag = 16;
* @return This builder for chaining.
*/
public Builder clearUcitsFlag() {
bitField0_ = (bitField0_ & ~0x00008000);
ucitsFlag_ = false;
onChanged();
return this;
}
private com.google.protobuf.Timestamp releasedDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> releasedDateBuilder_;
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
* @return Whether the releasedDate field is set.
*/
public boolean hasReleasedDate() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
* @return The releasedDate.
*/
public com.google.protobuf.Timestamp getReleasedDate() {
if (releasedDateBuilder_ == null) {
return releasedDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : releasedDate_;
} else {
return releasedDateBuilder_.getMessage();
}
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
*/
public Builder setReleasedDate(com.google.protobuf.Timestamp value) {
if (releasedDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
releasedDate_ = value;
} else {
releasedDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
*/
public Builder setReleasedDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (releasedDateBuilder_ == null) {
releasedDate_ = builderForValue.build();
} else {
releasedDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
*/
public Builder mergeReleasedDate(com.google.protobuf.Timestamp value) {
if (releasedDateBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0) &&
releasedDate_ != null &&
releasedDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getReleasedDateBuilder().mergeFrom(value);
} else {
releasedDate_ = value;
}
} else {
releasedDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
*/
public Builder clearReleasedDate() {
bitField0_ = (bitField0_ & ~0x00010000);
releasedDate_ = null;
if (releasedDateBuilder_ != null) {
releasedDateBuilder_.dispose();
releasedDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
*/
public com.google.protobuf.Timestamp.Builder getReleasedDateBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getReleasedDateFieldBuilder().getBuilder();
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
*/
public com.google.protobuf.TimestampOrBuilder getReleasedDateOrBuilder() {
if (releasedDateBuilder_ != null) {
return releasedDateBuilder_.getMessageOrBuilder();
} else {
return releasedDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : releasedDate_;
}
}
/**
*
*Дата выпуска.
*
*
* .google.protobuf.Timestamp released_date = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getReleasedDateFieldBuilder() {
if (releasedDateBuilder_ == null) {
releasedDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getReleasedDate(),
getParentForChildren(),
isClean());
releasedDate_ = null;
}
return releasedDateBuilder_;
}
private java.lang.Object description_ = "";
/**
*
*Описание фонда.
*
*
* string description = 18;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Описание фонда.
*
*
* string description = 18;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Описание фонда.
*
*
* string description = 18;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
description_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Описание фонда.
*
*
* string description = 18;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
*
*Описание фонда.
*
*
* string description = 18;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
private java.lang.Object primaryIndexDescription_ = "";
/**
*
*Описание индекса, за которым следует фонд.
*
*
* string primary_index_description = 19;
* @return The primaryIndexDescription.
*/
public java.lang.String getPrimaryIndexDescription() {
java.lang.Object ref = primaryIndexDescription_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
primaryIndexDescription_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Описание индекса, за которым следует фонд.
*
*
* string primary_index_description = 19;
* @return The bytes for primaryIndexDescription.
*/
public com.google.protobuf.ByteString
getPrimaryIndexDescriptionBytes() {
java.lang.Object ref = primaryIndexDescription_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
primaryIndexDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Описание индекса, за которым следует фонд.
*
*
* string primary_index_description = 19;
* @param value The primaryIndexDescription to set.
* @return This builder for chaining.
*/
public Builder setPrimaryIndexDescription(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
primaryIndexDescription_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*Описание индекса, за которым следует фонд.
*
*
* string primary_index_description = 19;
* @return This builder for chaining.
*/
public Builder clearPrimaryIndexDescription() {
primaryIndexDescription_ = getDefaultInstance().getPrimaryIndexDescription();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
*
*Описание индекса, за которым следует фонд.
*
*
* string primary_index_description = 19;
* @param value The bytes for primaryIndexDescription to set.
* @return This builder for chaining.
*/
public Builder setPrimaryIndexDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
primaryIndexDescription_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
private java.lang.Object primaryIndexCompany_ = "";
/**
*
*Основные компании, в которые вкладывается фонд.
*
*
* string primary_index_company = 20;
* @return The primaryIndexCompany.
*/
public java.lang.String getPrimaryIndexCompany() {
java.lang.Object ref = primaryIndexCompany_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
primaryIndexCompany_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Основные компании, в которые вкладывается фонд.
*
*
* string primary_index_company = 20;
* @return The bytes for primaryIndexCompany.
*/
public com.google.protobuf.ByteString
getPrimaryIndexCompanyBytes() {
java.lang.Object ref = primaryIndexCompany_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
primaryIndexCompany_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Основные компании, в которые вкладывается фонд.
*
*
* string primary_index_company = 20;
* @param value The primaryIndexCompany to set.
* @return This builder for chaining.
*/
public Builder setPrimaryIndexCompany(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
primaryIndexCompany_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*Основные компании, в которые вкладывается фонд.
*
*
* string primary_index_company = 20;
* @return This builder for chaining.
*/
public Builder clearPrimaryIndexCompany() {
primaryIndexCompany_ = getDefaultInstance().getPrimaryIndexCompany();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
/**
*
*Основные компании, в которые вкладывается фонд.
*
*
* string primary_index_company = 20;
* @param value The bytes for primaryIndexCompany to set.
* @return This builder for chaining.
*/
public Builder setPrimaryIndexCompanyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
primaryIndexCompany_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation indexRecoveryPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> indexRecoveryPeriodBuilder_;
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
* @return Whether the indexRecoveryPeriod field is set.
*/
public boolean hasIndexRecoveryPeriod() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
* @return The indexRecoveryPeriod.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getIndexRecoveryPeriod() {
if (indexRecoveryPeriodBuilder_ == null) {
return indexRecoveryPeriod_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : indexRecoveryPeriod_;
} else {
return indexRecoveryPeriodBuilder_.getMessage();
}
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
*/
public Builder setIndexRecoveryPeriod(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (indexRecoveryPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
indexRecoveryPeriod_ = value;
} else {
indexRecoveryPeriodBuilder_.setMessage(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
*/
public Builder setIndexRecoveryPeriod(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (indexRecoveryPeriodBuilder_ == null) {
indexRecoveryPeriod_ = builderForValue.build();
} else {
indexRecoveryPeriodBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
*/
public Builder mergeIndexRecoveryPeriod(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (indexRecoveryPeriodBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0) &&
indexRecoveryPeriod_ != null &&
indexRecoveryPeriod_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getIndexRecoveryPeriodBuilder().mergeFrom(value);
} else {
indexRecoveryPeriod_ = value;
}
} else {
indexRecoveryPeriodBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
*/
public Builder clearIndexRecoveryPeriod() {
bitField0_ = (bitField0_ & ~0x00100000);
indexRecoveryPeriod_ = null;
if (indexRecoveryPeriodBuilder_ != null) {
indexRecoveryPeriodBuilder_.dispose();
indexRecoveryPeriodBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getIndexRecoveryPeriodBuilder() {
bitField0_ |= 0x00100000;
onChanged();
return getIndexRecoveryPeriodFieldBuilder().getBuilder();
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getIndexRecoveryPeriodOrBuilder() {
if (indexRecoveryPeriodBuilder_ != null) {
return indexRecoveryPeriodBuilder_.getMessageOrBuilder();
} else {
return indexRecoveryPeriod_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : indexRecoveryPeriod_;
}
}
/**
*
*Срок восстановления индекса (после просадки).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation index_recovery_period = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getIndexRecoveryPeriodFieldBuilder() {
if (indexRecoveryPeriodBuilder_ == null) {
indexRecoveryPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getIndexRecoveryPeriod(),
getParentForChildren(),
isClean());
indexRecoveryPeriod_ = null;
}
return indexRecoveryPeriodBuilder_;
}
private java.lang.Object inavCode_ = "";
/**
*
*IVAV-код.
*
*
* string inav_code = 22;
* @return The inavCode.
*/
public java.lang.String getInavCode() {
java.lang.Object ref = inavCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
inavCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*IVAV-код.
*
*
* string inav_code = 22;
* @return The bytes for inavCode.
*/
public com.google.protobuf.ByteString
getInavCodeBytes() {
java.lang.Object ref = inavCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inavCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*IVAV-код.
*
*
* string inav_code = 22;
* @param value The inavCode to set.
* @return This builder for chaining.
*/
public Builder setInavCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
inavCode_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
*IVAV-код.
*
*
* string inav_code = 22;
* @return This builder for chaining.
*/
public Builder clearInavCode() {
inavCode_ = getDefaultInstance().getInavCode();
bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
return this;
}
/**
*
*IVAV-код.
*
*
* string inav_code = 22;
* @param value The bytes for inavCode to set.
* @return This builder for chaining.
*/
public Builder setInavCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
inavCode_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
private boolean divYieldFlag_ ;
/**
*
*Признак наличия дивидендной доходности.
*
*
* bool div_yield_flag = 23;
* @return The divYieldFlag.
*/
@java.lang.Override
public boolean getDivYieldFlag() {
return divYieldFlag_;
}
/**
*
*Признак наличия дивидендной доходности.
*
*
* bool div_yield_flag = 23;
* @param value The divYieldFlag to set.
* @return This builder for chaining.
*/
public Builder setDivYieldFlag(boolean value) {
divYieldFlag_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
*Признак наличия дивидендной доходности.
*
*
* bool div_yield_flag = 23;
* @return This builder for chaining.
*/
public Builder clearDivYieldFlag() {
bitField0_ = (bitField0_ & ~0x00400000);
divYieldFlag_ = false;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation expenseCommission_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> expenseCommissionBuilder_;
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
* @return Whether the expenseCommission field is set.
*/
public boolean hasExpenseCommission() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
* @return The expenseCommission.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getExpenseCommission() {
if (expenseCommissionBuilder_ == null) {
return expenseCommission_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expenseCommission_;
} else {
return expenseCommissionBuilder_.getMessage();
}
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
*/
public Builder setExpenseCommission(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (expenseCommissionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expenseCommission_ = value;
} else {
expenseCommissionBuilder_.setMessage(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
*/
public Builder setExpenseCommission(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (expenseCommissionBuilder_ == null) {
expenseCommission_ = builderForValue.build();
} else {
expenseCommissionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
*/
public Builder mergeExpenseCommission(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (expenseCommissionBuilder_ == null) {
if (((bitField0_ & 0x00800000) != 0) &&
expenseCommission_ != null &&
expenseCommission_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getExpenseCommissionBuilder().mergeFrom(value);
} else {
expenseCommission_ = value;
}
} else {
expenseCommissionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
*/
public Builder clearExpenseCommission() {
bitField0_ = (bitField0_ & ~0x00800000);
expenseCommission_ = null;
if (expenseCommissionBuilder_ != null) {
expenseCommissionBuilder_.dispose();
expenseCommissionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getExpenseCommissionBuilder() {
bitField0_ |= 0x00800000;
onChanged();
return getExpenseCommissionFieldBuilder().getBuilder();
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getExpenseCommissionOrBuilder() {
if (expenseCommissionBuilder_ != null) {
return expenseCommissionBuilder_.getMessageOrBuilder();
} else {
return expenseCommission_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : expenseCommission_;
}
}
/**
*
*Комиссия на покрытие расходов фонда (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation expense_commission = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getExpenseCommissionFieldBuilder() {
if (expenseCommissionBuilder_ == null) {
expenseCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getExpenseCommission(),
getParentForChildren(),
isClean());
expenseCommission_ = null;
}
return expenseCommissionBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation primaryIndexTrackingError_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> primaryIndexTrackingErrorBuilder_;
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
* @return Whether the primaryIndexTrackingError field is set.
*/
public boolean hasPrimaryIndexTrackingError() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
* @return The primaryIndexTrackingError.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getPrimaryIndexTrackingError() {
if (primaryIndexTrackingErrorBuilder_ == null) {
return primaryIndexTrackingError_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : primaryIndexTrackingError_;
} else {
return primaryIndexTrackingErrorBuilder_.getMessage();
}
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
*/
public Builder setPrimaryIndexTrackingError(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (primaryIndexTrackingErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
primaryIndexTrackingError_ = value;
} else {
primaryIndexTrackingErrorBuilder_.setMessage(value);
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
*/
public Builder setPrimaryIndexTrackingError(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (primaryIndexTrackingErrorBuilder_ == null) {
primaryIndexTrackingError_ = builderForValue.build();
} else {
primaryIndexTrackingErrorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
*/
public Builder mergePrimaryIndexTrackingError(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (primaryIndexTrackingErrorBuilder_ == null) {
if (((bitField0_ & 0x01000000) != 0) &&
primaryIndexTrackingError_ != null &&
primaryIndexTrackingError_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getPrimaryIndexTrackingErrorBuilder().mergeFrom(value);
} else {
primaryIndexTrackingError_ = value;
}
} else {
primaryIndexTrackingErrorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
*/
public Builder clearPrimaryIndexTrackingError() {
bitField0_ = (bitField0_ & ~0x01000000);
primaryIndexTrackingError_ = null;
if (primaryIndexTrackingErrorBuilder_ != null) {
primaryIndexTrackingErrorBuilder_.dispose();
primaryIndexTrackingErrorBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getPrimaryIndexTrackingErrorBuilder() {
bitField0_ |= 0x01000000;
onChanged();
return getPrimaryIndexTrackingErrorFieldBuilder().getBuilder();
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getPrimaryIndexTrackingErrorOrBuilder() {
if (primaryIndexTrackingErrorBuilder_ != null) {
return primaryIndexTrackingErrorBuilder_.getMessageOrBuilder();
} else {
return primaryIndexTrackingError_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : primaryIndexTrackingError_;
}
}
/**
*
*Ошибка следования за индексом (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation primary_index_tracking_error = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getPrimaryIndexTrackingErrorFieldBuilder() {
if (primaryIndexTrackingErrorBuilder_ == null) {
primaryIndexTrackingErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getPrimaryIndexTrackingError(),
getParentForChildren(),
isClean());
primaryIndexTrackingError_ = null;
}
return primaryIndexTrackingErrorBuilder_;
}
private java.lang.Object rebalancingPlan_ = "";
/**
*
*Плановая ребалансировка портфеля.
*
*
* string rebalancing_plan = 26;
* @return The rebalancingPlan.
*/
public java.lang.String getRebalancingPlan() {
java.lang.Object ref = rebalancingPlan_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rebalancingPlan_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Плановая ребалансировка портфеля.
*
*
* string rebalancing_plan = 26;
* @return The bytes for rebalancingPlan.
*/
public com.google.protobuf.ByteString
getRebalancingPlanBytes() {
java.lang.Object ref = rebalancingPlan_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rebalancingPlan_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Плановая ребалансировка портфеля.
*
*
* string rebalancing_plan = 26;
* @param value The rebalancingPlan to set.
* @return This builder for chaining.
*/
public Builder setRebalancingPlan(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rebalancingPlan_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
*Плановая ребалансировка портфеля.
*
*
* string rebalancing_plan = 26;
* @return This builder for chaining.
*/
public Builder clearRebalancingPlan() {
rebalancingPlan_ = getDefaultInstance().getRebalancingPlan();
bitField0_ = (bitField0_ & ~0x02000000);
onChanged();
return this;
}
/**
*
*Плановая ребалансировка портфеля.
*
*
* string rebalancing_plan = 26;
* @param value The bytes for rebalancingPlan to set.
* @return This builder for chaining.
*/
public Builder setRebalancingPlanBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rebalancingPlan_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
private java.lang.Object taxRate_ = "";
/**
*
*Ставки налогообложения дивидендов и купонов.
*
*
* string tax_rate = 27;
* @return The taxRate.
*/
public java.lang.String getTaxRate() {
java.lang.Object ref = taxRate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
taxRate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Ставки налогообложения дивидендов и купонов.
*
*
* string tax_rate = 27;
* @return The bytes for taxRate.
*/
public com.google.protobuf.ByteString
getTaxRateBytes() {
java.lang.Object ref = taxRate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taxRate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Ставки налогообложения дивидендов и купонов.
*
*
* string tax_rate = 27;
* @param value The taxRate to set.
* @return This builder for chaining.
*/
public Builder setTaxRate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
taxRate_ = value;
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
*Ставки налогообложения дивидендов и купонов.
*
*
* string tax_rate = 27;
* @return This builder for chaining.
*/
public Builder clearTaxRate() {
taxRate_ = getDefaultInstance().getTaxRate();
bitField0_ = (bitField0_ & ~0x04000000);
onChanged();
return this;
}
/**
*
*Ставки налогообложения дивидендов и купонов.
*
*
* string tax_rate = 27;
* @param value The bytes for taxRate to set.
* @return This builder for chaining.
*/
public Builder setTaxRateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
taxRate_ = value;
bitField0_ |= 0x04000000;
onChanged();
return this;
}
private java.util.List rebalancingDates_ =
java.util.Collections.emptyList();
private void ensureRebalancingDatesIsMutable() {
if (!((bitField0_ & 0x08000000) != 0)) {
rebalancingDates_ = new java.util.ArrayList(rebalancingDates_);
bitField0_ |= 0x08000000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> rebalancingDatesBuilder_;
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public java.util.List getRebalancingDatesList() {
if (rebalancingDatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(rebalancingDates_);
} else {
return rebalancingDatesBuilder_.getMessageList();
}
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public int getRebalancingDatesCount() {
if (rebalancingDatesBuilder_ == null) {
return rebalancingDates_.size();
} else {
return rebalancingDatesBuilder_.getCount();
}
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public com.google.protobuf.Timestamp getRebalancingDates(int index) {
if (rebalancingDatesBuilder_ == null) {
return rebalancingDates_.get(index);
} else {
return rebalancingDatesBuilder_.getMessage(index);
}
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder setRebalancingDates(
int index, com.google.protobuf.Timestamp value) {
if (rebalancingDatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRebalancingDatesIsMutable();
rebalancingDates_.set(index, value);
onChanged();
} else {
rebalancingDatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder setRebalancingDates(
int index, com.google.protobuf.Timestamp.Builder builderForValue) {
if (rebalancingDatesBuilder_ == null) {
ensureRebalancingDatesIsMutable();
rebalancingDates_.set(index, builderForValue.build());
onChanged();
} else {
rebalancingDatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder addRebalancingDates(com.google.protobuf.Timestamp value) {
if (rebalancingDatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRebalancingDatesIsMutable();
rebalancingDates_.add(value);
onChanged();
} else {
rebalancingDatesBuilder_.addMessage(value);
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder addRebalancingDates(
int index, com.google.protobuf.Timestamp value) {
if (rebalancingDatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRebalancingDatesIsMutable();
rebalancingDates_.add(index, value);
onChanged();
} else {
rebalancingDatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder addRebalancingDates(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (rebalancingDatesBuilder_ == null) {
ensureRebalancingDatesIsMutable();
rebalancingDates_.add(builderForValue.build());
onChanged();
} else {
rebalancingDatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder addRebalancingDates(
int index, com.google.protobuf.Timestamp.Builder builderForValue) {
if (rebalancingDatesBuilder_ == null) {
ensureRebalancingDatesIsMutable();
rebalancingDates_.add(index, builderForValue.build());
onChanged();
} else {
rebalancingDatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder addAllRebalancingDates(
java.lang.Iterable extends com.google.protobuf.Timestamp> values) {
if (rebalancingDatesBuilder_ == null) {
ensureRebalancingDatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rebalancingDates_);
onChanged();
} else {
rebalancingDatesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder clearRebalancingDates() {
if (rebalancingDatesBuilder_ == null) {
rebalancingDates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x08000000);
onChanged();
} else {
rebalancingDatesBuilder_.clear();
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public Builder removeRebalancingDates(int index) {
if (rebalancingDatesBuilder_ == null) {
ensureRebalancingDatesIsMutable();
rebalancingDates_.remove(index);
onChanged();
} else {
rebalancingDatesBuilder_.remove(index);
}
return this;
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public com.google.protobuf.Timestamp.Builder getRebalancingDatesBuilder(
int index) {
return getRebalancingDatesFieldBuilder().getBuilder(index);
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public com.google.protobuf.TimestampOrBuilder getRebalancingDatesOrBuilder(
int index) {
if (rebalancingDatesBuilder_ == null) {
return rebalancingDates_.get(index); } else {
return rebalancingDatesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public java.util.List extends com.google.protobuf.TimestampOrBuilder>
getRebalancingDatesOrBuilderList() {
if (rebalancingDatesBuilder_ != null) {
return rebalancingDatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rebalancingDates_);
}
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public com.google.protobuf.Timestamp.Builder addRebalancingDatesBuilder() {
return getRebalancingDatesFieldBuilder().addBuilder(
com.google.protobuf.Timestamp.getDefaultInstance());
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public com.google.protobuf.Timestamp.Builder addRebalancingDatesBuilder(
int index) {
return getRebalancingDatesFieldBuilder().addBuilder(
index, com.google.protobuf.Timestamp.getDefaultInstance());
}
/**
*
*Даты ребалансировок.
*
*
* repeated .google.protobuf.Timestamp rebalancing_dates = 28;
*/
public java.util.List
getRebalancingDatesBuilderList() {
return getRebalancingDatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getRebalancingDatesFieldBuilder() {
if (rebalancingDatesBuilder_ == null) {
rebalancingDatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
rebalancingDates_,
((bitField0_ & 0x08000000) != 0),
getParentForChildren(),
isClean());
rebalancingDates_ = null;
}
return rebalancingDatesBuilder_;
}
private java.lang.Object issueKind_ = "";
/**
*
*Форма выпуска.
*
*
* string issue_kind = 29;
* @return The issueKind.
*/
public java.lang.String getIssueKind() {
java.lang.Object ref = issueKind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issueKind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Форма выпуска.
*
*
* string issue_kind = 29;
* @return The bytes for issueKind.
*/
public com.google.protobuf.ByteString
getIssueKindBytes() {
java.lang.Object ref = issueKind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
issueKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Форма выпуска.
*
*
* string issue_kind = 29;
* @param value The issueKind to set.
* @return This builder for chaining.
*/
public Builder setIssueKind(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
issueKind_ = value;
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
*
*Форма выпуска.
*
*
* string issue_kind = 29;
* @return This builder for chaining.
*/
public Builder clearIssueKind() {
issueKind_ = getDefaultInstance().getIssueKind();
bitField0_ = (bitField0_ & ~0x10000000);
onChanged();
return this;
}
/**
*
*Форма выпуска.
*
*
* string issue_kind = 29;
* @param value The bytes for issueKind to set.
* @return This builder for chaining.
*/
public Builder setIssueKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
issueKind_ = value;
bitField0_ |= 0x10000000;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation nominal_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> nominalBuilder_;
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
* @return Whether the nominal field is set.
*/
public boolean hasNominal() {
return ((bitField0_ & 0x20000000) != 0);
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
* @return The nominal.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getNominal() {
if (nominalBuilder_ == null) {
return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_;
} else {
return nominalBuilder_.getMessage();
}
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
*/
public Builder setNominal(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (nominalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nominal_ = value;
} else {
nominalBuilder_.setMessage(value);
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
*/
public Builder setNominal(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (nominalBuilder_ == null) {
nominal_ = builderForValue.build();
} else {
nominalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
*/
public Builder mergeNominal(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (nominalBuilder_ == null) {
if (((bitField0_ & 0x20000000) != 0) &&
nominal_ != null &&
nominal_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getNominalBuilder().mergeFrom(value);
} else {
nominal_ = value;
}
} else {
nominalBuilder_.mergeFrom(value);
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
*/
public Builder clearNominal() {
bitField0_ = (bitField0_ & ~0x20000000);
nominal_ = null;
if (nominalBuilder_ != null) {
nominalBuilder_.dispose();
nominalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getNominalBuilder() {
bitField0_ |= 0x20000000;
onChanged();
return getNominalFieldBuilder().getBuilder();
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getNominalOrBuilder() {
if (nominalBuilder_ != null) {
return nominalBuilder_.getMessageOrBuilder();
} else {
return nominal_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_;
}
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 30;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getNominalFieldBuilder() {
if (nominalBuilder_ == null) {
nominalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getNominal(),
getParentForChildren(),
isClean());
nominal_ = null;
}
return nominalBuilder_;
}
private java.lang.Object nominalCurrency_ = "";
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 31;
* @return The nominalCurrency.
*/
public java.lang.String getNominalCurrency() {
java.lang.Object ref = nominalCurrency_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nominalCurrency_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 31;
* @return The bytes for nominalCurrency.
*/
public com.google.protobuf.ByteString
getNominalCurrencyBytes() {
java.lang.Object ref = nominalCurrency_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nominalCurrency_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 31;
* @param value The nominalCurrency to set.
* @return This builder for chaining.
*/
public Builder setNominalCurrency(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nominalCurrency_ = value;
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 31;
* @return This builder for chaining.
*/
public Builder clearNominalCurrency() {
nominalCurrency_ = getDefaultInstance().getNominalCurrency();
bitField0_ = (bitField0_ & ~0x40000000);
onChanged();
return this;
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 31;
* @param value The bytes for nominalCurrency to set.
* @return This builder for chaining.
*/
public Builder setNominalCurrencyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nominalCurrency_ = value;
bitField0_ |= 0x40000000;
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.AssetEtf)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.AssetEtf)
private static final ru.tinkoff.piapi.contract.v1.AssetEtf DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.AssetEtf();
}
public static ru.tinkoff.piapi.contract.v1.AssetEtf getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetEtf 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.AssetEtf getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}