implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.OrderState)
ru.tinkoff.piapi.contract.v1.OrderStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_OrderState_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_OrderState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.OrderState.class, ru.tinkoff.piapi.contract.v1.OrderState.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.OrderState.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
orderId_ = "";
executionReportStatus_ = 0;
lotsRequested_ = 0L;
lotsExecuted_ = 0L;
initialOrderPrice_ = null;
if (initialOrderPriceBuilder_ != null) {
initialOrderPriceBuilder_.dispose();
initialOrderPriceBuilder_ = null;
}
executedOrderPrice_ = null;
if (executedOrderPriceBuilder_ != null) {
executedOrderPriceBuilder_.dispose();
executedOrderPriceBuilder_ = null;
}
totalOrderAmount_ = null;
if (totalOrderAmountBuilder_ != null) {
totalOrderAmountBuilder_.dispose();
totalOrderAmountBuilder_ = null;
}
averagePositionPrice_ = null;
if (averagePositionPriceBuilder_ != null) {
averagePositionPriceBuilder_.dispose();
averagePositionPriceBuilder_ = null;
}
initialCommission_ = null;
if (initialCommissionBuilder_ != null) {
initialCommissionBuilder_.dispose();
initialCommissionBuilder_ = null;
}
executedCommission_ = null;
if (executedCommissionBuilder_ != null) {
executedCommissionBuilder_.dispose();
executedCommissionBuilder_ = null;
}
figi_ = "";
direction_ = 0;
initialSecurityPrice_ = null;
if (initialSecurityPriceBuilder_ != null) {
initialSecurityPriceBuilder_.dispose();
initialSecurityPriceBuilder_ = null;
}
if (stagesBuilder_ == null) {
stages_ = java.util.Collections.emptyList();
} else {
stages_ = null;
stagesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
serviceCommission_ = null;
if (serviceCommissionBuilder_ != null) {
serviceCommissionBuilder_.dispose();
serviceCommissionBuilder_ = null;
}
currency_ = "";
orderType_ = 0;
orderDate_ = null;
if (orderDateBuilder_ != null) {
orderDateBuilder_.dispose();
orderDateBuilder_ = null;
}
instrumentUid_ = "";
orderRequestId_ = "";
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_OrderState_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderState getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.OrderState.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderState build() {
ru.tinkoff.piapi.contract.v1.OrderState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderState buildPartial() {
ru.tinkoff.piapi.contract.v1.OrderState result = new ru.tinkoff.piapi.contract.v1.OrderState(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.OrderState result) {
if (stagesBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)) {
stages_ = java.util.Collections.unmodifiableList(stages_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.stages_ = stages_;
} else {
result.stages_ = stagesBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.OrderState result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.orderId_ = orderId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.executionReportStatus_ = executionReportStatus_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lotsRequested_ = lotsRequested_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lotsExecuted_ = lotsExecuted_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.initialOrderPrice_ = initialOrderPriceBuilder_ == null
? initialOrderPrice_
: initialOrderPriceBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.executedOrderPrice_ = executedOrderPriceBuilder_ == null
? executedOrderPrice_
: executedOrderPriceBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.totalOrderAmount_ = totalOrderAmountBuilder_ == null
? totalOrderAmount_
: totalOrderAmountBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.averagePositionPrice_ = averagePositionPriceBuilder_ == null
? averagePositionPrice_
: averagePositionPriceBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.initialCommission_ = initialCommissionBuilder_ == null
? initialCommission_
: initialCommissionBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.executedCommission_ = executedCommissionBuilder_ == null
? executedCommission_
: executedCommissionBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.figi_ = figi_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.direction_ = direction_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.initialSecurityPrice_ = initialSecurityPriceBuilder_ == null
? initialSecurityPrice_
: initialSecurityPriceBuilder_.build();
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.serviceCommission_ = serviceCommissionBuilder_ == null
? serviceCommission_
: serviceCommissionBuilder_.build();
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.currency_ = currency_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.orderType_ = orderType_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.orderDate_ = orderDateBuilder_ == null
? orderDate_
: orderDateBuilder_.build();
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.instrumentUid_ = instrumentUid_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.orderRequestId_ = orderRequestId_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.OrderState) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.OrderState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.OrderState other) {
if (other == ru.tinkoff.piapi.contract.v1.OrderState.getDefaultInstance()) return this;
if (!other.getOrderId().isEmpty()) {
orderId_ = other.orderId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.executionReportStatus_ != 0) {
setExecutionReportStatusValue(other.getExecutionReportStatusValue());
}
if (other.getLotsRequested() != 0L) {
setLotsRequested(other.getLotsRequested());
}
if (other.getLotsExecuted() != 0L) {
setLotsExecuted(other.getLotsExecuted());
}
if (other.hasInitialOrderPrice()) {
mergeInitialOrderPrice(other.getInitialOrderPrice());
}
if (other.hasExecutedOrderPrice()) {
mergeExecutedOrderPrice(other.getExecutedOrderPrice());
}
if (other.hasTotalOrderAmount()) {
mergeTotalOrderAmount(other.getTotalOrderAmount());
}
if (other.hasAveragePositionPrice()) {
mergeAveragePositionPrice(other.getAveragePositionPrice());
}
if (other.hasInitialCommission()) {
mergeInitialCommission(other.getInitialCommission());
}
if (other.hasExecutedCommission()) {
mergeExecutedCommission(other.getExecutedCommission());
}
if (!other.getFigi().isEmpty()) {
figi_ = other.figi_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.direction_ != 0) {
setDirectionValue(other.getDirectionValue());
}
if (other.hasInitialSecurityPrice()) {
mergeInitialSecurityPrice(other.getInitialSecurityPrice());
}
if (stagesBuilder_ == null) {
if (!other.stages_.isEmpty()) {
if (stages_.isEmpty()) {
stages_ = other.stages_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureStagesIsMutable();
stages_.addAll(other.stages_);
}
onChanged();
}
} else {
if (!other.stages_.isEmpty()) {
if (stagesBuilder_.isEmpty()) {
stagesBuilder_.dispose();
stagesBuilder_ = null;
stages_ = other.stages_;
bitField0_ = (bitField0_ & ~0x00002000);
stagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStagesFieldBuilder() : null;
} else {
stagesBuilder_.addAllMessages(other.stages_);
}
}
}
if (other.hasServiceCommission()) {
mergeServiceCommission(other.getServiceCommission());
}
if (!other.getCurrency().isEmpty()) {
currency_ = other.currency_;
bitField0_ |= 0x00008000;
onChanged();
}
if (other.orderType_ != 0) {
setOrderTypeValue(other.getOrderTypeValue());
}
if (other.hasOrderDate()) {
mergeOrderDate(other.getOrderDate());
}
if (!other.getInstrumentUid().isEmpty()) {
instrumentUid_ = other.instrumentUid_;
bitField0_ |= 0x00040000;
onChanged();
}
if (!other.getOrderRequestId().isEmpty()) {
orderRequestId_ = other.orderRequestId_;
bitField0_ |= 0x00080000;
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 16: {
executionReportStatus_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lotsRequested_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
lotsExecuted_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getInitialOrderPriceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getExecutedOrderPriceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getTotalOrderAmountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getAveragePositionPriceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
input.readMessage(
getInitialCommissionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
input.readMessage(
getExecutedCommissionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
figi_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 96: {
direction_ = input.readEnum();
bitField0_ |= 0x00000800;
break;
} // case 96
case 106: {
input.readMessage(
getInitialSecurityPriceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 106
case 114: {
ru.tinkoff.piapi.contract.v1.OrderStage m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.OrderStage.parser(),
extensionRegistry);
if (stagesBuilder_ == null) {
ensureStagesIsMutable();
stages_.add(m);
} else {
stagesBuilder_.addMessage(m);
}
break;
} // case 114
case 122: {
input.readMessage(
getServiceCommissionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00004000;
break;
} // case 122
case 130: {
currency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 130
case 136: {
orderType_ = input.readEnum();
bitField0_ |= 0x00010000;
break;
} // case 136
case 146: {
input.readMessage(
getOrderDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00020000;
break;
} // case 146
case 154: {
instrumentUid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00040000;
break;
} // case 154
case 162: {
orderRequestId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00080000;
break;
} // case 162
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 int executionReportStatus_ = 0;
/**
*
*Текущий статус заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2;
* @return The enum numeric value on the wire for executionReportStatus.
*/
@java.lang.Override public int getExecutionReportStatusValue() {
return executionReportStatus_;
}
/**
*
*Текущий статус заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2;
* @param value The enum numeric value on the wire for executionReportStatus to set.
* @return This builder for chaining.
*/
public Builder setExecutionReportStatusValue(int value) {
executionReportStatus_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Текущий статус заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2;
* @return The executionReportStatus.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus getExecutionReportStatus() {
ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus result = ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.forNumber(executionReportStatus_);
return result == null ? ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus.UNRECOGNIZED : result;
}
/**
*
*Текущий статус заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2;
* @param value The executionReportStatus to set.
* @return This builder for chaining.
*/
public Builder setExecutionReportStatus(ru.tinkoff.piapi.contract.v1.OrderExecutionReportStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
executionReportStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Текущий статус заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2;
* @return This builder for chaining.
*/
public Builder clearExecutionReportStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
executionReportStatus_ = 0;
onChanged();
return this;
}
private long lotsRequested_ ;
/**
*
*Запрошено лотов.
*
*
* int64 lots_requested = 3;
* @return The lotsRequested.
*/
@java.lang.Override
public long getLotsRequested() {
return lotsRequested_;
}
/**
*
*Запрошено лотов.
*
*
* int64 lots_requested = 3;
* @param value The lotsRequested to set.
* @return This builder for chaining.
*/
public Builder setLotsRequested(long value) {
lotsRequested_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Запрошено лотов.
*
*
* int64 lots_requested = 3;
* @return This builder for chaining.
*/
public Builder clearLotsRequested() {
bitField0_ = (bitField0_ & ~0x00000004);
lotsRequested_ = 0L;
onChanged();
return this;
}
private long lotsExecuted_ ;
/**
*
*Исполнено лотов.
*
*
* int64 lots_executed = 4;
* @return The lotsExecuted.
*/
@java.lang.Override
public long getLotsExecuted() {
return lotsExecuted_;
}
/**
*
*Исполнено лотов.
*
*
* int64 lots_executed = 4;
* @param value The lotsExecuted to set.
* @return This builder for chaining.
*/
public Builder setLotsExecuted(long value) {
lotsExecuted_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Исполнено лотов.
*
*
* int64 lots_executed = 4;
* @return This builder for chaining.
*/
public Builder clearLotsExecuted() {
bitField0_ = (bitField0_ & ~0x00000008);
lotsExecuted_ = 0L;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue initialOrderPrice_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialOrderPriceBuilder_;
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
* @return Whether the initialOrderPrice field is set.
*/
public boolean hasInitialOrderPrice() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
* @return The initialOrderPrice.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialOrderPrice() {
if (initialOrderPriceBuilder_ == null) {
return initialOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialOrderPrice_;
} else {
return initialOrderPriceBuilder_.getMessage();
}
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
*/
public Builder setInitialOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialOrderPriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialOrderPrice_ = value;
} else {
initialOrderPriceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
*/
public Builder setInitialOrderPrice(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (initialOrderPriceBuilder_ == null) {
initialOrderPrice_ = builderForValue.build();
} else {
initialOrderPriceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
*/
public Builder mergeInitialOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialOrderPriceBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
initialOrderPrice_ != null &&
initialOrderPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getInitialOrderPriceBuilder().mergeFrom(value);
} else {
initialOrderPrice_ = value;
}
} else {
initialOrderPriceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
*/
public Builder clearInitialOrderPrice() {
bitField0_ = (bitField0_ & ~0x00000010);
initialOrderPrice_ = null;
if (initialOrderPriceBuilder_ != null) {
initialOrderPriceBuilder_.dispose();
initialOrderPriceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialOrderPriceBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getInitialOrderPriceFieldBuilder().getBuilder();
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialOrderPriceOrBuilder() {
if (initialOrderPriceBuilder_ != null) {
return initialOrderPriceBuilder_.getMessageOrBuilder();
} else {
return initialOrderPrice_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialOrderPrice_;
}
}
/**
*
*Начальная цена заявки. Произведение количества запрошенных лотов на цену.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getInitialOrderPriceFieldBuilder() {
if (initialOrderPriceBuilder_ == null) {
initialOrderPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getInitialOrderPrice(),
getParentForChildren(),
isClean());
initialOrderPrice_ = null;
}
return initialOrderPriceBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue executedOrderPrice_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> executedOrderPriceBuilder_;
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
* @return Whether the executedOrderPrice field is set.
*/
public boolean hasExecutedOrderPrice() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
* @return The executedOrderPrice.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getExecutedOrderPrice() {
if (executedOrderPriceBuilder_ == null) {
return executedOrderPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedOrderPrice_;
} else {
return executedOrderPriceBuilder_.getMessage();
}
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
*/
public Builder setExecutedOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (executedOrderPriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executedOrderPrice_ = value;
} else {
executedOrderPriceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
*/
public Builder setExecutedOrderPrice(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (executedOrderPriceBuilder_ == null) {
executedOrderPrice_ = builderForValue.build();
} else {
executedOrderPriceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
*/
public Builder mergeExecutedOrderPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (executedOrderPriceBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
executedOrderPrice_ != null &&
executedOrderPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getExecutedOrderPriceBuilder().mergeFrom(value);
} else {
executedOrderPrice_ = value;
}
} else {
executedOrderPriceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
*/
public Builder clearExecutedOrderPrice() {
bitField0_ = (bitField0_ & ~0x00000020);
executedOrderPrice_ = null;
if (executedOrderPriceBuilder_ != null) {
executedOrderPriceBuilder_.dispose();
executedOrderPriceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getExecutedOrderPriceBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getExecutedOrderPriceFieldBuilder().getBuilder();
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getExecutedOrderPriceOrBuilder() {
if (executedOrderPriceBuilder_ != null) {
return executedOrderPriceBuilder_.getMessageOrBuilder();
} else {
return executedOrderPrice_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedOrderPrice_;
}
}
/**
*
*Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getExecutedOrderPriceFieldBuilder() {
if (executedOrderPriceBuilder_ == null) {
executedOrderPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getExecutedOrderPrice(),
getParentForChildren(),
isClean());
executedOrderPrice_ = null;
}
return executedOrderPriceBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue totalOrderAmount_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> totalOrderAmountBuilder_;
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
* @return Whether the totalOrderAmount field is set.
*/
public boolean hasTotalOrderAmount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
* @return The totalOrderAmount.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getTotalOrderAmount() {
if (totalOrderAmountBuilder_ == null) {
return totalOrderAmount_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalOrderAmount_;
} else {
return totalOrderAmountBuilder_.getMessage();
}
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
*/
public Builder setTotalOrderAmount(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (totalOrderAmountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
totalOrderAmount_ = value;
} else {
totalOrderAmountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
*/
public Builder setTotalOrderAmount(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (totalOrderAmountBuilder_ == null) {
totalOrderAmount_ = builderForValue.build();
} else {
totalOrderAmountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
*/
public Builder mergeTotalOrderAmount(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (totalOrderAmountBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
totalOrderAmount_ != null &&
totalOrderAmount_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getTotalOrderAmountBuilder().mergeFrom(value);
} else {
totalOrderAmount_ = value;
}
} else {
totalOrderAmountBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
*/
public Builder clearTotalOrderAmount() {
bitField0_ = (bitField0_ & ~0x00000040);
totalOrderAmount_ = null;
if (totalOrderAmountBuilder_ != null) {
totalOrderAmountBuilder_.dispose();
totalOrderAmountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getTotalOrderAmountBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getTotalOrderAmountFieldBuilder().getBuilder();
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getTotalOrderAmountOrBuilder() {
if (totalOrderAmountBuilder_ != null) {
return totalOrderAmountBuilder_.getMessageOrBuilder();
} else {
return totalOrderAmount_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : totalOrderAmount_;
}
}
/**
*
*Итоговая стоимость заявки, включающая все комиссии.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getTotalOrderAmountFieldBuilder() {
if (totalOrderAmountBuilder_ == null) {
totalOrderAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getTotalOrderAmount(),
getParentForChildren(),
isClean());
totalOrderAmount_ = null;
}
return totalOrderAmountBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue averagePositionPrice_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> averagePositionPriceBuilder_;
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
* @return Whether the averagePositionPrice field is set.
*/
public boolean hasAveragePositionPrice() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
* @return The averagePositionPrice.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getAveragePositionPrice() {
if (averagePositionPriceBuilder_ == null) {
return averagePositionPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPrice_;
} else {
return averagePositionPriceBuilder_.getMessage();
}
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
*/
public Builder setAveragePositionPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (averagePositionPriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
averagePositionPrice_ = value;
} else {
averagePositionPriceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
*/
public Builder setAveragePositionPrice(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (averagePositionPriceBuilder_ == null) {
averagePositionPrice_ = builderForValue.build();
} else {
averagePositionPriceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
*/
public Builder mergeAveragePositionPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (averagePositionPriceBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
averagePositionPrice_ != null &&
averagePositionPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getAveragePositionPriceBuilder().mergeFrom(value);
} else {
averagePositionPrice_ = value;
}
} else {
averagePositionPriceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
*/
public Builder clearAveragePositionPrice() {
bitField0_ = (bitField0_ & ~0x00000080);
averagePositionPrice_ = null;
if (averagePositionPriceBuilder_ != null) {
averagePositionPriceBuilder_.dispose();
averagePositionPriceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getAveragePositionPriceBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getAveragePositionPriceFieldBuilder().getBuilder();
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getAveragePositionPriceOrBuilder() {
if (averagePositionPriceBuilder_ != null) {
return averagePositionPriceBuilder_.getMessageOrBuilder();
} else {
return averagePositionPrice_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : averagePositionPrice_;
}
}
/**
*
*Средняя цена позиции по сделке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getAveragePositionPriceFieldBuilder() {
if (averagePositionPriceBuilder_ == null) {
averagePositionPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getAveragePositionPrice(),
getParentForChildren(),
isClean());
averagePositionPrice_ = null;
}
return averagePositionPriceBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue initialCommission_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialCommissionBuilder_;
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
* @return Whether the initialCommission field is set.
*/
public boolean hasInitialCommission() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
* @return The initialCommission.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialCommission() {
if (initialCommissionBuilder_ == null) {
return initialCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialCommission_;
} else {
return initialCommissionBuilder_.getMessage();
}
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
*/
public Builder setInitialCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialCommissionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialCommission_ = value;
} else {
initialCommissionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
*/
public Builder setInitialCommission(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (initialCommissionBuilder_ == null) {
initialCommission_ = builderForValue.build();
} else {
initialCommissionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
*/
public Builder mergeInitialCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialCommissionBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
initialCommission_ != null &&
initialCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getInitialCommissionBuilder().mergeFrom(value);
} else {
initialCommission_ = value;
}
} else {
initialCommissionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
*/
public Builder clearInitialCommission() {
bitField0_ = (bitField0_ & ~0x00000100);
initialCommission_ = null;
if (initialCommissionBuilder_ != null) {
initialCommissionBuilder_.dispose();
initialCommissionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialCommissionBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getInitialCommissionFieldBuilder().getBuilder();
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialCommissionOrBuilder() {
if (initialCommissionBuilder_ != null) {
return initialCommissionBuilder_.getMessageOrBuilder();
} else {
return initialCommission_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialCommission_;
}
}
/**
*
*Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getInitialCommissionFieldBuilder() {
if (initialCommissionBuilder_ == null) {
initialCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getInitialCommission(),
getParentForChildren(),
isClean());
initialCommission_ = null;
}
return initialCommissionBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue executedCommission_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> executedCommissionBuilder_;
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
* @return Whether the executedCommission field is set.
*/
public boolean hasExecutedCommission() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
* @return The executedCommission.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getExecutedCommission() {
if (executedCommissionBuilder_ == null) {
return executedCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedCommission_;
} else {
return executedCommissionBuilder_.getMessage();
}
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
*/
public Builder setExecutedCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (executedCommissionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executedCommission_ = value;
} else {
executedCommissionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
*/
public Builder setExecutedCommission(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (executedCommissionBuilder_ == null) {
executedCommission_ = builderForValue.build();
} else {
executedCommissionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
*/
public Builder mergeExecutedCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (executedCommissionBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
executedCommission_ != null &&
executedCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getExecutedCommissionBuilder().mergeFrom(value);
} else {
executedCommission_ = value;
}
} else {
executedCommissionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
*/
public Builder clearExecutedCommission() {
bitField0_ = (bitField0_ & ~0x00000200);
executedCommission_ = null;
if (executedCommissionBuilder_ != null) {
executedCommissionBuilder_.dispose();
executedCommissionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getExecutedCommissionBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getExecutedCommissionFieldBuilder().getBuilder();
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getExecutedCommissionOrBuilder() {
if (executedCommissionBuilder_ != null) {
return executedCommissionBuilder_.getMessageOrBuilder();
} else {
return executedCommission_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : executedCommission_;
}
}
/**
*
*Фактическая комиссия по итогам исполнения заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 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>
getExecutedCommissionFieldBuilder() {
if (executedCommissionBuilder_ == null) {
executedCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getExecutedCommission(),
getParentForChildren(),
isClean());
executedCommission_ = null;
}
return executedCommissionBuilder_;
}
private java.lang.Object figi_ = "";
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 11;
* @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 = 11;
* @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 = 11;
* @param value The figi to set.
* @return This builder for chaining.
*/
public Builder setFigi(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
figi_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 11;
* @return This builder for chaining.
*/
public Builder clearFigi() {
figi_ = getDefaultInstance().getFigi();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*Figi-идентификатор инструмента.
*
*
* string figi = 11;
* @param value The bytes for figi to set.
* @return This builder for chaining.
*/
public Builder setFigiBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
figi_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private int direction_ = 0;
/**
*
*Направление заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12;
* @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 = 12;
* @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_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Направление заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12;
* @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 = 12;
* @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_ |= 0x00000800;
direction_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Направление заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12;
* @return This builder for chaining.
*/
public Builder clearDirection() {
bitField0_ = (bitField0_ & ~0x00000800);
direction_ = 0;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue initialSecurityPrice_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialSecurityPriceBuilder_;
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
* @return Whether the initialSecurityPrice field is set.
*/
public boolean hasInitialSecurityPrice() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
* @return The initialSecurityPrice.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialSecurityPrice() {
if (initialSecurityPriceBuilder_ == null) {
return initialSecurityPrice_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialSecurityPrice_;
} else {
return initialSecurityPriceBuilder_.getMessage();
}
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
*/
public Builder setInitialSecurityPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialSecurityPriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialSecurityPrice_ = value;
} else {
initialSecurityPriceBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
*/
public Builder setInitialSecurityPrice(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (initialSecurityPriceBuilder_ == null) {
initialSecurityPrice_ = builderForValue.build();
} else {
initialSecurityPriceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
*/
public Builder mergeInitialSecurityPrice(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialSecurityPriceBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
initialSecurityPrice_ != null &&
initialSecurityPrice_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getInitialSecurityPriceBuilder().mergeFrom(value);
} else {
initialSecurityPrice_ = value;
}
} else {
initialSecurityPriceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
*/
public Builder clearInitialSecurityPrice() {
bitField0_ = (bitField0_ & ~0x00001000);
initialSecurityPrice_ = null;
if (initialSecurityPriceBuilder_ != null) {
initialSecurityPriceBuilder_.dispose();
initialSecurityPriceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialSecurityPriceBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getInitialSecurityPriceFieldBuilder().getBuilder();
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialSecurityPriceOrBuilder() {
if (initialSecurityPriceBuilder_ != null) {
return initialSecurityPriceBuilder_.getMessageOrBuilder();
} else {
return initialSecurityPrice_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialSecurityPrice_;
}
}
/**
*
*Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getInitialSecurityPriceFieldBuilder() {
if (initialSecurityPriceBuilder_ == null) {
initialSecurityPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getInitialSecurityPrice(),
getParentForChildren(),
isClean());
initialSecurityPrice_ = null;
}
return initialSecurityPriceBuilder_;
}
private java.util.List stages_ =
java.util.Collections.emptyList();
private void ensureStagesIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
stages_ = new java.util.ArrayList(stages_);
bitField0_ |= 0x00002000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OrderStage, ru.tinkoff.piapi.contract.v1.OrderStage.Builder, ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder> stagesBuilder_;
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public java.util.List getStagesList() {
if (stagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(stages_);
} else {
return stagesBuilder_.getMessageList();
}
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public int getStagesCount() {
if (stagesBuilder_ == null) {
return stages_.size();
} else {
return stagesBuilder_.getCount();
}
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public ru.tinkoff.piapi.contract.v1.OrderStage getStages(int index) {
if (stagesBuilder_ == null) {
return stages_.get(index);
} else {
return stagesBuilder_.getMessage(index);
}
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder setStages(
int index, ru.tinkoff.piapi.contract.v1.OrderStage value) {
if (stagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStagesIsMutable();
stages_.set(index, value);
onChanged();
} else {
stagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder setStages(
int index, ru.tinkoff.piapi.contract.v1.OrderStage.Builder builderForValue) {
if (stagesBuilder_ == null) {
ensureStagesIsMutable();
stages_.set(index, builderForValue.build());
onChanged();
} else {
stagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder addStages(ru.tinkoff.piapi.contract.v1.OrderStage value) {
if (stagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStagesIsMutable();
stages_.add(value);
onChanged();
} else {
stagesBuilder_.addMessage(value);
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder addStages(
int index, ru.tinkoff.piapi.contract.v1.OrderStage value) {
if (stagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStagesIsMutable();
stages_.add(index, value);
onChanged();
} else {
stagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder addStages(
ru.tinkoff.piapi.contract.v1.OrderStage.Builder builderForValue) {
if (stagesBuilder_ == null) {
ensureStagesIsMutable();
stages_.add(builderForValue.build());
onChanged();
} else {
stagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder addStages(
int index, ru.tinkoff.piapi.contract.v1.OrderStage.Builder builderForValue) {
if (stagesBuilder_ == null) {
ensureStagesIsMutable();
stages_.add(index, builderForValue.build());
onChanged();
} else {
stagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder addAllStages(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.OrderStage> values) {
if (stagesBuilder_ == null) {
ensureStagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stages_);
onChanged();
} else {
stagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder clearStages() {
if (stagesBuilder_ == null) {
stages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
} else {
stagesBuilder_.clear();
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public Builder removeStages(int index) {
if (stagesBuilder_ == null) {
ensureStagesIsMutable();
stages_.remove(index);
onChanged();
} else {
stagesBuilder_.remove(index);
}
return this;
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public ru.tinkoff.piapi.contract.v1.OrderStage.Builder getStagesBuilder(
int index) {
return getStagesFieldBuilder().getBuilder(index);
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder getStagesOrBuilder(
int index) {
if (stagesBuilder_ == null) {
return stages_.get(index); } else {
return stagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder>
getStagesOrBuilderList() {
if (stagesBuilder_ != null) {
return stagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(stages_);
}
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public ru.tinkoff.piapi.contract.v1.OrderStage.Builder addStagesBuilder() {
return getStagesFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.OrderStage.getDefaultInstance());
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public ru.tinkoff.piapi.contract.v1.OrderStage.Builder addStagesBuilder(
int index) {
return getStagesFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.OrderStage.getDefaultInstance());
}
/**
*
*Стадии выполнения заявки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
*/
public java.util.List
getStagesBuilderList() {
return getStagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OrderStage, ru.tinkoff.piapi.contract.v1.OrderStage.Builder, ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder>
getStagesFieldBuilder() {
if (stagesBuilder_ == null) {
stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OrderStage, ru.tinkoff.piapi.contract.v1.OrderStage.Builder, ru.tinkoff.piapi.contract.v1.OrderStageOrBuilder>(
stages_,
((bitField0_ & 0x00002000) != 0),
getParentForChildren(),
isClean());
stages_ = null;
}
return stagesBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue serviceCommission_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> serviceCommissionBuilder_;
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
* @return Whether the serviceCommission field is set.
*/
public boolean hasServiceCommission() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
* @return The serviceCommission.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getServiceCommission() {
if (serviceCommissionBuilder_ == null) {
return serviceCommission_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : serviceCommission_;
} else {
return serviceCommissionBuilder_.getMessage();
}
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
*/
public Builder setServiceCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (serviceCommissionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
serviceCommission_ = value;
} else {
serviceCommissionBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
*/
public Builder setServiceCommission(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (serviceCommissionBuilder_ == null) {
serviceCommission_ = builderForValue.build();
} else {
serviceCommissionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
*/
public Builder mergeServiceCommission(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (serviceCommissionBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0) &&
serviceCommission_ != null &&
serviceCommission_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getServiceCommissionBuilder().mergeFrom(value);
} else {
serviceCommission_ = value;
}
} else {
serviceCommissionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
*/
public Builder clearServiceCommission() {
bitField0_ = (bitField0_ & ~0x00004000);
serviceCommission_ = null;
if (serviceCommissionBuilder_ != null) {
serviceCommissionBuilder_.dispose();
serviceCommissionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getServiceCommissionBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getServiceCommissionFieldBuilder().getBuilder();
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getServiceCommissionOrBuilder() {
if (serviceCommissionBuilder_ != null) {
return serviceCommissionBuilder_.getMessageOrBuilder();
} else {
return serviceCommission_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : serviceCommission_;
}
}
/**
*
*Сервисная комиссия.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getServiceCommissionFieldBuilder() {
if (serviceCommissionBuilder_ == null) {
serviceCommissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getServiceCommission(),
getParentForChildren(),
isClean());
serviceCommission_ = null;
}
return serviceCommissionBuilder_;
}
private java.lang.Object currency_ = "";
/**
*
*Валюта заявки.
*
*
* string currency = 16;
* @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 = 16;
* @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 = 16;
* @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_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Валюта заявки.
*
*
* string currency = 16;
* @return This builder for chaining.
*/
public Builder clearCurrency() {
currency_ = getDefaultInstance().getCurrency();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
*
*Валюта заявки.
*
*
* string currency = 16;
* @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_ |= 0x00008000;
onChanged();
return this;
}
private int orderType_ = 0;
/**
*
*Тип заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17;
* @return The enum numeric value on the wire for orderType.
*/
@java.lang.Override public int getOrderTypeValue() {
return orderType_;
}
/**
*
*Тип заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17;
* @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_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*Тип заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17;
* @return The orderType.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OrderType getOrderType() {
ru.tinkoff.piapi.contract.v1.OrderType result = ru.tinkoff.piapi.contract.v1.OrderType.forNumber(orderType_);
return result == null ? ru.tinkoff.piapi.contract.v1.OrderType.UNRECOGNIZED : result;
}
/**
*
*Тип заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17;
* @param value The orderType to set.
* @return This builder for chaining.
*/
public Builder setOrderType(ru.tinkoff.piapi.contract.v1.OrderType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00010000;
orderType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Тип заявки.
*
*
* .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17;
* @return This builder for chaining.
*/
public Builder clearOrderType() {
bitField0_ = (bitField0_ & ~0x00010000);
orderType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp orderDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> orderDateBuilder_;
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
* @return Whether the orderDate field is set.
*/
public boolean hasOrderDate() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
* @return The orderDate.
*/
public com.google.protobuf.Timestamp getOrderDate() {
if (orderDateBuilder_ == null) {
return orderDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : orderDate_;
} else {
return orderDateBuilder_.getMessage();
}
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
*/
public Builder setOrderDate(com.google.protobuf.Timestamp value) {
if (orderDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
orderDate_ = value;
} else {
orderDateBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
*/
public Builder setOrderDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (orderDateBuilder_ == null) {
orderDate_ = builderForValue.build();
} else {
orderDateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
*/
public Builder mergeOrderDate(com.google.protobuf.Timestamp value) {
if (orderDateBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0) &&
orderDate_ != null &&
orderDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getOrderDateBuilder().mergeFrom(value);
} else {
orderDate_ = value;
}
} else {
orderDateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
*/
public Builder clearOrderDate() {
bitField0_ = (bitField0_ & ~0x00020000);
orderDate_ = null;
if (orderDateBuilder_ != null) {
orderDateBuilder_.dispose();
orderDateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
*/
public com.google.protobuf.Timestamp.Builder getOrderDateBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getOrderDateFieldBuilder().getBuilder();
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
*/
public com.google.protobuf.TimestampOrBuilder getOrderDateOrBuilder() {
if (orderDateBuilder_ != null) {
return orderDateBuilder_.getMessageOrBuilder();
} else {
return orderDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : orderDate_;
}
}
/**
*
*Дата и время выставления заявки в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp order_date = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getOrderDateFieldBuilder() {
if (orderDateBuilder_ == null) {
orderDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getOrderDate(),
getParentForChildren(),
isClean());
orderDate_ = null;
}
return orderDateBuilder_;
}
private java.lang.Object instrumentUid_ = "";
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 19;
* @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 = 19;
* @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 = 19;
* @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_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 19;
* @return This builder for chaining.
*/
public Builder clearInstrumentUid() {
instrumentUid_ = getDefaultInstance().getInstrumentUid();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
*
*UID идентификатор инструмента.
*
*
* string instrument_uid = 19;
* @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_ |= 0x00040000;
onChanged();
return this;
}
private java.lang.Object orderRequestId_ = "";
/**
*
*Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
*
*
* string order_request_id = 20;
* @return The orderRequestId.
*/
public java.lang.String getOrderRequestId() {
java.lang.Object ref = orderRequestId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderRequestId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
*
*
* string order_request_id = 20;
* @return The bytes for orderRequestId.
*/
public com.google.protobuf.ByteString
getOrderRequestIdBytes() {
java.lang.Object ref = orderRequestId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderRequestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
*
*
* string order_request_id = 20;
* @param value The orderRequestId to set.
* @return This builder for chaining.
*/
public Builder setOrderRequestId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
orderRequestId_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
*
*
* string order_request_id = 20;
* @return This builder for chaining.
*/
public Builder clearOrderRequestId() {
orderRequestId_ = getDefaultInstance().getOrderRequestId();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
/**
*
*Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
*
*
* string order_request_id = 20;
* @param value The bytes for orderRequestId to set.
* @return This builder for chaining.
*/
public Builder setOrderRequestIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
orderRequestId_ = value;
bitField0_ |= 0x00080000;
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.OrderState)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.OrderState)
private static final ru.tinkoff.piapi.contract.v1.OrderState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.OrderState();
}
public static ru.tinkoff.piapi.contract.v1.OrderState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrderState 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.OrderState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}