Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ru.tinkoff.piapi.contract.v1.AssetStructuredProduct 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.AssetStructuredProduct}
*/
public final class AssetStructuredProduct extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.AssetStructuredProduct)
AssetStructuredProductOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetStructuredProduct.newBuilder() to construct.
private AssetStructuredProduct(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetStructuredProduct() {
borrowName_ = "";
nominalCurrency_ = "";
type_ = 0;
logicPortfolio_ = "";
assetType_ = 0;
basicAsset_ = "";
issueKind_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssetStructuredProduct();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetStructuredProduct_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_AssetStructuredProduct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AssetStructuredProduct.class, ru.tinkoff.piapi.contract.v1.AssetStructuredProduct.Builder.class);
}
public static final int BORROW_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object borrowName_ = "";
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 1;
* @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 = 1;
* @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 NOMINAL_FIELD_NUMBER = 2;
private ru.tinkoff.piapi.contract.v1.Quotation nominal_;
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
* @return Whether the nominal field is set.
*/
@java.lang.Override
public boolean hasNominal() {
return nominal_ != null;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
* @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 = 2;
*/
@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 = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object nominalCurrency_ = "";
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 3;
* @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 = 3;
* @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 TYPE_FIELD_NUMBER = 4;
private int type_ = 0;
/**
*
*Тип структурной ноты.
*
*
* .tinkoff.public.invest.api.contract.v1.StructuredProductType type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
*Тип структурной ноты.
*
*
* .tinkoff.public.invest.api.contract.v1.StructuredProductType type = 4;
* @return The type.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.StructuredProductType getType() {
ru.tinkoff.piapi.contract.v1.StructuredProductType result = ru.tinkoff.piapi.contract.v1.StructuredProductType.forNumber(type_);
return result == null ? ru.tinkoff.piapi.contract.v1.StructuredProductType.UNRECOGNIZED : result;
}
public static final int LOGIC_PORTFOLIO_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object logicPortfolio_ = "";
/**
*
*Стратегия портфеля.
*
*
* string logic_portfolio = 5;
* @return The logicPortfolio.
*/
@java.lang.Override
public java.lang.String getLogicPortfolio() {
java.lang.Object ref = logicPortfolio_;
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();
logicPortfolio_ = s;
return s;
}
}
/**
*
*Стратегия портфеля.
*
*
* string logic_portfolio = 5;
* @return The bytes for logicPortfolio.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogicPortfolioBytes() {
java.lang.Object ref = logicPortfolio_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logicPortfolio_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSET_TYPE_FIELD_NUMBER = 6;
private int assetType_ = 0;
/**
*
*Тип базового актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType asset_type = 6;
* @return The enum numeric value on the wire for assetType.
*/
@java.lang.Override public int getAssetTypeValue() {
return assetType_;
}
/**
*
*Тип базового актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType asset_type = 6;
* @return The assetType.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetType getAssetType() {
ru.tinkoff.piapi.contract.v1.AssetType result = ru.tinkoff.piapi.contract.v1.AssetType.forNumber(assetType_);
return result == null ? ru.tinkoff.piapi.contract.v1.AssetType.UNRECOGNIZED : result;
}
public static final int BASIC_ASSET_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object basicAsset_ = "";
/**
*
*Вид базового актива в зависимости от типа базового актива.
*
*
* string basic_asset = 7;
* @return The basicAsset.
*/
@java.lang.Override
public java.lang.String getBasicAsset() {
java.lang.Object ref = basicAsset_;
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();
basicAsset_ = s;
return s;
}
}
/**
*
*Вид базового актива в зависимости от типа базового актива.
*
*
* string basic_asset = 7;
* @return The bytes for basicAsset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBasicAssetBytes() {
java.lang.Object ref = basicAsset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
basicAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SAFETY_BARRIER_FIELD_NUMBER = 8;
private ru.tinkoff.piapi.contract.v1.Quotation safetyBarrier_;
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
* @return Whether the safetyBarrier field is set.
*/
@java.lang.Override
public boolean hasSafetyBarrier() {
return safetyBarrier_ != null;
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
* @return The safetyBarrier.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getSafetyBarrier() {
return safetyBarrier_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : safetyBarrier_;
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getSafetyBarrierOrBuilder() {
return safetyBarrier_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : safetyBarrier_;
}
public static final int MATURITY_DATE_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp maturityDate_;
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
* @return Whether the maturityDate field is set.
*/
@java.lang.Override
public boolean hasMaturityDate() {
return maturityDate_ != null;
}
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
* @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 = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getMaturityDateOrBuilder() {
return maturityDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maturityDate_;
}
public static final int ISSUE_SIZE_PLAN_FIELD_NUMBER = 10;
private ru.tinkoff.piapi.contract.v1.Quotation issueSizePlan_;
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 10;
* @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 = 10;
* @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 = 10;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getIssueSizePlanOrBuilder() {
return issueSizePlan_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : issueSizePlan_;
}
public static final int ISSUE_SIZE_FIELD_NUMBER = 11;
private ru.tinkoff.piapi.contract.v1.Quotation issueSize_;
/**
*
*Объем размещения.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 11;
* @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 = 11;
* @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 = 11;
*/
@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 PLACEMENT_DATE_FIELD_NUMBER = 12;
private com.google.protobuf.Timestamp placementDate_;
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
* @return Whether the placementDate field is set.
*/
@java.lang.Override
public boolean hasPlacementDate() {
return placementDate_ != null;
}
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
* @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 = 12;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getPlacementDateOrBuilder() {
return placementDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : placementDate_;
}
public static final int ISSUE_KIND_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object issueKind_ = "";
/**
*
*Форма выпуска.
*
*
* string issue_kind = 13;
* @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 = 13;
* @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;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(borrowName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, borrowName_);
}
if (nominal_ != null) {
output.writeMessage(2, getNominal());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nominalCurrency_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nominalCurrency_);
}
if (type_ != ru.tinkoff.piapi.contract.v1.StructuredProductType.SP_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicPortfolio_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, logicPortfolio_);
}
if (assetType_ != ru.tinkoff.piapi.contract.v1.AssetType.ASSET_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, assetType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basicAsset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, basicAsset_);
}
if (safetyBarrier_ != null) {
output.writeMessage(8, getSafetyBarrier());
}
if (maturityDate_ != null) {
output.writeMessage(9, getMaturityDate());
}
if (issueSizePlan_ != null) {
output.writeMessage(10, getIssueSizePlan());
}
if (issueSize_ != null) {
output.writeMessage(11, getIssueSize());
}
if (placementDate_ != null) {
output.writeMessage(12, getPlacementDate());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issueKind_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, issueKind_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(borrowName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, borrowName_);
}
if (nominal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNominal());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nominalCurrency_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nominalCurrency_);
}
if (type_ != ru.tinkoff.piapi.contract.v1.StructuredProductType.SP_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicPortfolio_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, logicPortfolio_);
}
if (assetType_ != ru.tinkoff.piapi.contract.v1.AssetType.ASSET_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, assetType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basicAsset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, basicAsset_);
}
if (safetyBarrier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getSafetyBarrier());
}
if (maturityDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getMaturityDate());
}
if (issueSizePlan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getIssueSizePlan());
}
if (issueSize_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getIssueSize());
}
if (placementDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getPlacementDate());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issueKind_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, issueKind_);
}
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.AssetStructuredProduct)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.AssetStructuredProduct other = (ru.tinkoff.piapi.contract.v1.AssetStructuredProduct) obj;
if (!getBorrowName()
.equals(other.getBorrowName())) 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 (type_ != other.type_) return false;
if (!getLogicPortfolio()
.equals(other.getLogicPortfolio())) return false;
if (assetType_ != other.assetType_) return false;
if (!getBasicAsset()
.equals(other.getBasicAsset())) return false;
if (hasSafetyBarrier() != other.hasSafetyBarrier()) return false;
if (hasSafetyBarrier()) {
if (!getSafetyBarrier()
.equals(other.getSafetyBarrier())) return false;
}
if (hasMaturityDate() != other.hasMaturityDate()) return false;
if (hasMaturityDate()) {
if (!getMaturityDate()
.equals(other.getMaturityDate())) return false;
}
if (hasIssueSizePlan() != other.hasIssueSizePlan()) return false;
if (hasIssueSizePlan()) {
if (!getIssueSizePlan()
.equals(other.getIssueSizePlan())) return false;
}
if (hasIssueSize() != other.hasIssueSize()) return false;
if (hasIssueSize()) {
if (!getIssueSize()
.equals(other.getIssueSize())) return false;
}
if (hasPlacementDate() != other.hasPlacementDate()) return false;
if (hasPlacementDate()) {
if (!getPlacementDate()
.equals(other.getPlacementDate())) return false;
}
if (!getIssueKind()
.equals(other.getIssueKind())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BORROW_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBorrowName().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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + LOGIC_PORTFOLIO_FIELD_NUMBER;
hash = (53 * hash) + getLogicPortfolio().hashCode();
hash = (37 * hash) + ASSET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + assetType_;
hash = (37 * hash) + BASIC_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getBasicAsset().hashCode();
if (hasSafetyBarrier()) {
hash = (37 * hash) + SAFETY_BARRIER_FIELD_NUMBER;
hash = (53 * hash) + getSafetyBarrier().hashCode();
}
if (hasMaturityDate()) {
hash = (37 * hash) + MATURITY_DATE_FIELD_NUMBER;
hash = (53 * hash) + getMaturityDate().hashCode();
}
if (hasIssueSizePlan()) {
hash = (37 * hash) + ISSUE_SIZE_PLAN_FIELD_NUMBER;
hash = (53 * hash) + getIssueSizePlan().hashCode();
}
if (hasIssueSize()) {
hash = (37 * hash) + ISSUE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getIssueSize().hashCode();
}
if (hasPlacementDate()) {
hash = (37 * hash) + PLACEMENT_DATE_FIELD_NUMBER;
hash = (53 * hash) + getPlacementDate().hashCode();
}
hash = (37 * hash) + ISSUE_KIND_FIELD_NUMBER;
hash = (53 * hash) + getIssueKind().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.AssetStructuredProduct parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetStructuredProduct 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.AssetStructuredProduct parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetStructuredProduct 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.AssetStructuredProduct parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetStructuredProduct 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.AssetStructuredProduct parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AssetStructuredProduct 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.AssetStructuredProduct parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AssetStructuredProduct 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.AssetStructuredProduct 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.AssetStructuredProduct 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.AssetStructuredProduct 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.AssetStructuredProduct}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AssetStructuredProduct)
ru.tinkoff.piapi.contract.v1.AssetStructuredProductOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetStructuredProduct_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_AssetStructuredProduct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AssetStructuredProduct.class, ru.tinkoff.piapi.contract.v1.AssetStructuredProduct.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.AssetStructuredProduct.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
borrowName_ = "";
nominal_ = null;
if (nominalBuilder_ != null) {
nominalBuilder_.dispose();
nominalBuilder_ = null;
}
nominalCurrency_ = "";
type_ = 0;
logicPortfolio_ = "";
assetType_ = 0;
basicAsset_ = "";
safetyBarrier_ = null;
if (safetyBarrierBuilder_ != null) {
safetyBarrierBuilder_.dispose();
safetyBarrierBuilder_ = null;
}
maturityDate_ = null;
if (maturityDateBuilder_ != null) {
maturityDateBuilder_.dispose();
maturityDateBuilder_ = null;
}
issueSizePlan_ = null;
if (issueSizePlanBuilder_ != null) {
issueSizePlanBuilder_.dispose();
issueSizePlanBuilder_ = null;
}
issueSize_ = null;
if (issueSizeBuilder_ != null) {
issueSizeBuilder_.dispose();
issueSizeBuilder_ = null;
}
placementDate_ = null;
if (placementDateBuilder_ != null) {
placementDateBuilder_.dispose();
placementDateBuilder_ = null;
}
issueKind_ = "";
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_AssetStructuredProduct_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetStructuredProduct getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.AssetStructuredProduct.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetStructuredProduct build() {
ru.tinkoff.piapi.contract.v1.AssetStructuredProduct result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetStructuredProduct buildPartial() {
ru.tinkoff.piapi.contract.v1.AssetStructuredProduct result = new ru.tinkoff.piapi.contract.v1.AssetStructuredProduct(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.AssetStructuredProduct result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.borrowName_ = borrowName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nominal_ = nominalBuilder_ == null
? nominal_
: nominalBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.nominalCurrency_ = nominalCurrency_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.logicPortfolio_ = logicPortfolio_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.assetType_ = assetType_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.basicAsset_ = basicAsset_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.safetyBarrier_ = safetyBarrierBuilder_ == null
? safetyBarrier_
: safetyBarrierBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.maturityDate_ = maturityDateBuilder_ == null
? maturityDate_
: maturityDateBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.issueSizePlan_ = issueSizePlanBuilder_ == null
? issueSizePlan_
: issueSizePlanBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.issueSize_ = issueSizeBuilder_ == null
? issueSize_
: issueSizeBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.placementDate_ = placementDateBuilder_ == null
? placementDate_
: placementDateBuilder_.build();
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.issueKind_ = issueKind_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.AssetStructuredProduct) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.AssetStructuredProduct)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AssetStructuredProduct other) {
if (other == ru.tinkoff.piapi.contract.v1.AssetStructuredProduct.getDefaultInstance()) return this;
if (!other.getBorrowName().isEmpty()) {
borrowName_ = other.borrowName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasNominal()) {
mergeNominal(other.getNominal());
}
if (!other.getNominalCurrency().isEmpty()) {
nominalCurrency_ = other.nominalCurrency_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getLogicPortfolio().isEmpty()) {
logicPortfolio_ = other.logicPortfolio_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.assetType_ != 0) {
setAssetTypeValue(other.getAssetTypeValue());
}
if (!other.getBasicAsset().isEmpty()) {
basicAsset_ = other.basicAsset_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasSafetyBarrier()) {
mergeSafetyBarrier(other.getSafetyBarrier());
}
if (other.hasMaturityDate()) {
mergeMaturityDate(other.getMaturityDate());
}
if (other.hasIssueSizePlan()) {
mergeIssueSizePlan(other.getIssueSizePlan());
}
if (other.hasIssueSize()) {
mergeIssueSize(other.getIssueSize());
}
if (other.hasPlacementDate()) {
mergePlacementDate(other.getPlacementDate());
}
if (!other.getIssueKind().isEmpty()) {
issueKind_ = other.issueKind_;
bitField0_ |= 0x00001000;
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: {
borrowName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getNominalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
nominalCurrency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
type_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
logicPortfolio_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
assetType_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
basicAsset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getSafetyBarrierFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
input.readMessage(
getMaturityDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
input.readMessage(
getIssueSizePlanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
input.readMessage(
getIssueSizeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
input.readMessage(
getPlacementDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 98
case 106: {
issueKind_ = input.readStringRequireUtf8();
bitField0_ |= 0x00001000;
break;
} // case 106
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object borrowName_ = "";
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 1;
* @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 = 1;
* @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 = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 1;
* @return This builder for chaining.
*/
public Builder clearBorrowName() {
borrowName_ = getDefaultInstance().getBorrowName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Наименование заемщика.
*
*
* string borrow_name = 1;
* @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_ |= 0x00000001;
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 = 2;
* @return Whether the nominal field is set.
*/
public boolean hasNominal() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
* @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 = 2;
*/
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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
*/
public Builder setNominal(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (nominalBuilder_ == null) {
nominal_ = builderForValue.build();
} else {
nominalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
*/
public Builder mergeNominal(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (nominalBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
nominal_ != null &&
nominal_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getNominalBuilder().mergeFrom(value);
} else {
nominal_ = value;
}
} else {
nominalBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
*/
public Builder clearNominal() {
bitField0_ = (bitField0_ & ~0x00000002);
nominal_ = null;
if (nominalBuilder_ != null) {
nominalBuilder_.dispose();
nominalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getNominalBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNominalFieldBuilder().getBuilder();
}
/**
*
*Номинал.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 2;
*/
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 = 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>
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 = 3;
* @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 = 3;
* @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 = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 3;
* @return This builder for chaining.
*/
public Builder clearNominalCurrency() {
nominalCurrency_ = getDefaultInstance().getNominalCurrency();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*Валюта номинала.
*
*
* string nominal_currency = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*Тип структурной ноты.
*
*
* .tinkoff.public.invest.api.contract.v1.StructuredProductType type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
*Тип структурной ноты.
*
*
* .tinkoff.public.invest.api.contract.v1.StructuredProductType type = 4;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Тип структурной ноты.
*
*
* .tinkoff.public.invest.api.contract.v1.StructuredProductType type = 4;
* @return The type.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.StructuredProductType getType() {
ru.tinkoff.piapi.contract.v1.StructuredProductType result = ru.tinkoff.piapi.contract.v1.StructuredProductType.forNumber(type_);
return result == null ? ru.tinkoff.piapi.contract.v1.StructuredProductType.UNRECOGNIZED : result;
}
/**
*
*Тип структурной ноты.
*
*
* .tinkoff.public.invest.api.contract.v1.StructuredProductType type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(ru.tinkoff.piapi.contract.v1.StructuredProductType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Тип структурной ноты.
*
*
* .tinkoff.public.invest.api.contract.v1.StructuredProductType type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
onChanged();
return this;
}
private java.lang.Object logicPortfolio_ = "";
/**
*
*Стратегия портфеля.
*
*
* string logic_portfolio = 5;
* @return The logicPortfolio.
*/
public java.lang.String getLogicPortfolio() {
java.lang.Object ref = logicPortfolio_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logicPortfolio_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Стратегия портфеля.
*
*
* string logic_portfolio = 5;
* @return The bytes for logicPortfolio.
*/
public com.google.protobuf.ByteString
getLogicPortfolioBytes() {
java.lang.Object ref = logicPortfolio_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logicPortfolio_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Стратегия портфеля.
*
*
* string logic_portfolio = 5;
* @param value The logicPortfolio to set.
* @return This builder for chaining.
*/
public Builder setLogicPortfolio(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
logicPortfolio_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Стратегия портфеля.
*
*
* string logic_portfolio = 5;
* @return This builder for chaining.
*/
public Builder clearLogicPortfolio() {
logicPortfolio_ = getDefaultInstance().getLogicPortfolio();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Стратегия портфеля.
*
*
* string logic_portfolio = 5;
* @param value The bytes for logicPortfolio to set.
* @return This builder for chaining.
*/
public Builder setLogicPortfolioBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
logicPortfolio_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private int assetType_ = 0;
/**
*
*Тип базового актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType asset_type = 6;
* @return The enum numeric value on the wire for assetType.
*/
@java.lang.Override public int getAssetTypeValue() {
return assetType_;
}
/**
*
*Тип базового актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType asset_type = 6;
* @param value The enum numeric value on the wire for assetType to set.
* @return This builder for chaining.
*/
public Builder setAssetTypeValue(int value) {
assetType_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Тип базового актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType asset_type = 6;
* @return The assetType.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetType getAssetType() {
ru.tinkoff.piapi.contract.v1.AssetType result = ru.tinkoff.piapi.contract.v1.AssetType.forNumber(assetType_);
return result == null ? ru.tinkoff.piapi.contract.v1.AssetType.UNRECOGNIZED : result;
}
/**
*
*Тип базового актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType asset_type = 6;
* @param value The assetType to set.
* @return This builder for chaining.
*/
public Builder setAssetType(ru.tinkoff.piapi.contract.v1.AssetType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
assetType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Тип базового актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType asset_type = 6;
* @return This builder for chaining.
*/
public Builder clearAssetType() {
bitField0_ = (bitField0_ & ~0x00000020);
assetType_ = 0;
onChanged();
return this;
}
private java.lang.Object basicAsset_ = "";
/**
*
*Вид базового актива в зависимости от типа базового актива.
*
*
* string basic_asset = 7;
* @return The basicAsset.
*/
public java.lang.String getBasicAsset() {
java.lang.Object ref = basicAsset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
basicAsset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Вид базового актива в зависимости от типа базового актива.
*
*
* string basic_asset = 7;
* @return The bytes for basicAsset.
*/
public com.google.protobuf.ByteString
getBasicAssetBytes() {
java.lang.Object ref = basicAsset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
basicAsset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Вид базового актива в зависимости от типа базового актива.
*
*
* string basic_asset = 7;
* @param value The basicAsset to set.
* @return This builder for chaining.
*/
public Builder setBasicAsset(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
basicAsset_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Вид базового актива в зависимости от типа базового актива.
*
*
* string basic_asset = 7;
* @return This builder for chaining.
*/
public Builder clearBasicAsset() {
basicAsset_ = getDefaultInstance().getBasicAsset();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*Вид базового актива в зависимости от типа базового актива.
*
*
* string basic_asset = 7;
* @param value The bytes for basicAsset to set.
* @return This builder for chaining.
*/
public Builder setBasicAssetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
basicAsset_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation safetyBarrier_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> safetyBarrierBuilder_;
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
* @return Whether the safetyBarrier field is set.
*/
public boolean hasSafetyBarrier() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
* @return The safetyBarrier.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getSafetyBarrier() {
if (safetyBarrierBuilder_ == null) {
return safetyBarrier_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : safetyBarrier_;
} else {
return safetyBarrierBuilder_.getMessage();
}
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
*/
public Builder setSafetyBarrier(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (safetyBarrierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
safetyBarrier_ = value;
} else {
safetyBarrierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
*/
public Builder setSafetyBarrier(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (safetyBarrierBuilder_ == null) {
safetyBarrier_ = builderForValue.build();
} else {
safetyBarrierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
*/
public Builder mergeSafetyBarrier(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (safetyBarrierBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
safetyBarrier_ != null &&
safetyBarrier_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getSafetyBarrierBuilder().mergeFrom(value);
} else {
safetyBarrier_ = value;
}
} else {
safetyBarrierBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
*/
public Builder clearSafetyBarrier() {
bitField0_ = (bitField0_ & ~0x00000080);
safetyBarrier_ = null;
if (safetyBarrierBuilder_ != null) {
safetyBarrierBuilder_.dispose();
safetyBarrierBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getSafetyBarrierBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getSafetyBarrierFieldBuilder().getBuilder();
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 8;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getSafetyBarrierOrBuilder() {
if (safetyBarrierBuilder_ != null) {
return safetyBarrierBuilder_.getMessageOrBuilder();
} else {
return safetyBarrier_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : safetyBarrier_;
}
}
/**
*
*Барьер сохранности (в процентах).
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation safety_barrier = 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>
getSafetyBarrierFieldBuilder() {
if (safetyBarrierBuilder_ == null) {
safetyBarrierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getSafetyBarrier(),
getParentForChildren(),
isClean());
safetyBarrier_ = null;
}
return safetyBarrierBuilder_;
}
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 = 9;
* @return Whether the maturityDate field is set.
*/
public boolean hasMaturityDate() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
* @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 = 9;
*/
public Builder setMaturityDate(com.google.protobuf.Timestamp value) {
if (maturityDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maturityDate_ = value;
} else {
maturityDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
*/
public Builder setMaturityDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (maturityDateBuilder_ == null) {
maturityDate_ = builderForValue.build();
} else {
maturityDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
*/
public Builder mergeMaturityDate(com.google.protobuf.Timestamp value) {
if (maturityDateBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
maturityDate_ != null &&
maturityDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getMaturityDateBuilder().mergeFrom(value);
} else {
maturityDate_ = value;
}
} else {
maturityDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
*/
public Builder clearMaturityDate() {
bitField0_ = (bitField0_ & ~0x00000100);
maturityDate_ = null;
if (maturityDateBuilder_ != null) {
maturityDateBuilder_.dispose();
maturityDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
*/
public com.google.protobuf.Timestamp.Builder getMaturityDateBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getMaturityDateFieldBuilder().getBuilder();
}
/**
*
*Дата погашения.
*
*
* .google.protobuf.Timestamp maturity_date = 9;
*/
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 = 9;
*/
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 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 = 10;
* @return Whether the issueSizePlan field is set.
*/
public boolean hasIssueSizePlan() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 10;
* @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 = 10;
*/
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_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 10;
*/
public Builder setIssueSizePlan(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (issueSizePlanBuilder_ == null) {
issueSizePlan_ = builderForValue.build();
} else {
issueSizePlanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 10;
*/
public Builder mergeIssueSizePlan(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (issueSizePlanBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
issueSizePlan_ != null &&
issueSizePlan_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getIssueSizePlanBuilder().mergeFrom(value);
} else {
issueSizePlan_ = value;
}
} else {
issueSizePlanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 10;
*/
public Builder clearIssueSizePlan() {
bitField0_ = (bitField0_ & ~0x00000200);
issueSizePlan_ = null;
if (issueSizePlanBuilder_ != null) {
issueSizePlanBuilder_.dispose();
issueSizePlanBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 10;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getIssueSizePlanBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getIssueSizePlanFieldBuilder().getBuilder();
}
/**
*
*Объявленное количество шт.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 10;
*/
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 = 10;
*/
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_;
}
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 = 11;
* @return Whether the issueSize field is set.
*/
public boolean hasIssueSize() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*Объем размещения.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 11;
* @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 = 11;
*/
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_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Объем размещения.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 11;
*/
public Builder setIssueSize(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (issueSizeBuilder_ == null) {
issueSize_ = builderForValue.build();
} else {
issueSizeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Объем размещения.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 11;
*/
public Builder mergeIssueSize(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (issueSizeBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
issueSize_ != null &&
issueSize_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getIssueSizeBuilder().mergeFrom(value);
} else {
issueSize_ = value;
}
} else {
issueSizeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Объем размещения.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 11;
*/
public Builder clearIssueSize() {
bitField0_ = (bitField0_ & ~0x00000400);
issueSize_ = null;
if (issueSizeBuilder_ != null) {
issueSizeBuilder_.dispose();
issueSizeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Объем размещения.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 11;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getIssueSizeBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getIssueSizeFieldBuilder().getBuilder();
}
/**
*
*Объем размещения.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 11;
*/
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 = 11;
*/
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 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 = 12;
* @return Whether the placementDate field is set.
*/
public boolean hasPlacementDate() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
* @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 = 12;
*/
public Builder setPlacementDate(com.google.protobuf.Timestamp value) {
if (placementDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placementDate_ = value;
} else {
placementDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
*/
public Builder setPlacementDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (placementDateBuilder_ == null) {
placementDate_ = builderForValue.build();
} else {
placementDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
*/
public Builder mergePlacementDate(com.google.protobuf.Timestamp value) {
if (placementDateBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
placementDate_ != null &&
placementDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getPlacementDateBuilder().mergeFrom(value);
} else {
placementDate_ = value;
}
} else {
placementDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
*/
public Builder clearPlacementDate() {
bitField0_ = (bitField0_ & ~0x00000800);
placementDate_ = null;
if (placementDateBuilder_ != null) {
placementDateBuilder_.dispose();
placementDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
*/
public com.google.protobuf.Timestamp.Builder getPlacementDateBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getPlacementDateFieldBuilder().getBuilder();
}
/**
*
*Дата размещения ноты.
*
*
* .google.protobuf.Timestamp placement_date = 12;
*/
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 = 12;
*/
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 java.lang.Object issueKind_ = "";
/**
*
*Форма выпуска.
*
*
* string issue_kind = 13;
* @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 = 13;
* @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 = 13;
* @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_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Форма выпуска.
*
*
* string issue_kind = 13;
* @return This builder for chaining.
*/
public Builder clearIssueKind() {
issueKind_ = getDefaultInstance().getIssueKind();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
*Форма выпуска.
*
*
* string issue_kind = 13;
* @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_ |= 0x00001000;
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.AssetStructuredProduct)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.AssetStructuredProduct)
private static final ru.tinkoff.piapi.contract.v1.AssetStructuredProduct DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.AssetStructuredProduct();
}
public static ru.tinkoff.piapi.contract.v1.AssetStructuredProduct getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetStructuredProduct 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.AssetStructuredProduct getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}