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

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

There is a newer version: 1.25
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: operations.proto

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Данные об операции.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.OperationItem} */ public final class OperationItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.OperationItem) OperationItemOrBuilder { private static final long serialVersionUID = 0L; // Use OperationItem.newBuilder() to construct. private OperationItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OperationItem() { cursor_ = ""; brokerAccountId_ = ""; id_ = ""; parentOperationId_ = ""; name_ = ""; type_ = 0; description_ = ""; state_ = 0; instrumentUid_ = ""; figi_ = ""; instrumentType_ = ""; instrumentKind_ = 0; positionUid_ = ""; cancelReason_ = ""; assetUid_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OperationItem(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_OperationItem_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_OperationItem_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.OperationItem.class, ru.tinkoff.piapi.contract.v1.OperationItem.Builder.class); } public static final int CURSOR_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cursor_ = ""; /** *
   *Курсор.
   * 
* * string cursor = 1; * @return The cursor. */ @java.lang.Override public java.lang.String getCursor() { java.lang.Object ref = cursor_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cursor_ = s; return s; } } /** *
   *Курсор.
   * 
* * string cursor = 1; * @return The bytes for cursor. */ @java.lang.Override public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BROKER_ACCOUNT_ID_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object brokerAccountId_ = ""; /** *
   *Номер счета клиента.
   * 
* * string broker_account_id = 6; * @return The brokerAccountId. */ @java.lang.Override public java.lang.String getBrokerAccountId() { java.lang.Object ref = brokerAccountId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); brokerAccountId_ = s; return s; } } /** *
   *Номер счета клиента.
   * 
* * string broker_account_id = 6; * @return The bytes for brokerAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getBrokerAccountIdBytes() { java.lang.Object ref = brokerAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); brokerAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 16; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** *
   *Идентификатор операции, может меняться с течением времени.
   * 
* * string id = 16; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
   *Идентификатор операции, может меняться с течением времени.
   * 
* * string id = 16; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARENT_OPERATION_ID_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object parentOperationId_ = ""; /** *
   *Идентификатор родительской операции, может измениться, если изменился id родительской операции.
   * 
* * string parent_operation_id = 17; * @return The parentOperationId. */ @java.lang.Override public java.lang.String getParentOperationId() { java.lang.Object ref = parentOperationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentOperationId_ = s; return s; } } /** *
   *Идентификатор родительской операции, может измениться, если изменился id родительской операции.
   * 
* * string parent_operation_id = 17; * @return The bytes for parentOperationId. */ @java.lang.Override public com.google.protobuf.ByteString getParentOperationIdBytes() { java.lang.Object ref = parentOperationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parentOperationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 18; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   *Название операции.
   * 
* * string name = 18; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   *Название операции.
   * 
* * string name = 18; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATE_FIELD_NUMBER = 21; private com.google.protobuf.Timestamp date_; /** *
   *Дата поручения.
   * 
* * .google.protobuf.Timestamp date = 21; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return date_ != null; } /** *
   *Дата поручения.
   * 
* * .google.protobuf.Timestamp date = 21; * @return The date. */ @java.lang.Override public com.google.protobuf.Timestamp getDate() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } /** *
   *Дата поручения.
   * 
* * .google.protobuf.Timestamp date = 21; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } public static final int TYPE_FIELD_NUMBER = 22; private int type_ = 0; /** *
   *Тип операции.
   * 
* * .tinkoff.public.invest.api.contract.v1.OperationType type = 22; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
   *Тип операции.
   * 
* * .tinkoff.public.invest.api.contract.v1.OperationType type = 22; * @return The type. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationType getType() { ru.tinkoff.piapi.contract.v1.OperationType result = ru.tinkoff.piapi.contract.v1.OperationType.forNumber(type_); return result == null ? ru.tinkoff.piapi.contract.v1.OperationType.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
   *Описание операции.
   * 
* * string description = 23; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
   *Описание операции.
   * 
* * string description = 23; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 24; private int state_ = 0; /** *
   *Статус поручения.
   * 
* * .tinkoff.public.invest.api.contract.v1.OperationState state = 24; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** *
   *Статус поручения.
   * 
* * .tinkoff.public.invest.api.contract.v1.OperationState state = 24; * @return The state. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationState getState() { ru.tinkoff.piapi.contract.v1.OperationState result = ru.tinkoff.piapi.contract.v1.OperationState.forNumber(state_); return result == null ? ru.tinkoff.piapi.contract.v1.OperationState.UNRECOGNIZED : result; } public static final int INSTRUMENT_UID_FIELD_NUMBER = 31; @SuppressWarnings("serial") private volatile java.lang.Object instrumentUid_ = ""; /** *
   *Уникальный идентификатор инструмента.
   * 
* * string instrument_uid = 31; * @return The instrumentUid. */ @java.lang.Override public java.lang.String getInstrumentUid() { java.lang.Object ref = instrumentUid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentUid_ = s; return s; } } /** *
   *Уникальный идентификатор инструмента.
   * 
* * string instrument_uid = 31; * @return The bytes for instrumentUid. */ @java.lang.Override public com.google.protobuf.ByteString getInstrumentUidBytes() { java.lang.Object ref = instrumentUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIGI_FIELD_NUMBER = 32; @SuppressWarnings("serial") private volatile java.lang.Object figi_ = ""; /** *
   *Figi.
   * 
* * string figi = 32; * @return The figi. */ @java.lang.Override public java.lang.String getFigi() { java.lang.Object ref = figi_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); figi_ = s; return s; } } /** *
   *Figi.
   * 
* * string figi = 32; * @return The bytes for figi. */ @java.lang.Override public com.google.protobuf.ByteString getFigiBytes() { java.lang.Object ref = figi_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); figi_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTRUMENT_TYPE_FIELD_NUMBER = 33; @SuppressWarnings("serial") private volatile java.lang.Object instrumentType_ = ""; /** *
   *Тип инструмента.
   * 
* * string instrument_type = 33; * @return The instrumentType. */ @java.lang.Override public java.lang.String getInstrumentType() { java.lang.Object ref = instrumentType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentType_ = s; return s; } } /** *
   *Тип инструмента.
   * 
* * string instrument_type = 33; * @return The bytes for instrumentType. */ @java.lang.Override public com.google.protobuf.ByteString getInstrumentTypeBytes() { java.lang.Object ref = instrumentType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTRUMENT_KIND_FIELD_NUMBER = 34; private int instrumentKind_ = 0; /** *
   *Тип инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 34; * @return The enum numeric value on the wire for instrumentKind. */ @java.lang.Override public int getInstrumentKindValue() { return instrumentKind_; } /** *
   *Тип инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 34; * @return The instrumentKind. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.InstrumentType getInstrumentKind() { ru.tinkoff.piapi.contract.v1.InstrumentType result = ru.tinkoff.piapi.contract.v1.InstrumentType.forNumber(instrumentKind_); return result == null ? ru.tinkoff.piapi.contract.v1.InstrumentType.UNRECOGNIZED : result; } public static final int POSITION_UID_FIELD_NUMBER = 35; @SuppressWarnings("serial") private volatile java.lang.Object positionUid_ = ""; /** *
   *position_uid-идентификатора инструмента.
   * 
* * string position_uid = 35; * @return The positionUid. */ @java.lang.Override public java.lang.String getPositionUid() { java.lang.Object ref = positionUid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); positionUid_ = s; return s; } } /** *
   *position_uid-идентификатора инструмента.
   * 
* * string position_uid = 35; * @return The bytes for positionUid. */ @java.lang.Override public com.google.protobuf.ByteString getPositionUidBytes() { java.lang.Object ref = positionUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); positionUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYMENT_FIELD_NUMBER = 41; private ru.tinkoff.piapi.contract.v1.MoneyValue payment_; /** *
   *Сумма операции.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; * @return Whether the payment field is set. */ @java.lang.Override public boolean hasPayment() { return payment_ != null; } /** *
   *Сумма операции.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; * @return The payment. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getPayment() { return payment_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : payment_; } /** *
   *Сумма операции.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getPaymentOrBuilder() { return payment_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : payment_; } public static final int PRICE_FIELD_NUMBER = 42; private ru.tinkoff.piapi.contract.v1.MoneyValue price_; /** *
   *Цена операции за 1 инструмент.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; * @return Whether the price field is set. */ @java.lang.Override public boolean hasPrice() { return price_ != null; } /** *
   *Цена операции за 1 инструмент.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; * @return The price. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getPrice() { return price_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : price_; } /** *
   *Цена операции за 1 инструмент.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getPriceOrBuilder() { return price_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : price_; } public static final int COMMISSION_FIELD_NUMBER = 43; private ru.tinkoff.piapi.contract.v1.MoneyValue commission_; /** *
   *Комиссия.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; * @return Whether the commission field is set. */ @java.lang.Override public boolean hasCommission() { return commission_ != null; } /** *
   *Комиссия.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; * @return The commission. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getCommission() { return commission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : commission_; } /** *
   *Комиссия.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getCommissionOrBuilder() { return commission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : commission_; } public static final int YIELD_FIELD_NUMBER = 44; private ru.tinkoff.piapi.contract.v1.MoneyValue yield_; /** *
   *Доходность.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; * @return Whether the yield field is set. */ @java.lang.Override public boolean hasYield() { return yield_ != null; } /** *
   *Доходность.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; * @return The yield. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getYield() { return yield_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : yield_; } /** *
   *Доходность.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getYieldOrBuilder() { return yield_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : yield_; } public static final int YIELD_RELATIVE_FIELD_NUMBER = 45; private ru.tinkoff.piapi.contract.v1.Quotation yieldRelative_; /** *
   *Относительная доходность.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; * @return Whether the yieldRelative field is set. */ @java.lang.Override public boolean hasYieldRelative() { return yieldRelative_ != null; } /** *
   *Относительная доходность.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; * @return The yieldRelative. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Quotation getYieldRelative() { return yieldRelative_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : yieldRelative_; } /** *
   *Относительная доходность.
   * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getYieldRelativeOrBuilder() { return yieldRelative_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : yieldRelative_; } public static final int ACCRUED_INT_FIELD_NUMBER = 46; private ru.tinkoff.piapi.contract.v1.MoneyValue accruedInt_; /** *
   *Накопленный купонный доход.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; * @return Whether the accruedInt field is set. */ @java.lang.Override public boolean hasAccruedInt() { return accruedInt_ != null; } /** *
   *Накопленный купонный доход.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; * @return The accruedInt. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getAccruedInt() { return accruedInt_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : accruedInt_; } /** *
   *Накопленный купонный доход.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAccruedIntOrBuilder() { return accruedInt_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : accruedInt_; } public static final int QUANTITY_FIELD_NUMBER = 51; private long quantity_ = 0L; /** *
   *Количество единиц инструмента.
   * 
* * int64 quantity = 51; * @return The quantity. */ @java.lang.Override public long getQuantity() { return quantity_; } public static final int QUANTITY_REST_FIELD_NUMBER = 52; private long quantityRest_ = 0L; /** *
   *Неисполненный остаток по сделке.
   * 
* * int64 quantity_rest = 52; * @return The quantityRest. */ @java.lang.Override public long getQuantityRest() { return quantityRest_; } public static final int QUANTITY_DONE_FIELD_NUMBER = 53; private long quantityDone_ = 0L; /** *
   *Исполненный остаток.
   * 
* * int64 quantity_done = 53; * @return The quantityDone. */ @java.lang.Override public long getQuantityDone() { return quantityDone_; } public static final int CANCEL_DATE_TIME_FIELD_NUMBER = 56; private com.google.protobuf.Timestamp cancelDateTime_; /** *
   *Дата и время снятия заявки.
   * 
* * .google.protobuf.Timestamp cancel_date_time = 56; * @return Whether the cancelDateTime field is set. */ @java.lang.Override public boolean hasCancelDateTime() { return cancelDateTime_ != null; } /** *
   *Дата и время снятия заявки.
   * 
* * .google.protobuf.Timestamp cancel_date_time = 56; * @return The cancelDateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCancelDateTime() { return cancelDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelDateTime_; } /** *
   *Дата и время снятия заявки.
   * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCancelDateTimeOrBuilder() { return cancelDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelDateTime_; } public static final int CANCEL_REASON_FIELD_NUMBER = 57; @SuppressWarnings("serial") private volatile java.lang.Object cancelReason_ = ""; /** *
   *Причина отмены операции.
   * 
* * string cancel_reason = 57; * @return The cancelReason. */ @java.lang.Override public java.lang.String getCancelReason() { java.lang.Object ref = cancelReason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cancelReason_ = s; return s; } } /** *
   *Причина отмены операции.
   * 
* * string cancel_reason = 57; * @return The bytes for cancelReason. */ @java.lang.Override public com.google.protobuf.ByteString getCancelReasonBytes() { java.lang.Object ref = cancelReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cancelReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRADES_INFO_FIELD_NUMBER = 61; private ru.tinkoff.piapi.contract.v1.OperationItemTrades tradesInfo_; /** *
   *Массив сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; * @return Whether the tradesInfo field is set. */ @java.lang.Override public boolean hasTradesInfo() { return tradesInfo_ != null; } /** *
   *Массив сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; * @return The tradesInfo. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItemTrades getTradesInfo() { return tradesInfo_ == null ? ru.tinkoff.piapi.contract.v1.OperationItemTrades.getDefaultInstance() : tradesInfo_; } /** *
   *Массив сделок.
   * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItemTradesOrBuilder getTradesInfoOrBuilder() { return tradesInfo_ == null ? ru.tinkoff.piapi.contract.v1.OperationItemTrades.getDefaultInstance() : tradesInfo_; } public static final int ASSET_UID_FIELD_NUMBER = 64; @SuppressWarnings("serial") private volatile java.lang.Object assetUid_ = ""; /** *
   *Идентификатор актива
   * 
* * string asset_uid = 64; * @return The assetUid. */ @java.lang.Override public java.lang.String getAssetUid() { java.lang.Object ref = assetUid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetUid_ = s; return s; } } /** *
   *Идентификатор актива
   * 
* * string asset_uid = 64; * @return The bytes for assetUid. */ @java.lang.Override public com.google.protobuf.ByteString getAssetUidBytes() { java.lang.Object ref = assetUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cursor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cursor_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(brokerAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, brokerAccountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentOperationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, parentOperationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, name_); } if (date_ != null) { output.writeMessage(21, getDate()); } if (type_ != ru.tinkoff.piapi.contract.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(22, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, description_); } if (state_ != ru.tinkoff.piapi.contract.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(24, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 31, instrumentUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 32, figi_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 33, instrumentType_); } if (instrumentKind_ != ru.tinkoff.piapi.contract.v1.InstrumentType.INSTRUMENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(34, instrumentKind_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(positionUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 35, positionUid_); } if (payment_ != null) { output.writeMessage(41, getPayment()); } if (price_ != null) { output.writeMessage(42, getPrice()); } if (commission_ != null) { output.writeMessage(43, getCommission()); } if (yield_ != null) { output.writeMessage(44, getYield()); } if (yieldRelative_ != null) { output.writeMessage(45, getYieldRelative()); } if (accruedInt_ != null) { output.writeMessage(46, getAccruedInt()); } if (quantity_ != 0L) { output.writeInt64(51, quantity_); } if (quantityRest_ != 0L) { output.writeInt64(52, quantityRest_); } if (quantityDone_ != 0L) { output.writeInt64(53, quantityDone_); } if (cancelDateTime_ != null) { output.writeMessage(56, getCancelDateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 57, cancelReason_); } if (tradesInfo_ != null) { output.writeMessage(61, getTradesInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 64, assetUid_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cursor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cursor_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(brokerAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, brokerAccountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentOperationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, parentOperationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, name_); } if (date_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getDate()); } if (type_ != ru.tinkoff.piapi.contract.v1.OperationType.OPERATION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(22, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, description_); } if (state_ != ru.tinkoff.piapi.contract.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(24, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, instrumentUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, figi_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, instrumentType_); } if (instrumentKind_ != ru.tinkoff.piapi.contract.v1.InstrumentType.INSTRUMENT_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(34, instrumentKind_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(positionUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, positionUid_); } if (payment_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, getPayment()); } if (price_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(42, getPrice()); } if (commission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(43, getCommission()); } if (yield_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, getYield()); } if (yieldRelative_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(45, getYieldRelative()); } if (accruedInt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(46, getAccruedInt()); } if (quantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(51, quantity_); } if (quantityRest_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(52, quantityRest_); } if (quantityDone_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(53, quantityDone_); } if (cancelDateTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(56, getCancelDateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(57, cancelReason_); } if (tradesInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(61, getTradesInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(64, assetUid_); } 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.OperationItem)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.OperationItem other = (ru.tinkoff.piapi.contract.v1.OperationItem) obj; if (!getCursor() .equals(other.getCursor())) return false; if (!getBrokerAccountId() .equals(other.getBrokerAccountId())) return false; if (!getId() .equals(other.getId())) return false; if (!getParentOperationId() .equals(other.getParentOperationId())) return false; if (!getName() .equals(other.getName())) return false; if (hasDate() != other.hasDate()) return false; if (hasDate()) { if (!getDate() .equals(other.getDate())) return false; } if (type_ != other.type_) return false; if (!getDescription() .equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (!getInstrumentUid() .equals(other.getInstrumentUid())) return false; if (!getFigi() .equals(other.getFigi())) return false; if (!getInstrumentType() .equals(other.getInstrumentType())) return false; if (instrumentKind_ != other.instrumentKind_) return false; if (!getPositionUid() .equals(other.getPositionUid())) return false; if (hasPayment() != other.hasPayment()) return false; if (hasPayment()) { if (!getPayment() .equals(other.getPayment())) return false; } if (hasPrice() != other.hasPrice()) return false; if (hasPrice()) { if (!getPrice() .equals(other.getPrice())) return false; } if (hasCommission() != other.hasCommission()) return false; if (hasCommission()) { if (!getCommission() .equals(other.getCommission())) return false; } if (hasYield() != other.hasYield()) return false; if (hasYield()) { if (!getYield() .equals(other.getYield())) return false; } if (hasYieldRelative() != other.hasYieldRelative()) return false; if (hasYieldRelative()) { if (!getYieldRelative() .equals(other.getYieldRelative())) return false; } if (hasAccruedInt() != other.hasAccruedInt()) return false; if (hasAccruedInt()) { if (!getAccruedInt() .equals(other.getAccruedInt())) return false; } if (getQuantity() != other.getQuantity()) return false; if (getQuantityRest() != other.getQuantityRest()) return false; if (getQuantityDone() != other.getQuantityDone()) return false; if (hasCancelDateTime() != other.hasCancelDateTime()) return false; if (hasCancelDateTime()) { if (!getCancelDateTime() .equals(other.getCancelDateTime())) return false; } if (!getCancelReason() .equals(other.getCancelReason())) return false; if (hasTradesInfo() != other.hasTradesInfo()) return false; if (hasTradesInfo()) { if (!getTradesInfo() .equals(other.getTradesInfo())) return false; } if (!getAssetUid() .equals(other.getAssetUid())) 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) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); hash = (37 * hash) + BROKER_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getBrokerAccountId().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + PARENT_OPERATION_ID_FIELD_NUMBER; hash = (53 * hash) + getParentOperationId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + INSTRUMENT_UID_FIELD_NUMBER; hash = (53 * hash) + getInstrumentUid().hashCode(); hash = (37 * hash) + FIGI_FIELD_NUMBER; hash = (53 * hash) + getFigi().hashCode(); hash = (37 * hash) + INSTRUMENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getInstrumentType().hashCode(); hash = (37 * hash) + INSTRUMENT_KIND_FIELD_NUMBER; hash = (53 * hash) + instrumentKind_; hash = (37 * hash) + POSITION_UID_FIELD_NUMBER; hash = (53 * hash) + getPositionUid().hashCode(); if (hasPayment()) { hash = (37 * hash) + PAYMENT_FIELD_NUMBER; hash = (53 * hash) + getPayment().hashCode(); } if (hasPrice()) { hash = (37 * hash) + PRICE_FIELD_NUMBER; hash = (53 * hash) + getPrice().hashCode(); } if (hasCommission()) { hash = (37 * hash) + COMMISSION_FIELD_NUMBER; hash = (53 * hash) + getCommission().hashCode(); } if (hasYield()) { hash = (37 * hash) + YIELD_FIELD_NUMBER; hash = (53 * hash) + getYield().hashCode(); } if (hasYieldRelative()) { hash = (37 * hash) + YIELD_RELATIVE_FIELD_NUMBER; hash = (53 * hash) + getYieldRelative().hashCode(); } if (hasAccruedInt()) { hash = (37 * hash) + ACCRUED_INT_FIELD_NUMBER; hash = (53 * hash) + getAccruedInt().hashCode(); } hash = (37 * hash) + QUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQuantity()); hash = (37 * hash) + QUANTITY_REST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQuantityRest()); hash = (37 * hash) + QUANTITY_DONE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQuantityDone()); if (hasCancelDateTime()) { hash = (37 * hash) + CANCEL_DATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCancelDateTime().hashCode(); } hash = (37 * hash) + CANCEL_REASON_FIELD_NUMBER; hash = (53 * hash) + getCancelReason().hashCode(); if (hasTradesInfo()) { hash = (37 * hash) + TRADES_INFO_FIELD_NUMBER; hash = (53 * hash) + getTradesInfo().hashCode(); } hash = (37 * hash) + ASSET_UID_FIELD_NUMBER; hash = (53 * hash) + getAssetUid().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.OperationItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OperationItem 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.OperationItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OperationItem 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.OperationItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OperationItem 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.OperationItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.OperationItem 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.OperationItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.OperationItem 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.OperationItem 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.OperationItem 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.OperationItem 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.OperationItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.OperationItem) ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_OperationItem_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_OperationItem_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.OperationItem.class, ru.tinkoff.piapi.contract.v1.OperationItem.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.OperationItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cursor_ = ""; brokerAccountId_ = ""; id_ = ""; parentOperationId_ = ""; name_ = ""; date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } type_ = 0; description_ = ""; state_ = 0; instrumentUid_ = ""; figi_ = ""; instrumentType_ = ""; instrumentKind_ = 0; positionUid_ = ""; payment_ = null; if (paymentBuilder_ != null) { paymentBuilder_.dispose(); paymentBuilder_ = null; } price_ = null; if (priceBuilder_ != null) { priceBuilder_.dispose(); priceBuilder_ = null; } commission_ = null; if (commissionBuilder_ != null) { commissionBuilder_.dispose(); commissionBuilder_ = null; } yield_ = null; if (yieldBuilder_ != null) { yieldBuilder_.dispose(); yieldBuilder_ = null; } yieldRelative_ = null; if (yieldRelativeBuilder_ != null) { yieldRelativeBuilder_.dispose(); yieldRelativeBuilder_ = null; } accruedInt_ = null; if (accruedIntBuilder_ != null) { accruedIntBuilder_.dispose(); accruedIntBuilder_ = null; } quantity_ = 0L; quantityRest_ = 0L; quantityDone_ = 0L; cancelDateTime_ = null; if (cancelDateTimeBuilder_ != null) { cancelDateTimeBuilder_.dispose(); cancelDateTimeBuilder_ = null; } cancelReason_ = ""; tradesInfo_ = null; if (tradesInfoBuilder_ != null) { tradesInfoBuilder_.dispose(); tradesInfoBuilder_ = null; } assetUid_ = ""; 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_OperationItem_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItem getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.OperationItem.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItem build() { ru.tinkoff.piapi.contract.v1.OperationItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItem buildPartial() { ru.tinkoff.piapi.contract.v1.OperationItem result = new ru.tinkoff.piapi.contract.v1.OperationItem(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.OperationItem result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cursor_ = cursor_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.brokerAccountId_ = brokerAccountId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.parentOperationId_ = parentOperationId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.instrumentUid_ = instrumentUid_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.figi_ = figi_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.instrumentType_ = instrumentType_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.instrumentKind_ = instrumentKind_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.positionUid_ = positionUid_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.payment_ = paymentBuilder_ == null ? payment_ : paymentBuilder_.build(); } if (((from_bitField0_ & 0x00008000) != 0)) { result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); } if (((from_bitField0_ & 0x00010000) != 0)) { result.commission_ = commissionBuilder_ == null ? commission_ : commissionBuilder_.build(); } if (((from_bitField0_ & 0x00020000) != 0)) { result.yield_ = yieldBuilder_ == null ? yield_ : yieldBuilder_.build(); } if (((from_bitField0_ & 0x00040000) != 0)) { result.yieldRelative_ = yieldRelativeBuilder_ == null ? yieldRelative_ : yieldRelativeBuilder_.build(); } if (((from_bitField0_ & 0x00080000) != 0)) { result.accruedInt_ = accruedIntBuilder_ == null ? accruedInt_ : accruedIntBuilder_.build(); } if (((from_bitField0_ & 0x00100000) != 0)) { result.quantity_ = quantity_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.quantityRest_ = quantityRest_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.quantityDone_ = quantityDone_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.cancelDateTime_ = cancelDateTimeBuilder_ == null ? cancelDateTime_ : cancelDateTimeBuilder_.build(); } if (((from_bitField0_ & 0x01000000) != 0)) { result.cancelReason_ = cancelReason_; } if (((from_bitField0_ & 0x02000000) != 0)) { result.tradesInfo_ = tradesInfoBuilder_ == null ? tradesInfo_ : tradesInfoBuilder_.build(); } if (((from_bitField0_ & 0x04000000) != 0)) { result.assetUid_ = assetUid_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.OperationItem) { return mergeFrom((ru.tinkoff.piapi.contract.v1.OperationItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.OperationItem other) { if (other == ru.tinkoff.piapi.contract.v1.OperationItem.getDefaultInstance()) return this; if (!other.getCursor().isEmpty()) { cursor_ = other.cursor_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getBrokerAccountId().isEmpty()) { brokerAccountId_ = other.brokerAccountId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getParentOperationId().isEmpty()) { parentOperationId_ = other.parentOperationId_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasDate()) { mergeDate(other.getDate()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000080; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getInstrumentUid().isEmpty()) { instrumentUid_ = other.instrumentUid_; bitField0_ |= 0x00000200; onChanged(); } if (!other.getFigi().isEmpty()) { figi_ = other.figi_; bitField0_ |= 0x00000400; onChanged(); } if (!other.getInstrumentType().isEmpty()) { instrumentType_ = other.instrumentType_; bitField0_ |= 0x00000800; onChanged(); } if (other.instrumentKind_ != 0) { setInstrumentKindValue(other.getInstrumentKindValue()); } if (!other.getPositionUid().isEmpty()) { positionUid_ = other.positionUid_; bitField0_ |= 0x00002000; onChanged(); } if (other.hasPayment()) { mergePayment(other.getPayment()); } if (other.hasPrice()) { mergePrice(other.getPrice()); } if (other.hasCommission()) { mergeCommission(other.getCommission()); } if (other.hasYield()) { mergeYield(other.getYield()); } if (other.hasYieldRelative()) { mergeYieldRelative(other.getYieldRelative()); } if (other.hasAccruedInt()) { mergeAccruedInt(other.getAccruedInt()); } if (other.getQuantity() != 0L) { setQuantity(other.getQuantity()); } if (other.getQuantityRest() != 0L) { setQuantityRest(other.getQuantityRest()); } if (other.getQuantityDone() != 0L) { setQuantityDone(other.getQuantityDone()); } if (other.hasCancelDateTime()) { mergeCancelDateTime(other.getCancelDateTime()); } if (!other.getCancelReason().isEmpty()) { cancelReason_ = other.cancelReason_; bitField0_ |= 0x01000000; onChanged(); } if (other.hasTradesInfo()) { mergeTradesInfo(other.getTradesInfo()); } if (!other.getAssetUid().isEmpty()) { assetUid_ = other.assetUid_; bitField0_ |= 0x04000000; 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: { cursor_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 50: { brokerAccountId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 50 case 130: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 130 case 138: { parentOperationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 138 case 146: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 146 case 170: { input.readMessage( getDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 170 case 176: { type_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 176 case 186: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 186 case 192: { state_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 192 case 250: { instrumentUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 250 case 258: { figi_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 258 case 266: { instrumentType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 266 case 272: { instrumentKind_ = input.readEnum(); bitField0_ |= 0x00001000; break; } // case 272 case 282: { positionUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 282 case 330: { input.readMessage( getPaymentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 330 case 338: { input.readMessage( getPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 338 case 346: { input.readMessage( getCommissionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; } // case 346 case 354: { input.readMessage( getYieldFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 354 case 362: { input.readMessage( getYieldRelativeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00040000; break; } // case 362 case 370: { input.readMessage( getAccruedIntFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00080000; break; } // case 370 case 408: { quantity_ = input.readInt64(); bitField0_ |= 0x00100000; break; } // case 408 case 416: { quantityRest_ = input.readInt64(); bitField0_ |= 0x00200000; break; } // case 416 case 424: { quantityDone_ = input.readInt64(); bitField0_ |= 0x00400000; break; } // case 424 case 450: { input.readMessage( getCancelDateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00800000; break; } // case 450 case 458: { cancelReason_ = input.readStringRequireUtf8(); bitField0_ |= 0x01000000; break; } // case 458 case 490: { input.readMessage( getTradesInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x02000000; break; } // case 490 case 514: { assetUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x04000000; break; } // case 514 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object cursor_ = ""; /** *
     *Курсор.
     * 
* * string cursor = 1; * @return The cursor. */ public java.lang.String getCursor() { java.lang.Object ref = cursor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cursor_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Курсор.
     * 
* * string cursor = 1; * @return The bytes for cursor. */ public com.google.protobuf.ByteString getCursorBytes() { java.lang.Object ref = cursor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cursor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Курсор.
     * 
* * string cursor = 1; * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cursor_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Курсор.
     * 
* * string cursor = 1; * @return This builder for chaining. */ public Builder clearCursor() { cursor_ = getDefaultInstance().getCursor(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *Курсор.
     * 
* * string cursor = 1; * @param value The bytes for cursor to set. * @return This builder for chaining. */ public Builder setCursorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cursor_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object brokerAccountId_ = ""; /** *
     *Номер счета клиента.
     * 
* * string broker_account_id = 6; * @return The brokerAccountId. */ public java.lang.String getBrokerAccountId() { java.lang.Object ref = brokerAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); brokerAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Номер счета клиента.
     * 
* * string broker_account_id = 6; * @return The bytes for brokerAccountId. */ public com.google.protobuf.ByteString getBrokerAccountIdBytes() { java.lang.Object ref = brokerAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); brokerAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Номер счета клиента.
     * 
* * string broker_account_id = 6; * @param value The brokerAccountId to set. * @return This builder for chaining. */ public Builder setBrokerAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } brokerAccountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Номер счета клиента.
     * 
* * string broker_account_id = 6; * @return This builder for chaining. */ public Builder clearBrokerAccountId() { brokerAccountId_ = getDefaultInstance().getBrokerAccountId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     *Номер счета клиента.
     * 
* * string broker_account_id = 6; * @param value The bytes for brokerAccountId to set. * @return This builder for chaining. */ public Builder setBrokerAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); brokerAccountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
     *Идентификатор операции, может меняться с течением времени.
     * 
* * string id = 16; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор операции, может меняться с течением времени.
     * 
* * string id = 16; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор операции, может меняться с течением времени.
     * 
* * string id = 16; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Идентификатор операции, может меняться с течением времени.
     * 
* * string id = 16; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     *Идентификатор операции, может меняться с течением времени.
     * 
* * string id = 16; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object parentOperationId_ = ""; /** *
     *Идентификатор родительской операции, может измениться, если изменился id родительской операции.
     * 
* * string parent_operation_id = 17; * @return The parentOperationId. */ public java.lang.String getParentOperationId() { java.lang.Object ref = parentOperationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentOperationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор родительской операции, может измениться, если изменился id родительской операции.
     * 
* * string parent_operation_id = 17; * @return The bytes for parentOperationId. */ public com.google.protobuf.ByteString getParentOperationIdBytes() { java.lang.Object ref = parentOperationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parentOperationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор родительской операции, может измениться, если изменился id родительской операции.
     * 
* * string parent_operation_id = 17; * @param value The parentOperationId to set. * @return This builder for chaining. */ public Builder setParentOperationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } parentOperationId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Идентификатор родительской операции, может измениться, если изменился id родительской операции.
     * 
* * string parent_operation_id = 17; * @return This builder for chaining. */ public Builder clearParentOperationId() { parentOperationId_ = getDefaultInstance().getParentOperationId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *Идентификатор родительской операции, может измениться, если изменился id родительской операции.
     * 
* * string parent_operation_id = 17; * @param value The bytes for parentOperationId to set. * @return This builder for chaining. */ public Builder setParentOperationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentOperationId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     *Название операции.
     * 
* * string name = 18; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Название операции.
     * 
* * string name = 18; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Название операции.
     * 
* * string name = 18; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Название операции.
     * 
* * string name = 18; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     *Название операции.
     * 
* * string name = 18; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } 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_; /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; * @return Whether the date field is set. */ public boolean hasDate() { return ((bitField0_ & 0x00000020) != 0); } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; * @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(); } } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; */ public Builder setDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } date_ = value; } else { dateBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; */ public Builder setDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateBuilder_ == null) { date_ = builderForValue.build(); } else { dateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; */ public Builder mergeDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && date_ != null && date_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDateBuilder().mergeFrom(value); } else { date_ = value; } } else { dateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; */ public Builder clearDate() { bitField0_ = (bitField0_ & ~0x00000020); date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } onChanged(); return this; } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; */ public com.google.protobuf.Timestamp.Builder getDateBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDateFieldBuilder().getBuilder(); } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; */ public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { if (dateBuilder_ != null) { return dateBuilder_.getMessageOrBuilder(); } else { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } } /** *
     *Дата поручения.
     * 
* * .google.protobuf.Timestamp date = 21; */ 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 int type_ = 0; /** *
     *Тип операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationType type = 22; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     *Тип операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationType type = 22; * @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_ |= 0x00000040; onChanged(); return this; } /** *
     *Тип операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationType type = 22; * @return The type. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationType getType() { ru.tinkoff.piapi.contract.v1.OperationType result = ru.tinkoff.piapi.contract.v1.OperationType.forNumber(type_); return result == null ? ru.tinkoff.piapi.contract.v1.OperationType.UNRECOGNIZED : result; } /** *
     *Тип операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationType type = 22; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(ru.tinkoff.piapi.contract.v1.OperationType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; type_ = value.getNumber(); onChanged(); return this; } /** *
     *Тип операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationType type = 22; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000040); type_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     *Описание операции.
     * 
* * string description = 23; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Описание операции.
     * 
* * string description = 23; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Описание операции.
     * 
* * string description = 23; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Описание операции.
     * 
* * string description = 23; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     *Описание операции.
     * 
* * string description = 23; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private int state_ = 0; /** *
     *Статус поручения.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationState state = 24; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** *
     *Статус поручения.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationState state = 24; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Статус поручения.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationState state = 24; * @return The state. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationState getState() { ru.tinkoff.piapi.contract.v1.OperationState result = ru.tinkoff.piapi.contract.v1.OperationState.forNumber(state_); return result == null ? ru.tinkoff.piapi.contract.v1.OperationState.UNRECOGNIZED : result; } /** *
     *Статус поручения.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationState state = 24; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(ru.tinkoff.piapi.contract.v1.OperationState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; state_ = value.getNumber(); onChanged(); return this; } /** *
     *Статус поручения.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationState state = 24; * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000100); state_ = 0; onChanged(); return this; } private java.lang.Object instrumentUid_ = ""; /** *
     *Уникальный идентификатор инструмента.
     * 
* * string instrument_uid = 31; * @return The instrumentUid. */ public java.lang.String getInstrumentUid() { java.lang.Object ref = instrumentUid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentUid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Уникальный идентификатор инструмента.
     * 
* * string instrument_uid = 31; * @return The bytes for instrumentUid. */ public com.google.protobuf.ByteString getInstrumentUidBytes() { java.lang.Object ref = instrumentUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Уникальный идентификатор инструмента.
     * 
* * string instrument_uid = 31; * @param value The instrumentUid to set. * @return This builder for chaining. */ public Builder setInstrumentUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instrumentUid_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Уникальный идентификатор инструмента.
     * 
* * string instrument_uid = 31; * @return This builder for chaining. */ public Builder clearInstrumentUid() { instrumentUid_ = getDefaultInstance().getInstrumentUid(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** *
     *Уникальный идентификатор инструмента.
     * 
* * string instrument_uid = 31; * @param value The bytes for instrumentUid to set. * @return This builder for chaining. */ public Builder setInstrumentUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instrumentUid_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object figi_ = ""; /** *
     *Figi.
     * 
* * string figi = 32; * @return The figi. */ public java.lang.String getFigi() { java.lang.Object ref = figi_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); figi_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Figi.
     * 
* * string figi = 32; * @return The bytes for figi. */ public com.google.protobuf.ByteString getFigiBytes() { java.lang.Object ref = figi_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); figi_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Figi.
     * 
* * string figi = 32; * @param value The figi to set. * @return This builder for chaining. */ public Builder setFigi( java.lang.String value) { if (value == null) { throw new NullPointerException(); } figi_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Figi.
     * 
* * string figi = 32; * @return This builder for chaining. */ public Builder clearFigi() { figi_ = getDefaultInstance().getFigi(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     *Figi.
     * 
* * string figi = 32; * @param value The bytes for figi to set. * @return This builder for chaining. */ public Builder setFigiBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); figi_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object instrumentType_ = ""; /** *
     *Тип инструмента.
     * 
* * string instrument_type = 33; * @return The instrumentType. */ public java.lang.String getInstrumentType() { java.lang.Object ref = instrumentType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instrumentType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 33; * @return The bytes for instrumentType. */ public com.google.protobuf.ByteString getInstrumentTypeBytes() { java.lang.Object ref = instrumentType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instrumentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 33; * @param value The instrumentType to set. * @return This builder for chaining. */ public Builder setInstrumentType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instrumentType_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 33; * @return This builder for chaining. */ public Builder clearInstrumentType() { instrumentType_ = getDefaultInstance().getInstrumentType(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     *Тип инструмента.
     * 
* * string instrument_type = 33; * @param value The bytes for instrumentType to set. * @return This builder for chaining. */ public Builder setInstrumentTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instrumentType_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private int instrumentKind_ = 0; /** *
     *Тип инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 34; * @return The enum numeric value on the wire for instrumentKind. */ @java.lang.Override public int getInstrumentKindValue() { return instrumentKind_; } /** *
     *Тип инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 34; * @param value The enum numeric value on the wire for instrumentKind to set. * @return This builder for chaining. */ public Builder setInstrumentKindValue(int value) { instrumentKind_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     *Тип инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 34; * @return The instrumentKind. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.InstrumentType getInstrumentKind() { ru.tinkoff.piapi.contract.v1.InstrumentType result = ru.tinkoff.piapi.contract.v1.InstrumentType.forNumber(instrumentKind_); return result == null ? ru.tinkoff.piapi.contract.v1.InstrumentType.UNRECOGNIZED : result; } /** *
     *Тип инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 34; * @param value The instrumentKind to set. * @return This builder for chaining. */ public Builder setInstrumentKind(ru.tinkoff.piapi.contract.v1.InstrumentType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; instrumentKind_ = value.getNumber(); onChanged(); return this; } /** *
     *Тип инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.InstrumentType instrument_kind = 34; * @return This builder for chaining. */ public Builder clearInstrumentKind() { bitField0_ = (bitField0_ & ~0x00001000); instrumentKind_ = 0; onChanged(); return this; } private java.lang.Object positionUid_ = ""; /** *
     *position_uid-идентификатора инструмента.
     * 
* * string position_uid = 35; * @return The positionUid. */ public java.lang.String getPositionUid() { java.lang.Object ref = positionUid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); positionUid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *position_uid-идентификатора инструмента.
     * 
* * string position_uid = 35; * @return The bytes for positionUid. */ public com.google.protobuf.ByteString getPositionUidBytes() { java.lang.Object ref = positionUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); positionUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *position_uid-идентификатора инструмента.
     * 
* * string position_uid = 35; * @param value The positionUid to set. * @return This builder for chaining. */ public Builder setPositionUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } positionUid_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     *position_uid-идентификатора инструмента.
     * 
* * string position_uid = 35; * @return This builder for chaining. */ public Builder clearPositionUid() { positionUid_ = getDefaultInstance().getPositionUid(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** *
     *position_uid-идентификатора инструмента.
     * 
* * string position_uid = 35; * @param value The bytes for positionUid to set. * @return This builder for chaining. */ public Builder setPositionUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); positionUid_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.MoneyValue payment_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> paymentBuilder_; /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; * @return Whether the payment field is set. */ public boolean hasPayment() { return ((bitField0_ & 0x00004000) != 0); } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; * @return The payment. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getPayment() { if (paymentBuilder_ == null) { return payment_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : payment_; } else { return paymentBuilder_.getMessage(); } } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ public Builder setPayment(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (paymentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payment_ = value; } else { paymentBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ public Builder setPayment( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (paymentBuilder_ == null) { payment_ = builderForValue.build(); } else { paymentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ public Builder mergePayment(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (paymentBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && payment_ != null && payment_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getPaymentBuilder().mergeFrom(value); } else { payment_ = value; } } else { paymentBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ public Builder clearPayment() { bitField0_ = (bitField0_ & ~0x00004000); payment_ = null; if (paymentBuilder_ != null) { paymentBuilder_.dispose(); paymentBuilder_ = null; } onChanged(); return this; } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getPaymentBuilder() { bitField0_ |= 0x00004000; onChanged(); return getPaymentFieldBuilder().getBuilder(); } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getPaymentOrBuilder() { if (paymentBuilder_ != null) { return paymentBuilder_.getMessageOrBuilder(); } else { return payment_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : payment_; } } /** *
     *Сумма операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue payment = 41; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getPaymentFieldBuilder() { if (paymentBuilder_ == null) { paymentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getPayment(), getParentForChildren(), isClean()); payment_ = null; } return paymentBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue price_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> priceBuilder_; /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; * @return Whether the price field is set. */ public boolean hasPrice() { return ((bitField0_ & 0x00008000) != 0); } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; * @return The price. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getPrice() { if (priceBuilder_ == null) { return price_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : price_; } else { return priceBuilder_.getMessage(); } } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ public Builder setPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (priceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } price_ = value; } else { priceBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ public Builder setPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (priceBuilder_ == null) { price_ = builderForValue.build(); } else { priceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ public Builder mergePrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (priceBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && price_ != null && price_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getPriceBuilder().mergeFrom(value); } else { price_ = value; } } else { priceBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ public Builder clearPrice() { bitField0_ = (bitField0_ & ~0x00008000); price_ = null; if (priceBuilder_ != null) { priceBuilder_.dispose(); priceBuilder_ = null; } onChanged(); return this; } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getPriceBuilder() { bitField0_ |= 0x00008000; onChanged(); return getPriceFieldBuilder().getBuilder(); } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getPriceOrBuilder() { if (priceBuilder_ != null) { return priceBuilder_.getMessageOrBuilder(); } else { return price_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : price_; } } /** *
     *Цена операции за 1 инструмент.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 42; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getPriceFieldBuilder() { if (priceBuilder_ == null) { priceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getPrice(), getParentForChildren(), isClean()); price_ = null; } return priceBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue commission_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> commissionBuilder_; /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; * @return Whether the commission field is set. */ public boolean hasCommission() { return ((bitField0_ & 0x00010000) != 0); } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; * @return The commission. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getCommission() { if (commissionBuilder_ == null) { return commission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : commission_; } else { return commissionBuilder_.getMessage(); } } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ public Builder setCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (commissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commission_ = value; } else { commissionBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ public Builder setCommission( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (commissionBuilder_ == null) { commission_ = builderForValue.build(); } else { commissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ public Builder mergeCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (commissionBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && commission_ != null && commission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getCommissionBuilder().mergeFrom(value); } else { commission_ = value; } } else { commissionBuilder_.mergeFrom(value); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ public Builder clearCommission() { bitField0_ = (bitField0_ & ~0x00010000); commission_ = null; if (commissionBuilder_ != null) { commissionBuilder_.dispose(); commissionBuilder_ = null; } onChanged(); return this; } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getCommissionBuilder() { bitField0_ |= 0x00010000; onChanged(); return getCommissionFieldBuilder().getBuilder(); } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getCommissionOrBuilder() { if (commissionBuilder_ != null) { return commissionBuilder_.getMessageOrBuilder(); } else { return commission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : commission_; } } /** *
     *Комиссия.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue commission = 43; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getCommissionFieldBuilder() { if (commissionBuilder_ == null) { commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getCommission(), getParentForChildren(), isClean()); commission_ = null; } return commissionBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue yield_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> yieldBuilder_; /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; * @return Whether the yield field is set. */ public boolean hasYield() { return ((bitField0_ & 0x00020000) != 0); } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; * @return The yield. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getYield() { if (yieldBuilder_ == null) { return yield_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : yield_; } else { return yieldBuilder_.getMessage(); } } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ public Builder setYield(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (yieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } yield_ = value; } else { yieldBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ public Builder setYield( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (yieldBuilder_ == null) { yield_ = builderForValue.build(); } else { yieldBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ public Builder mergeYield(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (yieldBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && yield_ != null && yield_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getYieldBuilder().mergeFrom(value); } else { yield_ = value; } } else { yieldBuilder_.mergeFrom(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ public Builder clearYield() { bitField0_ = (bitField0_ & ~0x00020000); yield_ = null; if (yieldBuilder_ != null) { yieldBuilder_.dispose(); yieldBuilder_ = null; } onChanged(); return this; } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getYieldBuilder() { bitField0_ |= 0x00020000; onChanged(); return getYieldFieldBuilder().getBuilder(); } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getYieldOrBuilder() { if (yieldBuilder_ != null) { return yieldBuilder_.getMessageOrBuilder(); } else { return yield_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : yield_; } } /** *
     *Доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue yield = 44; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getYieldFieldBuilder() { if (yieldBuilder_ == null) { yieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getYield(), getParentForChildren(), isClean()); yield_ = null; } return yieldBuilder_; } private ru.tinkoff.piapi.contract.v1.Quotation yieldRelative_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> yieldRelativeBuilder_; /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; * @return Whether the yieldRelative field is set. */ public boolean hasYieldRelative() { return ((bitField0_ & 0x00040000) != 0); } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; * @return The yieldRelative. */ public ru.tinkoff.piapi.contract.v1.Quotation getYieldRelative() { if (yieldRelativeBuilder_ == null) { return yieldRelative_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : yieldRelative_; } else { return yieldRelativeBuilder_.getMessage(); } } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ public Builder setYieldRelative(ru.tinkoff.piapi.contract.v1.Quotation value) { if (yieldRelativeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } yieldRelative_ = value; } else { yieldRelativeBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ public Builder setYieldRelative( ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) { if (yieldRelativeBuilder_ == null) { yieldRelative_ = builderForValue.build(); } else { yieldRelativeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ public Builder mergeYieldRelative(ru.tinkoff.piapi.contract.v1.Quotation value) { if (yieldRelativeBuilder_ == null) { if (((bitField0_ & 0x00040000) != 0) && yieldRelative_ != null && yieldRelative_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) { getYieldRelativeBuilder().mergeFrom(value); } else { yieldRelative_ = value; } } else { yieldRelativeBuilder_.mergeFrom(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ public Builder clearYieldRelative() { bitField0_ = (bitField0_ & ~0x00040000); yieldRelative_ = null; if (yieldRelativeBuilder_ != null) { yieldRelativeBuilder_.dispose(); yieldRelativeBuilder_ = null; } onChanged(); return this; } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ public ru.tinkoff.piapi.contract.v1.Quotation.Builder getYieldRelativeBuilder() { bitField0_ |= 0x00040000; onChanged(); return getYieldRelativeFieldBuilder().getBuilder(); } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getYieldRelativeOrBuilder() { if (yieldRelativeBuilder_ != null) { return yieldRelativeBuilder_.getMessageOrBuilder(); } else { return yieldRelative_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : yieldRelative_; } } /** *
     *Относительная доходность.
     * 
* * .tinkoff.public.invest.api.contract.v1.Quotation yield_relative = 45; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> getYieldRelativeFieldBuilder() { if (yieldRelativeBuilder_ == null) { yieldRelativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>( getYieldRelative(), getParentForChildren(), isClean()); yieldRelative_ = null; } return yieldRelativeBuilder_; } private ru.tinkoff.piapi.contract.v1.MoneyValue accruedInt_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> accruedIntBuilder_; /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; * @return Whether the accruedInt field is set. */ public boolean hasAccruedInt() { return ((bitField0_ & 0x00080000) != 0); } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; * @return The accruedInt. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getAccruedInt() { if (accruedIntBuilder_ == null) { return accruedInt_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : accruedInt_; } else { return accruedIntBuilder_.getMessage(); } } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ public Builder setAccruedInt(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (accruedIntBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accruedInt_ = value; } else { accruedIntBuilder_.setMessage(value); } bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ public Builder setAccruedInt( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (accruedIntBuilder_ == null) { accruedInt_ = builderForValue.build(); } else { accruedIntBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ public Builder mergeAccruedInt(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (accruedIntBuilder_ == null) { if (((bitField0_ & 0x00080000) != 0) && accruedInt_ != null && accruedInt_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getAccruedIntBuilder().mergeFrom(value); } else { accruedInt_ = value; } } else { accruedIntBuilder_.mergeFrom(value); } bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ public Builder clearAccruedInt() { bitField0_ = (bitField0_ & ~0x00080000); accruedInt_ = null; if (accruedIntBuilder_ != null) { accruedIntBuilder_.dispose(); accruedIntBuilder_ = null; } onChanged(); return this; } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getAccruedIntBuilder() { bitField0_ |= 0x00080000; onChanged(); return getAccruedIntFieldBuilder().getBuilder(); } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAccruedIntOrBuilder() { if (accruedIntBuilder_ != null) { return accruedIntBuilder_.getMessageOrBuilder(); } else { return accruedInt_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : accruedInt_; } } /** *
     *Накопленный купонный доход.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue accrued_int = 46; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getAccruedIntFieldBuilder() { if (accruedIntBuilder_ == null) { accruedIntBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getAccruedInt(), getParentForChildren(), isClean()); accruedInt_ = null; } return accruedIntBuilder_; } private long quantity_ ; /** *
     *Количество единиц инструмента.
     * 
* * int64 quantity = 51; * @return The quantity. */ @java.lang.Override public long getQuantity() { return quantity_; } /** *
     *Количество единиц инструмента.
     * 
* * int64 quantity = 51; * @param value The quantity to set. * @return This builder for chaining. */ public Builder setQuantity(long value) { quantity_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     *Количество единиц инструмента.
     * 
* * int64 quantity = 51; * @return This builder for chaining. */ public Builder clearQuantity() { bitField0_ = (bitField0_ & ~0x00100000); quantity_ = 0L; onChanged(); return this; } private long quantityRest_ ; /** *
     *Неисполненный остаток по сделке.
     * 
* * int64 quantity_rest = 52; * @return The quantityRest. */ @java.lang.Override public long getQuantityRest() { return quantityRest_; } /** *
     *Неисполненный остаток по сделке.
     * 
* * int64 quantity_rest = 52; * @param value The quantityRest to set. * @return This builder for chaining. */ public Builder setQuantityRest(long value) { quantityRest_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** *
     *Неисполненный остаток по сделке.
     * 
* * int64 quantity_rest = 52; * @return This builder for chaining. */ public Builder clearQuantityRest() { bitField0_ = (bitField0_ & ~0x00200000); quantityRest_ = 0L; onChanged(); return this; } private long quantityDone_ ; /** *
     *Исполненный остаток.
     * 
* * int64 quantity_done = 53; * @return The quantityDone. */ @java.lang.Override public long getQuantityDone() { return quantityDone_; } /** *
     *Исполненный остаток.
     * 
* * int64 quantity_done = 53; * @param value The quantityDone to set. * @return This builder for chaining. */ public Builder setQuantityDone(long value) { quantityDone_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     *Исполненный остаток.
     * 
* * int64 quantity_done = 53; * @return This builder for chaining. */ public Builder clearQuantityDone() { bitField0_ = (bitField0_ & ~0x00400000); quantityDone_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp cancelDateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelDateTimeBuilder_; /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; * @return Whether the cancelDateTime field is set. */ public boolean hasCancelDateTime() { return ((bitField0_ & 0x00800000) != 0); } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; * @return The cancelDateTime. */ public com.google.protobuf.Timestamp getCancelDateTime() { if (cancelDateTimeBuilder_ == null) { return cancelDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelDateTime_; } else { return cancelDateTimeBuilder_.getMessage(); } } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ public Builder setCancelDateTime(com.google.protobuf.Timestamp value) { if (cancelDateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cancelDateTime_ = value; } else { cancelDateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ public Builder setCancelDateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelDateTimeBuilder_ == null) { cancelDateTime_ = builderForValue.build(); } else { cancelDateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ public Builder mergeCancelDateTime(com.google.protobuf.Timestamp value) { if (cancelDateTimeBuilder_ == null) { if (((bitField0_ & 0x00800000) != 0) && cancelDateTime_ != null && cancelDateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelDateTimeBuilder().mergeFrom(value); } else { cancelDateTime_ = value; } } else { cancelDateTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ public Builder clearCancelDateTime() { bitField0_ = (bitField0_ & ~0x00800000); cancelDateTime_ = null; if (cancelDateTimeBuilder_ != null) { cancelDateTimeBuilder_.dispose(); cancelDateTimeBuilder_ = null; } onChanged(); return this; } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ public com.google.protobuf.Timestamp.Builder getCancelDateTimeBuilder() { bitField0_ |= 0x00800000; onChanged(); return getCancelDateTimeFieldBuilder().getBuilder(); } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ public com.google.protobuf.TimestampOrBuilder getCancelDateTimeOrBuilder() { if (cancelDateTimeBuilder_ != null) { return cancelDateTimeBuilder_.getMessageOrBuilder(); } else { return cancelDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelDateTime_; } } /** *
     *Дата и время снятия заявки.
     * 
* * .google.protobuf.Timestamp cancel_date_time = 56; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelDateTimeFieldBuilder() { if (cancelDateTimeBuilder_ == null) { cancelDateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCancelDateTime(), getParentForChildren(), isClean()); cancelDateTime_ = null; } return cancelDateTimeBuilder_; } private java.lang.Object cancelReason_ = ""; /** *
     *Причина отмены операции.
     * 
* * string cancel_reason = 57; * @return The cancelReason. */ public java.lang.String getCancelReason() { java.lang.Object ref = cancelReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cancelReason_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Причина отмены операции.
     * 
* * string cancel_reason = 57; * @return The bytes for cancelReason. */ public com.google.protobuf.ByteString getCancelReasonBytes() { java.lang.Object ref = cancelReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cancelReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Причина отмены операции.
     * 
* * string cancel_reason = 57; * @param value The cancelReason to set. * @return This builder for chaining. */ public Builder setCancelReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cancelReason_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     *Причина отмены операции.
     * 
* * string cancel_reason = 57; * @return This builder for chaining. */ public Builder clearCancelReason() { cancelReason_ = getDefaultInstance().getCancelReason(); bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } /** *
     *Причина отмены операции.
     * 
* * string cancel_reason = 57; * @param value The bytes for cancelReason to set. * @return This builder for chaining. */ public Builder setCancelReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cancelReason_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } private ru.tinkoff.piapi.contract.v1.OperationItemTrades tradesInfo_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OperationItemTrades, ru.tinkoff.piapi.contract.v1.OperationItemTrades.Builder, ru.tinkoff.piapi.contract.v1.OperationItemTradesOrBuilder> tradesInfoBuilder_; /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; * @return Whether the tradesInfo field is set. */ public boolean hasTradesInfo() { return ((bitField0_ & 0x02000000) != 0); } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; * @return The tradesInfo. */ public ru.tinkoff.piapi.contract.v1.OperationItemTrades getTradesInfo() { if (tradesInfoBuilder_ == null) { return tradesInfo_ == null ? ru.tinkoff.piapi.contract.v1.OperationItemTrades.getDefaultInstance() : tradesInfo_; } else { return tradesInfoBuilder_.getMessage(); } } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ public Builder setTradesInfo(ru.tinkoff.piapi.contract.v1.OperationItemTrades value) { if (tradesInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tradesInfo_ = value; } else { tradesInfoBuilder_.setMessage(value); } bitField0_ |= 0x02000000; onChanged(); return this; } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ public Builder setTradesInfo( ru.tinkoff.piapi.contract.v1.OperationItemTrades.Builder builderForValue) { if (tradesInfoBuilder_ == null) { tradesInfo_ = builderForValue.build(); } else { tradesInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x02000000; onChanged(); return this; } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ public Builder mergeTradesInfo(ru.tinkoff.piapi.contract.v1.OperationItemTrades value) { if (tradesInfoBuilder_ == null) { if (((bitField0_ & 0x02000000) != 0) && tradesInfo_ != null && tradesInfo_ != ru.tinkoff.piapi.contract.v1.OperationItemTrades.getDefaultInstance()) { getTradesInfoBuilder().mergeFrom(value); } else { tradesInfo_ = value; } } else { tradesInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x02000000; onChanged(); return this; } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ public Builder clearTradesInfo() { bitField0_ = (bitField0_ & ~0x02000000); tradesInfo_ = null; if (tradesInfoBuilder_ != null) { tradesInfoBuilder_.dispose(); tradesInfoBuilder_ = null; } onChanged(); return this; } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ public ru.tinkoff.piapi.contract.v1.OperationItemTrades.Builder getTradesInfoBuilder() { bitField0_ |= 0x02000000; onChanged(); return getTradesInfoFieldBuilder().getBuilder(); } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ public ru.tinkoff.piapi.contract.v1.OperationItemTradesOrBuilder getTradesInfoOrBuilder() { if (tradesInfoBuilder_ != null) { return tradesInfoBuilder_.getMessageOrBuilder(); } else { return tradesInfo_ == null ? ru.tinkoff.piapi.contract.v1.OperationItemTrades.getDefaultInstance() : tradesInfo_; } } /** *
     *Массив сделок.
     * 
* * .tinkoff.public.invest.api.contract.v1.OperationItemTrades trades_info = 61; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OperationItemTrades, ru.tinkoff.piapi.contract.v1.OperationItemTrades.Builder, ru.tinkoff.piapi.contract.v1.OperationItemTradesOrBuilder> getTradesInfoFieldBuilder() { if (tradesInfoBuilder_ == null) { tradesInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OperationItemTrades, ru.tinkoff.piapi.contract.v1.OperationItemTrades.Builder, ru.tinkoff.piapi.contract.v1.OperationItemTradesOrBuilder>( getTradesInfo(), getParentForChildren(), isClean()); tradesInfo_ = null; } return tradesInfoBuilder_; } private java.lang.Object assetUid_ = ""; /** *
     *Идентификатор актива
     * 
* * string asset_uid = 64; * @return The assetUid. */ public java.lang.String getAssetUid() { java.lang.Object ref = assetUid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetUid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор актива
     * 
* * string asset_uid = 64; * @return The bytes for assetUid. */ public com.google.protobuf.ByteString getAssetUidBytes() { java.lang.Object ref = assetUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор актива
     * 
* * string asset_uid = 64; * @param value The assetUid to set. * @return This builder for chaining. */ public Builder setAssetUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } assetUid_ = value; bitField0_ |= 0x04000000; onChanged(); return this; } /** *
     *Идентификатор актива
     * 
* * string asset_uid = 64; * @return This builder for chaining. */ public Builder clearAssetUid() { assetUid_ = getDefaultInstance().getAssetUid(); bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } /** *
     *Идентификатор актива
     * 
* * string asset_uid = 64; * @param value The bytes for assetUid to set. * @return This builder for chaining. */ public Builder setAssetUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetUid_ = value; bitField0_ |= 0x04000000; 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.OperationItem) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.OperationItem) private static final ru.tinkoff.piapi.contract.v1.OperationItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.OperationItem(); } public static ru.tinkoff.piapi.contract.v1.OperationItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OperationItem 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.OperationItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy