Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse Maven / Gradle / Ivy
// 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.WithdrawLimitsResponse}
*/
public final class WithdrawLimitsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.WithdrawLimitsResponse)
WithdrawLimitsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WithdrawLimitsResponse.newBuilder() to construct.
private WithdrawLimitsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WithdrawLimitsResponse() {
money_ = java.util.Collections.emptyList();
blocked_ = java.util.Collections.emptyList();
blockedGuarantee_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WithdrawLimitsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_WithdrawLimitsResponse_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_WithdrawLimitsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.class, ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.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 extends ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
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 extends ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
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 BLOCKED_GUARANTEE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List blockedGuarantee_;
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
@java.lang.Override
public java.util.List getBlockedGuaranteeList() {
return blockedGuarantee_;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getBlockedGuaranteeOrBuilderList() {
return blockedGuarantee_;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
@java.lang.Override
public int getBlockedGuaranteeCount() {
return blockedGuarantee_.size();
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MoneyValue getBlockedGuarantee(int index) {
return blockedGuarantee_.get(index);
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getBlockedGuaranteeOrBuilder(
int index) {
return blockedGuarantee_.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 < blockedGuarantee_.size(); i++) {
output.writeMessage(3, blockedGuarantee_.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 < blockedGuarantee_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, blockedGuarantee_.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.WithdrawLimitsResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse other = (ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse) obj;
if (!getMoneyList()
.equals(other.getMoneyList())) return false;
if (!getBlockedList()
.equals(other.getBlockedList())) return false;
if (!getBlockedGuaranteeList()
.equals(other.getBlockedGuaranteeList())) 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 (getBlockedGuaranteeCount() > 0) {
hash = (37 * hash) + BLOCKED_GUARANTEE_FIELD_NUMBER;
hash = (53 * hash) + getBlockedGuaranteeList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse 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.WithdrawLimitsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse 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.WithdrawLimitsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse 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.WithdrawLimitsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse 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.WithdrawLimitsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse 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.WithdrawLimitsResponse 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.WithdrawLimitsResponse 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.WithdrawLimitsResponse 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.WithdrawLimitsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.WithdrawLimitsResponse)
ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_WithdrawLimitsResponse_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_WithdrawLimitsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.class, ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.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 (blockedGuaranteeBuilder_ == null) {
blockedGuarantee_ = java.util.Collections.emptyList();
} else {
blockedGuarantee_ = null;
blockedGuaranteeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
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_WithdrawLimitsResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse build() {
ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse result = new ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse 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 (blockedGuaranteeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
blockedGuarantee_ = java.util.Collections.unmodifiableList(blockedGuarantee_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.blockedGuarantee_ = blockedGuarantee_;
} else {
result.blockedGuarantee_ = blockedGuaranteeBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse.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 (blockedGuaranteeBuilder_ == null) {
if (!other.blockedGuarantee_.isEmpty()) {
if (blockedGuarantee_.isEmpty()) {
blockedGuarantee_ = other.blockedGuarantee_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.addAll(other.blockedGuarantee_);
}
onChanged();
}
} else {
if (!other.blockedGuarantee_.isEmpty()) {
if (blockedGuaranteeBuilder_.isEmpty()) {
blockedGuaranteeBuilder_.dispose();
blockedGuaranteeBuilder_ = null;
blockedGuarantee_ = other.blockedGuarantee_;
bitField0_ = (bitField0_ & ~0x00000004);
blockedGuaranteeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlockedGuaranteeFieldBuilder() : null;
} else {
blockedGuaranteeBuilder_.addAllMessages(other.blockedGuarantee_);
}
}
}
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.MoneyValue m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.MoneyValue.parser(),
extensionRegistry);
if (blockedGuaranteeBuilder_ == null) {
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.add(m);
} else {
blockedGuaranteeBuilder_.addMessage(m);
}
break;
} // case 26
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 extends ru.tinkoff.piapi.contract.v1.MoneyValue> 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 extends ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
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 extends ru.tinkoff.piapi.contract.v1.MoneyValue> 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 extends ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
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 blockedGuarantee_ =
java.util.Collections.emptyList();
private void ensureBlockedGuaranteeIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
blockedGuarantee_ = new java.util.ArrayList(blockedGuarantee_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> blockedGuaranteeBuilder_;
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public java.util.List getBlockedGuaranteeList() {
if (blockedGuaranteeBuilder_ == null) {
return java.util.Collections.unmodifiableList(blockedGuarantee_);
} else {
return blockedGuaranteeBuilder_.getMessageList();
}
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public int getBlockedGuaranteeCount() {
if (blockedGuaranteeBuilder_ == null) {
return blockedGuarantee_.size();
} else {
return blockedGuaranteeBuilder_.getCount();
}
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue getBlockedGuarantee(int index) {
if (blockedGuaranteeBuilder_ == null) {
return blockedGuarantee_.get(index);
} else {
return blockedGuaranteeBuilder_.getMessage(index);
}
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder setBlockedGuarantee(
int index, ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (blockedGuaranteeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.set(index, value);
onChanged();
} else {
blockedGuaranteeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder setBlockedGuarantee(
int index, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (blockedGuaranteeBuilder_ == null) {
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.set(index, builderForValue.build());
onChanged();
} else {
blockedGuaranteeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder addBlockedGuarantee(ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (blockedGuaranteeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.add(value);
onChanged();
} else {
blockedGuaranteeBuilder_.addMessage(value);
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder addBlockedGuarantee(
int index, ru.tinkoff.piapi.contract.v1.MoneyValue value) {
if (blockedGuaranteeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.add(index, value);
onChanged();
} else {
blockedGuaranteeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder addBlockedGuarantee(
ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (blockedGuaranteeBuilder_ == null) {
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.add(builderForValue.build());
onChanged();
} else {
blockedGuaranteeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder addBlockedGuarantee(
int index, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) {
if (blockedGuaranteeBuilder_ == null) {
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.add(index, builderForValue.build());
onChanged();
} else {
blockedGuaranteeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder addAllBlockedGuarantee(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.MoneyValue> values) {
if (blockedGuaranteeBuilder_ == null) {
ensureBlockedGuaranteeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, blockedGuarantee_);
onChanged();
} else {
blockedGuaranteeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder clearBlockedGuarantee() {
if (blockedGuaranteeBuilder_ == null) {
blockedGuarantee_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
blockedGuaranteeBuilder_.clear();
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public Builder removeBlockedGuarantee(int index) {
if (blockedGuaranteeBuilder_ == null) {
ensureBlockedGuaranteeIsMutable();
blockedGuarantee_.remove(index);
onChanged();
} else {
blockedGuaranteeBuilder_.remove(index);
}
return this;
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getBlockedGuaranteeBuilder(
int index) {
return getBlockedGuaranteeFieldBuilder().getBuilder(index);
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getBlockedGuaranteeOrBuilder(
int index) {
if (blockedGuaranteeBuilder_ == null) {
return blockedGuarantee_.get(index); } else {
return blockedGuaranteeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>
getBlockedGuaranteeOrBuilderList() {
if (blockedGuaranteeBuilder_ != null) {
return blockedGuaranteeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(blockedGuarantee_);
}
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder addBlockedGuaranteeBuilder() {
return getBlockedGuaranteeFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance());
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder addBlockedGuaranteeBuilder(
int index) {
return getBlockedGuaranteeFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance());
}
/**
*
*Заблокировано под гарантийное обеспечение фьючерсов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.MoneyValue blocked_guarantee = 3;
*/
public java.util.List
getBlockedGuaranteeBuilderList() {
return getBlockedGuaranteeFieldBuilder().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>
getBlockedGuaranteeFieldBuilder() {
if (blockedGuaranteeBuilder_ == null) {
blockedGuaranteeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>(
blockedGuarantee_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
blockedGuarantee_ = null;
}
return blockedGuaranteeBuilder_;
}
@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.WithdrawLimitsResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.WithdrawLimitsResponse)
private static final ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse();
}
public static ru.tinkoff.piapi.contract.v1.WithdrawLimitsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WithdrawLimitsResponse 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.WithdrawLimitsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}