![JAR search and dependency download from the Maven repository](/logo.png)
ru.tinkoff.piapi.contract.v1.Brand Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: instruments.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Бренд.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.Brand}
*/
public final class Brand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.Brand)
BrandOrBuilder {
private static final long serialVersionUID = 0L;
// Use Brand.newBuilder() to construct.
private Brand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Brand() {
uid_ = "";
name_ = "";
description_ = "";
info_ = "";
company_ = "";
sector_ = "";
countryOfRisk_ = "";
countryOfRiskName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Brand();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_Brand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_Brand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.Brand.class, ru.tinkoff.piapi.contract.v1.Brand.Builder.class);
}
public static final int UID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
*
*uid идентификатор бренда.
*
*
* string uid = 1;
* @return The uid.
*/
@java.lang.Override
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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();
uid_ = s;
return s;
}
}
/**
*
*uid идентификатор бренда.
*
*
* string uid = 1;
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*Наименование бренда.
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*Наименование бренда.
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*Описание.
*
*
* string description = 3;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
*Описание.
*
*
* string description = 3;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFO_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object info_ = "";
/**
*
*Информация о бренде.
*
*
* string info = 4;
* @return The info.
*/
@java.lang.Override
public java.lang.String getInfo() {
java.lang.Object ref = info_;
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();
info_ = s;
return s;
}
}
/**
*
*Информация о бренде.
*
*
* string info = 4;
* @return The bytes for info.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPANY_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object company_ = "";
/**
*
*Компания.
*
*
* string company = 5;
* @return The company.
*/
@java.lang.Override
public java.lang.String getCompany() {
java.lang.Object ref = company_;
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();
company_ = s;
return s;
}
}
/**
*
*Компания.
*
*
* string company = 5;
* @return The bytes for company.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCompanyBytes() {
java.lang.Object ref = company_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
company_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECTOR_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object sector_ = "";
/**
*
*Сектор.
*
*
* string sector = 6;
* @return The sector.
*/
@java.lang.Override
public java.lang.String getSector() {
java.lang.Object ref = sector_;
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();
sector_ = s;
return s;
}
}
/**
*
*Сектор.
*
*
* string sector = 6;
* @return The bytes for sector.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSectorBytes() {
java.lang.Object ref = sector_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sector_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRY_OF_RISK_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object countryOfRisk_ = "";
/**
*
*Код страны риска.
*
*
* string country_of_risk = 7;
* @return The countryOfRisk.
*/
@java.lang.Override
public java.lang.String getCountryOfRisk() {
java.lang.Object ref = countryOfRisk_;
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();
countryOfRisk_ = s;
return s;
}
}
/**
*
*Код страны риска.
*
*
* string country_of_risk = 7;
* @return The bytes for countryOfRisk.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryOfRiskBytes() {
java.lang.Object ref = countryOfRisk_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryOfRisk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRY_OF_RISK_NAME_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object countryOfRiskName_ = "";
/**
*
*Наименование страны риска.
*
*
* string country_of_risk_name = 8;
* @return The countryOfRiskName.
*/
@java.lang.Override
public java.lang.String getCountryOfRiskName() {
java.lang.Object ref = countryOfRiskName_;
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();
countryOfRiskName_ = s;
return s;
}
}
/**
*
*Наименование страны риска.
*
*
* string country_of_risk_name = 8;
* @return The bytes for countryOfRiskName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryOfRiskNameBytes() {
java.lang.Object ref = countryOfRiskName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryOfRiskName_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, info_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(company_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, company_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sector_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sector_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryOfRisk_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, countryOfRisk_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryOfRiskName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, countryOfRiskName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, info_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(company_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, company_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sector_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sector_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryOfRisk_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, countryOfRisk_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryOfRiskName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, countryOfRiskName_);
}
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.Brand)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.Brand other = (ru.tinkoff.piapi.contract.v1.Brand) obj;
if (!getUid()
.equals(other.getUid())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getInfo()
.equals(other.getInfo())) return false;
if (!getCompany()
.equals(other.getCompany())) return false;
if (!getSector()
.equals(other.getSector())) return false;
if (!getCountryOfRisk()
.equals(other.getCountryOfRisk())) return false;
if (!getCountryOfRiskName()
.equals(other.getCountryOfRiskName())) 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) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (37 * hash) + COMPANY_FIELD_NUMBER;
hash = (53 * hash) + getCompany().hashCode();
hash = (37 * hash) + SECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSector().hashCode();
hash = (37 * hash) + COUNTRY_OF_RISK_FIELD_NUMBER;
hash = (53 * hash) + getCountryOfRisk().hashCode();
hash = (37 * hash) + COUNTRY_OF_RISK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCountryOfRiskName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.Brand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.Brand 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.Brand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.Brand 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.Brand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.Brand 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.Brand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.Brand 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.Brand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.Brand 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.Brand 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.Brand 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.Brand 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.Brand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.Brand)
ru.tinkoff.piapi.contract.v1.BrandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_Brand_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_Brand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.Brand.class, ru.tinkoff.piapi.contract.v1.Brand.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.Brand.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
uid_ = "";
name_ = "";
description_ = "";
info_ = "";
company_ = "";
sector_ = "";
countryOfRisk_ = "";
countryOfRiskName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_Brand_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Brand getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Brand build() {
ru.tinkoff.piapi.contract.v1.Brand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Brand buildPartial() {
ru.tinkoff.piapi.contract.v1.Brand result = new ru.tinkoff.piapi.contract.v1.Brand(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.Brand result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.info_ = info_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.company_ = company_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.sector_ = sector_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.countryOfRisk_ = countryOfRisk_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.countryOfRiskName_ = countryOfRiskName_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.Brand) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.Brand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.Brand other) {
if (other == ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance()) return this;
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getCompany().isEmpty()) {
company_ = other.company_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getSector().isEmpty()) {
sector_ = other.sector_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getCountryOfRisk().isEmpty()) {
countryOfRisk_ = other.countryOfRisk_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getCountryOfRiskName().isEmpty()) {
countryOfRiskName_ = other.countryOfRiskName_;
bitField0_ |= 0x00000080;
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 10: {
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
info_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
company_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
sector_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
countryOfRisk_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
countryOfRiskName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object uid_ = "";
/**
*
*uid идентификатор бренда.
*
*
* string uid = 1;
* @return The uid.
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*uid идентификатор бренда.
*
*
* string uid = 1;
* @return The bytes for uid.
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*uid идентификатор бренда.
*
*
* string uid = 1;
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
uid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*uid идентификатор бренда.
*
*
* string uid = 1;
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*uid идентификатор бренда.
*
*
* string uid = 1;
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*Наименование бренда.
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Наименование бренда.
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Наименование бренда.
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Наименование бренда.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*Наименование бренда.
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*Описание.
*
*
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Описание.
*
*
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Описание.
*
*
* string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Описание.
*
*
* string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*Описание.
*
*
* string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
*
*Информация о бренде.
*
*
* string info = 4;
* @return The info.
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Информация о бренде.
*
*
* string info = 4;
* @return The bytes for info.
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Информация о бренде.
*
*
* string info = 4;
* @param value The info to set.
* @return This builder for chaining.
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
info_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Информация о бренде.
*
*
* string info = 4;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*Информация о бренде.
*
*
* string info = 4;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
info_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object company_ = "";
/**
*
*Компания.
*
*
* string company = 5;
* @return The company.
*/
public java.lang.String getCompany() {
java.lang.Object ref = company_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
company_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Компания.
*
*
* string company = 5;
* @return The bytes for company.
*/
public com.google.protobuf.ByteString
getCompanyBytes() {
java.lang.Object ref = company_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
company_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Компания.
*
*
* string company = 5;
* @param value The company to set.
* @return This builder for chaining.
*/
public Builder setCompany(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
company_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Компания.
*
*
* string company = 5;
* @return This builder for chaining.
*/
public Builder clearCompany() {
company_ = getDefaultInstance().getCompany();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Компания.
*
*
* string company = 5;
* @param value The bytes for company to set.
* @return This builder for chaining.
*/
public Builder setCompanyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
company_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object sector_ = "";
/**
*
*Сектор.
*
*
* string sector = 6;
* @return The sector.
*/
public java.lang.String getSector() {
java.lang.Object ref = sector_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sector_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Сектор.
*
*
* string sector = 6;
* @return The bytes for sector.
*/
public com.google.protobuf.ByteString
getSectorBytes() {
java.lang.Object ref = sector_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sector_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Сектор.
*
*
* string sector = 6;
* @param value The sector to set.
* @return This builder for chaining.
*/
public Builder setSector(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sector_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Сектор.
*
*
* string sector = 6;
* @return This builder for chaining.
*/
public Builder clearSector() {
sector_ = getDefaultInstance().getSector();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*Сектор.
*
*
* string sector = 6;
* @param value The bytes for sector to set.
* @return This builder for chaining.
*/
public Builder setSectorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sector_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object countryOfRisk_ = "";
/**
*
*Код страны риска.
*
*
* string country_of_risk = 7;
* @return The countryOfRisk.
*/
public java.lang.String getCountryOfRisk() {
java.lang.Object ref = countryOfRisk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryOfRisk_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Код страны риска.
*
*
* string country_of_risk = 7;
* @return The bytes for countryOfRisk.
*/
public com.google.protobuf.ByteString
getCountryOfRiskBytes() {
java.lang.Object ref = countryOfRisk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryOfRisk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Код страны риска.
*
*
* string country_of_risk = 7;
* @param value The countryOfRisk to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRisk(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
countryOfRisk_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Код страны риска.
*
*
* string country_of_risk = 7;
* @return This builder for chaining.
*/
public Builder clearCountryOfRisk() {
countryOfRisk_ = getDefaultInstance().getCountryOfRisk();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*Код страны риска.
*
*
* string country_of_risk = 7;
* @param value The bytes for countryOfRisk to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRiskBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
countryOfRisk_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object countryOfRiskName_ = "";
/**
*
*Наименование страны риска.
*
*
* string country_of_risk_name = 8;
* @return The countryOfRiskName.
*/
public java.lang.String getCountryOfRiskName() {
java.lang.Object ref = countryOfRiskName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryOfRiskName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Наименование страны риска.
*
*
* string country_of_risk_name = 8;
* @return The bytes for countryOfRiskName.
*/
public com.google.protobuf.ByteString
getCountryOfRiskNameBytes() {
java.lang.Object ref = countryOfRiskName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryOfRiskName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Наименование страны риска.
*
*
* string country_of_risk_name = 8;
* @param value The countryOfRiskName to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRiskName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
countryOfRiskName_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Наименование страны риска.
*
*
* string country_of_risk_name = 8;
* @return This builder for chaining.
*/
public Builder clearCountryOfRiskName() {
countryOfRiskName_ = getDefaultInstance().getCountryOfRiskName();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
*Наименование страны риска.
*
*
* string country_of_risk_name = 8;
* @param value The bytes for countryOfRiskName to set.
* @return This builder for chaining.
*/
public Builder setCountryOfRiskNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
countryOfRiskName_ = value;
bitField0_ |= 0x00000080;
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.Brand)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.Brand)
private static final ru.tinkoff.piapi.contract.v1.Brand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.Brand();
}
public static ru.tinkoff.piapi.contract.v1.Brand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Brand 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.Brand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy