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.GetUserTariffResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: users.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Текущие лимиты пользователя.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetUserTariffResponse}
*/
public final class GetUserTariffResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetUserTariffResponse)
GetUserTariffResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetUserTariffResponse.newBuilder() to construct.
private GetUserTariffResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetUserTariffResponse() {
unaryLimits_ = java.util.Collections.emptyList();
streamLimits_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetUserTariffResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_GetUserTariffResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_GetUserTariffResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetUserTariffResponse.class, ru.tinkoff.piapi.contract.v1.GetUserTariffResponse.Builder.class);
}
public static final int UNARY_LIMITS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List unaryLimits_;
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
@java.lang.Override
public java.util.List getUnaryLimitsList() {
return unaryLimits_;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder>
getUnaryLimitsOrBuilderList() {
return unaryLimits_;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
@java.lang.Override
public int getUnaryLimitsCount() {
return unaryLimits_.size();
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.UnaryLimit getUnaryLimits(int index) {
return unaryLimits_.get(index);
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder getUnaryLimitsOrBuilder(
int index) {
return unaryLimits_.get(index);
}
public static final int STREAM_LIMITS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List streamLimits_;
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
@java.lang.Override
public java.util.List getStreamLimitsList() {
return streamLimits_;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.StreamLimitOrBuilder>
getStreamLimitsOrBuilderList() {
return streamLimits_;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
@java.lang.Override
public int getStreamLimitsCount() {
return streamLimits_.size();
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.StreamLimit getStreamLimits(int index) {
return streamLimits_.get(index);
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.StreamLimitOrBuilder getStreamLimitsOrBuilder(
int index) {
return streamLimits_.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 < unaryLimits_.size(); i++) {
output.writeMessage(1, unaryLimits_.get(i));
}
for (int i = 0; i < streamLimits_.size(); i++) {
output.writeMessage(2, streamLimits_.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 < unaryLimits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, unaryLimits_.get(i));
}
for (int i = 0; i < streamLimits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, streamLimits_.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.GetUserTariffResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetUserTariffResponse other = (ru.tinkoff.piapi.contract.v1.GetUserTariffResponse) obj;
if (!getUnaryLimitsList()
.equals(other.getUnaryLimitsList())) return false;
if (!getStreamLimitsList()
.equals(other.getStreamLimitsList())) 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 (getUnaryLimitsCount() > 0) {
hash = (37 * hash) + UNARY_LIMITS_FIELD_NUMBER;
hash = (53 * hash) + getUnaryLimitsList().hashCode();
}
if (getStreamLimitsCount() > 0) {
hash = (37 * hash) + STREAM_LIMITS_FIELD_NUMBER;
hash = (53 * hash) + getStreamLimitsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetUserTariffResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetUserTariffResponse 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.GetUserTariffResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetUserTariffResponse 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.GetUserTariffResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetUserTariffResponse 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.GetUserTariffResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetUserTariffResponse 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.GetUserTariffResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetUserTariffResponse 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.GetUserTariffResponse 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.GetUserTariffResponse 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.GetUserTariffResponse 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.GetUserTariffResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetUserTariffResponse)
ru.tinkoff.piapi.contract.v1.GetUserTariffResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_GetUserTariffResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_GetUserTariffResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetUserTariffResponse.class, ru.tinkoff.piapi.contract.v1.GetUserTariffResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetUserTariffResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (unaryLimitsBuilder_ == null) {
unaryLimits_ = java.util.Collections.emptyList();
} else {
unaryLimits_ = null;
unaryLimitsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (streamLimitsBuilder_ == null) {
streamLimits_ = java.util.Collections.emptyList();
} else {
streamLimits_ = null;
streamLimitsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_GetUserTariffResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetUserTariffResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetUserTariffResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetUserTariffResponse build() {
ru.tinkoff.piapi.contract.v1.GetUserTariffResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetUserTariffResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.GetUserTariffResponse result = new ru.tinkoff.piapi.contract.v1.GetUserTariffResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.GetUserTariffResponse result) {
if (unaryLimitsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
unaryLimits_ = java.util.Collections.unmodifiableList(unaryLimits_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.unaryLimits_ = unaryLimits_;
} else {
result.unaryLimits_ = unaryLimitsBuilder_.build();
}
if (streamLimitsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
streamLimits_ = java.util.Collections.unmodifiableList(streamLimits_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.streamLimits_ = streamLimits_;
} else {
result.streamLimits_ = streamLimitsBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetUserTariffResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetUserTariffResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetUserTariffResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetUserTariffResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.GetUserTariffResponse.getDefaultInstance()) return this;
if (unaryLimitsBuilder_ == null) {
if (!other.unaryLimits_.isEmpty()) {
if (unaryLimits_.isEmpty()) {
unaryLimits_ = other.unaryLimits_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUnaryLimitsIsMutable();
unaryLimits_.addAll(other.unaryLimits_);
}
onChanged();
}
} else {
if (!other.unaryLimits_.isEmpty()) {
if (unaryLimitsBuilder_.isEmpty()) {
unaryLimitsBuilder_.dispose();
unaryLimitsBuilder_ = null;
unaryLimits_ = other.unaryLimits_;
bitField0_ = (bitField0_ & ~0x00000001);
unaryLimitsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnaryLimitsFieldBuilder() : null;
} else {
unaryLimitsBuilder_.addAllMessages(other.unaryLimits_);
}
}
}
if (streamLimitsBuilder_ == null) {
if (!other.streamLimits_.isEmpty()) {
if (streamLimits_.isEmpty()) {
streamLimits_ = other.streamLimits_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStreamLimitsIsMutable();
streamLimits_.addAll(other.streamLimits_);
}
onChanged();
}
} else {
if (!other.streamLimits_.isEmpty()) {
if (streamLimitsBuilder_.isEmpty()) {
streamLimitsBuilder_.dispose();
streamLimitsBuilder_ = null;
streamLimits_ = other.streamLimits_;
bitField0_ = (bitField0_ & ~0x00000002);
streamLimitsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStreamLimitsFieldBuilder() : null;
} else {
streamLimitsBuilder_.addAllMessages(other.streamLimits_);
}
}
}
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.UnaryLimit m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.UnaryLimit.parser(),
extensionRegistry);
if (unaryLimitsBuilder_ == null) {
ensureUnaryLimitsIsMutable();
unaryLimits_.add(m);
} else {
unaryLimitsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
ru.tinkoff.piapi.contract.v1.StreamLimit m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.StreamLimit.parser(),
extensionRegistry);
if (streamLimitsBuilder_ == null) {
ensureStreamLimitsIsMutable();
streamLimits_.add(m);
} else {
streamLimitsBuilder_.addMessage(m);
}
break;
} // case 18
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 unaryLimits_ =
java.util.Collections.emptyList();
private void ensureUnaryLimitsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
unaryLimits_ = new java.util.ArrayList(unaryLimits_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.UnaryLimit, ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder, ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder> unaryLimitsBuilder_;
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public java.util.List getUnaryLimitsList() {
if (unaryLimitsBuilder_ == null) {
return java.util.Collections.unmodifiableList(unaryLimits_);
} else {
return unaryLimitsBuilder_.getMessageList();
}
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public int getUnaryLimitsCount() {
if (unaryLimitsBuilder_ == null) {
return unaryLimits_.size();
} else {
return unaryLimitsBuilder_.getCount();
}
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public ru.tinkoff.piapi.contract.v1.UnaryLimit getUnaryLimits(int index) {
if (unaryLimitsBuilder_ == null) {
return unaryLimits_.get(index);
} else {
return unaryLimitsBuilder_.getMessage(index);
}
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder setUnaryLimits(
int index, ru.tinkoff.piapi.contract.v1.UnaryLimit value) {
if (unaryLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnaryLimitsIsMutable();
unaryLimits_.set(index, value);
onChanged();
} else {
unaryLimitsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder setUnaryLimits(
int index, ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder builderForValue) {
if (unaryLimitsBuilder_ == null) {
ensureUnaryLimitsIsMutable();
unaryLimits_.set(index, builderForValue.build());
onChanged();
} else {
unaryLimitsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder addUnaryLimits(ru.tinkoff.piapi.contract.v1.UnaryLimit value) {
if (unaryLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnaryLimitsIsMutable();
unaryLimits_.add(value);
onChanged();
} else {
unaryLimitsBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder addUnaryLimits(
int index, ru.tinkoff.piapi.contract.v1.UnaryLimit value) {
if (unaryLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnaryLimitsIsMutable();
unaryLimits_.add(index, value);
onChanged();
} else {
unaryLimitsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder addUnaryLimits(
ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder builderForValue) {
if (unaryLimitsBuilder_ == null) {
ensureUnaryLimitsIsMutable();
unaryLimits_.add(builderForValue.build());
onChanged();
} else {
unaryLimitsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder addUnaryLimits(
int index, ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder builderForValue) {
if (unaryLimitsBuilder_ == null) {
ensureUnaryLimitsIsMutable();
unaryLimits_.add(index, builderForValue.build());
onChanged();
} else {
unaryLimitsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder addAllUnaryLimits(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.UnaryLimit> values) {
if (unaryLimitsBuilder_ == null) {
ensureUnaryLimitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unaryLimits_);
onChanged();
} else {
unaryLimitsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder clearUnaryLimits() {
if (unaryLimitsBuilder_ == null) {
unaryLimits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
unaryLimitsBuilder_.clear();
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public Builder removeUnaryLimits(int index) {
if (unaryLimitsBuilder_ == null) {
ensureUnaryLimitsIsMutable();
unaryLimits_.remove(index);
onChanged();
} else {
unaryLimitsBuilder_.remove(index);
}
return this;
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder getUnaryLimitsBuilder(
int index) {
return getUnaryLimitsFieldBuilder().getBuilder(index);
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder getUnaryLimitsOrBuilder(
int index) {
if (unaryLimitsBuilder_ == null) {
return unaryLimits_.get(index); } else {
return unaryLimitsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder>
getUnaryLimitsOrBuilderList() {
if (unaryLimitsBuilder_ != null) {
return unaryLimitsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unaryLimits_);
}
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder addUnaryLimitsBuilder() {
return getUnaryLimitsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.UnaryLimit.getDefaultInstance());
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder addUnaryLimitsBuilder(
int index) {
return getUnaryLimitsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.UnaryLimit.getDefaultInstance());
}
/**
*
*Массив лимитов пользователя по unary-запросам.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.UnaryLimit unary_limits = 1;
*/
public java.util.List
getUnaryLimitsBuilderList() {
return getUnaryLimitsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.UnaryLimit, ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder, ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder>
getUnaryLimitsFieldBuilder() {
if (unaryLimitsBuilder_ == null) {
unaryLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.UnaryLimit, ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder, ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder>(
unaryLimits_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
unaryLimits_ = null;
}
return unaryLimitsBuilder_;
}
private java.util.List streamLimits_ =
java.util.Collections.emptyList();
private void ensureStreamLimitsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
streamLimits_ = new java.util.ArrayList(streamLimits_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.StreamLimit, ru.tinkoff.piapi.contract.v1.StreamLimit.Builder, ru.tinkoff.piapi.contract.v1.StreamLimitOrBuilder> streamLimitsBuilder_;
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public java.util.List getStreamLimitsList() {
if (streamLimitsBuilder_ == null) {
return java.util.Collections.unmodifiableList(streamLimits_);
} else {
return streamLimitsBuilder_.getMessageList();
}
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public int getStreamLimitsCount() {
if (streamLimitsBuilder_ == null) {
return streamLimits_.size();
} else {
return streamLimitsBuilder_.getCount();
}
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public ru.tinkoff.piapi.contract.v1.StreamLimit getStreamLimits(int index) {
if (streamLimitsBuilder_ == null) {
return streamLimits_.get(index);
} else {
return streamLimitsBuilder_.getMessage(index);
}
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder setStreamLimits(
int index, ru.tinkoff.piapi.contract.v1.StreamLimit value) {
if (streamLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamLimitsIsMutable();
streamLimits_.set(index, value);
onChanged();
} else {
streamLimitsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder setStreamLimits(
int index, ru.tinkoff.piapi.contract.v1.StreamLimit.Builder builderForValue) {
if (streamLimitsBuilder_ == null) {
ensureStreamLimitsIsMutable();
streamLimits_.set(index, builderForValue.build());
onChanged();
} else {
streamLimitsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder addStreamLimits(ru.tinkoff.piapi.contract.v1.StreamLimit value) {
if (streamLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamLimitsIsMutable();
streamLimits_.add(value);
onChanged();
} else {
streamLimitsBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder addStreamLimits(
int index, ru.tinkoff.piapi.contract.v1.StreamLimit value) {
if (streamLimitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamLimitsIsMutable();
streamLimits_.add(index, value);
onChanged();
} else {
streamLimitsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder addStreamLimits(
ru.tinkoff.piapi.contract.v1.StreamLimit.Builder builderForValue) {
if (streamLimitsBuilder_ == null) {
ensureStreamLimitsIsMutable();
streamLimits_.add(builderForValue.build());
onChanged();
} else {
streamLimitsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder addStreamLimits(
int index, ru.tinkoff.piapi.contract.v1.StreamLimit.Builder builderForValue) {
if (streamLimitsBuilder_ == null) {
ensureStreamLimitsIsMutable();
streamLimits_.add(index, builderForValue.build());
onChanged();
} else {
streamLimitsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder addAllStreamLimits(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.StreamLimit> values) {
if (streamLimitsBuilder_ == null) {
ensureStreamLimitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, streamLimits_);
onChanged();
} else {
streamLimitsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder clearStreamLimits() {
if (streamLimitsBuilder_ == null) {
streamLimits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
streamLimitsBuilder_.clear();
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public Builder removeStreamLimits(int index) {
if (streamLimitsBuilder_ == null) {
ensureStreamLimitsIsMutable();
streamLimits_.remove(index);
onChanged();
} else {
streamLimitsBuilder_.remove(index);
}
return this;
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public ru.tinkoff.piapi.contract.v1.StreamLimit.Builder getStreamLimitsBuilder(
int index) {
return getStreamLimitsFieldBuilder().getBuilder(index);
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public ru.tinkoff.piapi.contract.v1.StreamLimitOrBuilder getStreamLimitsOrBuilder(
int index) {
if (streamLimitsBuilder_ == null) {
return streamLimits_.get(index); } else {
return streamLimitsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.StreamLimitOrBuilder>
getStreamLimitsOrBuilderList() {
if (streamLimitsBuilder_ != null) {
return streamLimitsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(streamLimits_);
}
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public ru.tinkoff.piapi.contract.v1.StreamLimit.Builder addStreamLimitsBuilder() {
return getStreamLimitsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.StreamLimit.getDefaultInstance());
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public ru.tinkoff.piapi.contract.v1.StreamLimit.Builder addStreamLimitsBuilder(
int index) {
return getStreamLimitsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.StreamLimit.getDefaultInstance());
}
/**
*
*Массив лимитов пользователей для stream-соединений.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.StreamLimit stream_limits = 2;
*/
public java.util.List
getStreamLimitsBuilderList() {
return getStreamLimitsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.StreamLimit, ru.tinkoff.piapi.contract.v1.StreamLimit.Builder, ru.tinkoff.piapi.contract.v1.StreamLimitOrBuilder>
getStreamLimitsFieldBuilder() {
if (streamLimitsBuilder_ == null) {
streamLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.StreamLimit, ru.tinkoff.piapi.contract.v1.StreamLimit.Builder, ru.tinkoff.piapi.contract.v1.StreamLimitOrBuilder>(
streamLimits_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
streamLimits_ = null;
}
return streamLimitsBuilder_;
}
@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.GetUserTariffResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetUserTariffResponse)
private static final ru.tinkoff.piapi.contract.v1.GetUserTariffResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetUserTariffResponse();
}
public static ru.tinkoff.piapi.contract.v1.GetUserTariffResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetUserTariffResponse 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.GetUserTariffResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}