Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ru.tinkoff.piapi.contract.v1.OrderTrades Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: orders.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Информация об исполнении торгового поручения.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.OrderTrades}
*/
public final class OrderTrades extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.OrderTrades)
OrderTradesOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrderTrades.newBuilder() to construct.
private OrderTrades(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OrderTrades() {
orderId_ = "";
direction_ = 0;
figi_ = "";
trades_ = java.util.Collections.emptyList();
accountId_ = "";
instrumentUid_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OrderTrades();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderTrades_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderTrades_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.OrderTrades.class, ru.tinkoff.piapi.contract.v1.OrderTrades.Builder.class);
}
public static final int ORDER_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object orderId_ = "";
/**
*
*Идентификатор торгового поручения.
*
*
* string order_id = 1;
* @return The orderId.
*/
@java.lang.Override
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
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();
orderId_ = s;
return s;
}
}
/**
*
*Идентификатор торгового поручения.
*
*
* string order_id = 1;
* @return The bytes for orderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createdAt_;
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
public static final int DIRECTION_FIELD_NUMBER = 3;
private int direction_ = 0;
/**
*
*Направление сделки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 3;
* @return The enum numeric value on the wire for direction.
*/
@java.lang.Override public int getDirectionValue() {
return direction_;
}
/**
*
*Направление сделки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 3;
* @return The direction.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.OrderDirection getDirection() {
ru.tinkoff.piapi.contract.v1.OrderDirection result = ru.tinkoff.piapi.contract.v1.OrderDirection.forNumber(direction_);
return result == null ? ru.tinkoff.piapi.contract.v1.OrderDirection.UNRECOGNIZED : result;
}
public static final int FIGI_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object figi_ = "";
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 4;
* @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 = 4;
* @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 TRADES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List trades_;
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
@java.lang.Override
public java.util.List getTradesList() {
return trades_;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.OrderTradeOrBuilder>
getTradesOrBuilderList() {
return trades_;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
@java.lang.Override
public int getTradesCount() {
return trades_.size();
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderTrade getTrades(int index) {
return trades_.get(index);
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderTradeOrBuilder getTradesOrBuilder(
int index) {
return trades_.get(index);
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object accountId_ = "";
/**
*
*Идентификатор счёта.
*
*
* string account_id = 6;
* @return The accountId.
*/
@java.lang.Override
public java.lang.String getAccountId() {
java.lang.Object ref = accountId_;
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();
accountId_ = s;
return s;
}
}
/**
*
*Идентификатор счёта.
*
*
* string account_id = 6;
* @return The bytes for accountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountIdBytes() {
java.lang.Object ref = accountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTRUMENT_UID_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object instrumentUid_ = "";
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 7;
* @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;
}
}
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 7;
* @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(orderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_);
}
if (createdAt_ != null) {
output.writeMessage(2, getCreatedAt());
}
if (direction_ != ru.tinkoff.piapi.contract.v1.OrderDirection.ORDER_DIRECTION_UNSPECIFIED.getNumber()) {
output.writeEnum(3, direction_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, figi_);
}
for (int i = 0; i < trades_.size(); i++) {
output.writeMessage(5, trades_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, 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(orderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCreatedAt());
}
if (direction_ != ru.tinkoff.piapi.contract.v1.OrderDirection.ORDER_DIRECTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, direction_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(figi_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, figi_);
}
for (int i = 0; i < trades_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, trades_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentUid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.OrderTrades)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.OrderTrades other = (ru.tinkoff.piapi.contract.v1.OrderTrades) obj;
if (!getOrderId()
.equals(other.getOrderId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (direction_ != other.direction_) return false;
if (!getFigi()
.equals(other.getFigi())) return false;
if (!getTradesList()
.equals(other.getTradesList())) return false;
if (!getAccountId()
.equals(other.getAccountId())) 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) + ORDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOrderId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
hash = (37 * hash) + DIRECTION_FIELD_NUMBER;
hash = (53 * hash) + direction_;
hash = (37 * hash) + FIGI_FIELD_NUMBER;
hash = (53 * hash) + getFigi().hashCode();
if (getTradesCount() > 0) {
hash = (37 * hash) + TRADES_FIELD_NUMBER;
hash = (53 * hash) + getTradesList().hashCode();
}
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAccountId().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.OrderTrades parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.OrderTrades 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.OrderTrades parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.OrderTrades 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.OrderTrades parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.OrderTrades 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.OrderTrades parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.OrderTrades 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.OrderTrades parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.OrderTrades 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.OrderTrades 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.OrderTrades 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.OrderTrades 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.OrderTrades}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.OrderTrades)
ru.tinkoff.piapi.contract.v1.OrderTradesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderTrades_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderTrades_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.OrderTrades.class, ru.tinkoff.piapi.contract.v1.OrderTrades.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.OrderTrades.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
orderId_ = "";
createdAt_ = null;
if (createdAtBuilder_ != null) {
createdAtBuilder_.dispose();
createdAtBuilder_ = null;
}
direction_ = 0;
figi_ = "";
if (tradesBuilder_ == null) {
trades_ = java.util.Collections.emptyList();
} else {
trades_ = null;
tradesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
accountId_ = "";
instrumentUid_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderTrades_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderTrades getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.OrderTrades.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderTrades build() {
ru.tinkoff.piapi.contract.v1.OrderTrades result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderTrades buildPartial() {
ru.tinkoff.piapi.contract.v1.OrderTrades result = new ru.tinkoff.piapi.contract.v1.OrderTrades(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.OrderTrades result) {
if (tradesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
trades_ = java.util.Collections.unmodifiableList(trades_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.trades_ = trades_;
} else {
result.trades_ = tradesBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.OrderTrades result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.orderId_ = orderId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.createdAt_ = createdAtBuilder_ == null
? createdAt_
: createdAtBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.direction_ = direction_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.figi_ = figi_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.accountId_ = accountId_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.instrumentUid_ = instrumentUid_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.OrderTrades) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.OrderTrades)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.OrderTrades other) {
if (other == ru.tinkoff.piapi.contract.v1.OrderTrades.getDefaultInstance()) return this;
if (!other.getOrderId().isEmpty()) {
orderId_ = other.orderId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.direction_ != 0) {
setDirectionValue(other.getDirectionValue());
}
if (!other.getFigi().isEmpty()) {
figi_ = other.figi_;
bitField0_ |= 0x00000008;
onChanged();
}
if (tradesBuilder_ == null) {
if (!other.trades_.isEmpty()) {
if (trades_.isEmpty()) {
trades_ = other.trades_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureTradesIsMutable();
trades_.addAll(other.trades_);
}
onChanged();
}
} else {
if (!other.trades_.isEmpty()) {
if (tradesBuilder_.isEmpty()) {
tradesBuilder_.dispose();
tradesBuilder_ = null;
trades_ = other.trades_;
bitField0_ = (bitField0_ & ~0x00000010);
tradesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTradesFieldBuilder() : null;
} else {
tradesBuilder_.addAllMessages(other.trades_);
}
}
}
if (!other.getAccountId().isEmpty()) {
accountId_ = other.accountId_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getInstrumentUid().isEmpty()) {
instrumentUid_ = other.instrumentUid_;
bitField0_ |= 0x00000040;
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: {
orderId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getCreatedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
direction_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
figi_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
ru.tinkoff.piapi.contract.v1.OrderTrade m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.OrderTrade.parser(),
extensionRegistry);
if (tradesBuilder_ == null) {
ensureTradesIsMutable();
trades_.add(m);
} else {
tradesBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
accountId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
instrumentUid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
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 orderId_ = "";
/**
*
*Идентификатор торгового поручения.
*
*
* string order_id = 1;
* @return The orderId.
*/
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Идентификатор торгового поручения.
*
*
* string order_id = 1;
* @return The bytes for orderId.
*/
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Идентификатор торгового поручения.
*
*
* string order_id = 1;
* @param value The orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
orderId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Идентификатор торгового поручения.
*
*
* string order_id = 1;
* @return This builder for chaining.
*/
public Builder clearOrderId() {
orderId_ = getDefaultInstance().getOrderId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Идентификатор торгового поручения.
*
*
* string order_id = 1;
* @param value The bytes for orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
orderId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
} else {
createdAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
createdAt_ != null &&
createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreatedAtBuilder().mergeFrom(value);
} else {
createdAt_ = value;
}
} else {
createdAtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public Builder clearCreatedAt() {
bitField0_ = (bitField0_ & ~0x00000002);
createdAt_ = null;
if (createdAtBuilder_ != null) {
createdAtBuilder_.dispose();
createdAtBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
*Дата и время создания сообщения в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp created_at = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private int direction_ = 0;
/**
*
*Направление сделки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 3;
* @return The enum numeric value on the wire for direction.
*/
@java.lang.Override public int getDirectionValue() {
return direction_;
}
/**
*
*Направление сделки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Направление сделки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 3;
* @return The direction.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderDirection getDirection() {
ru.tinkoff.piapi.contract.v1.OrderDirection result = ru.tinkoff.piapi.contract.v1.OrderDirection.forNumber(direction_);
return result == null ? ru.tinkoff.piapi.contract.v1.OrderDirection.UNRECOGNIZED : result;
}
/**
*
*Направление сделки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 3;
* @param value The direction to set.
* @return This builder for chaining.
*/
public Builder setDirection(ru.tinkoff.piapi.contract.v1.OrderDirection value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
direction_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Направление сделки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 3;
* @return This builder for chaining.
*/
public Builder clearDirection() {
bitField0_ = (bitField0_ & ~0x00000004);
direction_ = 0;
onChanged();
return this;
}
private java.lang.Object figi_ = "";
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 4;
* @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 = 4;
* @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 = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 4;
* @return This builder for chaining.
*/
public Builder clearFigi() {
figi_ = getDefaultInstance().getFigi();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
private java.util.List trades_ =
java.util.Collections.emptyList();
private void ensureTradesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
trades_ = new java.util.ArrayList(trades_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OrderTrade, ru.tinkoff.piapi.contract.v1.OrderTrade.Builder, ru.tinkoff.piapi.contract.v1.OrderTradeOrBuilder> tradesBuilder_;
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public java.util.List getTradesList() {
if (tradesBuilder_ == null) {
return java.util.Collections.unmodifiableList(trades_);
} else {
return tradesBuilder_.getMessageList();
}
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public int getTradesCount() {
if (tradesBuilder_ == null) {
return trades_.size();
} else {
return tradesBuilder_.getCount();
}
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public ru.tinkoff.piapi.contract.v1.OrderTrade getTrades(int index) {
if (tradesBuilder_ == null) {
return trades_.get(index);
} else {
return tradesBuilder_.getMessage(index);
}
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder setTrades(
int index, ru.tinkoff.piapi.contract.v1.OrderTrade value) {
if (tradesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTradesIsMutable();
trades_.set(index, value);
onChanged();
} else {
tradesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder setTrades(
int index, ru.tinkoff.piapi.contract.v1.OrderTrade.Builder builderForValue) {
if (tradesBuilder_ == null) {
ensureTradesIsMutable();
trades_.set(index, builderForValue.build());
onChanged();
} else {
tradesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder addTrades(ru.tinkoff.piapi.contract.v1.OrderTrade value) {
if (tradesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTradesIsMutable();
trades_.add(value);
onChanged();
} else {
tradesBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder addTrades(
int index, ru.tinkoff.piapi.contract.v1.OrderTrade value) {
if (tradesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTradesIsMutable();
trades_.add(index, value);
onChanged();
} else {
tradesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder addTrades(
ru.tinkoff.piapi.contract.v1.OrderTrade.Builder builderForValue) {
if (tradesBuilder_ == null) {
ensureTradesIsMutable();
trades_.add(builderForValue.build());
onChanged();
} else {
tradesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder addTrades(
int index, ru.tinkoff.piapi.contract.v1.OrderTrade.Builder builderForValue) {
if (tradesBuilder_ == null) {
ensureTradesIsMutable();
trades_.add(index, builderForValue.build());
onChanged();
} else {
tradesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder addAllTrades(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.OrderTrade> values) {
if (tradesBuilder_ == null) {
ensureTradesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, trades_);
onChanged();
} else {
tradesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder clearTrades() {
if (tradesBuilder_ == null) {
trades_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
tradesBuilder_.clear();
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public Builder removeTrades(int index) {
if (tradesBuilder_ == null) {
ensureTradesIsMutable();
trades_.remove(index);
onChanged();
} else {
tradesBuilder_.remove(index);
}
return this;
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public ru.tinkoff.piapi.contract.v1.OrderTrade.Builder getTradesBuilder(
int index) {
return getTradesFieldBuilder().getBuilder(index);
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public ru.tinkoff.piapi.contract.v1.OrderTradeOrBuilder getTradesOrBuilder(
int index) {
if (tradesBuilder_ == null) {
return trades_.get(index); } else {
return tradesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.OrderTradeOrBuilder>
getTradesOrBuilderList() {
if (tradesBuilder_ != null) {
return tradesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(trades_);
}
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public ru.tinkoff.piapi.contract.v1.OrderTrade.Builder addTradesBuilder() {
return getTradesFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.OrderTrade.getDefaultInstance());
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public ru.tinkoff.piapi.contract.v1.OrderTrade.Builder addTradesBuilder(
int index) {
return getTradesFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.OrderTrade.getDefaultInstance());
}
/**
*
*Массив сделок.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderTrade trades = 5;
*/
public java.util.List
getTradesBuilderList() {
return getTradesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OrderTrade, ru.tinkoff.piapi.contract.v1.OrderTrade.Builder, ru.tinkoff.piapi.contract.v1.OrderTradeOrBuilder>
getTradesFieldBuilder() {
if (tradesBuilder_ == null) {
tradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OrderTrade, ru.tinkoff.piapi.contract.v1.OrderTrade.Builder, ru.tinkoff.piapi.contract.v1.OrderTradeOrBuilder>(
trades_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
trades_ = null;
}
return tradesBuilder_;
}
private java.lang.Object accountId_ = "";
/**
*
*Идентификатор счёта.
*
*
* string account_id = 6;
* @return The accountId.
*/
public java.lang.String getAccountId() {
java.lang.Object ref = accountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Идентификатор счёта.
*
*
* string account_id = 6;
* @return The bytes for accountId.
*/
public com.google.protobuf.ByteString
getAccountIdBytes() {
java.lang.Object ref = accountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Идентификатор счёта.
*
*
* string account_id = 6;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
accountId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Идентификатор счёта.
*
*
* string account_id = 6;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = getDefaultInstance().getAccountId();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*Идентификатор счёта.
*
*
* string account_id = 6;
* @param value The bytes for accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
accountId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object instrumentUid_ = "";
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 7;
* @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;
}
}
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 7;
* @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;
}
}
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 7;
* @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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 7;
* @return This builder for chaining.
*/
public Builder clearInstrumentUid() {
instrumentUid_ = getDefaultInstance().getInstrumentUid();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 7;
* @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_ |= 0x00000040;
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.OrderTrades)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.OrderTrades)
private static final ru.tinkoff.piapi.contract.v1.OrderTrades DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.OrderTrades();
}
public static ru.tinkoff.piapi.contract.v1.OrderTrades getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrderTrades 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.OrderTrades getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}