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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: users.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Лимит unary-методов.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.UnaryLimit}
*/
public final class UnaryLimit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.UnaryLimit)
UnaryLimitOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnaryLimit.newBuilder() to construct.
private UnaryLimit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnaryLimit() {
methods_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UnaryLimit();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_UnaryLimit_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_UnaryLimit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.UnaryLimit.class, ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder.class);
}
public static final int LIMIT_PER_MINUTE_FIELD_NUMBER = 1;
private int limitPerMinute_ = 0;
/**
*
*Количество unary-запросов в минуту.
*
*
* int32 limit_per_minute = 1;
* @return The limitPerMinute.
*/
@java.lang.Override
public int getLimitPerMinute() {
return limitPerMinute_;
}
public static final int METHODS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList methods_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @return A list containing the methods.
*/
public com.google.protobuf.ProtocolStringList
getMethodsList() {
return methods_;
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @return The count of methods.
*/
public int getMethodsCount() {
return methods_.size();
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @param index The index of the element to return.
* @return The methods at the given index.
*/
public java.lang.String getMethods(int index) {
return methods_.get(index);
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @param index The index of the value to return.
* @return The bytes of the methods at the given index.
*/
public com.google.protobuf.ByteString
getMethodsBytes(int index) {
return methods_.getByteString(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 {
if (limitPerMinute_ != 0) {
output.writeInt32(1, limitPerMinute_);
}
for (int i = 0; i < methods_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, methods_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (limitPerMinute_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, limitPerMinute_);
}
{
int dataSize = 0;
for (int i = 0; i < methods_.size(); i++) {
dataSize += computeStringSizeNoTag(methods_.getRaw(i));
}
size += dataSize;
size += 1 * getMethodsList().size();
}
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.UnaryLimit)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.UnaryLimit other = (ru.tinkoff.piapi.contract.v1.UnaryLimit) obj;
if (getLimitPerMinute()
!= other.getLimitPerMinute()) return false;
if (!getMethodsList()
.equals(other.getMethodsList())) 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) + LIMIT_PER_MINUTE_FIELD_NUMBER;
hash = (53 * hash) + getLimitPerMinute();
if (getMethodsCount() > 0) {
hash = (37 * hash) + METHODS_FIELD_NUMBER;
hash = (53 * hash) + getMethodsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.UnaryLimit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.UnaryLimit 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.UnaryLimit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.UnaryLimit 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.UnaryLimit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.UnaryLimit 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.UnaryLimit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.UnaryLimit 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.UnaryLimit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.UnaryLimit 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.UnaryLimit 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.UnaryLimit 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.UnaryLimit 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;
}
/**
*
*Лимит unary-методов.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.UnaryLimit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.UnaryLimit)
ru.tinkoff.piapi.contract.v1.UnaryLimitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_UnaryLimit_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_UnaryLimit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.UnaryLimit.class, ru.tinkoff.piapi.contract.v1.UnaryLimit.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.UnaryLimit.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
limitPerMinute_ = 0;
methods_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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_UnaryLimit_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.UnaryLimit getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.UnaryLimit.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.UnaryLimit build() {
ru.tinkoff.piapi.contract.v1.UnaryLimit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.UnaryLimit buildPartial() {
ru.tinkoff.piapi.contract.v1.UnaryLimit result = new ru.tinkoff.piapi.contract.v1.UnaryLimit(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.UnaryLimit result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.limitPerMinute_ = limitPerMinute_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
methods_.makeImmutable();
result.methods_ = methods_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.UnaryLimit) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.UnaryLimit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.UnaryLimit other) {
if (other == ru.tinkoff.piapi.contract.v1.UnaryLimit.getDefaultInstance()) return this;
if (other.getLimitPerMinute() != 0) {
setLimitPerMinute(other.getLimitPerMinute());
}
if (!other.methods_.isEmpty()) {
if (methods_.isEmpty()) {
methods_ = other.methods_;
bitField0_ |= 0x00000002;
} else {
ensureMethodsIsMutable();
methods_.addAll(other.methods_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
limitPerMinute_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureMethodsIsMutable();
methods_.add(s);
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 int limitPerMinute_ ;
/**
*
*Количество unary-запросов в минуту.
*
*
* int32 limit_per_minute = 1;
* @return The limitPerMinute.
*/
@java.lang.Override
public int getLimitPerMinute() {
return limitPerMinute_;
}
/**
*
*Количество unary-запросов в минуту.
*
*
* int32 limit_per_minute = 1;
* @param value The limitPerMinute to set.
* @return This builder for chaining.
*/
public Builder setLimitPerMinute(int value) {
limitPerMinute_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* repeated string methods = 2;
* @return A list containing the methods.
*/
public com.google.protobuf.ProtocolStringList
getMethodsList() {
methods_.makeImmutable();
return methods_;
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @return The count of methods.
*/
public int getMethodsCount() {
return methods_.size();
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @param index The index of the element to return.
* @return The methods at the given index.
*/
public java.lang.String getMethods(int index) {
return methods_.get(index);
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @param index The index of the value to return.
* @return The bytes of the methods at the given index.
*/
public com.google.protobuf.ByteString
getMethodsBytes(int index) {
return methods_.getByteString(index);
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @param index The index to set the value at.
* @param value The methods to set.
* @return This builder for chaining.
*/
public Builder setMethods(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMethodsIsMutable();
methods_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @param value The methods to add.
* @return This builder for chaining.
*/
public Builder addMethods(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMethodsIsMutable();
methods_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Названия методов.
*
*
* repeated string methods = 2;
* @param values The methods to add.
* @return This builder for chaining.
*/
public Builder addAllMethods(
java.lang.Iterable values) {
ensureMethodsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, methods_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*