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.GetMaxLotsResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: orders.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Результат количество доступных для покупки/продажи лотов
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse}
*/
public final class GetMaxLotsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse)
GetMaxLotsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetMaxLotsResponse.newBuilder() to construct.
private GetMaxLotsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetMaxLotsResponse() {
currency_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetMaxLotsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_GetMaxLotsResponse_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_GetMaxLotsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.class, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.Builder.class);
}
public interface BuyLimitsViewOrBuilder extends
// @@protoc_insertion_point(interface_extends:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView)
com.google.protobuf.MessageOrBuilder {
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
* @return Whether the buyMoneyAmount field is set.
*/
boolean hasBuyMoneyAmount();
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
* @return The buyMoneyAmount.
*/
ru.tinkoff.piapi.contract.v1.Quotation getBuyMoneyAmount();
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getBuyMoneyAmountOrBuilder();
/**
*
*Максимальное доступное количество лотов для покупки
*
*
* int64 buy_max_lots = 2;
* @return The buyMaxLots.
*/
long getBuyMaxLots();
/**
*
*Максимальное доступное количество лотов для покупки для заявки по рыночной цене на текущий момент
*
*
* int64 buy_max_market_lots = 3;
* @return The buyMaxMarketLots.
*/
long getBuyMaxMarketLots();
}
/**
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView}
*/
public static final class BuyLimitsView extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView)
BuyLimitsViewOrBuilder {
private static final long serialVersionUID = 0L;
// Use BuyLimitsView.newBuilder() to construct.
private BuyLimitsView(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BuyLimitsView() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BuyLimitsView();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_GetMaxLotsResponse_BuyLimitsView_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_GetMaxLotsResponse_BuyLimitsView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.class, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder.class);
}
public static final int BUY_MONEY_AMOUNT_FIELD_NUMBER = 1;
private ru.tinkoff.piapi.contract.v1.Quotation buyMoneyAmount_;
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
* @return Whether the buyMoneyAmount field is set.
*/
@java.lang.Override
public boolean hasBuyMoneyAmount() {
return buyMoneyAmount_ != null;
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
* @return The buyMoneyAmount.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getBuyMoneyAmount() {
return buyMoneyAmount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : buyMoneyAmount_;
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getBuyMoneyAmountOrBuilder() {
return buyMoneyAmount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : buyMoneyAmount_;
}
public static final int BUY_MAX_LOTS_FIELD_NUMBER = 2;
private long buyMaxLots_ = 0L;
/**
*
*Максимальное доступное количество лотов для покупки
*
*
* int64 buy_max_lots = 2;
* @return The buyMaxLots.
*/
@java.lang.Override
public long getBuyMaxLots() {
return buyMaxLots_;
}
public static final int BUY_MAX_MARKET_LOTS_FIELD_NUMBER = 3;
private long buyMaxMarketLots_ = 0L;
/**
*
*Максимальное доступное количество лотов для покупки для заявки по рыночной цене на текущий момент
*
*
* int64 buy_max_market_lots = 3;
* @return The buyMaxMarketLots.
*/
@java.lang.Override
public long getBuyMaxMarketLots() {
return buyMaxMarketLots_;
}
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 (buyMoneyAmount_ != null) {
output.writeMessage(1, getBuyMoneyAmount());
}
if (buyMaxLots_ != 0L) {
output.writeInt64(2, buyMaxLots_);
}
if (buyMaxMarketLots_ != 0L) {
output.writeInt64(3, buyMaxMarketLots_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (buyMoneyAmount_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBuyMoneyAmount());
}
if (buyMaxLots_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, buyMaxLots_);
}
if (buyMaxMarketLots_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, buyMaxMarketLots_);
}
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.GetMaxLotsResponse.BuyLimitsView)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView other = (ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView) obj;
if (hasBuyMoneyAmount() != other.hasBuyMoneyAmount()) return false;
if (hasBuyMoneyAmount()) {
if (!getBuyMoneyAmount()
.equals(other.getBuyMoneyAmount())) return false;
}
if (getBuyMaxLots()
!= other.getBuyMaxLots()) return false;
if (getBuyMaxMarketLots()
!= other.getBuyMaxMarketLots()) 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 (hasBuyMoneyAmount()) {
hash = (37 * hash) + BUY_MONEY_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getBuyMoneyAmount().hashCode();
}
hash = (37 * hash) + BUY_MAX_LOTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBuyMaxLots());
hash = (37 * hash) + BUY_MAX_MARKET_LOTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBuyMaxMarketLots());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView)
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_GetMaxLotsResponse_BuyLimitsView_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_GetMaxLotsResponse_BuyLimitsView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.class, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
buyMoneyAmount_ = null;
if (buyMoneyAmountBuilder_ != null) {
buyMoneyAmountBuilder_.dispose();
buyMoneyAmountBuilder_ = null;
}
buyMaxLots_ = 0L;
buyMaxMarketLots_ = 0L;
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_GetMaxLotsResponse_BuyLimitsView_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView build() {
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView buildPartial() {
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView result = new ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.buyMoneyAmount_ = buyMoneyAmountBuilder_ == null
? buyMoneyAmount_
: buyMoneyAmountBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.buyMaxLots_ = buyMaxLots_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.buyMaxMarketLots_ = buyMaxMarketLots_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView other) {
if (other == ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance()) return this;
if (other.hasBuyMoneyAmount()) {
mergeBuyMoneyAmount(other.getBuyMoneyAmount());
}
if (other.getBuyMaxLots() != 0L) {
setBuyMaxLots(other.getBuyMaxLots());
}
if (other.getBuyMaxMarketLots() != 0L) {
setBuyMaxMarketLots(other.getBuyMaxMarketLots());
}
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(
getBuyMoneyAmountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
buyMaxLots_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
buyMaxMarketLots_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
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.Quotation buyMoneyAmount_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder> buyMoneyAmountBuilder_;
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
* @return Whether the buyMoneyAmount field is set.
*/
public boolean hasBuyMoneyAmount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
* @return The buyMoneyAmount.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getBuyMoneyAmount() {
if (buyMoneyAmountBuilder_ == null) {
return buyMoneyAmount_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : buyMoneyAmount_;
} else {
return buyMoneyAmountBuilder_.getMessage();
}
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
public Builder setBuyMoneyAmount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (buyMoneyAmountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buyMoneyAmount_ = value;
} else {
buyMoneyAmountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
public Builder setBuyMoneyAmount(
ru.tinkoff.piapi.contract.v1.Quotation.Builder builderForValue) {
if (buyMoneyAmountBuilder_ == null) {
buyMoneyAmount_ = builderForValue.build();
} else {
buyMoneyAmountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
public Builder mergeBuyMoneyAmount(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (buyMoneyAmountBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
buyMoneyAmount_ != null &&
buyMoneyAmount_ != ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance()) {
getBuyMoneyAmountBuilder().mergeFrom(value);
} else {
buyMoneyAmount_ = value;
}
} else {
buyMoneyAmountBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
public Builder clearBuyMoneyAmount() {
bitField0_ = (bitField0_ & ~0x00000001);
buyMoneyAmount_ = null;
if (buyMoneyAmountBuilder_ != null) {
buyMoneyAmountBuilder_.dispose();
buyMoneyAmountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
public ru.tinkoff.piapi.contract.v1.Quotation.Builder getBuyMoneyAmountBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBuyMoneyAmountFieldBuilder().getBuilder();
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getBuyMoneyAmountOrBuilder() {
if (buyMoneyAmountBuilder_ != null) {
return buyMoneyAmountBuilder_.getMessageOrBuilder();
} else {
return buyMoneyAmount_ == null ?
ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : buyMoneyAmount_;
}
}
/**
*
*Количество доступной валюты для покупки
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation buy_money_amount = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>
getBuyMoneyAmountFieldBuilder() {
if (buyMoneyAmountBuilder_ == null) {
buyMoneyAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Quotation, ru.tinkoff.piapi.contract.v1.Quotation.Builder, ru.tinkoff.piapi.contract.v1.QuotationOrBuilder>(
getBuyMoneyAmount(),
getParentForChildren(),
isClean());
buyMoneyAmount_ = null;
}
return buyMoneyAmountBuilder_;
}
private long buyMaxLots_ ;
/**
*
*Максимальное доступное количество лотов для покупки
*
*
* int64 buy_max_lots = 2;
* @return The buyMaxLots.
*/
@java.lang.Override
public long getBuyMaxLots() {
return buyMaxLots_;
}
/**
*
*Максимальное доступное количество лотов для покупки
*
*
* int64 buy_max_lots = 2;
* @param value The buyMaxLots to set.
* @return This builder for chaining.
*/
public Builder setBuyMaxLots(long value) {
buyMaxLots_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Максимальное доступное количество лотов для покупки
*
*
* int64 buy_max_lots = 2;
* @return This builder for chaining.
*/
public Builder clearBuyMaxLots() {
bitField0_ = (bitField0_ & ~0x00000002);
buyMaxLots_ = 0L;
onChanged();
return this;
}
private long buyMaxMarketLots_ ;
/**
*
*Максимальное доступное количество лотов для покупки для заявки по рыночной цене на текущий момент
*
*
* int64 buy_max_market_lots = 3;
* @return The buyMaxMarketLots.
*/
@java.lang.Override
public long getBuyMaxMarketLots() {
return buyMaxMarketLots_;
}
/**
*
*Максимальное доступное количество лотов для покупки для заявки по рыночной цене на текущий момент
*
*
* int64 buy_max_market_lots = 3;
* @param value The buyMaxMarketLots to set.
* @return This builder for chaining.
*/
public Builder setBuyMaxMarketLots(long value) {
buyMaxMarketLots_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Максимальное доступное количество лотов для покупки для заявки по рыночной цене на текущий момент
*
*
* int64 buy_max_market_lots = 3;
* @return This builder for chaining.
*/
public Builder clearBuyMaxMarketLots() {
bitField0_ = (bitField0_ & ~0x00000004);
buyMaxMarketLots_ = 0L;
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.GetMaxLotsResponse.BuyLimitsView)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView)
private static final ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView();
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BuyLimitsView 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.GetMaxLotsResponse.BuyLimitsView getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SellLimitsViewOrBuilder extends
// @@protoc_insertion_point(interface_extends:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView)
com.google.protobuf.MessageOrBuilder {
/**
*
*Максимальное доступное количество лотов для продажи
*
*
* int64 sell_max_lots = 1;
* @return The sellMaxLots.
*/
long getSellMaxLots();
}
/**
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView}
*/
public static final class SellLimitsView extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView)
SellLimitsViewOrBuilder {
private static final long serialVersionUID = 0L;
// Use SellLimitsView.newBuilder() to construct.
private SellLimitsView(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SellLimitsView() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SellLimitsView();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_GetMaxLotsResponse_SellLimitsView_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_GetMaxLotsResponse_SellLimitsView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.class, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder.class);
}
public static final int SELL_MAX_LOTS_FIELD_NUMBER = 1;
private long sellMaxLots_ = 0L;
/**
*
*Максимальное доступное количество лотов для продажи
*
*
* int64 sell_max_lots = 1;
* @return The sellMaxLots.
*/
@java.lang.Override
public long getSellMaxLots() {
return sellMaxLots_;
}
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 (sellMaxLots_ != 0L) {
output.writeInt64(1, sellMaxLots_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sellMaxLots_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, sellMaxLots_);
}
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.GetMaxLotsResponse.SellLimitsView)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView other = (ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView) obj;
if (getSellMaxLots()
!= other.getSellMaxLots()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SELL_MAX_LOTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSellMaxLots());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView 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.GetMaxLotsResponse.SellLimitsView}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView)
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_GetMaxLotsResponse_SellLimitsView_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_GetMaxLotsResponse_SellLimitsView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.class, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sellMaxLots_ = 0L;
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_GetMaxLotsResponse_SellLimitsView_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView build() {
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView buildPartial() {
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView result = new ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sellMaxLots_ = sellMaxLots_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView other) {
if (other == ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance()) return this;
if (other.getSellMaxLots() != 0L) {
setSellMaxLots(other.getSellMaxLots());
}
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 8: {
sellMaxLots_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
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 long sellMaxLots_ ;
/**
*
*Максимальное доступное количество лотов для продажи
*
*
* int64 sell_max_lots = 1;
* @return The sellMaxLots.
*/
@java.lang.Override
public long getSellMaxLots() {
return sellMaxLots_;
}
/**
*
*Максимальное доступное количество лотов для продажи
*
*
* int64 sell_max_lots = 1;
* @param value The sellMaxLots to set.
* @return This builder for chaining.
*/
public Builder setSellMaxLots(long value) {
sellMaxLots_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Максимальное доступное количество лотов для продажи
*
*
* int64 sell_max_lots = 1;
* @return This builder for chaining.
*/
public Builder clearSellMaxLots() {
bitField0_ = (bitField0_ & ~0x00000001);
sellMaxLots_ = 0L;
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.GetMaxLotsResponse.SellLimitsView)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView)
private static final ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView();
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SellLimitsView 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.GetMaxLotsResponse.SellLimitsView getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int CURRENCY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object currency_ = "";
/**
*
*Валюта инструмента
*
*
* string currency = 1;
* @return The currency.
*/
@java.lang.Override
public java.lang.String getCurrency() {
java.lang.Object ref = currency_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currency_ = s;
return s;
}
}
/**
*
*Валюта инструмента
*
*
* string currency = 1;
* @return The bytes for currency.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrencyBytes() {
java.lang.Object ref = currency_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currency_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUY_LIMITS_FIELD_NUMBER = 2;
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView buyLimits_;
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
* @return Whether the buyLimits field is set.
*/
@java.lang.Override
public boolean hasBuyLimits() {
return buyLimits_ != null;
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
* @return The buyLimits.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView getBuyLimits() {
return buyLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyLimits_;
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder getBuyLimitsOrBuilder() {
return buyLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyLimits_;
}
public static final int BUY_MARGIN_LIMITS_FIELD_NUMBER = 3;
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView buyMarginLimits_;
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
* @return Whether the buyMarginLimits field is set.
*/
@java.lang.Override
public boolean hasBuyMarginLimits() {
return buyMarginLimits_ != null;
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
* @return The buyMarginLimits.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView getBuyMarginLimits() {
return buyMarginLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyMarginLimits_;
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder getBuyMarginLimitsOrBuilder() {
return buyMarginLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyMarginLimits_;
}
public static final int SELL_LIMITS_FIELD_NUMBER = 4;
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView sellLimits_;
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
* @return Whether the sellLimits field is set.
*/
@java.lang.Override
public boolean hasSellLimits() {
return sellLimits_ != null;
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
* @return The sellLimits.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView getSellLimits() {
return sellLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellLimits_;
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder getSellLimitsOrBuilder() {
return sellLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellLimits_;
}
public static final int SELL_MARGIN_LIMITS_FIELD_NUMBER = 5;
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView sellMarginLimits_;
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
* @return Whether the sellMarginLimits field is set.
*/
@java.lang.Override
public boolean hasSellMarginLimits() {
return sellMarginLimits_ != null;
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
* @return The sellMarginLimits.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView getSellMarginLimits() {
return sellMarginLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellMarginLimits_;
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder getSellMarginLimitsOrBuilder() {
return sellMarginLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellMarginLimits_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currency_);
}
if (buyLimits_ != null) {
output.writeMessage(2, getBuyLimits());
}
if (buyMarginLimits_ != null) {
output.writeMessage(3, getBuyMarginLimits());
}
if (sellLimits_ != null) {
output.writeMessage(4, getSellLimits());
}
if (sellMarginLimits_ != null) {
output.writeMessage(5, getSellMarginLimits());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currency_);
}
if (buyLimits_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBuyLimits());
}
if (buyMarginLimits_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getBuyMarginLimits());
}
if (sellLimits_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSellLimits());
}
if (sellMarginLimits_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSellMarginLimits());
}
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.GetMaxLotsResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse other = (ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse) obj;
if (!getCurrency()
.equals(other.getCurrency())) return false;
if (hasBuyLimits() != other.hasBuyLimits()) return false;
if (hasBuyLimits()) {
if (!getBuyLimits()
.equals(other.getBuyLimits())) return false;
}
if (hasBuyMarginLimits() != other.hasBuyMarginLimits()) return false;
if (hasBuyMarginLimits()) {
if (!getBuyMarginLimits()
.equals(other.getBuyMarginLimits())) return false;
}
if (hasSellLimits() != other.hasSellLimits()) return false;
if (hasSellLimits()) {
if (!getSellLimits()
.equals(other.getSellLimits())) return false;
}
if (hasSellMarginLimits() != other.hasSellMarginLimits()) return false;
if (hasSellMarginLimits()) {
if (!getSellMarginLimits()
.equals(other.getSellMarginLimits())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CURRENCY_FIELD_NUMBER;
hash = (53 * hash) + getCurrency().hashCode();
if (hasBuyLimits()) {
hash = (37 * hash) + BUY_LIMITS_FIELD_NUMBER;
hash = (53 * hash) + getBuyLimits().hashCode();
}
if (hasBuyMarginLimits()) {
hash = (37 * hash) + BUY_MARGIN_LIMITS_FIELD_NUMBER;
hash = (53 * hash) + getBuyMarginLimits().hashCode();
}
if (hasSellLimits()) {
hash = (37 * hash) + SELL_LIMITS_FIELD_NUMBER;
hash = (53 * hash) + getSellLimits().hashCode();
}
if (hasSellMarginLimits()) {
hash = (37 * hash) + SELL_MARGIN_LIMITS_FIELD_NUMBER;
hash = (53 * hash) + getSellMarginLimits().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse 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.GetMaxLotsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse 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.GetMaxLotsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse 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.GetMaxLotsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse 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.GetMaxLotsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse 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.GetMaxLotsResponse 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.GetMaxLotsResponse 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.GetMaxLotsResponse 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.GetMaxLotsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse)
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Orders.internal_static_tinkoff_public_invest_api_contract_v1_GetMaxLotsResponse_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_GetMaxLotsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.class, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
currency_ = "";
buyLimits_ = null;
if (buyLimitsBuilder_ != null) {
buyLimitsBuilder_.dispose();
buyLimitsBuilder_ = null;
}
buyMarginLimits_ = null;
if (buyMarginLimitsBuilder_ != null) {
buyMarginLimitsBuilder_.dispose();
buyMarginLimitsBuilder_ = null;
}
sellLimits_ = null;
if (sellLimitsBuilder_ != null) {
sellLimitsBuilder_.dispose();
sellLimitsBuilder_ = null;
}
sellMarginLimits_ = null;
if (sellMarginLimitsBuilder_ != null) {
sellMarginLimitsBuilder_.dispose();
sellMarginLimitsBuilder_ = null;
}
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_GetMaxLotsResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse build() {
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse result = new ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.currency_ = currency_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.buyLimits_ = buyLimitsBuilder_ == null
? buyLimits_
: buyLimitsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.buyMarginLimits_ = buyMarginLimitsBuilder_ == null
? buyMarginLimits_
: buyMarginLimitsBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.sellLimits_ = sellLimitsBuilder_ == null
? sellLimits_
: sellLimitsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.sellMarginLimits_ = sellMarginLimitsBuilder_ == null
? sellMarginLimits_
: sellMarginLimitsBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.getDefaultInstance()) return this;
if (!other.getCurrency().isEmpty()) {
currency_ = other.currency_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasBuyLimits()) {
mergeBuyLimits(other.getBuyLimits());
}
if (other.hasBuyMarginLimits()) {
mergeBuyMarginLimits(other.getBuyMarginLimits());
}
if (other.hasSellLimits()) {
mergeSellLimits(other.getSellLimits());
}
if (other.hasSellMarginLimits()) {
mergeSellMarginLimits(other.getSellMarginLimits());
}
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: {
currency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getBuyLimitsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getBuyMarginLimitsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getSellLimitsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getSellMarginLimitsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
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 currency_ = "";
/**
*
*Валюта инструмента
*
*
* string currency = 1;
* @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 = 1;
* @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 = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Валюта инструмента
*
*
* string currency = 1;
* @return This builder for chaining.
*/
public Builder clearCurrency() {
currency_ = getDefaultInstance().getCurrency();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Валюта инструмента
*
*
* string currency = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView buyLimits_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder> buyLimitsBuilder_;
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
* @return Whether the buyLimits field is set.
*/
public boolean hasBuyLimits() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
* @return The buyLimits.
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView getBuyLimits() {
if (buyLimitsBuilder_ == null) {
return buyLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyLimits_;
} else {
return buyLimitsBuilder_.getMessage();
}
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
public Builder setBuyLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView value) {
if (buyLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buyLimits_ = value;
} else {
buyLimitsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
public Builder setBuyLimits(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder builderForValue) {
if (buyLimitsBuilder_ == null) {
buyLimits_ = builderForValue.build();
} else {
buyLimitsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
public Builder mergeBuyLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView value) {
if (buyLimitsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
buyLimits_ != null &&
buyLimits_ != ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance()) {
getBuyLimitsBuilder().mergeFrom(value);
} else {
buyLimits_ = value;
}
} else {
buyLimitsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
public Builder clearBuyLimits() {
bitField0_ = (bitField0_ & ~0x00000002);
buyLimits_ = null;
if (buyLimitsBuilder_ != null) {
buyLimitsBuilder_.dispose();
buyLimitsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder getBuyLimitsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBuyLimitsFieldBuilder().getBuilder();
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder getBuyLimitsOrBuilder() {
if (buyLimitsBuilder_ != null) {
return buyLimitsBuilder_.getMessageOrBuilder();
} else {
return buyLimits_ == null ?
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyLimits_;
}
}
/**
*
*Лимиты для покупок на собственные деньги
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_limits = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder>
getBuyLimitsFieldBuilder() {
if (buyLimitsBuilder_ == null) {
buyLimitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder>(
getBuyLimits(),
getParentForChildren(),
isClean());
buyLimits_ = null;
}
return buyLimitsBuilder_;
}
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView buyMarginLimits_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder> buyMarginLimitsBuilder_;
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
* @return Whether the buyMarginLimits field is set.
*/
public boolean hasBuyMarginLimits() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
* @return The buyMarginLimits.
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView getBuyMarginLimits() {
if (buyMarginLimitsBuilder_ == null) {
return buyMarginLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyMarginLimits_;
} else {
return buyMarginLimitsBuilder_.getMessage();
}
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
public Builder setBuyMarginLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView value) {
if (buyMarginLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buyMarginLimits_ = value;
} else {
buyMarginLimitsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
public Builder setBuyMarginLimits(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder builderForValue) {
if (buyMarginLimitsBuilder_ == null) {
buyMarginLimits_ = builderForValue.build();
} else {
buyMarginLimitsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
public Builder mergeBuyMarginLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView value) {
if (buyMarginLimitsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
buyMarginLimits_ != null &&
buyMarginLimits_ != ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance()) {
getBuyMarginLimitsBuilder().mergeFrom(value);
} else {
buyMarginLimits_ = value;
}
} else {
buyMarginLimitsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
public Builder clearBuyMarginLimits() {
bitField0_ = (bitField0_ & ~0x00000004);
buyMarginLimits_ = null;
if (buyMarginLimitsBuilder_ != null) {
buyMarginLimitsBuilder_.dispose();
buyMarginLimitsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder getBuyMarginLimitsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getBuyMarginLimitsFieldBuilder().getBuilder();
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder getBuyMarginLimitsOrBuilder() {
if (buyMarginLimitsBuilder_ != null) {
return buyMarginLimitsBuilder_.getMessageOrBuilder();
} else {
return buyMarginLimits_ == null ?
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.getDefaultInstance() : buyMarginLimits_;
}
}
/**
*
*Лимиты для покупок с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.BuyLimitsView buy_margin_limits = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder>
getBuyMarginLimitsFieldBuilder() {
if (buyMarginLimitsBuilder_ == null) {
buyMarginLimitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.BuyLimitsViewOrBuilder>(
getBuyMarginLimits(),
getParentForChildren(),
isClean());
buyMarginLimits_ = null;
}
return buyMarginLimitsBuilder_;
}
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView sellLimits_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder> sellLimitsBuilder_;
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
* @return Whether the sellLimits field is set.
*/
public boolean hasSellLimits() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
* @return The sellLimits.
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView getSellLimits() {
if (sellLimitsBuilder_ == null) {
return sellLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellLimits_;
} else {
return sellLimitsBuilder_.getMessage();
}
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
public Builder setSellLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView value) {
if (sellLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sellLimits_ = value;
} else {
sellLimitsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
public Builder setSellLimits(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder builderForValue) {
if (sellLimitsBuilder_ == null) {
sellLimits_ = builderForValue.build();
} else {
sellLimitsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
public Builder mergeSellLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView value) {
if (sellLimitsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
sellLimits_ != null &&
sellLimits_ != ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance()) {
getSellLimitsBuilder().mergeFrom(value);
} else {
sellLimits_ = value;
}
} else {
sellLimitsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
public Builder clearSellLimits() {
bitField0_ = (bitField0_ & ~0x00000008);
sellLimits_ = null;
if (sellLimitsBuilder_ != null) {
sellLimitsBuilder_.dispose();
sellLimitsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder getSellLimitsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getSellLimitsFieldBuilder().getBuilder();
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder getSellLimitsOrBuilder() {
if (sellLimitsBuilder_ != null) {
return sellLimitsBuilder_.getMessageOrBuilder();
} else {
return sellLimits_ == null ?
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellLimits_;
}
}
/**
*
*Лимиты для продаж по собственной позиции
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_limits = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder>
getSellLimitsFieldBuilder() {
if (sellLimitsBuilder_ == null) {
sellLimitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder>(
getSellLimits(),
getParentForChildren(),
isClean());
sellLimits_ = null;
}
return sellLimitsBuilder_;
}
private ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView sellMarginLimits_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder> sellMarginLimitsBuilder_;
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
* @return Whether the sellMarginLimits field is set.
*/
public boolean hasSellMarginLimits() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
* @return The sellMarginLimits.
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView getSellMarginLimits() {
if (sellMarginLimitsBuilder_ == null) {
return sellMarginLimits_ == null ? ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellMarginLimits_;
} else {
return sellMarginLimitsBuilder_.getMessage();
}
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
public Builder setSellMarginLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView value) {
if (sellMarginLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sellMarginLimits_ = value;
} else {
sellMarginLimitsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
public Builder setSellMarginLimits(
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder builderForValue) {
if (sellMarginLimitsBuilder_ == null) {
sellMarginLimits_ = builderForValue.build();
} else {
sellMarginLimitsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
public Builder mergeSellMarginLimits(ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView value) {
if (sellMarginLimitsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
sellMarginLimits_ != null &&
sellMarginLimits_ != ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance()) {
getSellMarginLimitsBuilder().mergeFrom(value);
} else {
sellMarginLimits_ = value;
}
} else {
sellMarginLimitsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
public Builder clearSellMarginLimits() {
bitField0_ = (bitField0_ & ~0x00000010);
sellMarginLimits_ = null;
if (sellMarginLimitsBuilder_ != null) {
sellMarginLimitsBuilder_.dispose();
sellMarginLimitsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder getSellMarginLimitsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getSellMarginLimitsFieldBuilder().getBuilder();
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
public ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder getSellMarginLimitsOrBuilder() {
if (sellMarginLimitsBuilder_ != null) {
return sellMarginLimitsBuilder_.getMessageOrBuilder();
} else {
return sellMarginLimits_ == null ?
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.getDefaultInstance() : sellMarginLimits_;
}
}
/**
*
*Лимиты для продаж с учетом маржинального кредитования
*
*
* .tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse.SellLimitsView sell_margin_limits = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder>
getSellMarginLimitsFieldBuilder() {
if (sellMarginLimitsBuilder_ == null) {
sellMarginLimitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsView.Builder, ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse.SellLimitsViewOrBuilder>(
getSellMarginLimits(),
getParentForChildren(),
isClean());
sellMarginLimits_ = null;
}
return sellMarginLimitsBuilder_;
}
@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.GetMaxLotsResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetMaxLotsResponse)
private static final ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse();
}
public static ru.tinkoff.piapi.contract.v1.GetMaxLotsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetMaxLotsResponse 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.GetMaxLotsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}