All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.AssetShare Maven / Gradle / Ivy

There is a newer version: 1.25
Show newest version
// 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.AssetShare} */ public final class AssetShare extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.AssetShare) AssetShareOrBuilder { private static final long serialVersionUID = 0L; // Use AssetShare.newBuilder() to construct. private AssetShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetShare() { type_ = 0; nominalCurrency_ = ""; primaryIndex_ = ""; preferredShareType_ = ""; issueKind_ = ""; represIsin_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetShare(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetShare_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_AssetShare_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.AssetShare.class, ru.tinkoff.piapi.contract.v1.AssetShare.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** *
   *Тип акции.
   * 
* * .tinkoff.public.invest.api.contract.v1.ShareType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
   *Тип акции.
   * 
* * .tinkoff.public.invest.api.contract.v1.ShareType type = 1; * @return The type. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.ShareType getType() { ru.tinkoff.piapi.contract.v1.ShareType result = ru.tinkoff.piapi.contract.v1.ShareType.forNumber(type_); return result == null ? ru.tinkoff.piapi.contract.v1.ShareType.UNRECOGNIZED : result; } public static final int ISSUE_SIZE_FIELD_NUMBER = 2; private ru.tinkoff.piapi.contract.v1.Quotation issueSize_; /** *
   *Объем выпуска (шт.).
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 2; * @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 = 2; * @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 = 2; */ @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 = 3; private ru.tinkoff.piapi.contract.v1.Quotation nominal_; /** *
   *Номинал.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; * @return Whether the nominal field is set. */ @java.lang.Override public boolean hasNominal() { return nominal_ != null; } /** *
   *Номинал.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; * @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 = 3; */ @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 = 4; @SuppressWarnings("serial") private volatile java.lang.Object nominalCurrency_ = ""; /** *
   *Валюта номинала.
   * 
* * string nominal_currency = 4; * @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 = 4; * @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 PRIMARY_INDEX_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object primaryIndex_ = ""; /** *
   *Индекс (Bloomberg).
   * 
* * string primary_index = 5; * @return The primaryIndex. */ @java.lang.Override public java.lang.String getPrimaryIndex() { java.lang.Object ref = primaryIndex_; 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(); primaryIndex_ = s; return s; } } /** *
   *Индекс (Bloomberg).
   * 
* * string primary_index = 5; * @return The bytes for primaryIndex. */ @java.lang.Override public com.google.protobuf.ByteString getPrimaryIndexBytes() { java.lang.Object ref = primaryIndex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); primaryIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIVIDEND_RATE_FIELD_NUMBER = 6; private ru.tinkoff.piapi.contract.v1.Quotation dividendRate_; /** *
   *Ставка дивиденда (для привилегированных акций).
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; * @return Whether the dividendRate field is set. */ @java.lang.Override public boolean hasDividendRate() { return dividendRate_ != null; } /** *
   *Ставка дивиденда (для привилегированных акций).
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; * @return The dividendRate. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getDividendRate() { return dividendRate_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendRate_; } /** *
   *Ставка дивиденда (для привилегированных акций).
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDividendRateOrBuilder() { return dividendRate_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendRate_; } public static final int PREFERRED_SHARE_TYPE_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object preferredShareType_ = ""; /** *
   *Тип привилегированных акций.
   * 
* * string preferred_share_type = 7; * @return The preferredShareType. */ @java.lang.Override public java.lang.String getPreferredShareType() { java.lang.Object ref = preferredShareType_; 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(); preferredShareType_ = s; return s; } } /** *
   *Тип привилегированных акций.
   * 
* * string preferred_share_type = 7; * @return The bytes for preferredShareType. */ @java.lang.Override public com.google.protobuf.ByteString getPreferredShareTypeBytes() { java.lang.Object ref = preferredShareType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preferredShareType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IPO_DATE_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp ipoDate_; /** *
   *Дата IPO.
   * 
* * .google.protobuf.Timestamp ipo_date = 8; * @return Whether the ipoDate field is set. */ @java.lang.Override public boolean hasIpoDate() { return ipoDate_ != null; } /** *
   *Дата IPO.
   * 
* * .google.protobuf.Timestamp ipo_date = 8; * @return The ipoDate. */ @java.lang.Override public com.google.protobuf.Timestamp getIpoDate() { return ipoDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ipoDate_; } /** *
   *Дата IPO.
   * 
* * .google.protobuf.Timestamp ipo_date = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIpoDateOrBuilder() { return ipoDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ipoDate_; } public static final int REGISTRY_DATE_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp registryDate_; /** *
   *Дата регистрации.
   * 
* * .google.protobuf.Timestamp registry_date = 9; * @return Whether the registryDate field is set. */ @java.lang.Override public boolean hasRegistryDate() { return registryDate_ != null; } /** *
   *Дата регистрации.
   * 
* * .google.protobuf.Timestamp registry_date = 9; * @return The registryDate. */ @java.lang.Override public com.google.protobuf.Timestamp getRegistryDate() { return registryDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : registryDate_; } /** *
   *Дата регистрации.
   * 
* * .google.protobuf.Timestamp registry_date = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRegistryDateOrBuilder() { return registryDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : registryDate_; } public static final int DIV_YIELD_FLAG_FIELD_NUMBER = 10; private boolean divYieldFlag_ = false; /** *
   *Признак наличия дивидендной доходности.
   * 
* * bool div_yield_flag = 10; * @return The divYieldFlag. */ @java.lang.Override public boolean getDivYieldFlag() { return divYieldFlag_; } public static final int ISSUE_KIND_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object issueKind_ = ""; /** *
   *Форма выпуска ФИ.
   * 
* * string issue_kind = 11; * @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 = 11; * @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 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 REPRES_ISIN_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object represIsin_ = ""; /** *
   *ISIN базового актива.
   * 
* * string repres_isin = 13; * @return The represIsin. */ @java.lang.Override public java.lang.String getRepresIsin() { java.lang.Object ref = represIsin_; 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(); represIsin_ = s; return s; } } /** *
   *ISIN базового актива.
   * 
* * string repres_isin = 13; * @return The bytes for represIsin. */ @java.lang.Override public com.google.protobuf.ByteString getRepresIsinBytes() { java.lang.Object ref = represIsin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); represIsin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISSUE_SIZE_PLAN_FIELD_NUMBER = 14; private ru.tinkoff.piapi.contract.v1.Quotation issueSizePlan_; /** *
   *Объявленное количество шт.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 14; * @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 = 14; * @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 = 14; */ @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 TOTAL_FLOAT_FIELD_NUMBER = 15; private ru.tinkoff.piapi.contract.v1.Quotation totalFloat_; /** *
   *Количество акций в свободном обращении.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; * @return Whether the totalFloat field is set. */ @java.lang.Override public boolean hasTotalFloat() { return totalFloat_ != null; } /** *
   *Количество акций в свободном обращении.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; * @return The totalFloat. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getTotalFloat() { return totalFloat_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : totalFloat_; } /** *
   *Количество акций в свободном обращении.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getTotalFloatOrBuilder() { return totalFloat_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : totalFloat_; } 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 (type_ != ru.tinkoff.piapi.contract.v1.ShareType.SHARE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (issueSize_ != null) { output.writeMessage(2, getIssueSize()); } if (nominal_ != null) { output.writeMessage(3, getNominal()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nominalCurrency_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nominalCurrency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryIndex_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, primaryIndex_); } if (dividendRate_ != null) { output.writeMessage(6, getDividendRate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredShareType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, preferredShareType_); } if (ipoDate_ != null) { output.writeMessage(8, getIpoDate()); } if (registryDate_ != null) { output.writeMessage(9, getRegistryDate()); } if (divYieldFlag_ != false) { output.writeBool(10, divYieldFlag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issueKind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, issueKind_); } if (placementDate_ != null) { output.writeMessage(12, getPlacementDate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(represIsin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, represIsin_); } if (issueSizePlan_ != null) { output.writeMessage(14, getIssueSizePlan()); } if (totalFloat_ != null) { output.writeMessage(15, getTotalFloat()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != ru.tinkoff.piapi.contract.v1.ShareType.SHARE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (issueSize_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getIssueSize()); } if (nominal_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getNominal()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nominalCurrency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nominalCurrency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryIndex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, primaryIndex_); } if (dividendRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDividendRate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredShareType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, preferredShareType_); } if (ipoDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getIpoDate()); } if (registryDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRegistryDate()); } if (divYieldFlag_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, divYieldFlag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issueKind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, issueKind_); } if (placementDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getPlacementDate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(represIsin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, represIsin_); } if (issueSizePlan_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getIssueSizePlan()); } if (totalFloat_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getTotalFloat()); } 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.AssetShare)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.AssetShare other = (ru.tinkoff.piapi.contract.v1.AssetShare) obj; if (type_ != other.type_) 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 (!getPrimaryIndex() .equals(other.getPrimaryIndex())) return false; if (hasDividendRate() != other.hasDividendRate()) return false; if (hasDividendRate()) { if (!getDividendRate() .equals(other.getDividendRate())) return false; } if (!getPreferredShareType() .equals(other.getPreferredShareType())) return false; if (hasIpoDate() != other.hasIpoDate()) return false; if (hasIpoDate()) { if (!getIpoDate() .equals(other.getIpoDate())) return false; } if (hasRegistryDate() != other.hasRegistryDate()) return false; if (hasRegistryDate()) { if (!getRegistryDate() .equals(other.getRegistryDate())) return false; } if (getDivYieldFlag() != other.getDivYieldFlag()) return false; if (!getIssueKind() .equals(other.getIssueKind())) return false; if (hasPlacementDate() != other.hasPlacementDate()) return false; if (hasPlacementDate()) { if (!getPlacementDate() .equals(other.getPlacementDate())) return false; } if (!getRepresIsin() .equals(other.getRepresIsin())) return false; if (hasIssueSizePlan() != other.hasIssueSizePlan()) return false; if (hasIssueSizePlan()) { if (!getIssueSizePlan() .equals(other.getIssueSizePlan())) return false; } if (hasTotalFloat() != other.hasTotalFloat()) return false; if (hasTotalFloat()) { if (!getTotalFloat() .equals(other.getTotalFloat())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; 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) + PRIMARY_INDEX_FIELD_NUMBER; hash = (53 * hash) + getPrimaryIndex().hashCode(); if (hasDividendRate()) { hash = (37 * hash) + DIVIDEND_RATE_FIELD_NUMBER; hash = (53 * hash) + getDividendRate().hashCode(); } hash = (37 * hash) + PREFERRED_SHARE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getPreferredShareType().hashCode(); if (hasIpoDate()) { hash = (37 * hash) + IPO_DATE_FIELD_NUMBER; hash = (53 * hash) + getIpoDate().hashCode(); } if (hasRegistryDate()) { hash = (37 * hash) + REGISTRY_DATE_FIELD_NUMBER; hash = (53 * hash) + getRegistryDate().hashCode(); } hash = (37 * hash) + DIV_YIELD_FLAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDivYieldFlag()); hash = (37 * hash) + ISSUE_KIND_FIELD_NUMBER; hash = (53 * hash) + getIssueKind().hashCode(); if (hasPlacementDate()) { hash = (37 * hash) + PLACEMENT_DATE_FIELD_NUMBER; hash = (53 * hash) + getPlacementDate().hashCode(); } hash = (37 * hash) + REPRES_ISIN_FIELD_NUMBER; hash = (53 * hash) + getRepresIsin().hashCode(); if (hasIssueSizePlan()) { hash = (37 * hash) + ISSUE_SIZE_PLAN_FIELD_NUMBER; hash = (53 * hash) + getIssueSizePlan().hashCode(); } if (hasTotalFloat()) { hash = (37 * hash) + TOTAL_FLOAT_FIELD_NUMBER; hash = (53 * hash) + getTotalFloat().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.AssetShare parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AssetShare 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.AssetShare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AssetShare 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.AssetShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AssetShare 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.AssetShare parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.AssetShare 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.AssetShare parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.AssetShare 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.AssetShare 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.AssetShare 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.AssetShare 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.AssetShare} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AssetShare) ru.tinkoff.piapi.contract.v1.AssetShareOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetShare_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_AssetShare_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.AssetShare.class, ru.tinkoff.piapi.contract.v1.AssetShare.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.AssetShare.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; issueSize_ = null; if (issueSizeBuilder_ != null) { issueSizeBuilder_.dispose(); issueSizeBuilder_ = null; } nominal_ = null; if (nominalBuilder_ != null) { nominalBuilder_.dispose(); nominalBuilder_ = null; } nominalCurrency_ = ""; primaryIndex_ = ""; dividendRate_ = null; if (dividendRateBuilder_ != null) { dividendRateBuilder_.dispose(); dividendRateBuilder_ = null; } preferredShareType_ = ""; ipoDate_ = null; if (ipoDateBuilder_ != null) { ipoDateBuilder_.dispose(); ipoDateBuilder_ = null; } registryDate_ = null; if (registryDateBuilder_ != null) { registryDateBuilder_.dispose(); registryDateBuilder_ = null; } divYieldFlag_ = false; issueKind_ = ""; placementDate_ = null; if (placementDateBuilder_ != null) { placementDateBuilder_.dispose(); placementDateBuilder_ = null; } represIsin_ = ""; issueSizePlan_ = null; if (issueSizePlanBuilder_ != null) { issueSizePlanBuilder_.dispose(); issueSizePlanBuilder_ = null; } totalFloat_ = null; if (totalFloatBuilder_ != null) { totalFloatBuilder_.dispose(); totalFloatBuilder_ = 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_AssetShare_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetShare getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.AssetShare.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetShare build() { ru.tinkoff.piapi.contract.v1.AssetShare result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetShare buildPartial() { ru.tinkoff.piapi.contract.v1.AssetShare result = new ru.tinkoff.piapi.contract.v1.AssetShare(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.AssetShare result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.issueSize_ = issueSizeBuilder_ == null ? issueSize_ : issueSizeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.nominal_ = nominalBuilder_ == null ? nominal_ : nominalBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.nominalCurrency_ = nominalCurrency_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.primaryIndex_ = primaryIndex_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.dividendRate_ = dividendRateBuilder_ == null ? dividendRate_ : dividendRateBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.preferredShareType_ = preferredShareType_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.ipoDate_ = ipoDateBuilder_ == null ? ipoDate_ : ipoDateBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.registryDate_ = registryDateBuilder_ == null ? registryDate_ : registryDateBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.divYieldFlag_ = divYieldFlag_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.issueKind_ = issueKind_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.placementDate_ = placementDateBuilder_ == null ? placementDate_ : placementDateBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.represIsin_ = represIsin_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.issueSizePlan_ = issueSizePlanBuilder_ == null ? issueSizePlan_ : issueSizePlanBuilder_.build(); } if (((from_bitField0_ & 0x00004000) != 0)) { result.totalFloat_ = totalFloatBuilder_ == null ? totalFloat_ : totalFloatBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.AssetShare) { return mergeFrom((ru.tinkoff.piapi.contract.v1.AssetShare)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AssetShare other) { if (other == ru.tinkoff.piapi.contract.v1.AssetShare.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasIssueSize()) { mergeIssueSize(other.getIssueSize()); } if (other.hasNominal()) { mergeNominal(other.getNominal()); } if (!other.getNominalCurrency().isEmpty()) { nominalCurrency_ = other.nominalCurrency_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getPrimaryIndex().isEmpty()) { primaryIndex_ = other.primaryIndex_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasDividendRate()) { mergeDividendRate(other.getDividendRate()); } if (!other.getPreferredShareType().isEmpty()) { preferredShareType_ = other.preferredShareType_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasIpoDate()) { mergeIpoDate(other.getIpoDate()); } if (other.hasRegistryDate()) { mergeRegistryDate(other.getRegistryDate()); } if (other.getDivYieldFlag() != false) { setDivYieldFlag(other.getDivYieldFlag()); } if (!other.getIssueKind().isEmpty()) { issueKind_ = other.issueKind_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasPlacementDate()) { mergePlacementDate(other.getPlacementDate()); } if (!other.getRepresIsin().isEmpty()) { represIsin_ = other.represIsin_; bitField0_ |= 0x00001000; onChanged(); } if (other.hasIssueSizePlan()) { mergeIssueSizePlan(other.getIssueSizePlan()); } if (other.hasTotalFloat()) { mergeTotalFloat(other.getTotalFloat()); } 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 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getIssueSizeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getNominalFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { nominalCurrency_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { primaryIndex_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getDividendRateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { preferredShareType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getIpoDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getRegistryDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 80: { divYieldFlag_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { issueKind_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { input.readMessage( getPlacementDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 98 case 106: { represIsin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 114: { input.readMessage( getIssueSizePlanFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 114 case 122: { input.readMessage( getTotalFloatFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int type_ = 0; /** *
     *Тип акции.
     * 
* * .tinkoff.public.invest.api.contract.v1.ShareType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     *Тип акции.
     * 
* * .tinkoff.public.invest.api.contract.v1.ShareType type = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** *
     *Тип акции.
     * 
* * .tinkoff.public.invest.api.contract.v1.ShareType type = 1; * @return The type. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.ShareType getType() { ru.tinkoff.piapi.contract.v1.ShareType result = ru.tinkoff.piapi.contract.v1.ShareType.forNumber(type_); return result == null ? ru.tinkoff.piapi.contract.v1.ShareType.UNRECOGNIZED : result; } /** *
     *Тип акции.
     * 
* * .tinkoff.public.invest.api.contract.v1.ShareType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(ru.tinkoff.piapi.contract.v1.ShareType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
     *Тип акции.
     * 
* * .tinkoff.public.invest.api.contract.v1.ShareType type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; 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 = 2; * @return Whether the issueSize field is set. */ public boolean hasIssueSize() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *Объем выпуска (шт.).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 2; * @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 = 2; */ 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_ |= 0x00000002; onChanged(); return this; } /** *
     *Объем выпуска (шт.).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 2; */ public Builder setIssueSize( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (issueSizeBuilder_ == null) { issueSize_ = builderForValue.build(); } else { issueSizeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Объем выпуска (шт.).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 2; */ public Builder mergeIssueSize(ru.tinkoff.piapi.contract.v1.Quotation value) { if (issueSizeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && issueSize_ != null && issueSize_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getIssueSizeBuilder().mergeFrom(value); } else { issueSize_ = value; } } else { issueSizeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Объем выпуска (шт.).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 2; */ public Builder clearIssueSize() { bitField0_ = (bitField0_ & ~0x00000002); issueSize_ = null; if (issueSizeBuilder_ != null) { issueSizeBuilder_.dispose(); issueSizeBuilder_ = null; } onChanged(); return this; } /** *
     *Объем выпуска (шт.).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 2; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getIssueSizeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getIssueSizeFieldBuilder().getBuilder(); } /** *
     *Объем выпуска (шт.).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size = 2; */ 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 = 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> 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 = 3; * @return Whether the nominal field is set. */ public boolean hasNominal() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *Номинал.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; * @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 = 3; */ 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_ |= 0x00000004; onChanged(); return this; } /** *
     *Номинал.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; */ public Builder setNominal( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (nominalBuilder_ == null) { nominal_ = builderForValue.build(); } else { nominalBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Номинал.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; */ public Builder mergeNominal(ru.tinkoff.piapi.contract.v1.Quotation value) { if (nominalBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && nominal_ != null && nominal_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getNominalBuilder().mergeFrom(value); } else { nominal_ = value; } } else { nominalBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Номинал.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; */ public Builder clearNominal() { bitField0_ = (bitField0_ & ~0x00000004); nominal_ = null; if (nominalBuilder_ != null) { nominalBuilder_.dispose(); nominalBuilder_ = null; } onChanged(); return this; } /** *
     *Номинал.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getNominalBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNominalFieldBuilder().getBuilder(); } /** *
     *Номинал.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 3; */ 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 = 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> 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 = 4; * @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 = 4; * @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 = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     *Валюта номинала.
     * 
* * string nominal_currency = 4; * @return This builder for chaining. */ public Builder clearNominalCurrency() { nominalCurrency_ = getDefaultInstance().getNominalCurrency(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *Валюта номинала.
     * 
* * string nominal_currency = 4; * @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_ |= 0x00000008; onChanged(); return this; } private java.lang.Object primaryIndex_ = ""; /** *
     *Индекс (Bloomberg).
     * 
* * string primary_index = 5; * @return The primaryIndex. */ public java.lang.String getPrimaryIndex() { java.lang.Object ref = primaryIndex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); primaryIndex_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Индекс (Bloomberg).
     * 
* * string primary_index = 5; * @return The bytes for primaryIndex. */ public com.google.protobuf.ByteString getPrimaryIndexBytes() { java.lang.Object ref = primaryIndex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); primaryIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Индекс (Bloomberg).
     * 
* * string primary_index = 5; * @param value The primaryIndex to set. * @return This builder for chaining. */ public Builder setPrimaryIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } primaryIndex_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Индекс (Bloomberg).
     * 
* * string primary_index = 5; * @return This builder for chaining. */ public Builder clearPrimaryIndex() { primaryIndex_ = getDefaultInstance().getPrimaryIndex(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     *Индекс (Bloomberg).
     * 
* * string primary_index = 5; * @param value The bytes for primaryIndex to set. * @return This builder for chaining. */ public Builder setPrimaryIndexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); primaryIndex_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.Quotation dividendRate_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dividendRateBuilder_; /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; * @return Whether the dividendRate field is set. */ public boolean hasDividendRate() { return ((bitField0_ & 0x00000020) != 0); } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; * @return The dividendRate. */ public ru.tinkoff.piapi.contract.v1.Quotation getDividendRate() { if (dividendRateBuilder_ == null) { return dividendRate_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendRate_; } else { return dividendRateBuilder_.getMessage(); } } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ public Builder setDividendRate(ru.tinkoff.piapi.contract.v1.Quotation value) { if (dividendRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dividendRate_ = value; } else { dividendRateBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ public Builder setDividendRate( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (dividendRateBuilder_ == null) { dividendRate_ = builderForValue.build(); } else { dividendRateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ public Builder mergeDividendRate(ru.tinkoff.piapi.contract.v1.Quotation value) { if (dividendRateBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && dividendRate_ != null && dividendRate_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getDividendRateBuilder().mergeFrom(value); } else { dividendRate_ = value; } } else { dividendRateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ public Builder clearDividendRate() { bitField0_ = (bitField0_ & ~0x00000020); dividendRate_ = null; if (dividendRateBuilder_ != null) { dividendRateBuilder_.dispose(); dividendRateBuilder_ = null; } onChanged(); return this; } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDividendRateBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDividendRateFieldBuilder().getBuilder(); } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDividendRateOrBuilder() { if (dividendRateBuilder_ != null) { return dividendRateBuilder_.getMessageOrBuilder(); } else { return dividendRate_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendRate_; } } /** *
     *Ставка дивиденда (для привилегированных акций).
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation dividend_rate = 6; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getDividendRateFieldBuilder() { if (dividendRateBuilder_ == null) { dividendRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getDividendRate(), getParentForChildren(), isClean()); dividendRate_ = null; } return dividendRateBuilder_; } private java.lang.Object preferredShareType_ = ""; /** *
     *Тип привилегированных акций.
     * 
* * string preferred_share_type = 7; * @return The preferredShareType. */ public java.lang.String getPreferredShareType() { java.lang.Object ref = preferredShareType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); preferredShareType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Тип привилегированных акций.
     * 
* * string preferred_share_type = 7; * @return The bytes for preferredShareType. */ public com.google.protobuf.ByteString getPreferredShareTypeBytes() { java.lang.Object ref = preferredShareType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preferredShareType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Тип привилегированных акций.
     * 
* * string preferred_share_type = 7; * @param value The preferredShareType to set. * @return This builder for chaining. */ public Builder setPreferredShareType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } preferredShareType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Тип привилегированных акций.
     * 
* * string preferred_share_type = 7; * @return This builder for chaining. */ public Builder clearPreferredShareType() { preferredShareType_ = getDefaultInstance().getPreferredShareType(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     *Тип привилегированных акций.
     * 
* * string preferred_share_type = 7; * @param value The bytes for preferredShareType to set. * @return This builder for chaining. */ public Builder setPreferredShareTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); preferredShareType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.protobuf.Timestamp ipoDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> ipoDateBuilder_; /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; * @return Whether the ipoDate field is set. */ public boolean hasIpoDate() { return ((bitField0_ & 0x00000080) != 0); } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; * @return The ipoDate. */ public com.google.protobuf.Timestamp getIpoDate() { if (ipoDateBuilder_ == null) { return ipoDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ipoDate_; } else { return ipoDateBuilder_.getMessage(); } } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; */ public Builder setIpoDate(com.google.protobuf.Timestamp value) { if (ipoDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ipoDate_ = value; } else { ipoDateBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; */ public Builder setIpoDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (ipoDateBuilder_ == null) { ipoDate_ = builderForValue.build(); } else { ipoDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; */ public Builder mergeIpoDate(com.google.protobuf.Timestamp value) { if (ipoDateBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && ipoDate_ != null && ipoDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getIpoDateBuilder().mergeFrom(value); } else { ipoDate_ = value; } } else { ipoDateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; */ public Builder clearIpoDate() { bitField0_ = (bitField0_ & ~0x00000080); ipoDate_ = null; if (ipoDateBuilder_ != null) { ipoDateBuilder_.dispose(); ipoDateBuilder_ = null; } onChanged(); return this; } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; */ public com.google.protobuf.Timestamp.Builder getIpoDateBuilder() { bitField0_ |= 0x00000080; onChanged(); return getIpoDateFieldBuilder().getBuilder(); } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; */ public com.google.protobuf.TimestampOrBuilder getIpoDateOrBuilder() { if (ipoDateBuilder_ != null) { return ipoDateBuilder_.getMessageOrBuilder(); } else { return ipoDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ipoDate_; } } /** *
     *Дата IPO.
     * 
* * .google.protobuf.Timestamp ipo_date = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getIpoDateFieldBuilder() { if (ipoDateBuilder_ == null) { ipoDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getIpoDate(), getParentForChildren(), isClean()); ipoDate_ = null; } return ipoDateBuilder_; } private com.google.protobuf.Timestamp registryDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> registryDateBuilder_; /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; * @return Whether the registryDate field is set. */ public boolean hasRegistryDate() { return ((bitField0_ & 0x00000100) != 0); } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; * @return The registryDate. */ public com.google.protobuf.Timestamp getRegistryDate() { if (registryDateBuilder_ == null) { return registryDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : registryDate_; } else { return registryDateBuilder_.getMessage(); } } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; */ public Builder setRegistryDate(com.google.protobuf.Timestamp value) { if (registryDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } registryDate_ = value; } else { registryDateBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; */ public Builder setRegistryDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (registryDateBuilder_ == null) { registryDate_ = builderForValue.build(); } else { registryDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; */ public Builder mergeRegistryDate(com.google.protobuf.Timestamp value) { if (registryDateBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && registryDate_ != null && registryDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getRegistryDateBuilder().mergeFrom(value); } else { registryDate_ = value; } } else { registryDateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; */ public Builder clearRegistryDate() { bitField0_ = (bitField0_ & ~0x00000100); registryDate_ = null; if (registryDateBuilder_ != null) { registryDateBuilder_.dispose(); registryDateBuilder_ = null; } onChanged(); return this; } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; */ public com.google.protobuf.Timestamp.Builder getRegistryDateBuilder() { bitField0_ |= 0x00000100; onChanged(); return getRegistryDateFieldBuilder().getBuilder(); } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; */ public com.google.protobuf.TimestampOrBuilder getRegistryDateOrBuilder() { if (registryDateBuilder_ != null) { return registryDateBuilder_.getMessageOrBuilder(); } else { return registryDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : registryDate_; } } /** *
     *Дата регистрации.
     * 
* * .google.protobuf.Timestamp registry_date = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getRegistryDateFieldBuilder() { if (registryDateBuilder_ == null) { registryDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getRegistryDate(), getParentForChildren(), isClean()); registryDate_ = null; } return registryDateBuilder_; } private boolean divYieldFlag_ ; /** *
     *Признак наличия дивидендной доходности.
     * 
* * bool div_yield_flag = 10; * @return The divYieldFlag. */ @java.lang.Override public boolean getDivYieldFlag() { return divYieldFlag_; } /** *
     *Признак наличия дивидендной доходности.
     * 
* * bool div_yield_flag = 10; * @param value The divYieldFlag to set. * @return This builder for chaining. */ public Builder setDivYieldFlag(boolean value) { divYieldFlag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Признак наличия дивидендной доходности.
     * 
* * bool div_yield_flag = 10; * @return This builder for chaining. */ public Builder clearDivYieldFlag() { bitField0_ = (bitField0_ & ~0x00000200); divYieldFlag_ = false; onChanged(); return this; } private java.lang.Object issueKind_ = ""; /** *
     *Форма выпуска ФИ.
     * 
* * string issue_kind = 11; * @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 = 11; * @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 = 11; * @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_ |= 0x00000400; onChanged(); return this; } /** *
     *Форма выпуска ФИ.
     * 
* * string issue_kind = 11; * @return This builder for chaining. */ public Builder clearIssueKind() { issueKind_ = getDefaultInstance().getIssueKind(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     *Форма выпуска ФИ.
     * 
* * string issue_kind = 11; * @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_ |= 0x00000400; onChanged(); return this; } 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 represIsin_ = ""; /** *
     *ISIN базового актива.
     * 
* * string repres_isin = 13; * @return The represIsin. */ public java.lang.String getRepresIsin() { java.lang.Object ref = represIsin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); represIsin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *ISIN базового актива.
     * 
* * string repres_isin = 13; * @return The bytes for represIsin. */ public com.google.protobuf.ByteString getRepresIsinBytes() { java.lang.Object ref = represIsin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); represIsin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *ISIN базового актива.
     * 
* * string repres_isin = 13; * @param value The represIsin to set. * @return This builder for chaining. */ public Builder setRepresIsin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } represIsin_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     *ISIN базового актива.
     * 
* * string repres_isin = 13; * @return This builder for chaining. */ public Builder clearRepresIsin() { represIsin_ = getDefaultInstance().getRepresIsin(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** *
     *ISIN базового актива.
     * 
* * string repres_isin = 13; * @param value The bytes for represIsin to set. * @return This builder for chaining. */ public Builder setRepresIsinBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); represIsin_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } 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 = 14; * @return Whether the issueSizePlan field is set. */ public boolean hasIssueSizePlan() { return ((bitField0_ & 0x00002000) != 0); } /** *
     *Объявленное количество шт.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 14; * @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 = 14; */ 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_ |= 0x00002000; onChanged(); return this; } /** *
     *Объявленное количество шт.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 14; */ public Builder setIssueSizePlan( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (issueSizePlanBuilder_ == null) { issueSizePlan_ = builderForValue.build(); } else { issueSizePlanBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     *Объявленное количество шт.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 14; */ public Builder mergeIssueSizePlan(ru.tinkoff.piapi.contract.v1.Quotation value) { if (issueSizePlanBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && issueSizePlan_ != null && issueSizePlan_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getIssueSizePlanBuilder().mergeFrom(value); } else { issueSizePlan_ = value; } } else { issueSizePlanBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     *Объявленное количество шт.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 14; */ public Builder clearIssueSizePlan() { bitField0_ = (bitField0_ & ~0x00002000); issueSizePlan_ = null; if (issueSizePlanBuilder_ != null) { issueSizePlanBuilder_.dispose(); issueSizePlanBuilder_ = null; } onChanged(); return this; } /** *
     *Объявленное количество шт.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 14; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getIssueSizePlanBuilder() { bitField0_ |= 0x00002000; onChanged(); return getIssueSizePlanFieldBuilder().getBuilder(); } /** *
     *Объявленное количество шт.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation issue_size_plan = 14; */ 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 = 14; */ 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 totalFloat_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> totalFloatBuilder_; /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; * @return Whether the totalFloat field is set. */ public boolean hasTotalFloat() { return ((bitField0_ & 0x00004000) != 0); } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; * @return The totalFloat. */ public ru.tinkoff.piapi.contract.v1.Quotation getTotalFloat() { if (totalFloatBuilder_ == null) { return totalFloat_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : totalFloat_; } else { return totalFloatBuilder_.getMessage(); } } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ public Builder setTotalFloat(ru.tinkoff.piapi.contract.v1.Quotation value) { if (totalFloatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalFloat_ = value; } else { totalFloatBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ public Builder setTotalFloat( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (totalFloatBuilder_ == null) { totalFloat_ = builderForValue.build(); } else { totalFloatBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ public Builder mergeTotalFloat(ru.tinkoff.piapi.contract.v1.Quotation value) { if (totalFloatBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && totalFloat_ != null && totalFloat_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getTotalFloatBuilder().mergeFrom(value); } else { totalFloat_ = value; } } else { totalFloatBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ public Builder clearTotalFloat() { bitField0_ = (bitField0_ & ~0x00004000); totalFloat_ = null; if (totalFloatBuilder_ != null) { totalFloatBuilder_.dispose(); totalFloatBuilder_ = null; } onChanged(); return this; } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getTotalFloatBuilder() { bitField0_ |= 0x00004000; onChanged(); return getTotalFloatFieldBuilder().getBuilder(); } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getTotalFloatOrBuilder() { if (totalFloatBuilder_ != null) { return totalFloatBuilder_.getMessageOrBuilder(); } else { return totalFloat_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : totalFloat_; } } /** *
     *Количество акций в свободном обращении.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation total_float = 15; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getTotalFloatFieldBuilder() { if (totalFloatBuilder_ == null) { totalFloatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getTotalFloat(), getParentForChildren(), isClean()); totalFloat_ = null; } return totalFloatBuilder_; } @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.AssetShare) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.AssetShare) private static final ru.tinkoff.piapi.contract.v1.AssetShare DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.AssetShare(); } public static ru.tinkoff.piapi.contract.v1.AssetShare getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetShare 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.AssetShare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy