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

ru.tinkoff.piapi.contract.v1.PositionData 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.PositionData} */ public final class PositionData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.PositionData) PositionDataOrBuilder { private static final long serialVersionUID = 0L; // Use PositionData.newBuilder() to construct. private PositionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PositionData() { accountId_ = ""; money_ = 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 PositionData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PositionData_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_PositionData_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PositionData.class, ru.tinkoff.piapi.contract.v1.PositionData.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** *
   *Идентификатор счёта.
   * 
* * string account_id = 1; * @return The accountId. */ @java.lang.Override public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** *
   *Идентификатор счёта.
   * 
* * string account_id = 1; * @return The bytes for accountId. */ @java.lang.Override public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MONEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List money_; /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ @java.lang.Override public java.util.List getMoneyList() { return money_; } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ @java.lang.Override public java.util.List getMoneyOrBuilderList() { return money_; } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ @java.lang.Override public int getMoneyCount() { return money_.size(); } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsMoney getMoney(int index) { return money_.get(index); } /** *
   *Массив валютных позиций портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsMoneyOrBuilder getMoneyOrBuilder( int index) { return money_.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 FUTURES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List futures_; /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 4; */ @java.lang.Override public java.util.List getFuturesList() { return futures_; } /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 4; */ @java.lang.Override public java.util.List getFuturesOrBuilderList() { return futures_; } /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 4; */ @java.lang.Override public int getFuturesCount() { return futures_.size(); } /** *
   *Список фьючерсов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 4; */ @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 = 4; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsFuturesOrBuilder getFuturesOrBuilder( int index) { return futures_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List options_; /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 5; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 5; */ @java.lang.Override public java.util.List getOptionsOrBuilderList() { return options_; } /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 5; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** *
   *Список опционов портфеля.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 5; */ @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 = 5; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionsOptionsOrBuilder getOptionsOrBuilder( int index) { return options_.get(index); } public static final int DATE_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp date_; /** *
   *Дата и время операции в формате UTC.
   * 
* * .google.protobuf.Timestamp date = 6; * @return Whether the date field is set. */ @java.lang.Override public boolean hasDate() { return date_ != null; } /** *
   *Дата и время операции в формате UTC.
   * 
* * .google.protobuf.Timestamp date = 6; * @return The date. */ @java.lang.Override public com.google.protobuf.Timestamp getDate() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } /** *
   *Дата и время операции в формате UTC.
   * 
* * .google.protobuf.Timestamp date = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } 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(accountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountId_); } for (int i = 0; i < money_.size(); i++) { output.writeMessage(2, money_.get(i)); } for (int i = 0; i < securities_.size(); i++) { output.writeMessage(3, securities_.get(i)); } for (int i = 0; i < futures_.size(); i++) { output.writeMessage(4, futures_.get(i)); } for (int i = 0; i < options_.size(); i++) { output.writeMessage(5, options_.get(i)); } if (date_ != null) { output.writeMessage(6, getDate()); } 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(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountId_); } for (int i = 0; i < money_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, money_.get(i)); } for (int i = 0; i < securities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, securities_.get(i)); } for (int i = 0; i < futures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, futures_.get(i)); } for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, options_.get(i)); } if (date_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDate()); } 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.PositionData)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.PositionData other = (ru.tinkoff.piapi.contract.v1.PositionData) obj; if (!getAccountId() .equals(other.getAccountId())) return false; if (!getMoneyList() .equals(other.getMoneyList())) return false; if (!getSecuritiesList() .equals(other.getSecuritiesList())) return false; if (!getFuturesList() .equals(other.getFuturesList())) return false; if (!getOptionsList() .equals(other.getOptionsList())) return false; if (hasDate() != other.hasDate()) return false; if (hasDate()) { if (!getDate() .equals(other.getDate())) 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) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); if (getMoneyCount() > 0) { hash = (37 * hash) + MONEY_FIELD_NUMBER; hash = (53 * hash) + getMoneyList().hashCode(); } if (getSecuritiesCount() > 0) { hash = (37 * hash) + SECURITIES_FIELD_NUMBER; hash = (53 * hash) + getSecuritiesList().hashCode(); } 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(); } if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.PositionData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PositionData 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.PositionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PositionData 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.PositionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.PositionData 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.PositionData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PositionData 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.PositionData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.PositionData 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.PositionData 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.PositionData 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.PositionData 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.PositionData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.PositionData) ru.tinkoff.piapi.contract.v1.PositionDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_PositionData_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_PositionData_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.PositionData.class, ru.tinkoff.piapi.contract.v1.PositionData.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.PositionData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountId_ = ""; if (moneyBuilder_ == null) { money_ = java.util.Collections.emptyList(); } else { money_ = null; moneyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (securitiesBuilder_ == null) { securities_ = java.util.Collections.emptyList(); } else { securities_ = null; securitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (futuresBuilder_ == null) { futures_ = java.util.Collections.emptyList(); } else { futures_ = null; futuresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); } else { options_ = null; optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } 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_PositionData_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionData getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.PositionData.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionData build() { ru.tinkoff.piapi.contract.v1.PositionData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.PositionData buildPartial() { ru.tinkoff.piapi.contract.v1.PositionData result = new ru.tinkoff.piapi.contract.v1.PositionData(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.PositionData result) { if (moneyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { money_ = java.util.Collections.unmodifiableList(money_); bitField0_ = (bitField0_ & ~0x00000002); } result.money_ = money_; } else { result.money_ = moneyBuilder_.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_ & 0x00000008) != 0)) { futures_ = java.util.Collections.unmodifiableList(futures_); bitField0_ = (bitField0_ & ~0x00000008); } result.futures_ = futures_; } else { result.futures_ = futuresBuilder_.build(); } if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000010); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } } private void buildPartial0(ru.tinkoff.piapi.contract.v1.PositionData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.PositionData) { return mergeFrom((ru.tinkoff.piapi.contract.v1.PositionData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.PositionData other) { if (other == ru.tinkoff.piapi.contract.v1.PositionData.getDefaultInstance()) return this; if (!other.getAccountId().isEmpty()) { accountId_ = other.accountId_; bitField0_ |= 0x00000001; onChanged(); } if (moneyBuilder_ == null) { if (!other.money_.isEmpty()) { if (money_.isEmpty()) { money_ = other.money_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMoneyIsMutable(); money_.addAll(other.money_); } onChanged(); } } else { if (!other.money_.isEmpty()) { if (moneyBuilder_.isEmpty()) { moneyBuilder_.dispose(); moneyBuilder_ = null; money_ = other.money_; bitField0_ = (bitField0_ & ~0x00000002); moneyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMoneyFieldBuilder() : null; } else { moneyBuilder_.addAllMessages(other.money_); } } } 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 (futuresBuilder_ == null) { if (!other.futures_.isEmpty()) { if (futures_.isEmpty()) { futures_ = other.futures_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFuturesIsMutable(); futures_.addAll(other.futures_); } onChanged(); } } else { if (!other.futures_.isEmpty()) { if (futuresBuilder_.isEmpty()) { futuresBuilder_.dispose(); futuresBuilder_ = null; futures_ = other.futures_; bitField0_ = (bitField0_ & ~0x00000008); 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_ & ~0x00000010); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000010); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } if (other.hasDate()) { mergeDate(other.getDate()); } 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: { accountId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ru.tinkoff.piapi.contract.v1.PositionsMoney m = input.readMessage( ru.tinkoff.piapi.contract.v1.PositionsMoney.parser(), extensionRegistry); if (moneyBuilder_ == null) { ensureMoneyIsMutable(); money_.add(m); } else { moneyBuilder_.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 34: { 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 34 case 42: { 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 42 case 50: { input.readMessage( getDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; 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.lang.Object accountId_ = ""; /** *
     *Идентификатор счёта.
     * 
* * string account_id = 1; * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Идентификатор счёта.
     * 
* * string account_id = 1; * @return The bytes for accountId. */ public com.google.protobuf.ByteString getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Идентификатор счёта.
     * 
* * string account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Идентификатор счёта.
     * 
* * string account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = getDefaultInstance().getAccountId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *Идентификатор счёта.
     * 
* * string account_id = 1; * @param value The bytes for accountId to set. * @return This builder for chaining. */ public Builder setAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List money_ = java.util.Collections.emptyList(); private void ensureMoneyIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { money_ = new java.util.ArrayList(money_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsMoney, ru.tinkoff.piapi.contract.v1.PositionsMoney.Builder, ru.tinkoff.piapi.contract.v1.PositionsMoneyOrBuilder> moneyBuilder_; /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ 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.PositionsMoney money = 2; */ public int getMoneyCount() { if (moneyBuilder_ == null) { return money_.size(); } else { return moneyBuilder_.getCount(); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ public ru.tinkoff.piapi.contract.v1.PositionsMoney getMoney(int index) { if (moneyBuilder_ == null) { return money_.get(index); } else { return moneyBuilder_.getMessage(index); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ public Builder setMoney( int index, ru.tinkoff.piapi.contract.v1.PositionsMoney 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.PositionsMoney money = 2; */ public Builder setMoney( int index, ru.tinkoff.piapi.contract.v1.PositionsMoney.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.PositionsMoney money = 2; */ public Builder addMoney(ru.tinkoff.piapi.contract.v1.PositionsMoney 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.PositionsMoney money = 2; */ public Builder addMoney( int index, ru.tinkoff.piapi.contract.v1.PositionsMoney 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.PositionsMoney money = 2; */ public Builder addMoney( ru.tinkoff.piapi.contract.v1.PositionsMoney.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.PositionsMoney money = 2; */ public Builder addMoney( int index, ru.tinkoff.piapi.contract.v1.PositionsMoney.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.PositionsMoney money = 2; */ 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.PositionsMoney money = 2; */ public Builder clearMoney() { if (moneyBuilder_ == null) { money_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { moneyBuilder_.clear(); } return this; } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ 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.PositionsMoney money = 2; */ public ru.tinkoff.piapi.contract.v1.PositionsMoney.Builder getMoneyBuilder( int index) { return getMoneyFieldBuilder().getBuilder(index); } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ public ru.tinkoff.piapi.contract.v1.PositionsMoneyOrBuilder getMoneyOrBuilder( int index) { if (moneyBuilder_ == null) { return money_.get(index); } else { return moneyBuilder_.getMessageOrBuilder(index); } } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ 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.PositionsMoney money = 2; */ public ru.tinkoff.piapi.contract.v1.PositionsMoney.Builder addMoneyBuilder() { return getMoneyFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.PositionsMoney.getDefaultInstance()); } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ public ru.tinkoff.piapi.contract.v1.PositionsMoney.Builder addMoneyBuilder( int index) { return getMoneyFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.PositionsMoney.getDefaultInstance()); } /** *
     *Массив валютных позиций портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsMoney money = 2; */ public java.util.List getMoneyBuilderList() { return getMoneyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsMoney, ru.tinkoff.piapi.contract.v1.PositionsMoney.Builder, ru.tinkoff.piapi.contract.v1.PositionsMoneyOrBuilder> getMoneyFieldBuilder() { if (moneyBuilder_ == null) { moneyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.PositionsMoney, ru.tinkoff.piapi.contract.v1.PositionsMoney.Builder, ru.tinkoff.piapi.contract.v1.PositionsMoneyOrBuilder>( money_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); money_ = null; } return moneyBuilder_; } 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 java.util.List futures_ = java.util.Collections.emptyList(); private void ensureFuturesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { futures_ = new java.util.ArrayList(futures_); bitField0_ |= 0x00000008; } } 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 = 4; */ 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 = 4; */ public int getFuturesCount() { if (futuresBuilder_ == null) { return futures_.size(); } else { return futuresBuilder_.getCount(); } } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ public Builder clearFutures() { if (futuresBuilder_ == null) { futures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { futuresBuilder_.clear(); } return this; } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 4; */ 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 = 4; */ public ru.tinkoff.piapi.contract.v1.PositionsFutures.Builder getFuturesBuilder( int index) { return getFuturesFieldBuilder().getBuilder(index); } /** *
     *Список фьючерсов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsFutures futures = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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_ & 0x00000008) != 0), getParentForChildren(), isClean()); futures_ = null; } return futuresBuilder_; } private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000010; } } 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 = 5; */ 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 = 5; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 5; */ 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 = 5; */ public ru.tinkoff.piapi.contract.v1.PositionsOptions.Builder getOptionsBuilder( int index) { return getOptionsFieldBuilder().getBuilder(index); } /** *
     *Список опционов портфеля.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.PositionsOptions options = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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_ & 0x00000010) != 0), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private com.google.protobuf.Timestamp date_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateBuilder_; /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; * @return Whether the date field is set. */ public boolean hasDate() { return ((bitField0_ & 0x00000020) != 0); } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; * @return The date. */ public com.google.protobuf.Timestamp getDate() { if (dateBuilder_ == null) { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } else { return dateBuilder_.getMessage(); } } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; */ public Builder setDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } date_ = value; } else { dateBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; */ public Builder setDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateBuilder_ == null) { date_ = builderForValue.build(); } else { dateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; */ public Builder mergeDate(com.google.protobuf.Timestamp value) { if (dateBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && date_ != null && date_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDateBuilder().mergeFrom(value); } else { date_ = value; } } else { dateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; */ public Builder clearDate() { bitField0_ = (bitField0_ & ~0x00000020); date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); dateBuilder_ = null; } onChanged(); return this; } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; */ public com.google.protobuf.Timestamp.Builder getDateBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDateFieldBuilder().getBuilder(); } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; */ public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() { if (dateBuilder_ != null) { return dateBuilder_.getMessageOrBuilder(); } else { return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_; } } /** *
     *Дата и время операции в формате UTC.
     * 
* * .google.protobuf.Timestamp date = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDateFieldBuilder() { if (dateBuilder_ == null) { dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDate(), getParentForChildren(), isClean()); date_ = null; } return dateBuilder_; } @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.PositionData) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.PositionData) private static final ru.tinkoff.piapi.contract.v1.PositionData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.PositionData(); } public static ru.tinkoff.piapi.contract.v1.PositionData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PositionData 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.PositionData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy