implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.DividendsForeignIssuerReport)
ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReportOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_DividendsForeignIssuerReport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_DividendsForeignIssuerReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport.class, ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
recordDate_ = null;
if (recordDateBuilder_ != null) {
recordDateBuilder_.dispose();
recordDateBuilder_ = null;
}
paymentDate_ = null;
if (paymentDateBuilder_ != null) {
paymentDateBuilder_.dispose();
paymentDateBuilder_ = null;
}
securityName_ = "";
isin_ = "";
issuerCountry_ = "";
quantity_ = 0L;
dividend_ = null;
if (dividendBuilder_ != null) {
dividendBuilder_.dispose();
dividendBuilder_ = null;
}
externalCommission_ = null;
if (externalCommissionBuilder_ != null) {
externalCommissionBuilder_.dispose();
externalCommissionBuilder_ = null;
}
dividendGross_ = null;
if (dividendGrossBuilder_ != null) {
dividendGrossBuilder_.dispose();
dividendGrossBuilder_ = null;
}
tax_ = null;
if (taxBuilder_ != null) {
taxBuilder_.dispose();
taxBuilder_ = null;
}
dividendAmount_ = null;
if (dividendAmountBuilder_ != null) {
dividendAmountBuilder_.dispose();
dividendAmountBuilder_ = null;
}
currency_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_DividendsForeignIssuerReport_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport build() {
ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport buildPartial() {
ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport result = new ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.recordDate_ = recordDateBuilder_ == null
? recordDate_
: recordDateBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.paymentDate_ = paymentDateBuilder_ == null
? paymentDate_
: paymentDateBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.securityName_ = securityName_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.isin_ = isin_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.issuerCountry_ = issuerCountry_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.quantity_ = quantity_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.dividend_ = dividendBuilder_ == null
? dividend_
: dividendBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.externalCommission_ = externalCommissionBuilder_ == null
? externalCommission_
: externalCommissionBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.dividendGross_ = dividendGrossBuilder_ == null
? dividendGross_
: dividendGrossBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.tax_ = taxBuilder_ == null
? tax_
: taxBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.dividendAmount_ = dividendAmountBuilder_ == null
? dividendAmount_
: dividendAmountBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.currency_ = currency_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport other) {
if (other == ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport.getDefaultInstance()) return this;
if (other.hasRecordDate()) {
mergeRecordDate(other.getRecordDate());
}
if (other.hasPaymentDate()) {
mergePaymentDate(other.getPaymentDate());
}
if (!other.getSecurityName().isEmpty()) {
securityName_ = other.securityName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getIsin().isEmpty()) {
isin_ = other.isin_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getIssuerCountry().isEmpty()) {
issuerCountry_ = other.issuerCountry_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getQuantity() != 0L) {
setQuantity(other.getQuantity());
}
if (other.hasDividend()) {
mergeDividend(other.getDividend());
}
if (other.hasExternalCommission()) {
mergeExternalCommission(other.getExternalCommission());
}
if (other.hasDividendGross()) {
mergeDividendGross(other.getDividendGross());
}
if (other.hasTax()) {
mergeTax(other.getTax());
}
if (other.hasDividendAmount()) {
mergeDividendAmount(other.getDividendAmount());
}
if (!other.getCurrency().isEmpty()) {
currency_ = other.currency_;
bitField0_ |= 0x00000800;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getRecordDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getPaymentDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
securityName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
isin_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
issuerCountry_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
quantity_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
input.readMessage(
getDividendFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getExternalCommissionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
input.readMessage(
getDividendGrossFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
input.readMessage(
getTaxFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
input.readMessage(
getDividendAmountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
currency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 98
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 com.google.protobuf.Timestamp recordDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> recordDateBuilder_;
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
* @return Whether the recordDate field is set.
*/
public boolean hasRecordDate() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
* @return The recordDate.
*/
public com.google.protobuf.Timestamp getRecordDate() {
if (recordDateBuilder_ == null) {
return recordDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : recordDate_;
} else {
return recordDateBuilder_.getMessage();
}
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
*/
public Builder setRecordDate(com.google.protobuf.Timestamp value) {
if (recordDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recordDate_ = value;
} else {
recordDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
*/
public Builder setRecordDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (recordDateBuilder_ == null) {
recordDate_ = builderForValue.build();
} else {
recordDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
*/
public Builder mergeRecordDate(com.google.protobuf.Timestamp value) {
if (recordDateBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
recordDate_ != null &&
recordDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getRecordDateBuilder().mergeFrom(value);
} else {
recordDate_ = value;
}
} else {
recordDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
*/
public Builder clearRecordDate() {
bitField0_ = (bitField0_ & ~0x00000001);
recordDate_ = null;
if (recordDateBuilder_ != null) {
recordDateBuilder_.dispose();
recordDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
*/
public com.google.protobuf.Timestamp.Builder getRecordDateBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRecordDateFieldBuilder().getBuilder();
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
*/
public com.google.protobuf.TimestampOrBuilder getRecordDateOrBuilder() {
if (recordDateBuilder_ != null) {
return recordDateBuilder_.getMessageOrBuilder();
} else {
return recordDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : recordDate_;
}
}
/**
*
*Дата фиксации реестра.
*
*
* .google.protobuf.Timestamp record_date = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getRecordDateFieldBuilder() {
if (recordDateBuilder_ == null) {
recordDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getRecordDate(),
getParentForChildren(),
isClean());
recordDate_ = null;
}
return recordDateBuilder_;
}
private com.google.protobuf.Timestamp paymentDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> paymentDateBuilder_;
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
* @return Whether the paymentDate field is set.
*/
public boolean hasPaymentDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
* @return The paymentDate.
*/
public com.google.protobuf.Timestamp getPaymentDate() {
if (paymentDateBuilder_ == null) {
return paymentDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : paymentDate_;
} else {
return paymentDateBuilder_.getMessage();
}
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
*/
public Builder setPaymentDate(com.google.protobuf.Timestamp value) {
if (paymentDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
paymentDate_ = value;
} else {
paymentDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
*/
public Builder setPaymentDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (paymentDateBuilder_ == null) {
paymentDate_ = builderForValue.build();
} else {
paymentDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
*/
public Builder mergePaymentDate(com.google.protobuf.Timestamp value) {
if (paymentDateBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
paymentDate_ != null &&
paymentDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getPaymentDateBuilder().mergeFrom(value);
} else {
paymentDate_ = value;
}
} else {
paymentDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
*/
public Builder clearPaymentDate() {
bitField0_ = (bitField0_ & ~0x00000002);
paymentDate_ = null;
if (paymentDateBuilder_ != null) {
paymentDateBuilder_.dispose();
paymentDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
*/
public com.google.protobuf.Timestamp.Builder getPaymentDateBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPaymentDateFieldBuilder().getBuilder();
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
*/
public com.google.protobuf.TimestampOrBuilder getPaymentDateOrBuilder() {
if (paymentDateBuilder_ != null) {
return paymentDateBuilder_.getMessageOrBuilder();
} else {
return paymentDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : paymentDate_;
}
}
/**
*
*Дата выплаты.
*
*
* .google.protobuf.Timestamp payment_date = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getPaymentDateFieldBuilder() {
if (paymentDateBuilder_ == null) {
paymentDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getPaymentDate(),
getParentForChildren(),
isClean());
paymentDate_ = null;
}
return paymentDateBuilder_;
}
private java.lang.Object securityName_ = "";
/**
*
*Наименование ценной бумаги.
*
*
* string security_name = 3;
* @return The securityName.
*/
public java.lang.String getSecurityName() {
java.lang.Object ref = securityName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
securityName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Наименование ценной бумаги.
*
*
* string security_name = 3;
* @return The bytes for securityName.
*/
public com.google.protobuf.ByteString
getSecurityNameBytes() {
java.lang.Object ref = securityName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
securityName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Наименование ценной бумаги.
*
*
* string security_name = 3;
* @param value The securityName to set.
* @return This builder for chaining.
*/
public Builder setSecurityName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
securityName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Наименование ценной бумаги.
*
*
* string security_name = 3;
* @return This builder for chaining.
*/
public Builder clearSecurityName() {
securityName_ = getDefaultInstance().getSecurityName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*Наименование ценной бумаги.
*
*
* string security_name = 3;
* @param value The bytes for securityName to set.
* @return This builder for chaining.
*/
public Builder setSecurityNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
securityName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object isin_ = "";
/**
*
*ISIN-идентификатор ценной бумаги.
*
*
* string isin = 4;
* @return The isin.
*/
public java.lang.String getIsin() {
java.lang.Object ref = isin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
isin_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*ISIN-идентификатор ценной бумаги.
*
*
* string isin = 4;
* @return The bytes for isin.
*/
public com.google.protobuf.ByteString
getIsinBytes() {
java.lang.Object ref = isin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
isin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*ISIN-идентификатор ценной бумаги.
*
*
* string isin = 4;
* @param value The isin to set.
* @return This builder for chaining.
*/
public Builder setIsin(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
isin_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*ISIN-идентификатор ценной бумаги.
*
*
* string isin = 4;
* @return This builder for chaining.
*/
public Builder clearIsin() {
isin_ = getDefaultInstance().getIsin();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*ISIN-идентификатор ценной бумаги.
*
*
* string isin = 4;
* @param value The bytes for isin to set.
* @return This builder for chaining.
*/
public Builder setIsinBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
isin_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object issuerCountry_ = "";
/**
*
*Страна эмитента. Для депозитарных расписок указывается страна эмитента базового актива.
*
*
* string issuer_country = 5;
* @return The issuerCountry.
*/
public java.lang.String getIssuerCountry() {
java.lang.Object ref = issuerCountry_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issuerCountry_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Страна эмитента. Для депозитарных расписок указывается страна эмитента базового актива.
*
*
* string issuer_country = 5;
* @return The bytes for issuerCountry.
*/
public com.google.protobuf.ByteString
getIssuerCountryBytes() {
java.lang.Object ref = issuerCountry_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
issuerCountry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Страна эмитента. Для депозитарных расписок указывается страна эмитента базового актива.
*
*
* string issuer_country = 5;
* @param value The issuerCountry to set.
* @return This builder for chaining.
*/
public Builder setIssuerCountry(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
issuerCountry_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Страна эмитента. Для депозитарных расписок указывается страна эмитента базового актива.
*
*
* string issuer_country = 5;
* @return This builder for chaining.
*/
public Builder clearIssuerCountry() {
issuerCountry_ = getDefaultInstance().getIssuerCountry();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Страна эмитента. Для депозитарных расписок указывается страна эмитента базового актива.
*
*
* string issuer_country = 5;
* @param value The bytes for issuerCountry to set.
* @return This builder for chaining.
*/
public Builder setIssuerCountryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
issuerCountry_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private long quantity_ ;
/**
*
*Количество ценных бумаг.
*
*
* int64 quantity = 6;
* @return The quantity.
*/
@java.lang.Override
public long getQuantity() {
return quantity_;
}
/**
*
*Количество ценных бумаг.
*
*
* int64 quantity = 6;
* @param value The quantity to set.
* @return This builder for chaining.
*/
public Builder setQuantity(long value) {
quantity_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Количество ценных бумаг.
*
*
* int64 quantity = 6;
* @return This builder for chaining.
*/
public Builder clearQuantity() {
bitField0_ = (bitField0_ & ~0x00000020);
quantity_ = 0L;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Quotation dividend_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dividendBuilder_;
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
* @return Whether the dividend field is set.
*/
public boolean hasDividend() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
* @return The dividend.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getDividend() {
if (dividendBuilder_ == null) {
return dividend_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividend_;
} else {
return dividendBuilder_.getMessage();
}
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
*/
public Builder setDividend(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dividendBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dividend_ = value;
} else {
dividendBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
*/
public Builder setDividend(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (dividendBuilder_ == null) {
dividend_ = builderForValue.build();
} else {
dividendBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
*/
public Builder mergeDividend(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dividendBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
dividend_ != null &&
dividend_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getDividendBuilder().mergeFrom(value);
} else {
dividend_ = value;
}
} else {
dividendBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
*/
public Builder clearDividend() {
bitField0_ = (bitField0_ & ~0x00000040);
dividend_ = null;
if (dividendBuilder_ != null) {
dividendBuilder_.dispose();
dividendBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDividendBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDividendFieldBuilder().getBuilder();
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDividendOrBuilder() {
if (dividendBuilder_ != null) {
return dividendBuilder_.getMessageOrBuilder();
} else {
return dividend_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividend_;
}
}
/**
*
*Выплаты на одну бумагу
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getDividendFieldBuilder() {
if (dividendBuilder_ == null) {
dividendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getDividend(),
getParentForChildren(),
isClean());
dividend_ = null;
}
return dividendBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation externalCommission_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> externalCommissionBuilder_;
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
* @return Whether the externalCommission field is set.
*/
public boolean hasExternalCommission() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
* @return The externalCommission.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getExternalCommission() {
if (externalCommissionBuilder_ == null) {
return externalCommission_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : externalCommission_;
} else {
return externalCommissionBuilder_.getMessage();
}
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
*/
public Builder setExternalCommission(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (externalCommissionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
externalCommission_ = value;
} else {
externalCommissionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
*/
public Builder setExternalCommission(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (externalCommissionBuilder_ == null) {
externalCommission_ = builderForValue.build();
} else {
externalCommissionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
*/
public Builder mergeExternalCommission(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (externalCommissionBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
externalCommission_ != null &&
externalCommission_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getExternalCommissionBuilder().mergeFrom(value);
} else {
externalCommission_ = value;
}
} else {
externalCommissionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
*/
public Builder clearExternalCommission() {
bitField0_ = (bitField0_ & ~0x00000080);
externalCommission_ = null;
if (externalCommissionBuilder_ != null) {
externalCommissionBuilder_.dispose();
externalCommissionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getExternalCommissionBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getExternalCommissionFieldBuilder().getBuilder();
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getExternalCommissionOrBuilder() {
if (externalCommissionBuilder_ != null) {
return externalCommissionBuilder_.getMessageOrBuilder();
} else {
return externalCommission_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : externalCommission_;
}
}
/**
*
*Комиссия внешних платёжных агентов.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation external_commission = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getExternalCommissionFieldBuilder() {
if (externalCommissionBuilder_ == null) {
externalCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getExternalCommission(),
getParentForChildren(),
isClean());
externalCommission_ = null;
}
return externalCommissionBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation dividendGross_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dividendGrossBuilder_;
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
* @return Whether the dividendGross field is set.
*/
public boolean hasDividendGross() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
* @return The dividendGross.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getDividendGross() {
if (dividendGrossBuilder_ == null) {
return dividendGross_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendGross_;
} else {
return dividendGrossBuilder_.getMessage();
}
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
*/
public Builder setDividendGross(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dividendGrossBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dividendGross_ = value;
} else {
dividendGrossBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
*/
public Builder setDividendGross(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (dividendGrossBuilder_ == null) {
dividendGross_ = builderForValue.build();
} else {
dividendGrossBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
*/
public Builder mergeDividendGross(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dividendGrossBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
dividendGross_ != null &&
dividendGross_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getDividendGrossBuilder().mergeFrom(value);
} else {
dividendGross_ = value;
}
} else {
dividendGrossBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
*/
public Builder clearDividendGross() {
bitField0_ = (bitField0_ & ~0x00000100);
dividendGross_ = null;
if (dividendGrossBuilder_ != null) {
dividendGrossBuilder_.dispose();
dividendGrossBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDividendGrossBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getDividendGrossFieldBuilder().getBuilder();
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDividendGrossOrBuilder() {
if (dividendGrossBuilder_ != null) {
return dividendGrossBuilder_.getMessageOrBuilder();
} else {
return dividendGross_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendGross_;
}
}
/**
*
*Сумма до удержания налога.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_gross = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getDividendGrossFieldBuilder() {
if (dividendGrossBuilder_ == null) {
dividendGrossBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getDividendGross(),
getParentForChildren(),
isClean());
dividendGross_ = null;
}
return dividendGrossBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation tax_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> taxBuilder_;
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
* @return Whether the tax field is set.
*/
public boolean hasTax() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
* @return The tax.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getTax() {
if (taxBuilder_ == null) {
return tax_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : tax_;
} else {
return taxBuilder_.getMessage();
}
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
*/
public Builder setTax(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (taxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tax_ = value;
} else {
taxBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
*/
public Builder setTax(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (taxBuilder_ == null) {
tax_ = builderForValue.build();
} else {
taxBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
*/
public Builder mergeTax(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (taxBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
tax_ != null &&
tax_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getTaxBuilder().mergeFrom(value);
} else {
tax_ = value;
}
} else {
taxBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
*/
public Builder clearTax() {
bitField0_ = (bitField0_ & ~0x00000200);
tax_ = null;
if (taxBuilder_ != null) {
taxBuilder_.dispose();
taxBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getTaxBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getTaxFieldBuilder().getBuilder();
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getTaxOrBuilder() {
if (taxBuilder_ != null) {
return taxBuilder_.getMessageOrBuilder();
} else {
return tax_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : tax_;
}
}
/**
*
*Сумма налога, удержанного агентом.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation tax = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getTaxFieldBuilder() {
if (taxBuilder_ == null) {
taxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getTax(),
getParentForChildren(),
isClean());
tax_ = null;
}
return taxBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation dividendAmount_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> dividendAmountBuilder_;
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
* @return Whether the dividendAmount field is set.
*/
public boolean hasDividendAmount() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
* @return The dividendAmount.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getDividendAmount() {
if (dividendAmountBuilder_ == null) {
return dividendAmount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendAmount_;
} else {
return dividendAmountBuilder_.getMessage();
}
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
*/
public Builder setDividendAmount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dividendAmountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dividendAmount_ = value;
} else {
dividendAmountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
*/
public Builder setDividendAmount(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (dividendAmountBuilder_ == null) {
dividendAmount_ = builderForValue.build();
} else {
dividendAmountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
*/
public Builder mergeDividendAmount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (dividendAmountBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
dividendAmount_ != null &&
dividendAmount_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getDividendAmountBuilder().mergeFrom(value);
} else {
dividendAmount_ = value;
}
} else {
dividendAmountBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
*/
public Builder clearDividendAmount() {
bitField0_ = (bitField0_ & ~0x00000400);
dividendAmount_ = null;
if (dividendAmountBuilder_ != null) {
dividendAmountBuilder_.dispose();
dividendAmountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getDividendAmountBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getDividendAmountFieldBuilder().getBuilder();
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getDividendAmountOrBuilder() {
if (dividendAmountBuilder_ != null) {
return dividendAmountBuilder_.getMessageOrBuilder();
} else {
return dividendAmount_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : dividendAmount_;
}
}
/**
*
*Итоговая сумма выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation dividend_amount = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getDividendAmountFieldBuilder() {
if (dividendAmountBuilder_ == null) {
dividendAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getDividendAmount(),
getParentForChildren(),
isClean());
dividendAmount_ = null;
}
return dividendAmountBuilder_;
}
private java.lang.Object currency_ = "";
/**
*
*Валюта.
*
*
* string currency = 12;
* @return The currency.
*/
public java.lang.String getCurrency() {
java.lang.Object ref = currency_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currency_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Валюта.
*
*
* string currency = 12;
* @return The bytes for currency.
*/
public com.google.protobuf.ByteString
getCurrencyBytes() {
java.lang.Object ref = currency_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currency_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Валюта.
*
*
* string currency = 12;
* @param value The currency to set.
* @return This builder for chaining.
*/
public Builder setCurrency(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
currency_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Валюта.
*
*
* string currency = 12;
* @return This builder for chaining.
*/
public Builder clearCurrency() {
currency_ = getDefaultInstance().getCurrency();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*Валюта.
*
*
* string currency = 12;
* @param value The bytes for currency to set.
* @return This builder for chaining.
*/
public Builder setCurrencyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
currency_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.DividendsForeignIssuerReport)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.DividendsForeignIssuerReport)
private static final ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport();
}
public static ru.tinkoff.piapi.contract.v1.DividendsForeignIssuerReport getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DividendsForeignIssuerReport 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.DividendsForeignIssuerReport getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}