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

ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest} */ public final class AccruedInterest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.AccruedInterest) AccruedInterestOrBuilder { private static final long serialVersionUID = 0L; // Use AccruedInterest.newBuilder() to construct. private AccruedInterest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccruedInterest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccruedInterest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AccruedInterest_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_AccruedInterest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.AccruedInterest.class, ru.tinkoff.piapi.contract.v1.AccruedInterest.Builder.class); } public static final int DATE_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp date_; /** *
   *Дата и время выплаты в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return date_ != null; } /** *
   *Дата и время выплаты в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ @java.lang.Override public com.google.protobuf.Timestamp getDate() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } /** *
   *Дата и время выплаты в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp date = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } public static final int VALUE_FIELD_NUMBER = 2; private ru.tinkoff.piapi.contract.v1.Quotation value_; /** *
   *Величина выплаты.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** *
   *Величина выплаты.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; * @return The value. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getValue() { return value_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : value_; } /** *
   *Величина выплаты.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getValueOrBuilder() { return value_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : value_; } public static final int VALUE_PERCENT_FIELD_NUMBER = 3; private ru.tinkoff.piapi.contract.v1.Quotation valuePercent_; /** *
   *Величина выплаты в процентах от номинала.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; * @return Whether the valuePercent field is set. */ @java.lang.Override public boolean hasValuePercent() { return valuePercent_ != null; } /** *
   *Величина выплаты в процентах от номинала.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; * @return The valuePercent. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getValuePercent() { return valuePercent_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : valuePercent_; } /** *
   *Величина выплаты в процентах от номинала.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getValuePercentOrBuilder() { return valuePercent_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : valuePercent_; } public static final int NOMINAL_FIELD_NUMBER = 4; private ru.tinkoff.piapi.contract.v1.Quotation nominal_; /** *
   *Номинал облигации.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; * @return Whether the nominal field is set. */ @java.lang.Override public boolean hasNominal() { return nominal_ != null; } /** *
   *Номинал облигации.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; * @return The nominal. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getNominal() { return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_; } /** *
   *Номинал облигации.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getNominalOrBuilder() { return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_; } 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 (date_ != null) { output.writeMessage(1, getDate()); } if (value_ != null) { output.writeMessage(2, getValue()); } if (valuePercent_ != null) { output.writeMessage(3, getValuePercent()); } if (nominal_ != null) { output.writeMessage(4, getNominal()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (date_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDate()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } if (valuePercent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValuePercent()); } if (nominal_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getNominal()); } 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.AccruedInterest)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.AccruedInterest other = (ru.tinkoff.piapi.contract.v1.AccruedInterest) obj; if (hasDate() != other.hasDate()) return false; if (hasDate()) { if (!getDate() .equals(other.getDate())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (hasValuePercent() != other.hasValuePercent()) return false; if (hasValuePercent()) { if (!getValuePercent() .equals(other.getValuePercent())) return false; } if (hasNominal() != other.hasNominal()) return false; if (hasNominal()) { if (!getNominal() .equals(other.getNominal())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasValuePercent()) { hash = (37 * hash) + VALUE_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getValuePercent().hashCode(); } if (hasNominal()) { hash = (37 * hash) + NOMINAL_FIELD_NUMBER; hash = (53 * hash) + getNominal().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.AccruedInterest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest 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.AccruedInterest 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.AccruedInterest 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.AccruedInterest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AccruedInterest) ru.tinkoff.piapi.contract.v1.AccruedInterestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AccruedInterest_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_AccruedInterest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.AccruedInterest.class, ru.tinkoff.piapi.contract.v1.AccruedInterest.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.AccruedInterest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } valuePercent_ = null; if (valuePercentBuilder_ != null) { valuePercentBuilder_.dispose(); valuePercentBuilder_ = null; } nominal_ = null; if (nominalBuilder_ != null) { nominalBuilder_.dispose(); nominalBuilder_ = 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_AccruedInterest_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AccruedInterest getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.AccruedInterest.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AccruedInterest build() { ru.tinkoff.piapi.contract.v1.AccruedInterest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AccruedInterest buildPartial() { ru.tinkoff.piapi.contract.v1.AccruedInterest result = new ru.tinkoff.piapi.contract.v1.AccruedInterest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.AccruedInterest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.valuePercent_ = valuePercentBuilder_ == null ? valuePercent_ : valuePercentBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.nominal_ = nominalBuilder_ == null ? nominal_ : nominalBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.AccruedInterest) { return mergeFrom((ru.tinkoff.piapi.contract.v1.AccruedInterest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AccruedInterest other) { if (other == ru.tinkoff.piapi.contract.v1.AccruedInterest.getDefaultInstance()) return this; if (other.hasDate()) { mergeDate(other.getDate()); } if (other.hasValue()) { mergeValue(other.getValue()); } if (other.hasValuePercent()) { mergeValuePercent(other.getValuePercent()); } if (other.hasNominal()) { mergeNominal(other.getNominal()); } 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( getDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getValuePercentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getNominalFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 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 date_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateBuilder_; /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; * @return Whether the date field is set. */ public boolean hasDate() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; * @return The date. */ public com.google.protobuf.Timestamp getDate() { if (dateBuilder_ == null) { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } else { return dateBuilder_.getMessage(); } } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; */ public Builder setDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } date_ = value; } else { dateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; */ public Builder setDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateBuilder_ == null) { date_ = builderForValue.build(); } else { dateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; */ public Builder mergeDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && date_ != null && date_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDateBuilder().mergeFrom(value); } else { date_ = value; } } else { dateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; */ public Builder clearDate() { bitField0_ = (bitField0_ & ~0x00000001); date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } onChanged(); return this; } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; */ public com.google.protobuf.Timestamp.Builder getDateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDateFieldBuilder().getBuilder(); } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; */ public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { if (dateBuilder_ != null) { return dateBuilder_.getMessageOrBuilder(); } else { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } } /** *
     *Дата и время выплаты в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp date = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDateFieldBuilder() { if (dateBuilder_ == null) { dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDate(), getParentForChildren(), isClean()); date_ = null; } return dateBuilder_; } private ru.tinkoff.piapi.contract.v1.Quotation value_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> valueBuilder_; /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; * @return The value. */ public ru.tinkoff.piapi.contract.v1.Quotation getValue() { if (valueBuilder_ == null) { return value_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; */ public Builder setValue(ru.tinkoff.piapi.contract.v1.Quotation value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; */ public Builder setValue( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; */ public Builder mergeValue(ru.tinkoff.piapi.contract.v1.Quotation value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 2; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : value_; } } /** *
     *Величина выплаты.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value = 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> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private ru.tinkoff.piapi.contract.v1.Quotation valuePercent_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> valuePercentBuilder_; /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; * @return Whether the valuePercent field is set. */ public boolean hasValuePercent() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; * @return The valuePercent. */ public ru.tinkoff.piapi.contract.v1.Quotation getValuePercent() { if (valuePercentBuilder_ == null) { return valuePercent_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : valuePercent_; } else { return valuePercentBuilder_.getMessage(); } } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; */ public Builder setValuePercent(ru.tinkoff.piapi.contract.v1.Quotation value) { if (valuePercentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } valuePercent_ = value; } else { valuePercentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; */ public Builder setValuePercent( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (valuePercentBuilder_ == null) { valuePercent_ = builderForValue.build(); } else { valuePercentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; */ public Builder mergeValuePercent(ru.tinkoff.piapi.contract.v1.Quotation value) { if (valuePercentBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && valuePercent_ != null && valuePercent_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getValuePercentBuilder().mergeFrom(value); } else { valuePercent_ = value; } } else { valuePercentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; */ public Builder clearValuePercent() { bitField0_ = (bitField0_ & ~0x00000004); valuePercent_ = null; if (valuePercentBuilder_ != null) { valuePercentBuilder_.dispose(); valuePercentBuilder_ = null; } onChanged(); return this; } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getValuePercentBuilder() { bitField0_ |= 0x00000004; onChanged(); return getValuePercentFieldBuilder().getBuilder(); } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getValuePercentOrBuilder() { if (valuePercentBuilder_ != null) { return valuePercentBuilder_.getMessageOrBuilder(); } else { return valuePercent_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : valuePercent_; } } /** *
     *Величина выплаты в процентах от номинала.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 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> getValuePercentFieldBuilder() { if (valuePercentBuilder_ == null) { valuePercentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getValuePercent(), getParentForChildren(), isClean()); valuePercent_ = null; } return valuePercentBuilder_; } private ru.tinkoff.piapi.contract.v1.Quotation nominal_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> nominalBuilder_; /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; * @return Whether the nominal field is set. */ public boolean hasNominal() { return ((bitField0_ & 0x00000008) != 0); } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; * @return The nominal. */ public ru.tinkoff.piapi.contract.v1.Quotation getNominal() { if (nominalBuilder_ == null) { return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_; } else { return nominalBuilder_.getMessage(); } } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ public Builder setNominal(ru.tinkoff.piapi.contract.v1.Quotation value) { if (nominalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nominal_ = value; } else { nominalBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ public Builder setNominal( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (nominalBuilder_ == null) { nominal_ = builderForValue.build(); } else { nominalBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ public Builder mergeNominal(ru.tinkoff.piapi.contract.v1.Quotation value) { if (nominalBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && nominal_ != null && nominal_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getNominalBuilder().mergeFrom(value); } else { nominal_ = value; } } else { nominalBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ public Builder clearNominal() { bitField0_ = (bitField0_ & ~0x00000008); nominal_ = null; if (nominalBuilder_ != null) { nominalBuilder_.dispose(); nominalBuilder_ = null; } onChanged(); return this; } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getNominalBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNominalFieldBuilder().getBuilder(); } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getNominalOrBuilder() { if (nominalBuilder_ != null) { return nominalBuilder_.getMessageOrBuilder(); } else { return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_; } } /** *
     *Номинал облигации.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getNominalFieldBuilder() { if (nominalBuilder_ == null) { nominalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getNominal(), getParentForChildren(), isClean()); nominal_ = null; } return nominalBuilder_; } @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.AccruedInterest) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.AccruedInterest) private static final ru.tinkoff.piapi.contract.v1.AccruedInterest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.AccruedInterest(); } public static ru.tinkoff.piapi.contract.v1.AccruedInterest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccruedInterest 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.AccruedInterest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy