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.GetFuturesMarginResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: instruments.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Данные по фьючерсу
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetFuturesMarginResponse}
*/
public final class GetFuturesMarginResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetFuturesMarginResponse)
GetFuturesMarginResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetFuturesMarginResponse.newBuilder() to construct.
private GetFuturesMarginResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetFuturesMarginResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetFuturesMarginResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetFuturesMarginResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetFuturesMarginResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.class, ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.Builder.class);
}
public static final int INITIAL_MARGIN_ON_BUY_FIELD_NUMBER = 1;
private ru.tinkoff.piapi.contract.v1.MoneyValue initialMarginOnBuy_;
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
* @return Whether the initialMarginOnBuy field is set.
*/
@java.lang.Override
public boolean hasInitialMarginOnBuy() {
return initialMarginOnBuy_ != null;
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
* @return The initialMarginOnBuy.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialMarginOnBuy() {
return initialMarginOnBuy_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnBuy_;
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialMarginOnBuyOrBuilder() {
return initialMarginOnBuy_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnBuy_;
}
public static final int INITIAL_MARGIN_ON_SELL_FIELD_NUMBER = 2;
private ru.tinkoff.piapi.contract.v1.MoneyValue initialMarginOnSell_;
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
* @return Whether the initialMarginOnSell field is set.
*/
@java.lang.Override
public boolean hasInitialMarginOnSell() {
return initialMarginOnSell_ != null;
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
* @return The initialMarginOnSell.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialMarginOnSell() {
return initialMarginOnSell_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnSell_;
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialMarginOnSellOrBuilder() {
return initialMarginOnSell_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnSell_;
}
public static final int MIN_PRICE_INCREMENT_FIELD_NUMBER = 3;
private ru.tinkoff.piapi.contract.v1.Quotation minPriceIncrement_;
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
* @return Whether the minPriceIncrement field is set.
*/
@java.lang.Override
public boolean hasMinPriceIncrement() {
return minPriceIncrement_ != null;
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
* @return The minPriceIncrement.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getMinPriceIncrement() {
return minPriceIncrement_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrement_;
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getMinPriceIncrementOrBuilder() {
return minPriceIncrement_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrement_;
}
public static final int MIN_PRICE_INCREMENT_AMOUNT_FIELD_NUMBER = 4;
private ru.tinkoff.piapi.contract.v1.Quotation minPriceIncrementAmount_;
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
* @return Whether the minPriceIncrementAmount field is set.
*/
@java.lang.Override
public boolean hasMinPriceIncrementAmount() {
return minPriceIncrementAmount_ != null;
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
* @return The minPriceIncrementAmount.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getMinPriceIncrementAmount() {
return minPriceIncrementAmount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrementAmount_;
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getMinPriceIncrementAmountOrBuilder() {
return minPriceIncrementAmount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrementAmount_;
}
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 (initialMarginOnBuy_ != null) {
output.writeMessage(1, getInitialMarginOnBuy());
}
if (initialMarginOnSell_ != null) {
output.writeMessage(2, getInitialMarginOnSell());
}
if (minPriceIncrement_ != null) {
output.writeMessage(3, getMinPriceIncrement());
}
if (minPriceIncrementAmount_ != null) {
output.writeMessage(4, getMinPriceIncrementAmount());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (initialMarginOnBuy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInitialMarginOnBuy());
}
if (initialMarginOnSell_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getInitialMarginOnSell());
}
if (minPriceIncrement_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMinPriceIncrement());
}
if (minPriceIncrementAmount_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMinPriceIncrementAmount());
}
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.GetFuturesMarginResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse other = (ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse) obj;
if (hasInitialMarginOnBuy() != other.hasInitialMarginOnBuy()) return false;
if (hasInitialMarginOnBuy()) {
if (!getInitialMarginOnBuy()
.equals(other.getInitialMarginOnBuy())) return false;
}
if (hasInitialMarginOnSell() != other.hasInitialMarginOnSell()) return false;
if (hasInitialMarginOnSell()) {
if (!getInitialMarginOnSell()
.equals(other.getInitialMarginOnSell())) return false;
}
if (hasMinPriceIncrement() != other.hasMinPriceIncrement()) return false;
if (hasMinPriceIncrement()) {
if (!getMinPriceIncrement()
.equals(other.getMinPriceIncrement())) return false;
}
if (hasMinPriceIncrementAmount() != other.hasMinPriceIncrementAmount()) return false;
if (hasMinPriceIncrementAmount()) {
if (!getMinPriceIncrementAmount()
.equals(other.getMinPriceIncrementAmount())) 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();
if (hasInitialMarginOnBuy()) {
hash = (37 * hash) + INITIAL_MARGIN_ON_BUY_FIELD_NUMBER;
hash = (53 * hash) + getInitialMarginOnBuy().hashCode();
}
if (hasInitialMarginOnSell()) {
hash = (37 * hash) + INITIAL_MARGIN_ON_SELL_FIELD_NUMBER;
hash = (53 * hash) + getInitialMarginOnSell().hashCode();
}
if (hasMinPriceIncrement()) {
hash = (37 * hash) + MIN_PRICE_INCREMENT_FIELD_NUMBER;
hash = (53 * hash) + getMinPriceIncrement().hashCode();
}
if (hasMinPriceIncrementAmount()) {
hash = (37 * hash) + MIN_PRICE_INCREMENT_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getMinPriceIncrementAmount().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse 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.GetFuturesMarginResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse 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.GetFuturesMarginResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse 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.GetFuturesMarginResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse 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.GetFuturesMarginResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse 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.GetFuturesMarginResponse 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.GetFuturesMarginResponse 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.GetFuturesMarginResponse 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.GetFuturesMarginResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetFuturesMarginResponse)
ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetFuturesMarginResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetFuturesMarginResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.class, ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
initialMarginOnBuy_ = null;
if (initialMarginOnBuyBuilder_ != null) {
initialMarginOnBuyBuilder_.dispose();
initialMarginOnBuyBuilder_ = null;
}
initialMarginOnSell_ = null;
if (initialMarginOnSellBuilder_ != null) {
initialMarginOnSellBuilder_.dispose();
initialMarginOnSellBuilder_ = null;
}
minPriceIncrement_ = null;
if (minPriceIncrementBuilder_ != null) {
minPriceIncrementBuilder_.dispose();
minPriceIncrementBuilder_ = null;
}
minPriceIncrementAmount_ = null;
if (minPriceIncrementAmountBuilder_ != null) {
minPriceIncrementAmountBuilder_.dispose();
minPriceIncrementAmountBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetFuturesMarginResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse build() {
ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse result = new ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.initialMarginOnBuy_ = initialMarginOnBuyBuilder_ == null
? initialMarginOnBuy_
: initialMarginOnBuyBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.initialMarginOnSell_ = initialMarginOnSellBuilder_ == null
? initialMarginOnSell_
: initialMarginOnSellBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.minPriceIncrement_ = minPriceIncrementBuilder_ == null
? minPriceIncrement_
: minPriceIncrementBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.minPriceIncrementAmount_ = minPriceIncrementAmountBuilder_ == null
? minPriceIncrementAmount_
: minPriceIncrementAmountBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse.getDefaultInstance()) return this;
if (other.hasInitialMarginOnBuy()) {
mergeInitialMarginOnBuy(other.getInitialMarginOnBuy());
}
if (other.hasInitialMarginOnSell()) {
mergeInitialMarginOnSell(other.getInitialMarginOnSell());
}
if (other.hasMinPriceIncrement()) {
mergeMinPriceIncrement(other.getMinPriceIncrement());
}
if (other.hasMinPriceIncrementAmount()) {
mergeMinPriceIncrementAmount(other.getMinPriceIncrementAmount());
}
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: {
input.readMessage(
getInitialMarginOnBuyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getInitialMarginOnSellFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getMinPriceIncrementFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getMinPriceIncrementAmountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 ru.tinkoff.piapi.contract.v1.MoneyValue initialMarginOnBuy_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialMarginOnBuyBuilder_;
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
* @return Whether the initialMarginOnBuy field is set.
*/
public boolean hasInitialMarginOnBuy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
* @return The initialMarginOnBuy.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialMarginOnBuy() {
if (initialMarginOnBuyBuilder_ == null) {
return initialMarginOnBuy_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnBuy_;
} else {
return initialMarginOnBuyBuilder_.getMessage();
}
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
public Builder setInitialMarginOnBuy(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialMarginOnBuyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialMarginOnBuy_ = value;
} else {
initialMarginOnBuyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
public Builder setInitialMarginOnBuy(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (initialMarginOnBuyBuilder_ == null) {
initialMarginOnBuy_ = builderForValue.build();
} else {
initialMarginOnBuyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
public Builder mergeInitialMarginOnBuy(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialMarginOnBuyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
initialMarginOnBuy_ != null &&
initialMarginOnBuy_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getInitialMarginOnBuyBuilder().mergeFrom(value);
} else {
initialMarginOnBuy_ = value;
}
} else {
initialMarginOnBuyBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
public Builder clearInitialMarginOnBuy() {
bitField0_ = (bitField0_ & ~0x00000001);
initialMarginOnBuy_ = null;
if (initialMarginOnBuyBuilder_ != null) {
initialMarginOnBuyBuilder_.dispose();
initialMarginOnBuyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialMarginOnBuyBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getInitialMarginOnBuyFieldBuilder().getBuilder();
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialMarginOnBuyOrBuilder() {
if (initialMarginOnBuyBuilder_ != null) {
return initialMarginOnBuyBuilder_.getMessageOrBuilder();
} else {
return initialMarginOnBuy_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnBuy_;
}
}
/**
*
*Гарантийное обеспечение при покупке.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_buy = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getInitialMarginOnBuyFieldBuilder() {
if (initialMarginOnBuyBuilder_ == null) {
initialMarginOnBuyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getInitialMarginOnBuy(),
getParentForChildren(),
isClean());
initialMarginOnBuy_ = null;
}
return initialMarginOnBuyBuilder_;
}
private ru.tinkoff.piapi.contract.v1.MoneyValue initialMarginOnSell_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> initialMarginOnSellBuilder_;
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
* @return Whether the initialMarginOnSell field is set.
*/
public boolean hasInitialMarginOnSell() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
* @return The initialMarginOnSell.
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getInitialMarginOnSell() {
if (initialMarginOnSellBuilder_ == null) {
return initialMarginOnSell_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnSell_;
} else {
return initialMarginOnSellBuilder_.getMessage();
}
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
public Builder setInitialMarginOnSell(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialMarginOnSellBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialMarginOnSell_ = value;
} else {
initialMarginOnSellBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
public Builder setInitialMarginOnSell(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (initialMarginOnSellBuilder_ == null) {
initialMarginOnSell_ = builderForValue.build();
} else {
initialMarginOnSellBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
public Builder mergeInitialMarginOnSell(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (initialMarginOnSellBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
initialMarginOnSell_ != null &&
initialMarginOnSell_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) {
getInitialMarginOnSellBuilder().mergeFrom(value);
} else {
initialMarginOnSell_ = value;
}
} else {
initialMarginOnSellBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
public Builder clearInitialMarginOnSell() {
bitField0_ = (bitField0_ & ~0x00000002);
initialMarginOnSell_ = null;
if (initialMarginOnSellBuilder_ != null) {
initialMarginOnSellBuilder_.dispose();
initialMarginOnSellBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getInitialMarginOnSellBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getInitialMarginOnSellFieldBuilder().getBuilder();
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getInitialMarginOnSellOrBuilder() {
if (initialMarginOnSellBuilder_ != null) {
return initialMarginOnSellBuilder_.getMessageOrBuilder();
} else {
return initialMarginOnSell_ == null ?
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : initialMarginOnSell_;
}
}
/**
*
*Гарантийное обеспечение при продаже.
*
*
* .tinkoff.public.invest.api.contract.v1.MoneyValue initial_margin_on_sell = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getInitialMarginOnSellFieldBuilder() {
if (initialMarginOnSellBuilder_ == null) {
initialMarginOnSellBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
getInitialMarginOnSell(),
getParentForChildren(),
isClean());
initialMarginOnSell_ = null;
}
return initialMarginOnSellBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation minPriceIncrement_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> minPriceIncrementBuilder_;
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
* @return Whether the minPriceIncrement field is set.
*/
public boolean hasMinPriceIncrement() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
* @return The minPriceIncrement.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getMinPriceIncrement() {
if (minPriceIncrementBuilder_ == null) {
return minPriceIncrement_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrement_;
} else {
return minPriceIncrementBuilder_.getMessage();
}
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
public Builder setMinPriceIncrement(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (minPriceIncrementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
minPriceIncrement_ = value;
} else {
minPriceIncrementBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
public Builder setMinPriceIncrement(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (minPriceIncrementBuilder_ == null) {
minPriceIncrement_ = builderForValue.build();
} else {
minPriceIncrementBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
public Builder mergeMinPriceIncrement(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (minPriceIncrementBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
minPriceIncrement_ != null &&
minPriceIncrement_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getMinPriceIncrementBuilder().mergeFrom(value);
} else {
minPriceIncrement_ = value;
}
} else {
minPriceIncrementBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
public Builder clearMinPriceIncrement() {
bitField0_ = (bitField0_ & ~0x00000004);
minPriceIncrement_ = null;
if (minPriceIncrementBuilder_ != null) {
minPriceIncrementBuilder_.dispose();
minPriceIncrementBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getMinPriceIncrementBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMinPriceIncrementFieldBuilder().getBuilder();
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getMinPriceIncrementOrBuilder() {
if (minPriceIncrementBuilder_ != null) {
return minPriceIncrementBuilder_.getMessageOrBuilder();
} else {
return minPriceIncrement_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrement_;
}
}
/**
*
*Шаг цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getMinPriceIncrementFieldBuilder() {
if (minPriceIncrementBuilder_ == null) {
minPriceIncrementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getMinPriceIncrement(),
getParentForChildren(),
isClean());
minPriceIncrement_ = null;
}
return minPriceIncrementBuilder_;
}
private ru.tinkoff.piapi.contract.v1.Quotation minPriceIncrementAmount_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> minPriceIncrementAmountBuilder_;
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
* @return Whether the minPriceIncrementAmount field is set.
*/
public boolean hasMinPriceIncrementAmount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
* @return The minPriceIncrementAmount.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getMinPriceIncrementAmount() {
if (minPriceIncrementAmountBuilder_ == null) {
return minPriceIncrementAmount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrementAmount_;
} else {
return minPriceIncrementAmountBuilder_.getMessage();
}
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
public Builder setMinPriceIncrementAmount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (minPriceIncrementAmountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
minPriceIncrementAmount_ = value;
} else {
minPriceIncrementAmountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
public Builder setMinPriceIncrementAmount(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (minPriceIncrementAmountBuilder_ == null) {
minPriceIncrementAmount_ = builderForValue.build();
} else {
minPriceIncrementAmountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
public Builder mergeMinPriceIncrementAmount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (minPriceIncrementAmountBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
minPriceIncrementAmount_ != null &&
minPriceIncrementAmount_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getMinPriceIncrementAmountBuilder().mergeFrom(value);
} else {
minPriceIncrementAmount_ = value;
}
} else {
minPriceIncrementAmountBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
public Builder clearMinPriceIncrementAmount() {
bitField0_ = (bitField0_ & ~0x00000008);
minPriceIncrementAmount_ = null;
if (minPriceIncrementAmountBuilder_ != null) {
minPriceIncrementAmountBuilder_.dispose();
minPriceIncrementAmountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getMinPriceIncrementAmountBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getMinPriceIncrementAmountFieldBuilder().getBuilder();
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getMinPriceIncrementAmountOrBuilder() {
if (minPriceIncrementAmountBuilder_ != null) {
return minPriceIncrementAmountBuilder_.getMessageOrBuilder();
} else {
return minPriceIncrementAmount_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : minPriceIncrementAmount_;
}
}
/**
*
*Стоимость шага цены.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation min_price_increment_amount = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getMinPriceIncrementAmountFieldBuilder() {
if (minPriceIncrementAmountBuilder_ == null) {
minPriceIncrementAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getMinPriceIncrementAmount(),
getParentForChildren(),
isClean());
minPriceIncrementAmount_ = null;
}
return minPriceIncrementAmountBuilder_;
}
@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.GetFuturesMarginResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetFuturesMarginResponse)
private static final ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse();
}
public static ru.tinkoff.piapi.contract.v1.GetFuturesMarginResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetFuturesMarginResponse 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.GetFuturesMarginResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}