Package ru.tinkoff.piapi.contract.v1
Class Operation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ru.tinkoff.piapi.contract.v1.Operation
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,OperationOrBuilder
public final class Operation
extends com.google.protobuf.GeneratedMessageV3
implements OperationOrBuilder
Данные по операции.Protobuf type
tinkoff.public.invest.api.contract.v1.Operation- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanИдентификатор активаcom.google.protobuf.ByteStringИдентификатор активаВалюта операции.com.google.protobuf.ByteStringВалюта операции.com.google.protobuf.TimestampgetDate()Дата и время операции в формате часовом поясе UTC.com.google.protobuf.TimestampOrBuilderДата и время операции в формате часовом поясе UTC.static Operationstatic final com.google.protobuf.Descriptors.DescriptorgetFigi()Figi-идентификатор инструмента, связанного с операцией.com.google.protobuf.ByteStringFigi-идентификатор инструмента, связанного с операцией.getId()Идентификатор операции.com.google.protobuf.ByteStringИдентификатор операции.Тип инструмента.com.google.protobuf.ByteStringТип инструмента.Тип операции.intТип операции.Идентификатор родительской операции.com.google.protobuf.ByteStringИдентификатор родительской операции.com.google.protobuf.Parser<Operation>Сумма операции.Сумма операции.getPrice()Цена операции за 1 инструмент.Цена операции за 1 инструмент.longКоличество единиц инструмента.longНеисполненный остаток по сделке.intgetState()Статус операции.intСтатус операции.getTrades(int index) Массив сделок.intМассив сделок.Массив сделок.getTradesOrBuilder(int index) Массив сделок.List<? extends OperationTradeOrBuilder>Массив сделок.getType()Текстовое описание типа операции.com.google.protobuf.ByteStringТекстовое описание типа операции.final com.google.protobuf.UnknownFieldSetbooleanhasDate()Дата и время операции в формате часовом поясе UTC.inthashCode()booleanСумма операции.booleanhasPrice()Цена операции за 1 инструмент.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Operation.Builderstatic Operation.BuildernewBuilder(Operation prototype) protected Operation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static OperationparseDelimitedFrom(InputStream input) static OperationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OperationparseFrom(byte[] data) static OperationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OperationparseFrom(com.google.protobuf.ByteString data) static OperationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OperationparseFrom(com.google.protobuf.CodedInputStream input) static OperationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OperationparseFrom(InputStream input) static OperationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OperationparseFrom(ByteBuffer data) static OperationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Operation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
PARENT_OPERATION_ID_FIELD_NUMBER
public static final int PARENT_OPERATION_ID_FIELD_NUMBER- See Also:
-
CURRENCY_FIELD_NUMBER
public static final int CURRENCY_FIELD_NUMBER- See Also:
-
PAYMENT_FIELD_NUMBER
public static final int PAYMENT_FIELD_NUMBER- See Also:
-
PRICE_FIELD_NUMBER
public static final int PRICE_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
QUANTITY_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER- See Also:
-
QUANTITY_REST_FIELD_NUMBER
public static final int QUANTITY_REST_FIELD_NUMBER- See Also:
-
FIGI_FIELD_NUMBER
public static final int FIGI_FIELD_NUMBER- See Also:
-
INSTRUMENT_TYPE_FIELD_NUMBER
public static final int INSTRUMENT_TYPE_FIELD_NUMBER- See Also:
-
DATE_FIELD_NUMBER
public static final int DATE_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
OPERATION_TYPE_FIELD_NUMBER
public static final int OPERATION_TYPE_FIELD_NUMBER- See Also:
-
TRADES_FIELD_NUMBER
public static final int TRADES_FIELD_NUMBER- See Also:
-
ASSET_UID_FIELD_NUMBER
public static final int ASSET_UID_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getId
Идентификатор операции.
string id = 1;- Specified by:
getIdin interfaceOperationOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Идентификатор операции.
string id = 1;- Specified by:
getIdBytesin interfaceOperationOrBuilder- Returns:
- The bytes for id.
-
getParentOperationId
Идентификатор родительской операции.
string parent_operation_id = 2;- Specified by:
getParentOperationIdin interfaceOperationOrBuilder- Returns:
- The parentOperationId.
-
getParentOperationIdBytes
public com.google.protobuf.ByteString getParentOperationIdBytes()Идентификатор родительской операции.
string parent_operation_id = 2;- Specified by:
getParentOperationIdBytesin interfaceOperationOrBuilder- Returns:
- The bytes for parentOperationId.
-
getCurrency
Валюта операции.
string currency = 3;- Specified by:
getCurrencyin interfaceOperationOrBuilder- Returns:
- The currency.
-
getCurrencyBytes
public com.google.protobuf.ByteString getCurrencyBytes()Валюта операции.
string currency = 3;- Specified by:
getCurrencyBytesin interfaceOperationOrBuilder- Returns:
- The bytes for currency.
-
hasPayment
public boolean hasPayment()Сумма операции.
.tinkoff.public.invest.api.contract.v1.MoneyValue payment = 4;- Specified by:
hasPaymentin interfaceOperationOrBuilder- Returns:
- Whether the payment field is set.
-
getPayment
Сумма операции.
.tinkoff.public.invest.api.contract.v1.MoneyValue payment = 4;- Specified by:
getPaymentin interfaceOperationOrBuilder- Returns:
- The payment.
-
getPaymentOrBuilder
Сумма операции.
.tinkoff.public.invest.api.contract.v1.MoneyValue payment = 4;- Specified by:
getPaymentOrBuilderin interfaceOperationOrBuilder
-
hasPrice
public boolean hasPrice()Цена операции за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
.tinkoff.public.invest.api.contract.v1.MoneyValue price = 5;- Specified by:
hasPricein interfaceOperationOrBuilder- Returns:
- Whether the price field is set.
-
getPrice
Цена операции за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
.tinkoff.public.invest.api.contract.v1.MoneyValue price = 5;- Specified by:
getPricein interfaceOperationOrBuilder- Returns:
- The price.
-
getPriceOrBuilder
Цена операции за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
.tinkoff.public.invest.api.contract.v1.MoneyValue price = 5;- Specified by:
getPriceOrBuilderin interfaceOperationOrBuilder
-
getStateValue
public int getStateValue()Статус операции.
.tinkoff.public.invest.api.contract.v1.OperationState state = 6;- Specified by:
getStateValuein interfaceOperationOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Статус операции.
.tinkoff.public.invest.api.contract.v1.OperationState state = 6;- Specified by:
getStatein interfaceOperationOrBuilder- Returns:
- The state.
-
getQuantity
public long getQuantity()Количество единиц инструмента.
int64 quantity = 7;- Specified by:
getQuantityin interfaceOperationOrBuilder- Returns:
- The quantity.
-
getQuantityRest
public long getQuantityRest()Неисполненный остаток по сделке.
int64 quantity_rest = 8;- Specified by:
getQuantityRestin interfaceOperationOrBuilder- Returns:
- The quantityRest.
-
getFigi
Figi-идентификатор инструмента, связанного с операцией.
string figi = 9;- Specified by:
getFigiin interfaceOperationOrBuilder- Returns:
- The figi.
-
getFigiBytes
public com.google.protobuf.ByteString getFigiBytes()Figi-идентификатор инструмента, связанного с операцией.
string figi = 9;- Specified by:
getFigiBytesin interfaceOperationOrBuilder- Returns:
- The bytes for figi.
-
getInstrumentType
Тип инструмента. Возможные значения: </br>**bond** — облигация; </br>**share** — акция; </br>**currency** — валюта; </br>**etf** — фонд; </br>**futures** — фьючерс.
string instrument_type = 10;- Specified by:
getInstrumentTypein interfaceOperationOrBuilder- Returns:
- The instrumentType.
-
getInstrumentTypeBytes
public com.google.protobuf.ByteString getInstrumentTypeBytes()Тип инструмента. Возможные значения: </br>**bond** — облигация; </br>**share** — акция; </br>**currency** — валюта; </br>**etf** — фонд; </br>**futures** — фьючерс.
string instrument_type = 10;- Specified by:
getInstrumentTypeBytesin interfaceOperationOrBuilder- Returns:
- The bytes for instrumentType.
-
hasDate
public boolean hasDate()Дата и время операции в формате часовом поясе UTC.
.google.protobuf.Timestamp date = 11;- Specified by:
hasDatein interfaceOperationOrBuilder- Returns:
- Whether the date field is set.
-
getDate
public com.google.protobuf.Timestamp getDate()Дата и время операции в формате часовом поясе UTC.
.google.protobuf.Timestamp date = 11;- Specified by:
getDatein interfaceOperationOrBuilder- Returns:
- The date.
-
getDateOrBuilder
public com.google.protobuf.TimestampOrBuilder getDateOrBuilder()Дата и время операции в формате часовом поясе UTC.
.google.protobuf.Timestamp date = 11;- Specified by:
getDateOrBuilderin interfaceOperationOrBuilder
-
getType
Текстовое описание типа операции.
string type = 12;- Specified by:
getTypein interfaceOperationOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Текстовое описание типа операции.
string type = 12;- Specified by:
getTypeBytesin interfaceOperationOrBuilder- Returns:
- The bytes for type.
-
getOperationTypeValue
public int getOperationTypeValue()Тип операции.
.tinkoff.public.invest.api.contract.v1.OperationType operation_type = 13;- Specified by:
getOperationTypeValuein interfaceOperationOrBuilder- Returns:
- The enum numeric value on the wire for operationType.
-
getOperationType
Тип операции.
.tinkoff.public.invest.api.contract.v1.OperationType operation_type = 13;- Specified by:
getOperationTypein interfaceOperationOrBuilder- Returns:
- The operationType.
-
getTradesList
Массив сделок.
repeated .tinkoff.public.invest.api.contract.v1.OperationTrade trades = 14;- Specified by:
getTradesListin interfaceOperationOrBuilder
-
getTradesOrBuilderList
Массив сделок.
repeated .tinkoff.public.invest.api.contract.v1.OperationTrade trades = 14;- Specified by:
getTradesOrBuilderListin interfaceOperationOrBuilder
-
getTradesCount
public int getTradesCount()Массив сделок.
repeated .tinkoff.public.invest.api.contract.v1.OperationTrade trades = 14;- Specified by:
getTradesCountin interfaceOperationOrBuilder
-
getTrades
Массив сделок.
repeated .tinkoff.public.invest.api.contract.v1.OperationTrade trades = 14;- Specified by:
getTradesin interfaceOperationOrBuilder
-
getTradesOrBuilder
Массив сделок.
repeated .tinkoff.public.invest.api.contract.v1.OperationTrade trades = 14;- Specified by:
getTradesOrBuilderin interfaceOperationOrBuilder
-
getAssetUid
Идентификатор актива
string asset_uid = 16;- Specified by:
getAssetUidin interfaceOperationOrBuilder- Returns:
- The assetUid.
-
getAssetUidBytes
public com.google.protobuf.ByteString getAssetUidBytes()Идентификатор актива
string asset_uid = 16;- Specified by:
getAssetUidBytesin interfaceOperationOrBuilder- Returns:
- The bytes for assetUid.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Operation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Operation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Operation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Operation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Operation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-