![JAR search and dependency download from the Maven repository](/logo.png)
ru.tinkoff.piapi.contract.v1.AssetBond Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: instruments.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Облигация.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.AssetBond}
*/
public final class AssetBond extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.AssetBond)
AssetBondOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetBond.newBuilder() to construct.
private AssetBond(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetBond() {
borrowName_ = "";
nominalCurrency_ = "";
issueKind_ = "";
interestKind_ = "";
returnCondition_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssetBond();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetBond_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_AssetBond_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AssetBond.class, ru.tinkoff.piapi.contract.v1.AssetBond.Builder.class);
}
public static final int CURRENT_NOMINAL_FIELD_NUMBER = 1;
private ru.tinkoff.piapi.contract.v1.Quotation currentNominal_;
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
* @return Whether the currentNominal field is set.
*/
@java.lang.Override
public boolean hasCurrentNominal() {
return currentNominal_ != null;
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
* @return The currentNominal.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getCurrentNominal() {
return currentNominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : currentNominal_;
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getCurrentNominalOrBuilder() {
return currentNominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : currentNominal_;
}
public static final int BORROW_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object borrowName_ = "";
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 2;
* @return The borrowName.
*/
@java.lang.Override
public java.lang.String getBorrowName() {
java.lang.Object ref = borrowName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
borrowName_ = s;
return s;
}
}
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 2;
* @return The bytes for borrowName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBorrowNameBytes() {
java.lang.Object ref = borrowName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
borrowName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ISSUE_SIZE_FIELD_NUMBER = 3;
private ru.tinkoff.piapi.contract.v1.Quotation issueSize_;
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
* @return Whether the issueSize field is set.
*/
@java.lang.Override
public boolean hasIssueSize() {
return issueSize_ != null;
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
* @return The issueSize.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getIssueSize() {
return issueSize_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSize_;
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getIssueSizeOrBuilder() {
return issueSize_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSize_;
}
public static final int NOMINAL_FIELD_NUMBER = 4;
private ru.tinkoff.piapi.contract.v1.Quotation nominal_;
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
* @return Whether the nominal field is set.
*/
@java.lang.Override
public boolean hasNominal() {
return nominal_ != null;
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
* @return The nominal.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getNominal() {
return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_;
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getNominalOrBuilder() {
return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_;
}
public static final int NOMINAL_CURRENCY_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object nominalCurrency_ = "";
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 5;
* @return The nominalCurrency.
*/
@java.lang.Override
public java.lang.String getNominalCurrency() {
java.lang.Object ref = nominalCurrency_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nominalCurrency_ = s;
return s;
}
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 5;
* @return The bytes for nominalCurrency.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNominalCurrencyBytes() {
java.lang.Object ref = nominalCurrency_;
if (ref instanceof java.lang.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;
}
}
public static final int ISSUE_KIND_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object issueKind_ = "";
/**
*
*Форма выпуска облигации.
*
*
* string issue_kind = 6;
* @return The issueKind.
*/
@java.lang.Override
public java.lang.String getIssueKind() {
java.lang.Object ref = issueKind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issueKind_ = s;
return s;
}
}
/**
*
*Форма выпуска облигации.
*
*
* string issue_kind = 6;
* @return The bytes for issueKind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIssueKindBytes() {
java.lang.Object ref = issueKind_;
if (ref instanceof java.lang.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;
}
}
public static final int INTEREST_KIND_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object interestKind_ = "";
/**
*
*Форма дохода облигации.
*
*
* string interest_kind = 7;
* @return The interestKind.
*/
@java.lang.Override
public java.lang.String getInterestKind() {
java.lang.Object ref = interestKind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
interestKind_ = s;
return s;
}
}
/**
*
*Форма дохода облигации.
*
*
* string interest_kind = 7;
* @return The bytes for interestKind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInterestKindBytes() {
java.lang.Object ref = interestKind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
interestKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUPON_QUANTITY_PER_YEAR_FIELD_NUMBER = 8;
private int couponQuantityPerYear_ = 0;
/**
*
*Количество выплат в год.
*
*
* int32 coupon_quantity_per_year = 8;
* @return The couponQuantityPerYear.
*/
@java.lang.Override
public int getCouponQuantityPerYear() {
return couponQuantityPerYear_;
}
public static final int INDEXED_NOMINAL_FLAG_FIELD_NUMBER = 9;
private boolean indexedNominalFlag_ = false;
/**
*
*Признак облигации с индексируемым номиналом.
*
*
* bool indexed_nominal_flag = 9;
* @return The indexedNominalFlag.
*/
@java.lang.Override
public boolean getIndexedNominalFlag() {
return indexedNominalFlag_;
}
public static final int SUBORDINATED_FLAG_FIELD_NUMBER = 10;
private boolean subordinatedFlag_ = false;
/**
*
*Признак субординированной облигации.
*
*
* bool subordinated_flag = 10;
* @return The subordinatedFlag.
*/
@java.lang.Override
public boolean getSubordinatedFlag() {
return subordinatedFlag_;
}
public static final int COLLATERAL_FLAG_FIELD_NUMBER = 11;
private boolean collateralFlag_ = false;
/**
*
*Признак обеспеченной облигации.
*
*
* bool collateral_flag = 11;
* @return The collateralFlag.
*/
@java.lang.Override
public boolean getCollateralFlag() {
return collateralFlag_;
}
public static final int TAX_FREE_FLAG_FIELD_NUMBER = 12;
private boolean taxFreeFlag_ = false;
/**
*
*Признак показывает, что купоны облигации не облагаются налогом (для mass market).
*
*
* bool tax_free_flag = 12;
* @return The taxFreeFlag.
*/
@java.lang.Override
public boolean getTaxFreeFlag() {
return taxFreeFlag_;
}
public static final int AMORTIZATION_FLAG_FIELD_NUMBER = 13;
private boolean amortizationFlag_ = false;
/**
*
*Признак облигации с амортизацией долга.
*
*
* bool amortization_flag = 13;
* @return The amortizationFlag.
*/
@java.lang.Override
public boolean getAmortizationFlag() {
return amortizationFlag_;
}
public static final int FLOATING_COUPON_FLAG_FIELD_NUMBER = 14;
private boolean floatingCouponFlag_ = false;
/**
*
*Признак облигации с плавающим купоном.
*
*
* bool floating_coupon_flag = 14;
* @return The floatingCouponFlag.
*/
@java.lang.Override
public boolean getFloatingCouponFlag() {
return floatingCouponFlag_;
}
public static final int PERPETUAL_FLAG_FIELD_NUMBER = 15;
private boolean perpetualFlag_ = false;
/**
*
*Признак бессрочной облигации.
*
*
* bool perpetual_flag = 15;
* @return The perpetualFlag.
*/
@java.lang.Override
public boolean getPerpetualFlag() {
return perpetualFlag_;
}
public static final int MATURITY_DATE_FIELD_NUMBER = 16;
private com.google.protobuf.Timestamp maturityDate_;
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
* @return Whether the maturityDate field is set.
*/
@java.lang.Override
public boolean hasMaturityDate() {
return maturityDate_ != null;
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
* @return The maturityDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getMaturityDate() {
return maturityDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maturityDate_;
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getMaturityDateOrBuilder() {
return maturityDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maturityDate_;
}
public static final int RETURN_CONDITION_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object returnCondition_ = "";
/**
*
*Описание и условия получения дополнительного дохода.
*
*
* string return_condition = 17;
* @return The returnCondition.
*/
@java.lang.Override
public java.lang.String getReturnCondition() {
java.lang.Object ref = returnCondition_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnCondition_ = s;
return s;
}
}
/**
*
*Описание и условия получения дополнительного дохода.
*
*
* string return_condition = 17;
* @return The bytes for returnCondition.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReturnConditionBytes() {
java.lang.Object ref = returnCondition_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnCondition_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_REG_DATE_FIELD_NUMBER = 18;
private com.google.protobuf.Timestamp stateRegDate_;
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
* @return Whether the stateRegDate field is set.
*/
@java.lang.Override
public boolean hasStateRegDate() {
return stateRegDate_ != null;
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
* @return The stateRegDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStateRegDate() {
return stateRegDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateRegDate_;
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStateRegDateOrBuilder() {
return stateRegDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateRegDate_;
}
public static final int PLACEMENT_DATE_FIELD_NUMBER = 19;
private com.google.protobuf.Timestamp placementDate_;
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
* @return Whether the placementDate field is set.
*/
@java.lang.Override
public boolean hasPlacementDate() {
return placementDate_ != null;
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
* @return The placementDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getPlacementDate() {
return placementDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : placementDate_;
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getPlacementDateOrBuilder() {
return placementDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : placementDate_;
}
public static final int PLACEMENT_PRICE_FIELD_NUMBER = 20;
private ru.tinkoff.piapi.contract.v1.Quotation placementPrice_;
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
* @return Whether the placementPrice field is set.
*/
@java.lang.Override
public boolean hasPlacementPrice() {
return placementPrice_ != null;
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
* @return The placementPrice.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getPlacementPrice() {
return placementPrice_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : placementPrice_;
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getPlacementPriceOrBuilder() {
return placementPrice_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : placementPrice_;
}
public static final int ISSUE_SIZE_PLAN_FIELD_NUMBER = 21;
private ru.tinkoff.piapi.contract.v1.Quotation issueSizePlan_;
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
* @return Whether the issueSizePlan field is set.
*/
@java.lang.Override
public boolean hasIssueSizePlan() {
return issueSizePlan_ != null;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
* @return The issueSizePlan.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getIssueSizePlan() {
return issueSizePlan_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSizePlan_;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getIssueSizePlanOrBuilder() {
return issueSizePlan_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSizePlan_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (currentNominal_ != null) {
output.writeMessage(1, getCurrentNominal());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(borrowName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, borrowName_);
}
if (issueSize_ != null) {
output.writeMessage(3, getIssueSize());
}
if (nominal_ != null) {
output.writeMessage(4, getNominal());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nominalCurrency_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nominalCurrency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issueKind_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, issueKind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interestKind_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, interestKind_);
}
if (couponQuantityPerYear_ != 0) {
output.writeInt32(8, couponQuantityPerYear_);
}
if (indexedNominalFlag_ != false) {
output.writeBool(9, indexedNominalFlag_);
}
if (subordinatedFlag_ != false) {
output.writeBool(10, subordinatedFlag_);
}
if (collateralFlag_ != false) {
output.writeBool(11, collateralFlag_);
}
if (taxFreeFlag_ != false) {
output.writeBool(12, taxFreeFlag_);
}
if (amortizationFlag_ != false) {
output.writeBool(13, amortizationFlag_);
}
if (floatingCouponFlag_ != false) {
output.writeBool(14, floatingCouponFlag_);
}
if (perpetualFlag_ != false) {
output.writeBool(15, perpetualFlag_);
}
if (maturityDate_ != null) {
output.writeMessage(16, getMaturityDate());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(returnCondition_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, returnCondition_);
}
if (stateRegDate_ != null) {
output.writeMessage(18, getStateRegDate());
}
if (placementDate_ != null) {
output.writeMessage(19, getPlacementDate());
}
if (placementPrice_ != null) {
output.writeMessage(20, getPlacementPrice());
}
if (issueSizePlan_ != null) {
output.writeMessage(21, getIssueSizePlan());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (currentNominal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCurrentNominal());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(borrowName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, borrowName_);
}
if (issueSize_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getIssueSize());
}
if (nominal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getNominal());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nominalCurrency_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nominalCurrency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issueKind_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, issueKind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interestKind_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interestKind_);
}
if (couponQuantityPerYear_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, couponQuantityPerYear_);
}
if (indexedNominalFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, indexedNominalFlag_);
}
if (subordinatedFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, subordinatedFlag_);
}
if (collateralFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, collateralFlag_);
}
if (taxFreeFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, taxFreeFlag_);
}
if (amortizationFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, amortizationFlag_);
}
if (floatingCouponFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, floatingCouponFlag_);
}
if (perpetualFlag_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, perpetualFlag_);
}
if (maturityDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getMaturityDate());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(returnCondition_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, returnCondition_);
}
if (stateRegDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getStateRegDate());
}
if (placementDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getPlacementDate());
}
if (placementPrice_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getPlacementPrice());
}
if (issueSizePlan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getIssueSizePlan());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ru.tinkoff.piapi.contract.v1.AssetBond)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.AssetBond other = (ru.tinkoff.piapi.contract.v1.AssetBond) obj;
if (hasCurrentNominal() != other.hasCurrentNominal()) return false;
if (hasCurrentNominal()) {
if (!getCurrentNominal()
.equals(other.getCurrentNominal())) return false;
}
if (!getBorrowName()
.equals(other.getBorrowName())) return false;
if (hasIssueSize() != other.hasIssueSize()) return false;
if (hasIssueSize()) {
if (!getIssueSize()
.equals(other.getIssueSize())) return false;
}
if (hasNominal() != other.hasNominal()) return false;
if (hasNominal()) {
if (!getNominal()
.equals(other.getNominal())) return false;
}
if (!getNominalCurrency()
.equals(other.getNominalCurrency())) return false;
if (!getIssueKind()
.equals(other.getIssueKind())) return false;
if (!getInterestKind()
.equals(other.getInterestKind())) return false;
if (getCouponQuantityPerYear()
!= other.getCouponQuantityPerYear()) return false;
if (getIndexedNominalFlag()
!= other.getIndexedNominalFlag()) return false;
if (getSubordinatedFlag()
!= other.getSubordinatedFlag()) return false;
if (getCollateralFlag()
!= other.getCollateralFlag()) return false;
if (getTaxFreeFlag()
!= other.getTaxFreeFlag()) return false;
if (getAmortizationFlag()
!= other.getAmortizationFlag()) return false;
if (getFloatingCouponFlag()
!= other.getFloatingCouponFlag()) return false;
if (getPerpetualFlag()
!= other.getPerpetualFlag()) return false;
if (hasMaturityDate() != other.hasMaturityDate()) return false;
if (hasMaturityDate()) {
if (!getMaturityDate()
.equals(other.getMaturityDate())) return false;
}
if (!getReturnCondition()
.equals(other.getReturnCondition())) return false;
if (hasStateRegDate() != other.hasStateRegDate()) return false;
if (hasStateRegDate()) {
if (!getStateRegDate()
.equals(other.getStateRegDate())) return false;
}
if (hasPlacementDate() != other.hasPlacementDate()) return false;
if (hasPlacementDate()) {
if (!getPlacementDate()
.equals(other.getPlacementDate())) return false;
}
if (hasPlacementPrice() != other.hasPlacementPrice()) return false;
if (hasPlacementPrice()) {
if (!getPlacementPrice()
.equals(other.getPlacementPrice())) return false;
}
if (hasIssueSizePlan() != other.hasIssueSizePlan()) return false;
if (hasIssueSizePlan()) {
if (!getIssueSizePlan()
.equals(other.getIssueSizePlan())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCurrentNominal()) {
hash = (37 * hash) + CURRENT_NOMINAL_FIELD_NUMBER;
hash = (53 * hash) + getCurrentNominal().hashCode();
}
hash = (37 * hash) + BORROW_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBorrowName().hashCode();
if (hasIssueSize()) {
hash = (37 * hash) + ISSUE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getIssueSize().hashCode();
}
if (hasNominal()) {
hash = (37 * hash) + NOMINAL_FIELD_NUMBER;
hash = (53 * hash) + getNominal().hashCode();
}
hash = (37 * hash) + NOMINAL_CURRENCY_FIELD_NUMBER;
hash = (53 * hash) + getNominalCurrency().hashCode();
hash = (37 * hash) + ISSUE_KIND_FIELD_NUMBER;
hash = (53 * hash) + getIssueKind().hashCode();
hash = (37 * hash) + INTEREST_KIND_FIELD_NUMBER;
hash = (53 * hash) + getInterestKind().hashCode();
hash = (37 * hash) + COUPON_QUANTITY_PER_YEAR_FIELD_NUMBER;
hash = (53 * hash) + getCouponQuantityPerYear();
hash = (37 * hash) + INDEXED_NOMINAL_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIndexedNominalFlag());
hash = (37 * hash) + SUBORDINATED_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSubordinatedFlag());
hash = (37 * hash) + COLLATERAL_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCollateralFlag());
hash = (37 * hash) + TAX_FREE_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTaxFreeFlag());
hash = (37 * hash) + AMORTIZATION_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAmortizationFlag());
hash = (37 * hash) + FLOATING_COUPON_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFloatingCouponFlag());
hash = (37 * hash) + PERPETUAL_FLAG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPerpetualFlag());
if (hasMaturityDate()) {
hash = (37 * hash) + MATURITY_DATE_FIELD_NUMBER;
hash = (53 * hash) + getMaturityDate().hashCode();
}
hash = (37 * hash) + RETURN_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getReturnCondition().hashCode();
if (hasStateRegDate()) {
hash = (37 * hash) + STATE_REG_DATE_FIELD_NUMBER;
hash = (53 * hash) + getStateRegDate().hashCode();
}
if (hasPlacementDate()) {
hash = (37 * hash) + PLACEMENT_DATE_FIELD_NUMBER;
hash = (53 * hash) + getPlacementDate().hashCode();
}
if (hasPlacementPrice()) {
hash = (37 * hash) + PLACEMENT_PRICE_FIELD_NUMBER;
hash = (53 * hash) + getPlacementPrice().hashCode();
}
if (hasIssueSizePlan()) {
hash = (37 * hash) + ISSUE_SIZE_PLAN_FIELD_NUMBER;
hash = (53 * hash) + getIssueSizePlan().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AssetBond parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ru.tinkoff.piapi.contract.v1.AssetBond prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*Облигация.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.AssetBond}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AssetBond)
ru.tinkoff.piapi.contract.v1.AssetBondOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetBond_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_AssetBond_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AssetBond.class, ru.tinkoff.piapi.contract.v1.AssetBond.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.AssetBond.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
currentNominal_ = null;
if (currentNominalBuilder_ != null) {
currentNominalBuilder_.dispose();
currentNominalBuilder_ = null;
}
borrowName_ = "";
issueSize_ = null;
if (issueSizeBuilder_ != null) {
issueSizeBuilder_.dispose();
issueSizeBuilder_ = null;
}
nominal_ = null;
if (nominalBuilder_ != null) {
nominalBuilder_.dispose();
nominalBuilder_ = null;
}
nominalCurrency_ = "";
issueKind_ = "";
interestKind_ = "";
couponQuantityPerYear_ = 0;
indexedNominalFlag_ = false;
subordinatedFlag_ = false;
collateralFlag_ = false;
taxFreeFlag_ = false;
amortizationFlag_ = false;
floatingCouponFlag_ = false;
perpetualFlag_ = false;
maturityDate_ = null;
if (maturityDateBuilder_ != null) {
maturityDateBuilder_.dispose();
maturityDateBuilder_ = null;
}
returnCondition_ = "";
stateRegDate_ = null;
if (stateRegDateBuilder_ != null) {
stateRegDateBuilder_.dispose();
stateRegDateBuilder_ = null;
}
placementDate_ = null;
if (placementDateBuilder_ != null) {
placementDateBuilder_.dispose();
placementDateBuilder_ = null;
}
placementPrice_ = null;
if (placementPriceBuilder_ != null) {
placementPriceBuilder_.dispose();
placementPriceBuilder_ = null;
}
issueSizePlan_ = null;
if (issueSizePlanBuilder_ != null) {
issueSizePlanBuilder_.dispose();
issueSizePlanBuilder_ = null;
}
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_AssetBond_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetBond getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.AssetBond.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetBond build() {
ru.tinkoff.piapi.contract.v1.AssetBond result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetBond buildPartial() {
ru.tinkoff.piapi.contract.v1.AssetBond result = new ru.tinkoff.piapi.contract.v1.AssetBond(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.AssetBond result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.currentNominal_ = currentNominalBuilder_ == null
? currentNominal_
: currentNominalBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.borrowName_ = borrowName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.issueSize_ = issueSizeBuilder_ == null
? issueSize_
: issueSizeBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.nominal_ = nominalBuilder_ == null
? nominal_
: nominalBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.nominalCurrency_ = nominalCurrency_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.issueKind_ = issueKind_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.interestKind_ = interestKind_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.couponQuantityPerYear_ = couponQuantityPerYear_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.indexedNominalFlag_ = indexedNominalFlag_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.subordinatedFlag_ = subordinatedFlag_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.collateralFlag_ = collateralFlag_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.taxFreeFlag_ = taxFreeFlag_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.amortizationFlag_ = amortizationFlag_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.floatingCouponFlag_ = floatingCouponFlag_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.perpetualFlag_ = perpetualFlag_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.maturityDate_ = maturityDateBuilder_ == null
? maturityDate_
: maturityDateBuilder_.build();
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.returnCondition_ = returnCondition_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.stateRegDate_ = stateRegDateBuilder_ == null
? stateRegDate_
: stateRegDateBuilder_.build();
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.placementDate_ = placementDateBuilder_ == null
? placementDate_
: placementDateBuilder_.build();
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.placementPrice_ = placementPriceBuilder_ == null
? placementPrice_
: placementPriceBuilder_.build();
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.issueSizePlan_ = issueSizePlanBuilder_ == null
? issueSizePlan_
: issueSizePlanBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.AssetBond) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.AssetBond)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AssetBond other) {
if (other == ru.tinkoff.piapi.contract.v1.AssetBond.getDefaultInstance()) return this;
if (other.hasCurrentNominal()) {
mergeCurrentNominal(other.getCurrentNominal());
}
if (!other.getBorrowName().isEmpty()) {
borrowName_ = other.borrowName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasIssueSize()) {
mergeIssueSize(other.getIssueSize());
}
if (other.hasNominal()) {
mergeNominal(other.getNominal());
}
if (!other.getNominalCurrency().isEmpty()) {
nominalCurrency_ = other.nominalCurrency_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getIssueKind().isEmpty()) {
issueKind_ = other.issueKind_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getInterestKind().isEmpty()) {
interestKind_ = other.interestKind_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.getCouponQuantityPerYear() != 0) {
setCouponQuantityPerYear(other.getCouponQuantityPerYear());
}
if (other.getIndexedNominalFlag() != false) {
setIndexedNominalFlag(other.getIndexedNominalFlag());
}
if (other.getSubordinatedFlag() != false) {
setSubordinatedFlag(other.getSubordinatedFlag());
}
if (other.getCollateralFlag() != false) {
setCollateralFlag(other.getCollateralFlag());
}
if (other.getTaxFreeFlag() != false) {
setTaxFreeFlag(other.getTaxFreeFlag());
}
if (other.getAmortizationFlag() != false) {
setAmortizationFlag(other.getAmortizationFlag());
}
if (other.getFloatingCouponFlag() != false) {
setFloatingCouponFlag(other.getFloatingCouponFlag());
}
if (other.getPerpetualFlag() != false) {
setPerpetualFlag(other.getPerpetualFlag());
}
if (other.hasMaturityDate()) {
mergeMaturityDate(other.getMaturityDate());
}
if (!other.getReturnCondition().isEmpty()) {
returnCondition_ = other.returnCondition_;
bitField0_ |= 0x00010000;
onChanged();
}
if (other.hasStateRegDate()) {
mergeStateRegDate(other.getStateRegDate());
}
if (other.hasPlacementDate()) {
mergePlacementDate(other.getPlacementDate());
}
if (other.hasPlacementPrice()) {
mergePlacementPrice(other.getPlacementPrice());
}
if (other.hasIssueSizePlan()) {
mergeIssueSizePlan(other.getIssueSizePlan());
}
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(
getCurrentNominalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
borrowName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getIssueSizeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getNominalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
nominalCurrency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
issueKind_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
interestKind_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 64: {
couponQuantityPerYear_ = input.readInt32();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
indexedNominalFlag_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
subordinatedFlag_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
collateralFlag_ = input.readBool();
bitField0_ |= 0x00000400;
break;
} // case 88
case 96: {
taxFreeFlag_ = input.readBool();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104: {
amortizationFlag_ = input.readBool();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
floatingCouponFlag_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 112
case 120: {
perpetualFlag_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 120
case 130: {
input.readMessage(
getMaturityDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00008000;
break;
} // case 130
case 138: {
returnCondition_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 138
case 146: {
input.readMessage(
getStateRegDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00020000;
break;
} // case 146
case 154: {
input.readMessage(
getPlacementDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00040000;
break;
} // case 154
case 162: {
input.readMessage(
getPlacementPriceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00080000;
break;
} // case 162
case 170: {
input.readMessage(
getIssueSizePlanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00100000;
break;
} // case 170
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 currentNominal_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> currentNominalBuilder_;
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
* @return Whether the currentNominal field is set.
*/
public boolean hasCurrentNominal() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
* @return The currentNominal.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getCurrentNominal() {
if (currentNominalBuilder_ == null) {
return currentNominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : currentNominal_;
} else {
return currentNominalBuilder_.getMessage();
}
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
*/
public Builder setCurrentNominal(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (currentNominalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentNominal_ = value;
} else {
currentNominalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
*/
public Builder setCurrentNominal(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (currentNominalBuilder_ == null) {
currentNominal_ = builderForValue.build();
} else {
currentNominalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
*/
public Builder mergeCurrentNominal(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (currentNominalBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
currentNominal_ != null &&
currentNominal_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getCurrentNominalBuilder().mergeFrom(value);
} else {
currentNominal_ = value;
}
} else {
currentNominalBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
*/
public Builder clearCurrentNominal() {
bitField0_ = (bitField0_ & ~0x00000001);
currentNominal_ = null;
if (currentNominalBuilder_ != null) {
currentNominalBuilder_.dispose();
currentNominalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getCurrentNominalBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCurrentNominalFieldBuilder().getBuilder();
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 1;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getCurrentNominalOrBuilder() {
if (currentNominalBuilder_ != null) {
return currentNominalBuilder_.getMessageOrBuilder();
} else {
return currentNominal_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : currentNominal_;
}
}
/**
*
*Текущий номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation current_nominal = 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>
getCurrentNominalFieldBuilder() {
if (currentNominalBuilder_ == null) {
currentNominalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getCurrentNominal(),
getParentForChildren(),
isClean());
currentNominal_ = null;
}
return currentNominalBuilder_;
}
private java.lang.Object borrowName_ = "";
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 2;
* @return The borrowName.
*/
public java.lang.String getBorrowName() {
java.lang.Object ref = borrowName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
borrowName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 2;
* @return The bytes for borrowName.
*/
public com.google.protobuf.ByteString
getBorrowNameBytes() {
java.lang.Object ref = borrowName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
borrowName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 2;
* @param value The borrowName to set.
* @return This builder for chaining.
*/
public Builder setBorrowName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
borrowName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 2;
* @return This builder for chaining.
*/
public Builder clearBorrowName() {
borrowName_ = getDefaultInstance().getBorrowName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 2;
* @param value The bytes for borrowName to set.
* @return This builder for chaining.
*/
public Builder setBorrowNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
borrowName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation issueSize_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> issueSizeBuilder_;
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
* @return Whether the issueSize field is set.
*/
public boolean hasIssueSize() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
* @return The issueSize.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getIssueSize() {
if (issueSizeBuilder_ == null) {
return issueSize_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSize_;
} else {
return issueSizeBuilder_.getMessage();
}
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
*/
public Builder setIssueSize(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (issueSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
issueSize_ = value;
} else {
issueSizeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
*/
public Builder setIssueSize(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (issueSizeBuilder_ == null) {
issueSize_ = builderForValue.build();
} else {
issueSizeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
*/
public Builder mergeIssueSize(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (issueSizeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
issueSize_ != null &&
issueSize_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getIssueSizeBuilder().mergeFrom(value);
} else {
issueSize_ = value;
}
} else {
issueSizeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
*/
public Builder clearIssueSize() {
bitField0_ = (bitField0_ & ~0x00000004);
issueSize_ = null;
if (issueSizeBuilder_ != null) {
issueSizeBuilder_.dispose();
issueSizeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getIssueSizeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getIssueSizeFieldBuilder().getBuilder();
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 3;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getIssueSizeOrBuilder() {
if (issueSizeBuilder_ != null) {
return issueSizeBuilder_.getMessageOrBuilder();
} else {
return issueSize_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSize_;
}
}
/**
*
*Объем эмиссии облигации (стоимость).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 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>
getIssueSizeFieldBuilder() {
if (issueSizeBuilder_ == null) {
issueSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getIssueSize(),
getParentForChildren(),
isClean());
issueSize_ = null;
}
return issueSizeBuilder_;
}
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 = 4;
* @return Whether the nominal field is set.
*/
public boolean hasNominal() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
* @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 = 4;
*/
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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
*/
public Builder setNominal(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (nominalBuilder_ == null) {
nominal_ = builderForValue.build();
} else {
nominalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
*/
public Builder mergeNominal(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (nominalBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
nominal_ != null &&
nominal_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getNominalBuilder().mergeFrom(value);
} else {
nominal_ = value;
}
} else {
nominalBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
*/
public Builder clearNominal() {
bitField0_ = (bitField0_ & ~0x00000008);
nominal_ = null;
if (nominalBuilder_ != null) {
nominalBuilder_.dispose();
nominalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getNominalBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getNominalFieldBuilder().getBuilder();
}
/**
*
*Номинал облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
*/
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 = 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>
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 = 5;
* @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 = 5;
* @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 = 5;
* @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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 5;
* @return This builder for chaining.
*/
public Builder clearNominalCurrency() {
nominalCurrency_ = getDefaultInstance().getNominalCurrency();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 5;
* @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_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object issueKind_ = "";
/**
*
*Форма выпуска облигации.
*
*
* string issue_kind = 6;
* @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 = 6;
* @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 = 6;
* @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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Форма выпуска облигации.
*
*
* string issue_kind = 6;
* @return This builder for chaining.
*/
public Builder clearIssueKind() {
issueKind_ = getDefaultInstance().getIssueKind();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*Форма выпуска облигации.
*
*
* string issue_kind = 6;
* @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_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object interestKind_ = "";
/**
*
*Форма дохода облигации.
*
*
* string interest_kind = 7;
* @return The interestKind.
*/
public java.lang.String getInterestKind() {
java.lang.Object ref = interestKind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
interestKind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Форма дохода облигации.
*
*
* string interest_kind = 7;
* @return The bytes for interestKind.
*/
public com.google.protobuf.ByteString
getInterestKindBytes() {
java.lang.Object ref = interestKind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
interestKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Форма дохода облигации.
*
*
* string interest_kind = 7;
* @param value The interestKind to set.
* @return This builder for chaining.
*/
public Builder setInterestKind(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
interestKind_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Форма дохода облигации.
*
*
* string interest_kind = 7;
* @return This builder for chaining.
*/
public Builder clearInterestKind() {
interestKind_ = getDefaultInstance().getInterestKind();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*Форма дохода облигации.
*
*
* string interest_kind = 7;
* @param value The bytes for interestKind to set.
* @return This builder for chaining.
*/
public Builder setInterestKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
interestKind_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int couponQuantityPerYear_ ;
/**
*
*Количество выплат в год.
*
*
* int32 coupon_quantity_per_year = 8;
* @return The couponQuantityPerYear.
*/
@java.lang.Override
public int getCouponQuantityPerYear() {
return couponQuantityPerYear_;
}
/**
*
*Количество выплат в год.
*
*
* int32 coupon_quantity_per_year = 8;
* @param value The couponQuantityPerYear to set.
* @return This builder for chaining.
*/
public Builder setCouponQuantityPerYear(int value) {
couponQuantityPerYear_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Количество выплат в год.
*
*
* int32 coupon_quantity_per_year = 8;
* @return This builder for chaining.
*/
public Builder clearCouponQuantityPerYear() {
bitField0_ = (bitField0_ & ~0x00000080);
couponQuantityPerYear_ = 0;
onChanged();
return this;
}
private boolean indexedNominalFlag_ ;
/**
*
*Признак облигации с индексируемым номиналом.
*
*
* bool indexed_nominal_flag = 9;
* @return The indexedNominalFlag.
*/
@java.lang.Override
public boolean getIndexedNominalFlag() {
return indexedNominalFlag_;
}
/**
*
*Признак облигации с индексируемым номиналом.
*
*
* bool indexed_nominal_flag = 9;
* @param value The indexedNominalFlag to set.
* @return This builder for chaining.
*/
public Builder setIndexedNominalFlag(boolean value) {
indexedNominalFlag_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Признак облигации с индексируемым номиналом.
*
*
* bool indexed_nominal_flag = 9;
* @return This builder for chaining.
*/
public Builder clearIndexedNominalFlag() {
bitField0_ = (bitField0_ & ~0x00000100);
indexedNominalFlag_ = false;
onChanged();
return this;
}
private boolean subordinatedFlag_ ;
/**
*
*Признак субординированной облигации.
*
*
* bool subordinated_flag = 10;
* @return The subordinatedFlag.
*/
@java.lang.Override
public boolean getSubordinatedFlag() {
return subordinatedFlag_;
}
/**
*
*Признак субординированной облигации.
*
*
* bool subordinated_flag = 10;
* @param value The subordinatedFlag to set.
* @return This builder for chaining.
*/
public Builder setSubordinatedFlag(boolean value) {
subordinatedFlag_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Признак субординированной облигации.
*
*
* bool subordinated_flag = 10;
* @return This builder for chaining.
*/
public Builder clearSubordinatedFlag() {
bitField0_ = (bitField0_ & ~0x00000200);
subordinatedFlag_ = false;
onChanged();
return this;
}
private boolean collateralFlag_ ;
/**
*
*Признак обеспеченной облигации.
*
*
* bool collateral_flag = 11;
* @return The collateralFlag.
*/
@java.lang.Override
public boolean getCollateralFlag() {
return collateralFlag_;
}
/**
*
*Признак обеспеченной облигации.
*
*
* bool collateral_flag = 11;
* @param value The collateralFlag to set.
* @return This builder for chaining.
*/
public Builder setCollateralFlag(boolean value) {
collateralFlag_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Признак обеспеченной облигации.
*
*
* bool collateral_flag = 11;
* @return This builder for chaining.
*/
public Builder clearCollateralFlag() {
bitField0_ = (bitField0_ & ~0x00000400);
collateralFlag_ = false;
onChanged();
return this;
}
private boolean taxFreeFlag_ ;
/**
*
*Признак показывает, что купоны облигации не облагаются налогом (для mass market).
*
*
* bool tax_free_flag = 12;
* @return The taxFreeFlag.
*/
@java.lang.Override
public boolean getTaxFreeFlag() {
return taxFreeFlag_;
}
/**
*
*Признак показывает, что купоны облигации не облагаются налогом (для mass market).
*
*
* bool tax_free_flag = 12;
* @param value The taxFreeFlag to set.
* @return This builder for chaining.
*/
public Builder setTaxFreeFlag(boolean value) {
taxFreeFlag_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Признак показывает, что купоны облигации не облагаются налогом (для mass market).
*
*
* bool tax_free_flag = 12;
* @return This builder for chaining.
*/
public Builder clearTaxFreeFlag() {
bitField0_ = (bitField0_ & ~0x00000800);
taxFreeFlag_ = false;
onChanged();
return this;
}
private boolean amortizationFlag_ ;
/**
*
*Признак облигации с амортизацией долга.
*
*
* bool amortization_flag = 13;
* @return The amortizationFlag.
*/
@java.lang.Override
public boolean getAmortizationFlag() {
return amortizationFlag_;
}
/**
*
*Признак облигации с амортизацией долга.
*
*
* bool amortization_flag = 13;
* @param value The amortizationFlag to set.
* @return This builder for chaining.
*/
public Builder setAmortizationFlag(boolean value) {
amortizationFlag_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Признак облигации с амортизацией долга.
*
*
* bool amortization_flag = 13;
* @return This builder for chaining.
*/
public Builder clearAmortizationFlag() {
bitField0_ = (bitField0_ & ~0x00001000);
amortizationFlag_ = false;
onChanged();
return this;
}
private boolean floatingCouponFlag_ ;
/**
*
*Признак облигации с плавающим купоном.
*
*
* bool floating_coupon_flag = 14;
* @return The floatingCouponFlag.
*/
@java.lang.Override
public boolean getFloatingCouponFlag() {
return floatingCouponFlag_;
}
/**
*
*Признак облигации с плавающим купоном.
*
*
* bool floating_coupon_flag = 14;
* @param value The floatingCouponFlag to set.
* @return This builder for chaining.
*/
public Builder setFloatingCouponFlag(boolean value) {
floatingCouponFlag_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Признак облигации с плавающим купоном.
*
*
* bool floating_coupon_flag = 14;
* @return This builder for chaining.
*/
public Builder clearFloatingCouponFlag() {
bitField0_ = (bitField0_ & ~0x00002000);
floatingCouponFlag_ = false;
onChanged();
return this;
}
private boolean perpetualFlag_ ;
/**
*
*Признак бессрочной облигации.
*
*
* bool perpetual_flag = 15;
* @return The perpetualFlag.
*/
@java.lang.Override
public boolean getPerpetualFlag() {
return perpetualFlag_;
}
/**
*
*Признак бессрочной облигации.
*
*
* bool perpetual_flag = 15;
* @param value The perpetualFlag to set.
* @return This builder for chaining.
*/
public Builder setPerpetualFlag(boolean value) {
perpetualFlag_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Признак бессрочной облигации.
*
*
* bool perpetual_flag = 15;
* @return This builder for chaining.
*/
public Builder clearPerpetualFlag() {
bitField0_ = (bitField0_ & ~0x00004000);
perpetualFlag_ = false;
onChanged();
return this;
}
private com.google.protobuf.Timestamp maturityDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> maturityDateBuilder_;
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
* @return Whether the maturityDate field is set.
*/
public boolean hasMaturityDate() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
* @return The maturityDate.
*/
public com.google.protobuf.Timestamp getMaturityDate() {
if (maturityDateBuilder_ == null) {
return maturityDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maturityDate_;
} else {
return maturityDateBuilder_.getMessage();
}
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
public Builder setMaturityDate(com.google.protobuf.Timestamp value) {
if (maturityDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maturityDate_ = value;
} else {
maturityDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
public Builder setMaturityDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (maturityDateBuilder_ == null) {
maturityDate_ = builderForValue.build();
} else {
maturityDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
public Builder mergeMaturityDate(com.google.protobuf.Timestamp value) {
if (maturityDateBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
maturityDate_ != null &&
maturityDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getMaturityDateBuilder().mergeFrom(value);
} else {
maturityDate_ = value;
}
} else {
maturityDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
public Builder clearMaturityDate() {
bitField0_ = (bitField0_ & ~0x00008000);
maturityDate_ = null;
if (maturityDateBuilder_ != null) {
maturityDateBuilder_.dispose();
maturityDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
public com.google.protobuf.Timestamp.Builder getMaturityDateBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getMaturityDateFieldBuilder().getBuilder();
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
public com.google.protobuf.TimestampOrBuilder getMaturityDateOrBuilder() {
if (maturityDateBuilder_ != null) {
return maturityDateBuilder_.getMessageOrBuilder();
} else {
return maturityDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : maturityDate_;
}
}
/**
*
*Дата погашения облигации.
*
*
* .google.protobuf.Timestamp maturity_date = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getMaturityDateFieldBuilder() {
if (maturityDateBuilder_ == null) {
maturityDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getMaturityDate(),
getParentForChildren(),
isClean());
maturityDate_ = null;
}
return maturityDateBuilder_;
}
private java.lang.Object returnCondition_ = "";
/**
*
*Описание и условия получения дополнительного дохода.
*
*
* string return_condition = 17;
* @return The returnCondition.
*/
public java.lang.String getReturnCondition() {
java.lang.Object ref = returnCondition_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
returnCondition_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Описание и условия получения дополнительного дохода.
*
*
* string return_condition = 17;
* @return The bytes for returnCondition.
*/
public com.google.protobuf.ByteString
getReturnConditionBytes() {
java.lang.Object ref = returnCondition_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnCondition_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Описание и условия получения дополнительного дохода.
*
*
* string return_condition = 17;
* @param value The returnCondition to set.
* @return This builder for chaining.
*/
public Builder setReturnCondition(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
returnCondition_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*Описание и условия получения дополнительного дохода.
*
*
* string return_condition = 17;
* @return This builder for chaining.
*/
public Builder clearReturnCondition() {
returnCondition_ = getDefaultInstance().getReturnCondition();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
*
*Описание и условия получения дополнительного дохода.
*
*
* string return_condition = 17;
* @param value The bytes for returnCondition to set.
* @return This builder for chaining.
*/
public Builder setReturnConditionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
returnCondition_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private com.google.protobuf.Timestamp stateRegDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateRegDateBuilder_;
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
* @return Whether the stateRegDate field is set.
*/
public boolean hasStateRegDate() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
* @return The stateRegDate.
*/
public com.google.protobuf.Timestamp getStateRegDate() {
if (stateRegDateBuilder_ == null) {
return stateRegDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateRegDate_;
} else {
return stateRegDateBuilder_.getMessage();
}
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
public Builder setStateRegDate(com.google.protobuf.Timestamp value) {
if (stateRegDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stateRegDate_ = value;
} else {
stateRegDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
public Builder setStateRegDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (stateRegDateBuilder_ == null) {
stateRegDate_ = builderForValue.build();
} else {
stateRegDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
public Builder mergeStateRegDate(com.google.protobuf.Timestamp value) {
if (stateRegDateBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0) &&
stateRegDate_ != null &&
stateRegDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStateRegDateBuilder().mergeFrom(value);
} else {
stateRegDate_ = value;
}
} else {
stateRegDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
public Builder clearStateRegDate() {
bitField0_ = (bitField0_ & ~0x00020000);
stateRegDate_ = null;
if (stateRegDateBuilder_ != null) {
stateRegDateBuilder_.dispose();
stateRegDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
public com.google.protobuf.Timestamp.Builder getStateRegDateBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getStateRegDateFieldBuilder().getBuilder();
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
public com.google.protobuf.TimestampOrBuilder getStateRegDateOrBuilder() {
if (stateRegDateBuilder_ != null) {
return stateRegDateBuilder_.getMessageOrBuilder();
} else {
return stateRegDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : stateRegDate_;
}
}
/**
*
*Дата выпуска облигации.
*
*
* .google.protobuf.Timestamp state_reg_date = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStateRegDateFieldBuilder() {
if (stateRegDateBuilder_ == null) {
stateRegDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStateRegDate(),
getParentForChildren(),
isClean());
stateRegDate_ = null;
}
return stateRegDateBuilder_;
}
private com.google.protobuf.Timestamp placementDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> placementDateBuilder_;
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
* @return Whether the placementDate field is set.
*/
public boolean hasPlacementDate() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
* @return The placementDate.
*/
public com.google.protobuf.Timestamp getPlacementDate() {
if (placementDateBuilder_ == null) {
return placementDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : placementDate_;
} else {
return placementDateBuilder_.getMessage();
}
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
public Builder setPlacementDate(com.google.protobuf.Timestamp value) {
if (placementDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placementDate_ = value;
} else {
placementDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
public Builder setPlacementDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (placementDateBuilder_ == null) {
placementDate_ = builderForValue.build();
} else {
placementDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
public Builder mergePlacementDate(com.google.protobuf.Timestamp value) {
if (placementDateBuilder_ == null) {
if (((bitField0_ & 0x00040000) != 0) &&
placementDate_ != null &&
placementDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getPlacementDateBuilder().mergeFrom(value);
} else {
placementDate_ = value;
}
} else {
placementDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
public Builder clearPlacementDate() {
bitField0_ = (bitField0_ & ~0x00040000);
placementDate_ = null;
if (placementDateBuilder_ != null) {
placementDateBuilder_.dispose();
placementDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
public com.google.protobuf.Timestamp.Builder getPlacementDateBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getPlacementDateFieldBuilder().getBuilder();
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
public com.google.protobuf.TimestampOrBuilder getPlacementDateOrBuilder() {
if (placementDateBuilder_ != null) {
return placementDateBuilder_.getMessageOrBuilder();
} else {
return placementDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : placementDate_;
}
}
/**
*
*Дата размещения облигации.
*
*
* .google.protobuf.Timestamp placement_date = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getPlacementDateFieldBuilder() {
if (placementDateBuilder_ == null) {
placementDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getPlacementDate(),
getParentForChildren(),
isClean());
placementDate_ = null;
}
return placementDateBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation placementPrice_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> placementPriceBuilder_;
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
* @return Whether the placementPrice field is set.
*/
public boolean hasPlacementPrice() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
* @return The placementPrice.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getPlacementPrice() {
if (placementPriceBuilder_ == null) {
return placementPrice_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : placementPrice_;
} else {
return placementPriceBuilder_.getMessage();
}
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
public Builder setPlacementPrice(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (placementPriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placementPrice_ = value;
} else {
placementPriceBuilder_.setMessage(value);
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
public Builder setPlacementPrice(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (placementPriceBuilder_ == null) {
placementPrice_ = builderForValue.build();
} else {
placementPriceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
public Builder mergePlacementPrice(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (placementPriceBuilder_ == null) {
if (((bitField0_ & 0x00080000) != 0) &&
placementPrice_ != null &&
placementPrice_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getPlacementPriceBuilder().mergeFrom(value);
} else {
placementPrice_ = value;
}
} else {
placementPriceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
public Builder clearPlacementPrice() {
bitField0_ = (bitField0_ & ~0x00080000);
placementPrice_ = null;
if (placementPriceBuilder_ != null) {
placementPriceBuilder_.dispose();
placementPriceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getPlacementPriceBuilder() {
bitField0_ |= 0x00080000;
onChanged();
return getPlacementPriceFieldBuilder().getBuilder();
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getPlacementPriceOrBuilder() {
if (placementPriceBuilder_ != null) {
return placementPriceBuilder_.getMessageOrBuilder();
} else {
return placementPrice_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : placementPrice_;
}
}
/**
*
*Цена размещения облигации.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation placement_price = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getPlacementPriceFieldBuilder() {
if (placementPriceBuilder_ == null) {
placementPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getPlacementPrice(),
getParentForChildren(),
isClean());
placementPrice_ = null;
}
return placementPriceBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation issueSizePlan_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> issueSizePlanBuilder_;
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
* @return Whether the issueSizePlan field is set.
*/
public boolean hasIssueSizePlan() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
* @return The issueSizePlan.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getIssueSizePlan() {
if (issueSizePlanBuilder_ == null) {
return issueSizePlan_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSizePlan_;
} else {
return issueSizePlanBuilder_.getMessage();
}
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
*/
public Builder setIssueSizePlan(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (issueSizePlanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
issueSizePlan_ = value;
} else {
issueSizePlanBuilder_.setMessage(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
*/
public Builder setIssueSizePlan(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (issueSizePlanBuilder_ == null) {
issueSizePlan_ = builderForValue.build();
} else {
issueSizePlanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
*/
public Builder mergeIssueSizePlan(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (issueSizePlanBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0) &&
issueSizePlan_ != null &&
issueSizePlan_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getIssueSizePlanBuilder().mergeFrom(value);
} else {
issueSizePlan_ = value;
}
} else {
issueSizePlanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
*/
public Builder clearIssueSizePlan() {
bitField0_ = (bitField0_ & ~0x00100000);
issueSizePlan_ = null;
if (issueSizePlanBuilder_ != null) {
issueSizePlanBuilder_.dispose();
issueSizePlanBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getIssueSizePlanBuilder() {
bitField0_ |= 0x00100000;
onChanged();
return getIssueSizePlanFieldBuilder().getBuilder();
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 21;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getIssueSizePlanOrBuilder() {
if (issueSizePlanBuilder_ != null) {
return issueSizePlanBuilder_.getMessageOrBuilder();
} else {
return issueSizePlan_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSizePlan_;
}
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 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>
getIssueSizePlanFieldBuilder() {
if (issueSizePlanBuilder_ == null) {
issueSizePlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getIssueSizePlan(),
getParentForChildren(),
isClean());
issueSizePlan_ = null;
}
return issueSizePlanBuilder_;
}
@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.AssetBond)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.AssetBond)
private static final ru.tinkoff.piapi.contract.v1.AssetBond DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.AssetBond();
}
public static ru.tinkoff.piapi.contract.v1.AssetBond getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetBond 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.AssetBond getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy