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.
// 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 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);
}
/**
*