All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.PositionsResponse Maven / Gradle / Ivy

There is a newer version: 1.25
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: operations.proto

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Список позиций по счёту.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.PositionsResponse} */ public final class PositionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.PositionsResponse) PositionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PositionsResponse.newBuilder() to construct. private PositionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PositionsResponse() { money_ = java.util.Collections.emptyList(); blocked_ = java.util.Collections.emptyList(); securities_ = java.util.Collections.emptyList(); futures_ = java.util.Collections.emptyList(); options_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PositionsResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PositionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PositionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PositionsResponse.class, ru.tinkoff.piapi.contract.v1.PositionsResponse.Builder.class); } public static final int MONEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List money_; /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ @java.lang.Override public java.util.List getMoneyList() { return money_; } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ @java.lang.Override public java.util.List getMoneyOrBuilderList() { return money_; } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ @java.lang.Override public int getMoneyCount() { return money_.size(); } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getMoney(int index) { return money_.get(index); } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getMoneyOrBuilder( int index) { return money_.get(index); } public static final int BLOCKED_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List blocked_; /** *
   *Массив заблокированных валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ @java.lang.Override public java.util.List getBlockedList() { return blocked_; } /** *
   *Массив заблокированных валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ @java.lang.Override public java.util.List getBlockedOrBuilderList() { return blocked_; } /** *
   *Массив заблокированных валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ @java.lang.Override public int getBlockedCount() { return blocked_.size(); } /** *
   *Массив заблокированных валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getBlocked(int index) { return blocked_.get(index); } /** *
   *Массив заблокированных валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getBlockedOrBuilder( int index) { return blocked_.get(index); } public static final int SECURITIES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List securities_; /** *
   *Список ценно-бумажных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ @java.lang.Override public java.util.List getSecuritiesList() { return securities_; } /** *
   *Список ценно-бумажных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ @java.lang.Override public java.util.List getSecuritiesOrBuilderList() { return securities_; } /** *
   *Список ценно-бумажных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ @java.lang.Override public int getSecuritiesCount() { return securities_.size(); } /** *
   *Список ценно-бумажных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsSecurities getSecurities(int index) { return securities_.get(index); } /** *
   *Список ценно-бумажных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsSecuritiesOrBuilder getSecuritiesOrBuilder( int index) { return securities_.get(index); } public static final int LIMITS_LOADING_IN_PROGRESS_FIELD_NUMBER = 4; private boolean limitsLoadingInProgress_ = false; /** *
   *Признак идущей в данный момент выгрузки лимитов.
   * 
* * bool limits_loading_in_progress = 4; * @return The limitsLoadingInProgress. */ @java.lang.Override public boolean getLimitsLoadingInProgress() { return limitsLoadingInProgress_; } public static final int FUTURES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List futures_; /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ @java.lang.Override public java.util.List getFuturesList() { return futures_; } /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ @java.lang.Override public java.util.List getFuturesOrBuilderList() { return futures_; } /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ @java.lang.Override public int getFuturesCount() { return futures_.size(); } /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsFutures getFutures(int index) { return futures_.get(index); } /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsFuturesOrBuilder getFuturesOrBuilder( int index) { return futures_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List options_; /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ @java.lang.Override public java.util.List getOptionsOrBuilderList() { return options_; } /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsOptions getOptions(int index) { return options_.get(index); } /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsOptionsOrBuilder getOptionsOrBuilder( int index) { return options_.get(index); } 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 { for (int i = 0; i < money_.size(); i++) { output.writeMessage(1, money_.get(i)); } for (int i = 0; i < blocked_.size(); i++) { output.writeMessage(2, blocked_.get(i)); } for (int i = 0; i < securities_.size(); i++) { output.writeMessage(3, securities_.get(i)); } if (limitsLoadingInProgress_ != false) { output.writeBool(4, limitsLoadingInProgress_); } for (int i = 0; i < futures_.size(); i++) { output.writeMessage(5, futures_.get(i)); } for (int i = 0; i < options_.size(); i++) { output.writeMessage(6, options_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < money_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, money_.get(i)); } for (int i = 0; i < blocked_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, blocked_.get(i)); } for (int i = 0; i < securities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, securities_.get(i)); } if (limitsLoadingInProgress_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, limitsLoadingInProgress_); } for (int i = 0; i < futures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, futures_.get(i)); } for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, options_.get(i)); } 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.PositionsResponse)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.PositionsResponse other = (ru.tinkoff.piapi.contract.v1.PositionsResponse) obj; if (!getMoneyList() .equals(other.getMoneyList())) return false; if (!getBlockedList() .equals(other.getBlockedList())) return false; if (!getSecuritiesList() .equals(other.getSecuritiesList())) return false; if (getLimitsLoadingInProgress() != other.getLimitsLoadingInProgress()) return false; if (!getFuturesList() .equals(other.getFuturesList())) return false; if (!getOptionsList() .equals(other.getOptionsList())) 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 (getMoneyCount() > 0) { hash = (37 * hash) + MONEY_FIELD_NUMBER; hash = (53 * hash) + getMoneyList().hashCode(); } if (getBlockedCount() > 0) { hash = (37 * hash) + BLOCKED_FIELD_NUMBER; hash = (53 * hash) + getBlockedList().hashCode(); } if (getSecuritiesCount() > 0) { hash = (37 * hash) + SECURITIES_FIELD_NUMBER; hash = (53 * hash) + getSecuritiesList().hashCode(); } hash = (37 * hash) + LIMITS_LOADING_IN_PROGRESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLimitsLoadingInProgress()); if (getFuturesCount() > 0) { hash = (37 * hash) + FUTURES_FIELD_NUMBER; hash = (53 * hash) + getFuturesList().hashCode(); } if (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.PositionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PositionsResponse 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.PositionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PositionsResponse 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.PositionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PositionsResponse 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.PositionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PositionsResponse 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.PositionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PositionsResponse 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.PositionsResponse 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.PositionsResponse 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.PositionsResponse 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.PositionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.PositionsResponse) ru.tinkoff.piapi.contract.v1.PositionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PositionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PositionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PositionsResponse.class, ru.tinkoff.piapi.contract.v1.PositionsResponse.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.PositionsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (moneyBuilder_ == null) { money_ = java.util.Collections.emptyList(); } else { money_ = null; moneyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (blockedBuilder_ == null) { blocked_ = java.util.Collections.emptyList(); } else { blocked_ = null; blockedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (securitiesBuilder_ == null) { securities_ = java.util.Collections.emptyList(); } else { securities_ = null; securitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); limitsLoadingInProgress_ = false; if (futuresBuilder_ == null) { futures_ = java.util.Collections.emptyList(); } else { futures_ = null; futuresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); } else { options_ = null; optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PositionsResponse_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsResponse getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.PositionsResponse.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsResponse build() { ru.tinkoff.piapi.contract.v1.PositionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsResponse buildPartial() { ru.tinkoff.piapi.contract.v1.PositionsResponse result = new ru.tinkoff.piapi.contract.v1.PositionsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.PositionsResponse result) { if (moneyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { money_ = java.util.Collections.unmodifiableList(money_); bitField0_ = (bitField0_ & ~0x00000001); } result.money_ = money_; } else { result.money_ = moneyBuilder_.build(); } if (blockedBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { blocked_ = java.util.Collections.unmodifiableList(blocked_); bitField0_ = (bitField0_ & ~0x00000002); } result.blocked_ = blocked_; } else { result.blocked_ = blockedBuilder_.build(); } if (securitiesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { securities_ = java.util.Collections.unmodifiableList(securities_); bitField0_ = (bitField0_ & ~0x00000004); } result.securities_ = securities_; } else { result.securities_ = securitiesBuilder_.build(); } if (futuresBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { futures_ = java.util.Collections.unmodifiableList(futures_); bitField0_ = (bitField0_ & ~0x00000010); } result.futures_ = futures_; } else { result.futures_ = futuresBuilder_.build(); } if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000020); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } } private void buildPartial0(ru.tinkoff.piapi.contract.v1.PositionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { result.limitsLoadingInProgress_ = limitsLoadingInProgress_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.PositionsResponse) { return mergeFrom((ru.tinkoff.piapi.contract.v1.PositionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.PositionsResponse other) { if (other == ru.tinkoff.piapi.contract.v1.PositionsResponse.getDefaultInstance()) return this; if (moneyBuilder_ == null) { if (!other.money_.isEmpty()) { if (money_.isEmpty()) { money_ = other.money_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMoneyIsMutable(); money_.addAll(other.money_); } onChanged(); } } else { if (!other.money_.isEmpty()) { if (moneyBuilder_.isEmpty()) { moneyBuilder_.dispose(); moneyBuilder_ = null; money_ = other.money_; bitField0_ = (bitField0_ & ~0x00000001); moneyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMoneyFieldBuilder() : null; } else { moneyBuilder_.addAllMessages(other.money_); } } } if (blockedBuilder_ == null) { if (!other.blocked_.isEmpty()) { if (blocked_.isEmpty()) { blocked_ = other.blocked_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBlockedIsMutable(); blocked_.addAll(other.blocked_); } onChanged(); } } else { if (!other.blocked_.isEmpty()) { if (blockedBuilder_.isEmpty()) { blockedBuilder_.dispose(); blockedBuilder_ = null; blocked_ = other.blocked_; bitField0_ = (bitField0_ & ~0x00000002); blockedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBlockedFieldBuilder() : null; } else { blockedBuilder_.addAllMessages(other.blocked_); } } } if (securitiesBuilder_ == null) { if (!other.securities_.isEmpty()) { if (securities_.isEmpty()) { securities_ = other.securities_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSecuritiesIsMutable(); securities_.addAll(other.securities_); } onChanged(); } } else { if (!other.securities_.isEmpty()) { if (securitiesBuilder_.isEmpty()) { securitiesBuilder_.dispose(); securitiesBuilder_ = null; securities_ = other.securities_; bitField0_ = (bitField0_ & ~0x00000004); securitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecuritiesFieldBuilder() : null; } else { securitiesBuilder_.addAllMessages(other.securities_); } } } if (other.getLimitsLoadingInProgress() != false) { setLimitsLoadingInProgress(other.getLimitsLoadingInProgress()); } if (futuresBuilder_ == null) { if (!other.futures_.isEmpty()) { if (futures_.isEmpty()) { futures_ = other.futures_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFuturesIsMutable(); futures_.addAll(other.futures_); } onChanged(); } } else { if (!other.futures_.isEmpty()) { if (futuresBuilder_.isEmpty()) { futuresBuilder_.dispose(); futuresBuilder_ = null; futures_ = other.futures_; bitField0_ = (bitField0_ & ~0x00000010); futuresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFuturesFieldBuilder() : null; } else { futuresBuilder_.addAllMessages(other.futures_); } } } if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { if (options_.isEmpty()) { options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000020); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } 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: { ru.tinkoff.piapi.contract.v1.MoneyValue m = input.readMessage( ru.tinkoff.piapi.contract.v1.MoneyValue.parser(), extensionRegistry); if (moneyBuilder_ == null) { ensureMoneyIsMutable(); money_.add(m); } else { moneyBuilder_.addMessage(m); } break; } // case 10 case 18: { ru.tinkoff.piapi.contract.v1.MoneyValue m = input.readMessage( ru.tinkoff.piapi.contract.v1.MoneyValue.parser(), extensionRegistry); if (blockedBuilder_ == null) { ensureBlockedIsMutable(); blocked_.add(m); } else { blockedBuilder_.addMessage(m); } break; } // case 18 case 26: { ru.tinkoff.piapi.contract.v1.PositionsSecurities m = input.readMessage( ru.tinkoff.piapi.contract.v1.PositionsSecurities.parser(), extensionRegistry); if (securitiesBuilder_ == null) { ensureSecuritiesIsMutable(); securities_.add(m); } else { securitiesBuilder_.addMessage(m); } break; } // case 26 case 32: { limitsLoadingInProgress_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { ru.tinkoff.piapi.contract.v1.PositionsFutures m = input.readMessage( ru.tinkoff.piapi.contract.v1.PositionsFutures.parser(), extensionRegistry); if (futuresBuilder_ == null) { ensureFuturesIsMutable(); futures_.add(m); } else { futuresBuilder_.addMessage(m); } break; } // case 42 case 50: { ru.tinkoff.piapi.contract.v1.PositionsOptions m = input.readMessage( ru.tinkoff.piapi.contract.v1.PositionsOptions.parser(), extensionRegistry); if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(m); } else { optionsBuilder_.addMessage(m); } break; } // case 50 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.util.List money_ = java.util.Collections.emptyList(); private void ensureMoneyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { money_ = new java.util.ArrayList(money_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> moneyBuilder_; /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public java.util.List getMoneyList() { if (moneyBuilder_ == null) { return java.util.Collections.unmodifiableList(money_); } else { return moneyBuilder_.getMessageList(); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public int getMoneyCount() { if (moneyBuilder_ == null) { return money_.size(); } else { return moneyBuilder_.getCount(); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValue getMoney(int index) { if (moneyBuilder_ == null) { return money_.get(index); } else { return moneyBuilder_.getMessage(index); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder setMoney( int index, ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (moneyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMoneyIsMutable(); money_.set(index, value); onChanged(); } else { moneyBuilder_.setMessage(index, value); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder setMoney( int index, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (moneyBuilder_ == null) { ensureMoneyIsMutable(); money_.set(index, builderForValue.build()); onChanged(); } else { moneyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder addMoney(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (moneyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMoneyIsMutable(); money_.add(value); onChanged(); } else { moneyBuilder_.addMessage(value); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder addMoney( int index, ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (moneyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMoneyIsMutable(); money_.add(index, value); onChanged(); } else { moneyBuilder_.addMessage(index, value); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder addMoney( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (moneyBuilder_ == null) { ensureMoneyIsMutable(); money_.add(builderForValue.build()); onChanged(); } else { moneyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder addMoney( int index, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (moneyBuilder_ == null) { ensureMoneyIsMutable(); money_.add(index, builderForValue.build()); onChanged(); } else { moneyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder addAllMoney( java.lang.Iterable values) { if (moneyBuilder_ == null) { ensureMoneyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, money_); onChanged(); } else { moneyBuilder_.addAllMessages(values); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder clearMoney() { if (moneyBuilder_ == null) { money_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { moneyBuilder_.clear(); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public Builder removeMoney(int index) { if (moneyBuilder_ == null) { ensureMoneyIsMutable(); money_.remove(index); onChanged(); } else { moneyBuilder_.remove(index); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getMoneyBuilder( int index) { return getMoneyFieldBuilder().getBuilder(index); } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getMoneyOrBuilder( int index) { if (moneyBuilder_ == null) { return money_.get(index); } else { return moneyBuilder_.getMessageOrBuilder(index); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public java.util.List getMoneyOrBuilderList() { if (moneyBuilder_ != null) { return moneyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(money_); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder addMoneyBuilder() { return getMoneyFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()); } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder addMoneyBuilder( int index) { return getMoneyFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()); } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue money = 1; */ public java.util.List getMoneyBuilderList() { return getMoneyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getMoneyFieldBuilder() { if (moneyBuilder_ == null) { moneyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( money_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); money_ = null; } return moneyBuilder_; } private java.util.List blocked_ = java.util.Collections.emptyList(); private void ensureBlockedIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blocked_ = new java.util.ArrayList(blocked_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> blockedBuilder_; /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public java.util.List getBlockedList() { if (blockedBuilder_ == null) { return java.util.Collections.unmodifiableList(blocked_); } else { return blockedBuilder_.getMessageList(); } } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public int getBlockedCount() { if (blockedBuilder_ == null) { return blocked_.size(); } else { return blockedBuilder_.getCount(); } } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public ru.tinkoff.piapi.contract.v1.MoneyValue getBlocked(int index) { if (blockedBuilder_ == null) { return blocked_.get(index); } else { return blockedBuilder_.getMessage(index); } } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder setBlocked( int index, ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (blockedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlockedIsMutable(); blocked_.set(index, value); onChanged(); } else { blockedBuilder_.setMessage(index, value); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder setBlocked( int index, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (blockedBuilder_ == null) { ensureBlockedIsMutable(); blocked_.set(index, builderForValue.build()); onChanged(); } else { blockedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder addBlocked(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (blockedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlockedIsMutable(); blocked_.add(value); onChanged(); } else { blockedBuilder_.addMessage(value); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder addBlocked( int index, ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (blockedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlockedIsMutable(); blocked_.add(index, value); onChanged(); } else { blockedBuilder_.addMessage(index, value); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder addBlocked( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (blockedBuilder_ == null) { ensureBlockedIsMutable(); blocked_.add(builderForValue.build()); onChanged(); } else { blockedBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder addBlocked( int index, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (blockedBuilder_ == null) { ensureBlockedIsMutable(); blocked_.add(index, builderForValue.build()); onChanged(); } else { blockedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder addAllBlocked( java.lang.Iterable values) { if (blockedBuilder_ == null) { ensureBlockedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blocked_); onChanged(); } else { blockedBuilder_.addAllMessages(values); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder clearBlocked() { if (blockedBuilder_ == null) { blocked_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { blockedBuilder_.clear(); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public Builder removeBlocked(int index) { if (blockedBuilder_ == null) { ensureBlockedIsMutable(); blocked_.remove(index); onChanged(); } else { blockedBuilder_.remove(index); } return this; } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getBlockedBuilder( int index) { return getBlockedFieldBuilder().getBuilder(index); } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getBlockedOrBuilder( int index) { if (blockedBuilder_ == null) { return blocked_.get(index); } else { return blockedBuilder_.getMessageOrBuilder(index); } } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public java.util.List getBlockedOrBuilderList() { if (blockedBuilder_ != null) { return blockedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocked_); } } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder addBlockedBuilder() { return getBlockedFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()); } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder addBlockedBuilder( int index) { return getBlockedFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()); } /** *
     *Массив заблокированных валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked = 2; */ public java.util.List getBlockedBuilderList() { return getBlockedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getBlockedFieldBuilder() { if (blockedBuilder_ == null) { blockedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( blocked_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); blocked_ = null; } return blockedBuilder_; } private java.util.List securities_ = java.util.Collections.emptyList(); private void ensureSecuritiesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { securities_ = new java.util.ArrayList(securities_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsSecurities, ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder, ru.tinkoff.piapi.contract.v1.PositionsSecuritiesOrBuilder> securitiesBuilder_; /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public java.util.List getSecuritiesList() { if (securitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(securities_); } else { return securitiesBuilder_.getMessageList(); } } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public int getSecuritiesCount() { if (securitiesBuilder_ == null) { return securities_.size(); } else { return securitiesBuilder_.getCount(); } } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public ru.tinkoff.piapi.contract.v1.PositionsSecurities getSecurities(int index) { if (securitiesBuilder_ == null) { return securities_.get(index); } else { return securitiesBuilder_.getMessage(index); } } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder setSecurities( int index, ru.tinkoff.piapi.contract.v1.PositionsSecurities value) { if (securitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecuritiesIsMutable(); securities_.set(index, value); onChanged(); } else { securitiesBuilder_.setMessage(index, value); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder setSecurities( int index, ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder builderForValue) { if (securitiesBuilder_ == null) { ensureSecuritiesIsMutable(); securities_.set(index, builderForValue.build()); onChanged(); } else { securitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder addSecurities(ru.tinkoff.piapi.contract.v1.PositionsSecurities value) { if (securitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecuritiesIsMutable(); securities_.add(value); onChanged(); } else { securitiesBuilder_.addMessage(value); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder addSecurities( int index, ru.tinkoff.piapi.contract.v1.PositionsSecurities value) { if (securitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecuritiesIsMutable(); securities_.add(index, value); onChanged(); } else { securitiesBuilder_.addMessage(index, value); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder addSecurities( ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder builderForValue) { if (securitiesBuilder_ == null) { ensureSecuritiesIsMutable(); securities_.add(builderForValue.build()); onChanged(); } else { securitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder addSecurities( int index, ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder builderForValue) { if (securitiesBuilder_ == null) { ensureSecuritiesIsMutable(); securities_.add(index, builderForValue.build()); onChanged(); } else { securitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder addAllSecurities( java.lang.Iterable values) { if (securitiesBuilder_ == null) { ensureSecuritiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securities_); onChanged(); } else { securitiesBuilder_.addAllMessages(values); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder clearSecurities() { if (securitiesBuilder_ == null) { securities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { securitiesBuilder_.clear(); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public Builder removeSecurities(int index) { if (securitiesBuilder_ == null) { ensureSecuritiesIsMutable(); securities_.remove(index); onChanged(); } else { securitiesBuilder_.remove(index); } return this; } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder getSecuritiesBuilder( int index) { return getSecuritiesFieldBuilder().getBuilder(index); } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public ru.tinkoff.piapi.contract.v1.PositionsSecuritiesOrBuilder getSecuritiesOrBuilder( int index) { if (securitiesBuilder_ == null) { return securities_.get(index); } else { return securitiesBuilder_.getMessageOrBuilder(index); } } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public java.util.List getSecuritiesOrBuilderList() { if (securitiesBuilder_ != null) { return securitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(securities_); } } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder addSecuritiesBuilder() { return getSecuritiesFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.PositionsSecurities.getDefaultInstance()); } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder addSecuritiesBuilder( int index) { return getSecuritiesFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.PositionsSecurities.getDefaultInstance()); } /** *
     *Список ценно-бумажных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsSecurities securities = 3; */ public java.util.List getSecuritiesBuilderList() { return getSecuritiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsSecurities, ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder, ru.tinkoff.piapi.contract.v1.PositionsSecuritiesOrBuilder> getSecuritiesFieldBuilder() { if (securitiesBuilder_ == null) { securitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsSecurities, ru.tinkoff.piapi.contract.v1.PositionsSecurities.Builder, ru.tinkoff.piapi.contract.v1.PositionsSecuritiesOrBuilder>( securities_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); securities_ = null; } return securitiesBuilder_; } private boolean limitsLoadingInProgress_ ; /** *
     *Признак идущей в данный момент выгрузки лимитов.
     * 
* * bool limits_loading_in_progress = 4; * @return The limitsLoadingInProgress. */ @java.lang.Override public boolean getLimitsLoadingInProgress() { return limitsLoadingInProgress_; } /** *
     *Признак идущей в данный момент выгрузки лимитов.
     * 
* * bool limits_loading_in_progress = 4; * @param value The limitsLoadingInProgress to set. * @return This builder for chaining. */ public Builder setLimitsLoadingInProgress(boolean value) { limitsLoadingInProgress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Признак идущей в данный момент выгрузки лимитов.
     * 
* * bool limits_loading_in_progress = 4; * @return This builder for chaining. */ public Builder clearLimitsLoadingInProgress() { bitField0_ = (bitField0_ & ~0x00000008); limitsLoadingInProgress_ = false; onChanged(); return this; } private java.util.List futures_ = java.util.Collections.emptyList(); private void ensureFuturesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { futures_ = new java.util.ArrayList(futures_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsFutures, ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder, ru.tinkoff.piapi.contract.v1.PositionsFuturesOrBuilder> futuresBuilder_; /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public java.util.List getFuturesList() { if (futuresBuilder_ == null) { return java.util.Collections.unmodifiableList(futures_); } else { return futuresBuilder_.getMessageList(); } } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public int getFuturesCount() { if (futuresBuilder_ == null) { return futures_.size(); } else { return futuresBuilder_.getCount(); } } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public ru.tinkoff.piapi.contract.v1.PositionsFutures getFutures(int index) { if (futuresBuilder_ == null) { return futures_.get(index); } else { return futuresBuilder_.getMessage(index); } } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder setFutures( int index, ru.tinkoff.piapi.contract.v1.PositionsFutures value) { if (futuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuturesIsMutable(); futures_.set(index, value); onChanged(); } else { futuresBuilder_.setMessage(index, value); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder setFutures( int index, ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder builderForValue) { if (futuresBuilder_ == null) { ensureFuturesIsMutable(); futures_.set(index, builderForValue.build()); onChanged(); } else { futuresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder addFutures(ru.tinkoff.piapi.contract.v1.PositionsFutures value) { if (futuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuturesIsMutable(); futures_.add(value); onChanged(); } else { futuresBuilder_.addMessage(value); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder addFutures( int index, ru.tinkoff.piapi.contract.v1.PositionsFutures value) { if (futuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuturesIsMutable(); futures_.add(index, value); onChanged(); } else { futuresBuilder_.addMessage(index, value); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder addFutures( ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder builderForValue) { if (futuresBuilder_ == null) { ensureFuturesIsMutable(); futures_.add(builderForValue.build()); onChanged(); } else { futuresBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder addFutures( int index, ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder builderForValue) { if (futuresBuilder_ == null) { ensureFuturesIsMutable(); futures_.add(index, builderForValue.build()); onChanged(); } else { futuresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder addAllFutures( java.lang.Iterable values) { if (futuresBuilder_ == null) { ensureFuturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, futures_); onChanged(); } else { futuresBuilder_.addAllMessages(values); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder clearFutures() { if (futuresBuilder_ == null) { futures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { futuresBuilder_.clear(); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public Builder removeFutures(int index) { if (futuresBuilder_ == null) { ensureFuturesIsMutable(); futures_.remove(index); onChanged(); } else { futuresBuilder_.remove(index); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder getFuturesBuilder( int index) { return getFuturesFieldBuilder().getBuilder(index); } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public ru.tinkoff.piapi.contract.v1.PositionsFuturesOrBuilder getFuturesOrBuilder( int index) { if (futuresBuilder_ == null) { return futures_.get(index); } else { return futuresBuilder_.getMessageOrBuilder(index); } } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public java.util.List getFuturesOrBuilderList() { if (futuresBuilder_ != null) { return futuresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(futures_); } } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder addFuturesBuilder() { return getFuturesFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.PositionsFutures.getDefaultInstance()); } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder addFuturesBuilder( int index) { return getFuturesFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.PositionsFutures.getDefaultInstance()); } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 5; */ public java.util.List getFuturesBuilderList() { return getFuturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsFutures, ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder, ru.tinkoff.piapi.contract.v1.PositionsFuturesOrBuilder> getFuturesFieldBuilder() { if (futuresBuilder_ == null) { futuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsFutures, ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder, ru.tinkoff.piapi.contract.v1.PositionsFuturesOrBuilder>( futures_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); futures_ = null; } return futuresBuilder_; } private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsOptions, ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder, ru.tinkoff.piapi.contract.v1.PositionsOptionsOrBuilder> optionsBuilder_; /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public java.util.List getOptionsList() { if (optionsBuilder_ == null) { return java.util.Collections.unmodifiableList(options_); } else { return optionsBuilder_.getMessageList(); } } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public ru.tinkoff.piapi.contract.v1.PositionsOptions getOptions(int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessage(index); } } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder setOptions( int index, ru.tinkoff.piapi.contract.v1.PositionsOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); onChanged(); } else { optionsBuilder_.setMessage(index, value); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder setOptions( int index, ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder addOptions(ru.tinkoff.piapi.contract.v1.PositionsOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); onChanged(); } else { optionsBuilder_.addMessage(value); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder addOptions( int index, ru.tinkoff.piapi.contract.v1.PositionsOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); onChanged(); } else { optionsBuilder_.addMessage(index, value); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder addOptions( ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder addOptions( int index, ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder addAllOptions( java.lang.Iterable values) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, options_); onChanged(); } else { optionsBuilder_.addAllMessages(values); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public Builder removeOptions(int index) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.remove(index); onChanged(); } else { optionsBuilder_.remove(index); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder getOptionsBuilder( int index) { return getOptionsFieldBuilder().getBuilder(index); } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public ru.tinkoff.piapi.contract.v1.PositionsOptionsOrBuilder getOptionsOrBuilder( int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessageOrBuilder(index); } } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public java.util.List getOptionsOrBuilderList() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(options_); } } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder addOptionsBuilder() { return getOptionsFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.PositionsOptions.getDefaultInstance()); } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder addOptionsBuilder( int index) { return getOptionsFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.PositionsOptions.getDefaultInstance()); } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 6; */ public java.util.List getOptionsBuilderList() { return getOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsOptions, ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder, ru.tinkoff.piapi.contract.v1.PositionsOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsOptions, ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder, ru.tinkoff.piapi.contract.v1.PositionsOptionsOrBuilder>( options_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @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.PositionsResponse) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.PositionsResponse) private static final ru.tinkoff.piapi.contract.v1.PositionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.PositionsResponse(); } public static ru.tinkoff.piapi.contract.v1.PositionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PositionsResponse 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.PositionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy