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

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

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

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Информация о стоп-заявке.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.StopOrder} */ public final class StopOrder extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.StopOrder) StopOrderOrBuilder { private static final long serialVersionUID = 0L; // Use StopOrder.newBuilder() to construct. private StopOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopOrder() { stopOrderId_ = ""; figi_ = ""; direction_ = 0; currency_ = ""; orderType_ = 0; instrumentUid_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopOrder(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Stoporders.internal_static_tinkoff_public_invest_api_contract_v1_StopOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Stoporders.internal_static_tinkoff_public_invest_api_contract_v1_StopOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.StopOrder.class, ru.tinkoff.piapi.contract.v1.StopOrder.Builder.class); } public static final int STOP_ORDER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object stopOrderId_ = ""; /** *
   *Идентификатор-идентификатор стоп-заявки.
   * 
* * string stop_order_id = 1; * @return The stopOrderId. */ @java.lang.Override public java.lang.String getStopOrderId() { java.lang.Object ref = stopOrderId_; 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(); stopOrderId_ = s; return s; } } /** *
   *Идентификатор-идентификатор стоп-заявки.
   * 
* * string stop_order_id = 1; * @return The bytes for stopOrderId. */ @java.lang.Override public com.google.protobuf.ByteString getStopOrderIdBytes() { java.lang.Object ref = stopOrderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stopOrderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOTS_REQUESTED_FIELD_NUMBER = 2; private long lotsRequested_ = 0L; /** *
   *Запрошено лотов.
   * 
* * int64 lots_requested = 2; * @return The lotsRequested. */ @java.lang.Override public long getLotsRequested() { return lotsRequested_; } public static final int FIGI_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object figi_ = ""; /** *
   *Figi-идентификатор инструмента.
   * 
* * string figi = 3; * @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 = 3; * @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 DIRECTION_FIELD_NUMBER = 4; private int direction_ = 0; /** *
   *Направление операции.
   * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 4; * @return The enum numeric value on the wire for direction. */ @java.lang.Override public int getDirectionValue() { return direction_; } /** *
   *Направление операции.
   * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 4; * @return The direction. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.StopOrderDirection getDirection() { ru.tinkoff.piapi.contract.v1.StopOrderDirection result = ru.tinkoff.piapi.contract.v1.StopOrderDirection.forNumber(direction_); return result == null ? ru.tinkoff.piapi.contract.v1.StopOrderDirection.UNRECOGNIZED : result; } public static final int CURRENCY_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object currency_ = ""; /** *
   *Валюта стоп-заявки.
   * 
* * string currency = 5; * @return The currency. */ @java.lang.Override public java.lang.String getCurrency() { java.lang.Object ref = currency_; 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(); currency_ = s; return s; } } /** *
   *Валюта стоп-заявки.
   * 
* * string currency = 5; * @return The bytes for currency. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORDER_TYPE_FIELD_NUMBER = 6; private int orderType_ = 0; /** *
   *Тип стоп-заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderType order_type = 6; * @return The enum numeric value on the wire for orderType. */ @java.lang.Override public int getOrderTypeValue() { return orderType_; } /** *
   *Тип стоп-заявки.
   * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderType order_type = 6; * @return The orderType. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.StopOrderType getOrderType() { ru.tinkoff.piapi.contract.v1.StopOrderType result = ru.tinkoff.piapi.contract.v1.StopOrderType.forNumber(orderType_); return result == null ? ru.tinkoff.piapi.contract.v1.StopOrderType.UNRECOGNIZED : result; } public static final int CREATE_DATE_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createDate_; /** *
   *Дата и время выставления заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp create_date = 7; * @return Whether the createDate field is set. */ @java.lang.Override public boolean hasCreateDate() { return createDate_ != null; } /** *
   *Дата и время выставления заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp create_date = 7; * @return The createDate. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateDate() { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } /** *
   *Дата и время выставления заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp create_date = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateDateOrBuilder() { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } public static final int ACTIVATION_DATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp activationDateTime_; /** *
   *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp activation_date_time = 8; * @return Whether the activationDateTime field is set. */ @java.lang.Override public boolean hasActivationDateTime() { return activationDateTime_ != null; } /** *
   *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp activation_date_time = 8; * @return The activationDateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getActivationDateTime() { return activationDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : activationDateTime_; } /** *
   *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getActivationDateTimeOrBuilder() { return activationDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : activationDateTime_; } public static final int EXPIRATION_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expirationTime_; /** *
   *Дата и время снятия заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp expiration_time = 9; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return expirationTime_ != null; } /** *
   *Дата и время снятия заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp expiration_time = 9; * @return The expirationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpirationTime() { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } /** *
   *Дата и время снятия заявки в часовом поясе UTC.
   * 
* * .google.protobuf.Timestamp expiration_time = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } public static final int PRICE_FIELD_NUMBER = 10; private ru.tinkoff.piapi.contract.v1.MoneyValue price_; /** *
   *Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 10; * @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 = 10; * @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 = 10; */ @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 STOP_PRICE_FIELD_NUMBER = 11; private ru.tinkoff.piapi.contract.v1.MoneyValue stopPrice_; /** *
   *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; * @return Whether the stopPrice field is set. */ @java.lang.Override public boolean hasStopPrice() { return stopPrice_ != null; } /** *
   *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; * @return The stopPrice. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getStopPrice() { return stopPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : stopPrice_; } /** *
   *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getStopPriceOrBuilder() { return stopPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : stopPrice_; } public static final int INSTRUMENT_UID_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object instrumentUid_ = ""; /** *
   *instrument_uid идентификатор инструмента.
   * 
* * string instrument_uid = 12; * @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; } } /** *
   *instrument_uid идентификатор инструмента.
   * 
* * string instrument_uid = 12; * @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; } } 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(stopOrderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stopOrderId_); } if (lotsRequested_ != 0L) { output.writeInt64(2, lotsRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, figi_); } if (direction_ != ru.tinkoff.piapi.contract.v1.StopOrderDirection.STOP_ORDER_DIRECTION_UNSPECIFIED.getNumber()) { output.writeEnum(4, direction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, currency_); } if (orderType_ != ru.tinkoff.piapi.contract.v1.StopOrderType.STOP_ORDER_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, orderType_); } if (createDate_ != null) { output.writeMessage(7, getCreateDate()); } if (activationDateTime_ != null) { output.writeMessage(8, getActivationDateTime()); } if (expirationTime_ != null) { output.writeMessage(9, getExpirationTime()); } if (price_ != null) { output.writeMessage(10, getPrice()); } if (stopPrice_ != null) { output.writeMessage(11, getStopPrice()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, instrumentUid_); } 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(stopOrderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stopOrderId_); } if (lotsRequested_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, lotsRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, figi_); } if (direction_ != ru.tinkoff.piapi.contract.v1.StopOrderDirection.STOP_ORDER_DIRECTION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, direction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, currency_); } if (orderType_ != ru.tinkoff.piapi.contract.v1.StopOrderType.STOP_ORDER_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, orderType_); } if (createDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCreateDate()); } if (activationDateTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getActivationDateTime()); } if (expirationTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getExpirationTime()); } if (price_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getPrice()); } if (stopPrice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getStopPrice()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, instrumentUid_); } 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.StopOrder)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.StopOrder other = (ru.tinkoff.piapi.contract.v1.StopOrder) obj; if (!getStopOrderId() .equals(other.getStopOrderId())) return false; if (getLotsRequested() != other.getLotsRequested()) return false; if (!getFigi() .equals(other.getFigi())) return false; if (direction_ != other.direction_) return false; if (!getCurrency() .equals(other.getCurrency())) return false; if (orderType_ != other.orderType_) return false; if (hasCreateDate() != other.hasCreateDate()) return false; if (hasCreateDate()) { if (!getCreateDate() .equals(other.getCreateDate())) return false; } if (hasActivationDateTime() != other.hasActivationDateTime()) return false; if (hasActivationDateTime()) { if (!getActivationDateTime() .equals(other.getActivationDateTime())) return false; } if (hasExpirationTime() != other.hasExpirationTime()) return false; if (hasExpirationTime()) { if (!getExpirationTime() .equals(other.getExpirationTime())) return false; } if (hasPrice() != other.hasPrice()) return false; if (hasPrice()) { if (!getPrice() .equals(other.getPrice())) return false; } if (hasStopPrice() != other.hasStopPrice()) return false; if (hasStopPrice()) { if (!getStopPrice() .equals(other.getStopPrice())) return false; } if (!getInstrumentUid() .equals(other.getInstrumentUid())) 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) + STOP_ORDER_ID_FIELD_NUMBER; hash = (53 * hash) + getStopOrderId().hashCode(); hash = (37 * hash) + LOTS_REQUESTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLotsRequested()); hash = (37 * hash) + FIGI_FIELD_NUMBER; hash = (53 * hash) + getFigi().hashCode(); hash = (37 * hash) + DIRECTION_FIELD_NUMBER; hash = (53 * hash) + direction_; hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; hash = (53 * hash) + orderType_; if (hasCreateDate()) { hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; hash = (53 * hash) + getCreateDate().hashCode(); } if (hasActivationDateTime()) { hash = (37 * hash) + ACTIVATION_DATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getActivationDateTime().hashCode(); } if (hasExpirationTime()) { hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpirationTime().hashCode(); } if (hasPrice()) { hash = (37 * hash) + PRICE_FIELD_NUMBER; hash = (53 * hash) + getPrice().hashCode(); } if (hasStopPrice()) { hash = (37 * hash) + STOP_PRICE_FIELD_NUMBER; hash = (53 * hash) + getStopPrice().hashCode(); } hash = (37 * hash) + INSTRUMENT_UID_FIELD_NUMBER; hash = (53 * hash) + getInstrumentUid().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.StopOrder parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.StopOrder 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.StopOrder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.StopOrder 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.StopOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.StopOrder 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.StopOrder parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.StopOrder 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.StopOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.StopOrder 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.StopOrder 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.StopOrder 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.StopOrder 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.StopOrder} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.StopOrder) ru.tinkoff.piapi.contract.v1.StopOrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Stoporders.internal_static_tinkoff_public_invest_api_contract_v1_StopOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Stoporders.internal_static_tinkoff_public_invest_api_contract_v1_StopOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.StopOrder.class, ru.tinkoff.piapi.contract.v1.StopOrder.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.StopOrder.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; stopOrderId_ = ""; lotsRequested_ = 0L; figi_ = ""; direction_ = 0; currency_ = ""; orderType_ = 0; createDate_ = null; if (createDateBuilder_ != null) { createDateBuilder_.dispose(); createDateBuilder_ = null; } activationDateTime_ = null; if (activationDateTimeBuilder_ != null) { activationDateTimeBuilder_.dispose(); activationDateTimeBuilder_ = null; } expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } price_ = null; if (priceBuilder_ != null) { priceBuilder_.dispose(); priceBuilder_ = null; } stopPrice_ = null; if (stopPriceBuilder_ != null) { stopPriceBuilder_.dispose(); stopPriceBuilder_ = null; } instrumentUid_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Stoporders.internal_static_tinkoff_public_invest_api_contract_v1_StopOrder_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.StopOrder getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.StopOrder.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.StopOrder build() { ru.tinkoff.piapi.contract.v1.StopOrder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.StopOrder buildPartial() { ru.tinkoff.piapi.contract.v1.StopOrder result = new ru.tinkoff.piapi.contract.v1.StopOrder(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.StopOrder result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.stopOrderId_ = stopOrderId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.lotsRequested_ = lotsRequested_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.figi_ = figi_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.direction_ = direction_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.currency_ = currency_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.orderType_ = orderType_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.createDate_ = createDateBuilder_ == null ? createDate_ : createDateBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.activationDateTime_ = activationDateTimeBuilder_ == null ? activationDateTime_ : activationDateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.expirationTime_ = expirationTimeBuilder_ == null ? expirationTime_ : expirationTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.stopPrice_ = stopPriceBuilder_ == null ? stopPrice_ : stopPriceBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.instrumentUid_ = instrumentUid_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.StopOrder) { return mergeFrom((ru.tinkoff.piapi.contract.v1.StopOrder)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.StopOrder other) { if (other == ru.tinkoff.piapi.contract.v1.StopOrder.getDefaultInstance()) return this; if (!other.getStopOrderId().isEmpty()) { stopOrderId_ = other.stopOrderId_; bitField0_ |= 0x00000001; onChanged(); } if (other.getLotsRequested() != 0L) { setLotsRequested(other.getLotsRequested()); } if (!other.getFigi().isEmpty()) { figi_ = other.figi_; bitField0_ |= 0x00000004; onChanged(); } if (other.direction_ != 0) { setDirectionValue(other.getDirectionValue()); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; bitField0_ |= 0x00000010; onChanged(); } if (other.orderType_ != 0) { setOrderTypeValue(other.getOrderTypeValue()); } if (other.hasCreateDate()) { mergeCreateDate(other.getCreateDate()); } if (other.hasActivationDateTime()) { mergeActivationDateTime(other.getActivationDateTime()); } if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); } if (other.hasPrice()) { mergePrice(other.getPrice()); } if (other.hasStopPrice()) { mergeStopPrice(other.getStopPrice()); } if (!other.getInstrumentUid().isEmpty()) { instrumentUid_ = other.instrumentUid_; bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { stopOrderId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { lotsRequested_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { figi_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { direction_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { currency_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { orderType_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage( getCreateDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getActivationDateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getExpirationTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { input.readMessage( getStopPriceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 case 98: { instrumentUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object stopOrderId_ = ""; /** *
     *Идентификатор-идентификатор стоп-заявки.
     * 
* * string stop_order_id = 1; * @return The stopOrderId. */ public java.lang.String getStopOrderId() { java.lang.Object ref = stopOrderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stopOrderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор-идентификатор стоп-заявки.
     * 
* * string stop_order_id = 1; * @return The bytes for stopOrderId. */ public com.google.protobuf.ByteString getStopOrderIdBytes() { java.lang.Object ref = stopOrderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stopOrderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор-идентификатор стоп-заявки.
     * 
* * string stop_order_id = 1; * @param value The stopOrderId to set. * @return This builder for chaining. */ public Builder setStopOrderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } stopOrderId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Идентификатор-идентификатор стоп-заявки.
     * 
* * string stop_order_id = 1; * @return This builder for chaining. */ public Builder clearStopOrderId() { stopOrderId_ = getDefaultInstance().getStopOrderId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *Идентификатор-идентификатор стоп-заявки.
     * 
* * string stop_order_id = 1; * @param value The bytes for stopOrderId to set. * @return This builder for chaining. */ public Builder setStopOrderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stopOrderId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long lotsRequested_ ; /** *
     *Запрошено лотов.
     * 
* * int64 lots_requested = 2; * @return The lotsRequested. */ @java.lang.Override public long getLotsRequested() { return lotsRequested_; } /** *
     *Запрошено лотов.
     * 
* * int64 lots_requested = 2; * @param value The lotsRequested to set. * @return This builder for chaining. */ public Builder setLotsRequested(long value) { lotsRequested_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Запрошено лотов.
     * 
* * int64 lots_requested = 2; * @return This builder for chaining. */ public Builder clearLotsRequested() { bitField0_ = (bitField0_ & ~0x00000002); lotsRequested_ = 0L; onChanged(); return this; } private java.lang.Object figi_ = ""; /** *
     *Figi-идентификатор инструмента.
     * 
* * string figi = 3; * @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 = 3; * @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 = 3; * @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_ |= 0x00000004; onChanged(); return this; } /** *
     *Figi-идентификатор инструмента.
     * 
* * string figi = 3; * @return This builder for chaining. */ public Builder clearFigi() { figi_ = getDefaultInstance().getFigi(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     *Figi-идентификатор инструмента.
     * 
* * string figi = 3; * @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_ |= 0x00000004; onChanged(); return this; } private int direction_ = 0; /** *
     *Направление операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 4; * @return The enum numeric value on the wire for direction. */ @java.lang.Override public int getDirectionValue() { return direction_; } /** *
     *Направление операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 4; * @param value The enum numeric value on the wire for direction to set. * @return This builder for chaining. */ public Builder setDirectionValue(int value) { direction_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Направление операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 4; * @return The direction. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.StopOrderDirection getDirection() { ru.tinkoff.piapi.contract.v1.StopOrderDirection result = ru.tinkoff.piapi.contract.v1.StopOrderDirection.forNumber(direction_); return result == null ? ru.tinkoff.piapi.contract.v1.StopOrderDirection.UNRECOGNIZED : result; } /** *
     *Направление операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 4; * @param value The direction to set. * @return This builder for chaining. */ public Builder setDirection(ru.tinkoff.piapi.contract.v1.StopOrderDirection value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; direction_ = value.getNumber(); onChanged(); return this; } /** *
     *Направление операции.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 4; * @return This builder for chaining. */ public Builder clearDirection() { bitField0_ = (bitField0_ & ~0x00000008); direction_ = 0; onChanged(); return this; } private java.lang.Object currency_ = ""; /** *
     *Валюта стоп-заявки.
     * 
* * string currency = 5; * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Валюта стоп-заявки.
     * 
* * string currency = 5; * @return The bytes for currency. */ public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Валюта стоп-заявки.
     * 
* * string currency = 5; * @param value The currency to set. * @return This builder for chaining. */ public Builder setCurrency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currency_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *Валюта стоп-заявки.
     * 
* * string currency = 5; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     *Валюта стоп-заявки.
     * 
* * string currency = 5; * @param value The bytes for currency to set. * @return This builder for chaining. */ public Builder setCurrencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private int orderType_ = 0; /** *
     *Тип стоп-заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderType order_type = 6; * @return The enum numeric value on the wire for orderType. */ @java.lang.Override public int getOrderTypeValue() { return orderType_; } /** *
     *Тип стоп-заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderType order_type = 6; * @param value The enum numeric value on the wire for orderType to set. * @return This builder for chaining. */ public Builder setOrderTypeValue(int value) { orderType_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Тип стоп-заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderType order_type = 6; * @return The orderType. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.StopOrderType getOrderType() { ru.tinkoff.piapi.contract.v1.StopOrderType result = ru.tinkoff.piapi.contract.v1.StopOrderType.forNumber(orderType_); return result == null ? ru.tinkoff.piapi.contract.v1.StopOrderType.UNRECOGNIZED : result; } /** *
     *Тип стоп-заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderType order_type = 6; * @param value The orderType to set. * @return This builder for chaining. */ public Builder setOrderType(ru.tinkoff.piapi.contract.v1.StopOrderType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; orderType_ = value.getNumber(); onChanged(); return this; } /** *
     *Тип стоп-заявки.
     * 
* * .tinkoff.public.invest.api.contract.v1.StopOrderType order_type = 6; * @return This builder for chaining. */ public Builder clearOrderType() { bitField0_ = (bitField0_ & ~0x00000020); orderType_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp createDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createDateBuilder_; /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; * @return Whether the createDate field is set. */ public boolean hasCreateDate() { return ((bitField0_ & 0x00000040) != 0); } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; * @return The createDate. */ public com.google.protobuf.Timestamp getCreateDate() { if (createDateBuilder_ == null) { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } else { return createDateBuilder_.getMessage(); } } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; */ public Builder setCreateDate(com.google.protobuf.Timestamp value) { if (createDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createDate_ = value; } else { createDateBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; */ public Builder setCreateDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (createDateBuilder_ == null) { createDate_ = builderForValue.build(); } else { createDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; */ public Builder mergeCreateDate(com.google.protobuf.Timestamp value) { if (createDateBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && createDate_ != null && createDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateDateBuilder().mergeFrom(value); } else { createDate_ = value; } } else { createDateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; */ public Builder clearCreateDate() { bitField0_ = (bitField0_ & ~0x00000040); createDate_ = null; if (createDateBuilder_ != null) { createDateBuilder_.dispose(); createDateBuilder_ = null; } onChanged(); return this; } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; */ public com.google.protobuf.Timestamp.Builder getCreateDateBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCreateDateFieldBuilder().getBuilder(); } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; */ public com.google.protobuf.TimestampOrBuilder getCreateDateOrBuilder() { if (createDateBuilder_ != null) { return createDateBuilder_.getMessageOrBuilder(); } else { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } } /** *
     *Дата и время выставления заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp create_date = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateDateFieldBuilder() { if (createDateBuilder_ == null) { createDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateDate(), getParentForChildren(), isClean()); createDate_ = null; } return createDateBuilder_; } private com.google.protobuf.Timestamp activationDateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> activationDateTimeBuilder_; /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; * @return Whether the activationDateTime field is set. */ public boolean hasActivationDateTime() { return ((bitField0_ & 0x00000080) != 0); } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; * @return The activationDateTime. */ public com.google.protobuf.Timestamp getActivationDateTime() { if (activationDateTimeBuilder_ == null) { return activationDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : activationDateTime_; } else { return activationDateTimeBuilder_.getMessage(); } } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ public Builder setActivationDateTime(com.google.protobuf.Timestamp value) { if (activationDateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } activationDateTime_ = value; } else { activationDateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ public Builder setActivationDateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (activationDateTimeBuilder_ == null) { activationDateTime_ = builderForValue.build(); } else { activationDateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ public Builder mergeActivationDateTime(com.google.protobuf.Timestamp value) { if (activationDateTimeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && activationDateTime_ != null && activationDateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getActivationDateTimeBuilder().mergeFrom(value); } else { activationDateTime_ = value; } } else { activationDateTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ public Builder clearActivationDateTime() { bitField0_ = (bitField0_ & ~0x00000080); activationDateTime_ = null; if (activationDateTimeBuilder_ != null) { activationDateTimeBuilder_.dispose(); activationDateTimeBuilder_ = null; } onChanged(); return this; } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ public com.google.protobuf.Timestamp.Builder getActivationDateTimeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getActivationDateTimeFieldBuilder().getBuilder(); } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ public com.google.protobuf.TimestampOrBuilder getActivationDateTimeOrBuilder() { if (activationDateTimeBuilder_ != null) { return activationDateTimeBuilder_.getMessageOrBuilder(); } else { return activationDateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : activationDateTime_; } } /** *
     *Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp activation_date_time = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getActivationDateTimeFieldBuilder() { if (activationDateTimeBuilder_ == null) { activationDateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getActivationDateTime(), getParentForChildren(), isClean()); activationDateTime_ = null; } return activationDateTimeBuilder_; } private com.google.protobuf.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_; /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return ((bitField0_ & 0x00000100) != 0); } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; * @return The expirationTime. */ public com.google.protobuf.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; */ public Builder setExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; } else { expirationTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; */ public Builder setExpirationTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; */ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && expirationTime_ != null && expirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpirationTimeBuilder().mergeFrom(value); } else { expirationTime_ = value; } } else { expirationTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; */ public Builder clearExpirationTime() { bitField0_ = (bitField0_ & ~0x00000100); expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } onChanged(); return this; } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; */ public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; */ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } } /** *
     *Дата и время снятия заявки в часовом поясе UTC.
     * 
* * .google.protobuf.Timestamp expiration_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } 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 = 10; * @return Whether the price field is set. */ public boolean hasPrice() { return ((bitField0_ & 0x00000200) != 0); } /** *
     *Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 10; * @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 = 10; */ 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_ |= 0x00000200; onChanged(); return this; } /** *
     *Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 10; */ public Builder setPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (priceBuilder_ == null) { price_ = builderForValue.build(); } else { priceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 10; */ public Builder mergePrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (priceBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && price_ != null && price_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getPriceBuilder().mergeFrom(value); } else { price_ = value; } } else { priceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 10; */ public Builder clearPrice() { bitField0_ = (bitField0_ & ~0x00000200); price_ = null; if (priceBuilder_ != null) { priceBuilder_.dispose(); priceBuilder_ = null; } onChanged(); return this; } /** *
     *Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 10; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getPriceBuilder() { bitField0_ |= 0x00000200; onChanged(); return getPriceFieldBuilder().getBuilder(); } /** *
     *Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue price = 10; */ 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 = 10; */ 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 stopPrice_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> stopPriceBuilder_; /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; * @return Whether the stopPrice field is set. */ public boolean hasStopPrice() { return ((bitField0_ & 0x00000400) != 0); } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; * @return The stopPrice. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getStopPrice() { if (stopPriceBuilder_ == null) { return stopPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : stopPrice_; } else { return stopPriceBuilder_.getMessage(); } } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ public Builder setStopPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (stopPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stopPrice_ = value; } else { stopPriceBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ public Builder setStopPrice( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (stopPriceBuilder_ == null) { stopPrice_ = builderForValue.build(); } else { stopPriceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ public Builder mergeStopPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (stopPriceBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && stopPrice_ != null && stopPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getStopPriceBuilder().mergeFrom(value); } else { stopPrice_ = value; } } else { stopPriceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ public Builder clearStopPrice() { bitField0_ = (bitField0_ & ~0x00000400); stopPrice_ = null; if (stopPriceBuilder_ != null) { stopPriceBuilder_.dispose(); stopPriceBuilder_ = null; } onChanged(); return this; } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getStopPriceBuilder() { bitField0_ |= 0x00000400; onChanged(); return getStopPriceFieldBuilder().getBuilder(); } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getStopPriceOrBuilder() { if (stopPriceBuilder_ != null) { return stopPriceBuilder_.getMessageOrBuilder(); } else { return stopPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : stopPrice_; } } /** *
     *Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue stop_price = 11; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getStopPriceFieldBuilder() { if (stopPriceBuilder_ == null) { stopPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getStopPrice(), getParentForChildren(), isClean()); stopPrice_ = null; } return stopPriceBuilder_; } private java.lang.Object instrumentUid_ = ""; /** *
     *instrument_uid идентификатор инструмента.
     * 
* * string instrument_uid = 12; * @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; } } /** *
     *instrument_uid идентификатор инструмента.
     * 
* * string instrument_uid = 12; * @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; } } /** *
     *instrument_uid идентификатор инструмента.
     * 
* * string instrument_uid = 12; * @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_ |= 0x00000800; onChanged(); return this; } /** *
     *instrument_uid идентификатор инструмента.
     * 
* * string instrument_uid = 12; * @return This builder for chaining. */ public Builder clearInstrumentUid() { instrumentUid_ = getDefaultInstance().getInstrumentUid(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     *instrument_uid идентификатор инструмента.
     * 
* * string instrument_uid = 12; * @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_ |= 0x00000800; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.StopOrder) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.StopOrder) private static final ru.tinkoff.piapi.contract.v1.StopOrder DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.StopOrder(); } public static ru.tinkoff.piapi.contract.v1.StopOrder getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopOrder 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.StopOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy