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

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

There is a newer version: 1.27
Show newest version
// 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.GetInfoResponse} */ public final class GetInfoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetInfoResponse) GetInfoResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetInfoResponse.newBuilder() to construct. private GetInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetInfoResponse() { qualifiedForWorkWith_ = com.google.protobuf.LazyStringArrayList.emptyList(); tariff_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetInfoResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_GetInfoResponse_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_GetInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.GetInfoResponse.class, ru.tinkoff.piapi.contract.v1.GetInfoResponse.Builder.class); } public static final int PREM_STATUS_FIELD_NUMBER = 1; private boolean premStatus_ = false; /** *
   *Признак премиум клиента.
   * 
* * bool prem_status = 1; * @return The premStatus. */ @java.lang.Override public boolean getPremStatus() { return premStatus_; } public static final int QUAL_STATUS_FIELD_NUMBER = 2; private boolean qualStatus_ = false; /** *
   *Признак квалифицированного инвестора.
   * 
* * bool qual_status = 2; * @return The qualStatus. */ @java.lang.Override public boolean getQualStatus() { return qualStatus_; } public static final int QUALIFIED_FOR_WORK_WITH_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList qualifiedForWorkWith_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
   * 
* * repeated string qualified_for_work_with = 3; * @return A list containing the qualifiedForWorkWith. */ public com.google.protobuf.ProtocolStringList getQualifiedForWorkWithList() { return qualifiedForWorkWith_; } /** *
   *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
   * 
* * repeated string qualified_for_work_with = 3; * @return The count of qualifiedForWorkWith. */ public int getQualifiedForWorkWithCount() { return qualifiedForWorkWith_.size(); } /** *
   *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
   * 
* * repeated string qualified_for_work_with = 3; * @param index The index of the element to return. * @return The qualifiedForWorkWith at the given index. */ public java.lang.String getQualifiedForWorkWith(int index) { return qualifiedForWorkWith_.get(index); } /** *
   *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
   * 
* * repeated string qualified_for_work_with = 3; * @param index The index of the value to return. * @return The bytes of the qualifiedForWorkWith at the given index. */ public com.google.protobuf.ByteString getQualifiedForWorkWithBytes(int index) { return qualifiedForWorkWith_.getByteString(index); } public static final int TARIFF_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object tariff_ = ""; /** *
   *Наименование тарифа пользователя.
   * 
* * string tariff = 4; * @return The tariff. */ @java.lang.Override public java.lang.String getTariff() { java.lang.Object ref = tariff_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tariff_ = s; return s; } } /** *
   *Наименование тарифа пользователя.
   * 
* * string tariff = 4; * @return The bytes for tariff. */ @java.lang.Override public com.google.protobuf.ByteString getTariffBytes() { java.lang.Object ref = tariff_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tariff_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (premStatus_ != false) { output.writeBool(1, premStatus_); } if (qualStatus_ != false) { output.writeBool(2, qualStatus_); } for (int i = 0; i < qualifiedForWorkWith_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, qualifiedForWorkWith_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tariff_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tariff_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (premStatus_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, premStatus_); } if (qualStatus_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, qualStatus_); } { int dataSize = 0; for (int i = 0; i < qualifiedForWorkWith_.size(); i++) { dataSize += computeStringSizeNoTag(qualifiedForWorkWith_.getRaw(i)); } size += dataSize; size += 1 * getQualifiedForWorkWithList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tariff_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tariff_); } 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.GetInfoResponse)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.GetInfoResponse other = (ru.tinkoff.piapi.contract.v1.GetInfoResponse) obj; if (getPremStatus() != other.getPremStatus()) return false; if (getQualStatus() != other.getQualStatus()) return false; if (!getQualifiedForWorkWithList() .equals(other.getQualifiedForWorkWithList())) return false; if (!getTariff() .equals(other.getTariff())) 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) + PREM_STATUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPremStatus()); hash = (37 * hash) + QUAL_STATUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getQualStatus()); if (getQualifiedForWorkWithCount() > 0) { hash = (37 * hash) + QUALIFIED_FOR_WORK_WITH_FIELD_NUMBER; hash = (53 * hash) + getQualifiedForWorkWithList().hashCode(); } hash = (37 * hash) + TARIFF_FIELD_NUMBER; hash = (53 * hash) + getTariff().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.GetInfoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetInfoResponse 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.GetInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetInfoResponse 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.GetInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetInfoResponse 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.GetInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.GetInfoResponse 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.GetInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.GetInfoResponse 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.GetInfoResponse 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.GetInfoResponse 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.GetInfoResponse 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.GetInfoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetInfoResponse) ru.tinkoff.piapi.contract.v1.GetInfoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Users.internal_static_tinkoff_public_invest_api_contract_v1_GetInfoResponse_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_GetInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.GetInfoResponse.class, ru.tinkoff.piapi.contract.v1.GetInfoResponse.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.GetInfoResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; premStatus_ = false; qualStatus_ = false; qualifiedForWorkWith_ = com.google.protobuf.LazyStringArrayList.emptyList(); tariff_ = ""; 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_GetInfoResponse_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetInfoResponse getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.GetInfoResponse.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetInfoResponse build() { ru.tinkoff.piapi.contract.v1.GetInfoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetInfoResponse buildPartial() { ru.tinkoff.piapi.contract.v1.GetInfoResponse result = new ru.tinkoff.piapi.contract.v1.GetInfoResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetInfoResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.premStatus_ = premStatus_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.qualStatus_ = qualStatus_; } if (((from_bitField0_ & 0x00000004) != 0)) { qualifiedForWorkWith_.makeImmutable(); result.qualifiedForWorkWith_ = qualifiedForWorkWith_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.tariff_ = tariff_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.GetInfoResponse) { return mergeFrom((ru.tinkoff.piapi.contract.v1.GetInfoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetInfoResponse other) { if (other == ru.tinkoff.piapi.contract.v1.GetInfoResponse.getDefaultInstance()) return this; if (other.getPremStatus() != false) { setPremStatus(other.getPremStatus()); } if (other.getQualStatus() != false) { setQualStatus(other.getQualStatus()); } if (!other.qualifiedForWorkWith_.isEmpty()) { if (qualifiedForWorkWith_.isEmpty()) { qualifiedForWorkWith_ = other.qualifiedForWorkWith_; bitField0_ |= 0x00000004; } else { ensureQualifiedForWorkWithIsMutable(); qualifiedForWorkWith_.addAll(other.qualifiedForWorkWith_); } onChanged(); } if (!other.getTariff().isEmpty()) { tariff_ = other.tariff_; bitField0_ |= 0x00000008; 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: { premStatus_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { qualStatus_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureQualifiedForWorkWithIsMutable(); qualifiedForWorkWith_.add(s); break; } // case 26 case 34: { tariff_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 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 boolean premStatus_ ; /** *
     *Признак премиум клиента.
     * 
* * bool prem_status = 1; * @return The premStatus. */ @java.lang.Override public boolean getPremStatus() { return premStatus_; } /** *
     *Признак премиум клиента.
     * 
* * bool prem_status = 1; * @param value The premStatus to set. * @return This builder for chaining. */ public Builder setPremStatus(boolean value) { premStatus_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Признак премиум клиента.
     * 
* * bool prem_status = 1; * @return This builder for chaining. */ public Builder clearPremStatus() { bitField0_ = (bitField0_ & ~0x00000001); premStatus_ = false; onChanged(); return this; } private boolean qualStatus_ ; /** *
     *Признак квалифицированного инвестора.
     * 
* * bool qual_status = 2; * @return The qualStatus. */ @java.lang.Override public boolean getQualStatus() { return qualStatus_; } /** *
     *Признак квалифицированного инвестора.
     * 
* * bool qual_status = 2; * @param value The qualStatus to set. * @return This builder for chaining. */ public Builder setQualStatus(boolean value) { qualStatus_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Признак квалифицированного инвестора.
     * 
* * bool qual_status = 2; * @return This builder for chaining. */ public Builder clearQualStatus() { bitField0_ = (bitField0_ & ~0x00000002); qualStatus_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList qualifiedForWorkWith_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureQualifiedForWorkWithIsMutable() { if (!qualifiedForWorkWith_.isModifiable()) { qualifiedForWorkWith_ = new com.google.protobuf.LazyStringArrayList(qualifiedForWorkWith_); } bitField0_ |= 0x00000004; } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @return A list containing the qualifiedForWorkWith. */ public com.google.protobuf.ProtocolStringList getQualifiedForWorkWithList() { qualifiedForWorkWith_.makeImmutable(); return qualifiedForWorkWith_; } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @return The count of qualifiedForWorkWith. */ public int getQualifiedForWorkWithCount() { return qualifiedForWorkWith_.size(); } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @param index The index of the element to return. * @return The qualifiedForWorkWith at the given index. */ public java.lang.String getQualifiedForWorkWith(int index) { return qualifiedForWorkWith_.get(index); } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @param index The index of the value to return. * @return The bytes of the qualifiedForWorkWith at the given index. */ public com.google.protobuf.ByteString getQualifiedForWorkWithBytes(int index) { return qualifiedForWorkWith_.getByteString(index); } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @param index The index to set the value at. * @param value The qualifiedForWorkWith to set. * @return This builder for chaining. */ public Builder setQualifiedForWorkWith( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureQualifiedForWorkWithIsMutable(); qualifiedForWorkWith_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @param value The qualifiedForWorkWith to add. * @return This builder for chaining. */ public Builder addQualifiedForWorkWith( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureQualifiedForWorkWithIsMutable(); qualifiedForWorkWith_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @param values The qualifiedForWorkWith to add. * @return This builder for chaining. */ public Builder addAllQualifiedForWorkWith( java.lang.Iterable values) { ensureQualifiedForWorkWithIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, qualifiedForWorkWith_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @return This builder for chaining. */ public Builder clearQualifiedForWorkWith() { qualifiedForWorkWith_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     *Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](https://russianinvestments.github.io/investAPI/faq_users/).
     * 
* * repeated string qualified_for_work_with = 3; * @param value The bytes of the qualifiedForWorkWith to add. * @return This builder for chaining. */ public Builder addQualifiedForWorkWithBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureQualifiedForWorkWithIsMutable(); qualifiedForWorkWith_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object tariff_ = ""; /** *
     *Наименование тарифа пользователя.
     * 
* * string tariff = 4; * @return The tariff. */ public java.lang.String getTariff() { java.lang.Object ref = tariff_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tariff_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *Наименование тарифа пользователя.
     * 
* * string tariff = 4; * @return The bytes for tariff. */ public com.google.protobuf.ByteString getTariffBytes() { java.lang.Object ref = tariff_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tariff_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *Наименование тарифа пользователя.
     * 
* * string tariff = 4; * @param value The tariff to set. * @return This builder for chaining. */ public Builder setTariff( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tariff_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *Наименование тарифа пользователя.
     * 
* * string tariff = 4; * @return This builder for chaining. */ public Builder clearTariff() { tariff_ = getDefaultInstance().getTariff(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *Наименование тарифа пользователя.
     * 
* * string tariff = 4; * @param value The bytes for tariff to set. * @return This builder for chaining. */ public Builder setTariffBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tariff_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } @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.GetInfoResponse) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetInfoResponse) private static final ru.tinkoff.piapi.contract.v1.GetInfoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetInfoResponse(); } public static ru.tinkoff.piapi.contract.v1.GetInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetInfoResponse 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.GetInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy