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.AssetFull 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.AssetFull}
*/
public final class AssetFull extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.AssetFull)
AssetFullOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetFull.newBuilder() to construct.
private AssetFull(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetFull() {
uid_ = "";
type_ = 0;
name_ = "";
nameBrief_ = "";
description_ = "";
requiredTests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
gosRegCode_ = "";
cfi_ = "";
codeNsd_ = "";
status_ = "";
brCode_ = "";
brCodeName_ = "";
instruments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssetFull();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetFull_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_AssetFull_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AssetFull.class, ru.tinkoff.piapi.contract.v1.AssetFull.Builder.class);
}
private int extCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object ext_;
public enum ExtCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CURRENCY(8),
SECURITY(9),
EXT_NOT_SET(0);
private final int value;
private ExtCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExtCase valueOf(int value) {
return forNumber(value);
}
public static ExtCase forNumber(int value) {
switch (value) {
case 8: return CURRENCY;
case 9: return SECURITY;
case 0: return EXT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ExtCase
getExtCase() {
return ExtCase.forNumber(
extCase_);
}
public static final int UID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object 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;
}
}
/**
*
*Уникальный идентификатор актива.
*
*
* 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 TYPE_FIELD_NUMBER = 2;
private int type_ = 0;
/**
*
*Тип актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
*Тип актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType type = 2;
* @return The type.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetType getType() {
ru.tinkoff.piapi.contract.v1.AssetType result = ru.tinkoff.piapi.contract.v1.AssetType.forNumber(type_);
return result == null ? ru.tinkoff.piapi.contract.v1.AssetType.UNRECOGNIZED : result;
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*Наименование актива.
*
*
* string name = 3;
* @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 = 3;
* @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 NAME_BRIEF_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object nameBrief_ = "";
/**
*
*Короткое наименование актива.
*
*
* string name_brief = 4;
* @return The nameBrief.
*/
@java.lang.Override
public java.lang.String getNameBrief() {
java.lang.Object ref = nameBrief_;
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();
nameBrief_ = s;
return s;
}
}
/**
*
*Короткое наименование актива.
*
*
* string name_brief = 4;
* @return The bytes for nameBrief.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBriefBytes() {
java.lang.Object ref = nameBrief_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nameBrief_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*Описание актива.
*
*
* string description = 5;
* @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 = 5;
* @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 DELETED_AT_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp deletedAt_;
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
* @return Whether the deletedAt field is set.
*/
@java.lang.Override
public boolean hasDeletedAt() {
return deletedAt_ != null;
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
* @return The deletedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDeletedAt() {
return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_;
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() {
return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_;
}
public static final int REQUIRED_TESTS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList requiredTests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @return A list containing the requiredTests.
*/
public com.google.protobuf.ProtocolStringList
getRequiredTestsList() {
return requiredTests_;
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @return The count of requiredTests.
*/
public int getRequiredTestsCount() {
return requiredTests_.size();
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param index The index of the element to return.
* @return The requiredTests at the given index.
*/
public java.lang.String getRequiredTests(int index) {
return requiredTests_.get(index);
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param index The index of the value to return.
* @return The bytes of the requiredTests at the given index.
*/
public com.google.protobuf.ByteString
getRequiredTestsBytes(int index) {
return requiredTests_.getByteString(index);
}
public static final int CURRENCY_FIELD_NUMBER = 8;
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
* @return Whether the currency field is set.
*/
@java.lang.Override
public boolean hasCurrency() {
return extCase_ == 8;
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
* @return The currency.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetCurrency getCurrency() {
if (extCase_ == 8) {
return (ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetCurrency.getDefaultInstance();
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetCurrencyOrBuilder getCurrencyOrBuilder() {
if (extCase_ == 8) {
return (ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetCurrency.getDefaultInstance();
}
public static final int SECURITY_FIELD_NUMBER = 9;
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
* @return Whether the security field is set.
*/
@java.lang.Override
public boolean hasSecurity() {
return extCase_ == 9;
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
* @return The security.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetSecurity getSecurity() {
if (extCase_ == 9) {
return (ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetSecurity.getDefaultInstance();
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetSecurityOrBuilder getSecurityOrBuilder() {
if (extCase_ == 9) {
return (ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetSecurity.getDefaultInstance();
}
public static final int GOS_REG_CODE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object gosRegCode_ = "";
/**
*
*Номер государственной регистрации.
*
*
* string gos_reg_code = 10;
* @return The gosRegCode.
*/
@java.lang.Override
public java.lang.String getGosRegCode() {
java.lang.Object ref = gosRegCode_;
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();
gosRegCode_ = s;
return s;
}
}
/**
*
*Номер государственной регистрации.
*
*
* string gos_reg_code = 10;
* @return The bytes for gosRegCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGosRegCodeBytes() {
java.lang.Object ref = gosRegCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gosRegCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CFI_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object cfi_ = "";
/**
*
*Код CFI.
*
*
* string cfi = 11;
* @return The cfi.
*/
@java.lang.Override
public java.lang.String getCfi() {
java.lang.Object ref = cfi_;
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();
cfi_ = s;
return s;
}
}
/**
*
*Код CFI.
*
*
* string cfi = 11;
* @return The bytes for cfi.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCfiBytes() {
java.lang.Object ref = cfi_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cfi_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CODE_NSD_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object codeNsd_ = "";
/**
*
*Код НРД инструмента.
*
*
* string code_nsd = 12;
* @return The codeNsd.
*/
@java.lang.Override
public java.lang.String getCodeNsd() {
java.lang.Object ref = codeNsd_;
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();
codeNsd_ = s;
return s;
}
}
/**
*
*Код НРД инструмента.
*
*
* string code_nsd = 12;
* @return The bytes for codeNsd.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodeNsdBytes() {
java.lang.Object ref = codeNsd_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codeNsd_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object status_ = "";
/**
*
*Статус актива.
*
*
* string status = 13;
* @return The status.
*/
@java.lang.Override
public java.lang.String getStatus() {
java.lang.Object ref = status_;
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();
status_ = s;
return s;
}
}
/**
*
*Статус актива.
*
*
* string status = 13;
* @return The bytes for status.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BRAND_FIELD_NUMBER = 14;
private ru.tinkoff.piapi.contract.v1.Brand brand_;
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
* @return Whether the brand field is set.
*/
@java.lang.Override
public boolean hasBrand() {
return brand_ != null;
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
* @return The brand.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Brand getBrand() {
return brand_ == null ? ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance() : brand_;
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.BrandOrBuilder getBrandOrBuilder() {
return brand_ == null ? ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance() : brand_;
}
public static final int UPDATED_AT_FIELD_NUMBER = 15;
private com.google.protobuf.Timestamp updatedAt_;
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
* @return Whether the updatedAt field is set.
*/
@java.lang.Override
public boolean hasUpdatedAt() {
return updatedAt_ != null;
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
* @return The updatedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdatedAt() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
public static final int BR_CODE_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object brCode_ = "";
/**
*
*Код типа ц.б. по классификации Банка России.
*
*
* string br_code = 16;
* @return The brCode.
*/
@java.lang.Override
public java.lang.String getBrCode() {
java.lang.Object ref = brCode_;
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();
brCode_ = s;
return s;
}
}
/**
*
*Код типа ц.б. по классификации Банка России.
*
*
* string br_code = 16;
* @return The bytes for brCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBrCodeBytes() {
java.lang.Object ref = brCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
brCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BR_CODE_NAME_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object brCodeName_ = "";
/**
*
*Наименование кода типа ц.б. по классификации Банка России.
*
*
* string br_code_name = 17;
* @return The brCodeName.
*/
@java.lang.Override
public java.lang.String getBrCodeName() {
java.lang.Object ref = brCodeName_;
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();
brCodeName_ = s;
return s;
}
}
/**
*
*Наименование кода типа ц.б. по классификации Банка России.
*
*
* string br_code_name = 17;
* @return The bytes for brCodeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBrCodeNameBytes() {
java.lang.Object ref = brCodeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
brCodeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTRUMENTS_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private java.util.List instruments_;
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
@java.lang.Override
public java.util.List getInstrumentsList() {
return instruments_;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.AssetInstrumentOrBuilder>
getInstrumentsOrBuilderList() {
return instruments_;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
@java.lang.Override
public int getInstrumentsCount() {
return instruments_.size();
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetInstrument getInstruments(int index) {
return instruments_.get(index);
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetInstrumentOrBuilder getInstrumentsOrBuilder(
int index) {
return instruments_.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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_);
}
if (type_ != ru.tinkoff.piapi.contract.v1.AssetType.ASSET_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameBrief_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nameBrief_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
if (deletedAt_ != null) {
output.writeMessage(6, getDeletedAt());
}
for (int i = 0; i < requiredTests_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requiredTests_.getRaw(i));
}
if (extCase_ == 8) {
output.writeMessage(8, (ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_);
}
if (extCase_ == 9) {
output.writeMessage(9, (ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gosRegCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, gosRegCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cfi_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, cfi_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codeNsd_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, codeNsd_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, status_);
}
if (brand_ != null) {
output.writeMessage(14, getBrand());
}
if (updatedAt_ != null) {
output.writeMessage(15, getUpdatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(brCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, brCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(brCodeName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, brCodeName_);
}
for (int i = 0; i < instruments_.size(); i++) {
output.writeMessage(18, instruments_.get(i));
}
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 (type_ != ru.tinkoff.piapi.contract.v1.AssetType.ASSET_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameBrief_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nameBrief_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
}
if (deletedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDeletedAt());
}
{
int dataSize = 0;
for (int i = 0; i < requiredTests_.size(); i++) {
dataSize += computeStringSizeNoTag(requiredTests_.getRaw(i));
}
size += dataSize;
size += 1 * getRequiredTestsList().size();
}
if (extCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_);
}
if (extCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gosRegCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, gosRegCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cfi_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cfi_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codeNsd_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, codeNsd_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, status_);
}
if (brand_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getBrand());
}
if (updatedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getUpdatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(brCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, brCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(brCodeName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, brCodeName_);
}
for (int i = 0; i < instruments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, instruments_.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.AssetFull)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.AssetFull other = (ru.tinkoff.piapi.contract.v1.AssetFull) obj;
if (!getUid()
.equals(other.getUid())) return false;
if (type_ != other.type_) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getNameBrief()
.equals(other.getNameBrief())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasDeletedAt() != other.hasDeletedAt()) return false;
if (hasDeletedAt()) {
if (!getDeletedAt()
.equals(other.getDeletedAt())) return false;
}
if (!getRequiredTestsList()
.equals(other.getRequiredTestsList())) return false;
if (!getGosRegCode()
.equals(other.getGosRegCode())) return false;
if (!getCfi()
.equals(other.getCfi())) return false;
if (!getCodeNsd()
.equals(other.getCodeNsd())) return false;
if (!getStatus()
.equals(other.getStatus())) return false;
if (hasBrand() != other.hasBrand()) return false;
if (hasBrand()) {
if (!getBrand()
.equals(other.getBrand())) return false;
}
if (hasUpdatedAt() != other.hasUpdatedAt()) return false;
if (hasUpdatedAt()) {
if (!getUpdatedAt()
.equals(other.getUpdatedAt())) return false;
}
if (!getBrCode()
.equals(other.getBrCode())) return false;
if (!getBrCodeName()
.equals(other.getBrCodeName())) return false;
if (!getInstrumentsList()
.equals(other.getInstrumentsList())) return false;
if (!getExtCase().equals(other.getExtCase())) return false;
switch (extCase_) {
case 8:
if (!getCurrency()
.equals(other.getCurrency())) return false;
break;
case 9:
if (!getSecurity()
.equals(other.getSecurity())) return false;
break;
case 0:
default:
}
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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + NAME_BRIEF_FIELD_NUMBER;
hash = (53 * hash) + getNameBrief().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasDeletedAt()) {
hash = (37 * hash) + DELETED_AT_FIELD_NUMBER;
hash = (53 * hash) + getDeletedAt().hashCode();
}
if (getRequiredTestsCount() > 0) {
hash = (37 * hash) + REQUIRED_TESTS_FIELD_NUMBER;
hash = (53 * hash) + getRequiredTestsList().hashCode();
}
hash = (37 * hash) + GOS_REG_CODE_FIELD_NUMBER;
hash = (53 * hash) + getGosRegCode().hashCode();
hash = (37 * hash) + CFI_FIELD_NUMBER;
hash = (53 * hash) + getCfi().hashCode();
hash = (37 * hash) + CODE_NSD_FIELD_NUMBER;
hash = (53 * hash) + getCodeNsd().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
if (hasBrand()) {
hash = (37 * hash) + BRAND_FIELD_NUMBER;
hash = (53 * hash) + getBrand().hashCode();
}
if (hasUpdatedAt()) {
hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedAt().hashCode();
}
hash = (37 * hash) + BR_CODE_FIELD_NUMBER;
hash = (53 * hash) + getBrCode().hashCode();
hash = (37 * hash) + BR_CODE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBrCodeName().hashCode();
if (getInstrumentsCount() > 0) {
hash = (37 * hash) + INSTRUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentsList().hashCode();
}
switch (extCase_) {
case 8:
hash = (37 * hash) + CURRENCY_FIELD_NUMBER;
hash = (53 * hash) + getCurrency().hashCode();
break;
case 9:
hash = (37 * hash) + SECURITY_FIELD_NUMBER;
hash = (53 * hash) + getSecurity().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.AssetFull parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetFull 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.AssetFull parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetFull 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.AssetFull parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AssetFull 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.AssetFull parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AssetFull 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.AssetFull parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AssetFull 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.AssetFull 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.AssetFull 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.AssetFull 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.AssetFull}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AssetFull)
ru.tinkoff.piapi.contract.v1.AssetFullOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetFull_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_AssetFull_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AssetFull.class, ru.tinkoff.piapi.contract.v1.AssetFull.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.AssetFull.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
uid_ = "";
type_ = 0;
name_ = "";
nameBrief_ = "";
description_ = "";
deletedAt_ = null;
if (deletedAtBuilder_ != null) {
deletedAtBuilder_.dispose();
deletedAtBuilder_ = null;
}
requiredTests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (currencyBuilder_ != null) {
currencyBuilder_.clear();
}
if (securityBuilder_ != null) {
securityBuilder_.clear();
}
gosRegCode_ = "";
cfi_ = "";
codeNsd_ = "";
status_ = "";
brand_ = null;
if (brandBuilder_ != null) {
brandBuilder_.dispose();
brandBuilder_ = null;
}
updatedAt_ = null;
if (updatedAtBuilder_ != null) {
updatedAtBuilder_.dispose();
updatedAtBuilder_ = null;
}
brCode_ = "";
brCodeName_ = "";
if (instrumentsBuilder_ == null) {
instruments_ = java.util.Collections.emptyList();
} else {
instruments_ = null;
instrumentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00020000);
extCase_ = 0;
ext_ = null;
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_AssetFull_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetFull getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.AssetFull.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetFull build() {
ru.tinkoff.piapi.contract.v1.AssetFull result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetFull buildPartial() {
ru.tinkoff.piapi.contract.v1.AssetFull result = new ru.tinkoff.piapi.contract.v1.AssetFull(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.AssetFull result) {
if (instrumentsBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0)) {
instruments_ = java.util.Collections.unmodifiableList(instruments_);
bitField0_ = (bitField0_ & ~0x00020000);
}
result.instruments_ = instruments_;
} else {
result.instruments_ = instrumentsBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.AssetFull result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.nameBrief_ = nameBrief_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.deletedAt_ = deletedAtBuilder_ == null
? deletedAt_
: deletedAtBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
requiredTests_.makeImmutable();
result.requiredTests_ = requiredTests_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.gosRegCode_ = gosRegCode_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.cfi_ = cfi_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.codeNsd_ = codeNsd_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.brand_ = brandBuilder_ == null
? brand_
: brandBuilder_.build();
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.updatedAt_ = updatedAtBuilder_ == null
? updatedAt_
: updatedAtBuilder_.build();
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.brCode_ = brCode_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.brCodeName_ = brCodeName_;
}
}
private void buildPartialOneofs(ru.tinkoff.piapi.contract.v1.AssetFull result) {
result.extCase_ = extCase_;
result.ext_ = this.ext_;
if (extCase_ == 8 &&
currencyBuilder_ != null) {
result.ext_ = currencyBuilder_.build();
}
if (extCase_ == 9 &&
securityBuilder_ != null) {
result.ext_ = securityBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.AssetFull) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.AssetFull)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AssetFull other) {
if (other == ru.tinkoff.piapi.contract.v1.AssetFull.getDefaultInstance()) return this;
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getNameBrief().isEmpty()) {
nameBrief_ = other.nameBrief_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasDeletedAt()) {
mergeDeletedAt(other.getDeletedAt());
}
if (!other.requiredTests_.isEmpty()) {
if (requiredTests_.isEmpty()) {
requiredTests_ = other.requiredTests_;
bitField0_ |= 0x00000040;
} else {
ensureRequiredTestsIsMutable();
requiredTests_.addAll(other.requiredTests_);
}
onChanged();
}
if (!other.getGosRegCode().isEmpty()) {
gosRegCode_ = other.gosRegCode_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getCfi().isEmpty()) {
cfi_ = other.cfi_;
bitField0_ |= 0x00000400;
onChanged();
}
if (!other.getCodeNsd().isEmpty()) {
codeNsd_ = other.codeNsd_;
bitField0_ |= 0x00000800;
onChanged();
}
if (!other.getStatus().isEmpty()) {
status_ = other.status_;
bitField0_ |= 0x00001000;
onChanged();
}
if (other.hasBrand()) {
mergeBrand(other.getBrand());
}
if (other.hasUpdatedAt()) {
mergeUpdatedAt(other.getUpdatedAt());
}
if (!other.getBrCode().isEmpty()) {
brCode_ = other.brCode_;
bitField0_ |= 0x00008000;
onChanged();
}
if (!other.getBrCodeName().isEmpty()) {
brCodeName_ = other.brCodeName_;
bitField0_ |= 0x00010000;
onChanged();
}
if (instrumentsBuilder_ == null) {
if (!other.instruments_.isEmpty()) {
if (instruments_.isEmpty()) {
instruments_ = other.instruments_;
bitField0_ = (bitField0_ & ~0x00020000);
} else {
ensureInstrumentsIsMutable();
instruments_.addAll(other.instruments_);
}
onChanged();
}
} else {
if (!other.instruments_.isEmpty()) {
if (instrumentsBuilder_.isEmpty()) {
instrumentsBuilder_.dispose();
instrumentsBuilder_ = null;
instruments_ = other.instruments_;
bitField0_ = (bitField0_ & ~0x00020000);
instrumentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInstrumentsFieldBuilder() : null;
} else {
instrumentsBuilder_.addAllMessages(other.instruments_);
}
}
}
switch (other.getExtCase()) {
case CURRENCY: {
mergeCurrency(other.getCurrency());
break;
}
case SECURITY: {
mergeSecurity(other.getSecurity());
break;
}
case EXT_NOT_SET: {
break;
}
}
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 16: {
type_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
nameBrief_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getDeletedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureRequiredTestsIsMutable();
requiredTests_.add(s);
break;
} // case 58
case 66: {
input.readMessage(
getCurrencyFieldBuilder().getBuilder(),
extensionRegistry);
extCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getSecurityFieldBuilder().getBuilder(),
extensionRegistry);
extCase_ = 9;
break;
} // case 74
case 82: {
gosRegCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
cfi_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
codeNsd_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 98
case 106: {
status_ = input.readStringRequireUtf8();
bitField0_ |= 0x00001000;
break;
} // case 106
case 114: {
input.readMessage(
getBrandFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 114
case 122: {
input.readMessage(
getUpdatedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00004000;
break;
} // case 122
case 130: {
brCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 130
case 138: {
brCodeName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 138
case 146: {
ru.tinkoff.piapi.contract.v1.AssetInstrument m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.AssetInstrument.parser(),
extensionRegistry);
if (instrumentsBuilder_ == null) {
ensureInstrumentsIsMutable();
instruments_.add(m);
} else {
instrumentsBuilder_.addMessage(m);
}
break;
} // case 146
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 extCase_ = 0;
private java.lang.Object ext_;
public ExtCase
getExtCase() {
return ExtCase.forNumber(
extCase_);
}
public Builder clearExt() {
extCase_ = 0;
ext_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object 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;
}
}
/**
*
*Уникальный идентификатор актива.
*
*
* 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;
}
}
/**
*
*Уникальный идентификатор актива.
*
*
* 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;
}
/**
*
*Уникальный идентификатор актива.
*
*
* string uid = 1;
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Уникальный идентификатор актива.
*
*
* 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 int type_ = 0;
/**
*
*Тип актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
*Тип актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType type = 2;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Тип актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType type = 2;
* @return The type.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetType getType() {
ru.tinkoff.piapi.contract.v1.AssetType result = ru.tinkoff.piapi.contract.v1.AssetType.forNumber(type_);
return result == null ? ru.tinkoff.piapi.contract.v1.AssetType.UNRECOGNIZED : result;
}
/**
*
*Тип актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(ru.tinkoff.piapi.contract.v1.AssetType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Тип актива.
*
*
* .tinkoff.public.invest.api.contract.v1.AssetType type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*Наименование актива.
*
*
* string name = 3;
* @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 = 3;
* @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 = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Наименование актива.
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*Наименование актива.
*
*
* string name = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object nameBrief_ = "";
/**
*
*Короткое наименование актива.
*
*
* string name_brief = 4;
* @return The nameBrief.
*/
public java.lang.String getNameBrief() {
java.lang.Object ref = nameBrief_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nameBrief_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Короткое наименование актива.
*
*
* string name_brief = 4;
* @return The bytes for nameBrief.
*/
public com.google.protobuf.ByteString
getNameBriefBytes() {
java.lang.Object ref = nameBrief_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nameBrief_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Короткое наименование актива.
*
*
* string name_brief = 4;
* @param value The nameBrief to set.
* @return This builder for chaining.
*/
public Builder setNameBrief(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nameBrief_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Короткое наименование актива.
*
*
* string name_brief = 4;
* @return This builder for chaining.
*/
public Builder clearNameBrief() {
nameBrief_ = getDefaultInstance().getNameBrief();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*Короткое наименование актива.
*
*
* string name_brief = 4;
* @param value The bytes for nameBrief to set.
* @return This builder for chaining.
*/
public Builder setNameBriefBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nameBrief_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*Описание актива.
*
*
* string description = 5;
* @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 = 5;
* @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 = 5;
* @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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Описание актива.
*
*
* string description = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*Описание актива.
*
*
* string description = 5;
* @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_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.Timestamp deletedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_;
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
* @return Whether the deletedAt field is set.
*/
public boolean hasDeletedAt() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
* @return The deletedAt.
*/
public com.google.protobuf.Timestamp getDeletedAt() {
if (deletedAtBuilder_ == null) {
return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_;
} else {
return deletedAtBuilder_.getMessage();
}
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
public Builder setDeletedAt(com.google.protobuf.Timestamp value) {
if (deletedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deletedAt_ = value;
} else {
deletedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
public Builder setDeletedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (deletedAtBuilder_ == null) {
deletedAt_ = builderForValue.build();
} else {
deletedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) {
if (deletedAtBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
deletedAt_ != null &&
deletedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getDeletedAtBuilder().mergeFrom(value);
} else {
deletedAt_ = value;
}
} else {
deletedAtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
public Builder clearDeletedAt() {
bitField0_ = (bitField0_ & ~0x00000020);
deletedAt_ = null;
if (deletedAtBuilder_ != null) {
deletedAtBuilder_.dispose();
deletedAtBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getDeletedAtFieldBuilder().getBuilder();
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() {
if (deletedAtBuilder_ != null) {
return deletedAtBuilder_.getMessageOrBuilder();
} else {
return deletedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_;
}
}
/**
*
*Дата и время удаления актива.
*
*
* .google.protobuf.Timestamp deleted_at = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getDeletedAtFieldBuilder() {
if (deletedAtBuilder_ == null) {
deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getDeletedAt(),
getParentForChildren(),
isClean());
deletedAt_ = null;
}
return deletedAtBuilder_;
}
private com.google.protobuf.LazyStringArrayList requiredTests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRequiredTestsIsMutable() {
if (!requiredTests_.isModifiable()) {
requiredTests_ = new com.google.protobuf.LazyStringArrayList(requiredTests_);
}
bitField0_ |= 0x00000040;
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @return A list containing the requiredTests.
*/
public com.google.protobuf.ProtocolStringList
getRequiredTestsList() {
requiredTests_.makeImmutable();
return requiredTests_;
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @return The count of requiredTests.
*/
public int getRequiredTestsCount() {
return requiredTests_.size();
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param index The index of the element to return.
* @return The requiredTests at the given index.
*/
public java.lang.String getRequiredTests(int index) {
return requiredTests_.get(index);
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param index The index of the value to return.
* @return The bytes of the requiredTests at the given index.
*/
public com.google.protobuf.ByteString
getRequiredTestsBytes(int index) {
return requiredTests_.getByteString(index);
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param index The index to set the value at.
* @param value The requiredTests to set.
* @return This builder for chaining.
*/
public Builder setRequiredTests(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRequiredTestsIsMutable();
requiredTests_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param value The requiredTests to add.
* @return This builder for chaining.
*/
public Builder addRequiredTests(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRequiredTestsIsMutable();
requiredTests_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param values The requiredTests to add.
* @return This builder for chaining.
*/
public Builder addAllRequiredTests(
java.lang.Iterable values) {
ensureRequiredTestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requiredTests_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @return This builder for chaining.
*/
public Builder clearRequiredTests() {
requiredTests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
return this;
}
/**
*
*Тестирование клиентов.
*
*
* repeated string required_tests = 7;
* @param value The bytes of the requiredTests to add.
* @return This builder for chaining.
*/
public Builder addRequiredTestsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureRequiredTestsIsMutable();
requiredTests_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetCurrency, ru.tinkoff.piapi.contract.v1.AssetCurrency.Builder, ru.tinkoff.piapi.contract.v1.AssetCurrencyOrBuilder> currencyBuilder_;
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
* @return Whether the currency field is set.
*/
@java.lang.Override
public boolean hasCurrency() {
return extCase_ == 8;
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
* @return The currency.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetCurrency getCurrency() {
if (currencyBuilder_ == null) {
if (extCase_ == 8) {
return (ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetCurrency.getDefaultInstance();
} else {
if (extCase_ == 8) {
return currencyBuilder_.getMessage();
}
return ru.tinkoff.piapi.contract.v1.AssetCurrency.getDefaultInstance();
}
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
public Builder setCurrency(ru.tinkoff.piapi.contract.v1.AssetCurrency value) {
if (currencyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ext_ = value;
onChanged();
} else {
currencyBuilder_.setMessage(value);
}
extCase_ = 8;
return this;
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
public Builder setCurrency(
ru.tinkoff.piapi.contract.v1.AssetCurrency.Builder builderForValue) {
if (currencyBuilder_ == null) {
ext_ = builderForValue.build();
onChanged();
} else {
currencyBuilder_.setMessage(builderForValue.build());
}
extCase_ = 8;
return this;
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
public Builder mergeCurrency(ru.tinkoff.piapi.contract.v1.AssetCurrency value) {
if (currencyBuilder_ == null) {
if (extCase_ == 8 &&
ext_ != ru.tinkoff.piapi.contract.v1.AssetCurrency.getDefaultInstance()) {
ext_ = ru.tinkoff.piapi.contract.v1.AssetCurrency.newBuilder((ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_)
.mergeFrom(value).buildPartial();
} else {
ext_ = value;
}
onChanged();
} else {
if (extCase_ == 8) {
currencyBuilder_.mergeFrom(value);
} else {
currencyBuilder_.setMessage(value);
}
}
extCase_ = 8;
return this;
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
public Builder clearCurrency() {
if (currencyBuilder_ == null) {
if (extCase_ == 8) {
extCase_ = 0;
ext_ = null;
onChanged();
}
} else {
if (extCase_ == 8) {
extCase_ = 0;
ext_ = null;
}
currencyBuilder_.clear();
}
return this;
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
public ru.tinkoff.piapi.contract.v1.AssetCurrency.Builder getCurrencyBuilder() {
return getCurrencyFieldBuilder().getBuilder();
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetCurrencyOrBuilder getCurrencyOrBuilder() {
if ((extCase_ == 8) && (currencyBuilder_ != null)) {
return currencyBuilder_.getMessageOrBuilder();
} else {
if (extCase_ == 8) {
return (ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetCurrency.getDefaultInstance();
}
}
/**
*
*Валюта. Обязательно и заполняется только для type = "ASSET_TYPE_CURRENCY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetCurrency currency = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetCurrency, ru.tinkoff.piapi.contract.v1.AssetCurrency.Builder, ru.tinkoff.piapi.contract.v1.AssetCurrencyOrBuilder>
getCurrencyFieldBuilder() {
if (currencyBuilder_ == null) {
if (!(extCase_ == 8)) {
ext_ = ru.tinkoff.piapi.contract.v1.AssetCurrency.getDefaultInstance();
}
currencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetCurrency, ru.tinkoff.piapi.contract.v1.AssetCurrency.Builder, ru.tinkoff.piapi.contract.v1.AssetCurrencyOrBuilder>(
(ru.tinkoff.piapi.contract.v1.AssetCurrency) ext_,
getParentForChildren(),
isClean());
ext_ = null;
}
extCase_ = 8;
onChanged();
return currencyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetSecurity, ru.tinkoff.piapi.contract.v1.AssetSecurity.Builder, ru.tinkoff.piapi.contract.v1.AssetSecurityOrBuilder> securityBuilder_;
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
* @return Whether the security field is set.
*/
@java.lang.Override
public boolean hasSecurity() {
return extCase_ == 9;
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
* @return The security.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetSecurity getSecurity() {
if (securityBuilder_ == null) {
if (extCase_ == 9) {
return (ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetSecurity.getDefaultInstance();
} else {
if (extCase_ == 9) {
return securityBuilder_.getMessage();
}
return ru.tinkoff.piapi.contract.v1.AssetSecurity.getDefaultInstance();
}
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
public Builder setSecurity(ru.tinkoff.piapi.contract.v1.AssetSecurity value) {
if (securityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ext_ = value;
onChanged();
} else {
securityBuilder_.setMessage(value);
}
extCase_ = 9;
return this;
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
public Builder setSecurity(
ru.tinkoff.piapi.contract.v1.AssetSecurity.Builder builderForValue) {
if (securityBuilder_ == null) {
ext_ = builderForValue.build();
onChanged();
} else {
securityBuilder_.setMessage(builderForValue.build());
}
extCase_ = 9;
return this;
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
public Builder mergeSecurity(ru.tinkoff.piapi.contract.v1.AssetSecurity value) {
if (securityBuilder_ == null) {
if (extCase_ == 9 &&
ext_ != ru.tinkoff.piapi.contract.v1.AssetSecurity.getDefaultInstance()) {
ext_ = ru.tinkoff.piapi.contract.v1.AssetSecurity.newBuilder((ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_)
.mergeFrom(value).buildPartial();
} else {
ext_ = value;
}
onChanged();
} else {
if (extCase_ == 9) {
securityBuilder_.mergeFrom(value);
} else {
securityBuilder_.setMessage(value);
}
}
extCase_ = 9;
return this;
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
public Builder clearSecurity() {
if (securityBuilder_ == null) {
if (extCase_ == 9) {
extCase_ = 0;
ext_ = null;
onChanged();
}
} else {
if (extCase_ == 9) {
extCase_ = 0;
ext_ = null;
}
securityBuilder_.clear();
}
return this;
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
public ru.tinkoff.piapi.contract.v1.AssetSecurity.Builder getSecurityBuilder() {
return getSecurityFieldBuilder().getBuilder();
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AssetSecurityOrBuilder getSecurityOrBuilder() {
if ((extCase_ == 9) && (securityBuilder_ != null)) {
return securityBuilder_.getMessageOrBuilder();
} else {
if (extCase_ == 9) {
return (ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_;
}
return ru.tinkoff.piapi.contract.v1.AssetSecurity.getDefaultInstance();
}
}
/**
*
*Ценная бумага. Обязательно и заполняется только для type = "ASSET_TYPE_SECURITY".
*
*
* .tinkoff.public.invest.api.contract.v1.AssetSecurity security = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetSecurity, ru.tinkoff.piapi.contract.v1.AssetSecurity.Builder, ru.tinkoff.piapi.contract.v1.AssetSecurityOrBuilder>
getSecurityFieldBuilder() {
if (securityBuilder_ == null) {
if (!(extCase_ == 9)) {
ext_ = ru.tinkoff.piapi.contract.v1.AssetSecurity.getDefaultInstance();
}
securityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetSecurity, ru.tinkoff.piapi.contract.v1.AssetSecurity.Builder, ru.tinkoff.piapi.contract.v1.AssetSecurityOrBuilder>(
(ru.tinkoff.piapi.contract.v1.AssetSecurity) ext_,
getParentForChildren(),
isClean());
ext_ = null;
}
extCase_ = 9;
onChanged();
return securityBuilder_;
}
private java.lang.Object gosRegCode_ = "";
/**
*
*Номер государственной регистрации.
*
*
* string gos_reg_code = 10;
* @return The gosRegCode.
*/
public java.lang.String getGosRegCode() {
java.lang.Object ref = gosRegCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gosRegCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Номер государственной регистрации.
*
*
* string gos_reg_code = 10;
* @return The bytes for gosRegCode.
*/
public com.google.protobuf.ByteString
getGosRegCodeBytes() {
java.lang.Object ref = gosRegCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gosRegCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Номер государственной регистрации.
*
*
* string gos_reg_code = 10;
* @param value The gosRegCode to set.
* @return This builder for chaining.
*/
public Builder setGosRegCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
gosRegCode_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Номер государственной регистрации.
*
*
* string gos_reg_code = 10;
* @return This builder for chaining.
*/
public Builder clearGosRegCode() {
gosRegCode_ = getDefaultInstance().getGosRegCode();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*Номер государственной регистрации.
*
*
* string gos_reg_code = 10;
* @param value The bytes for gosRegCode to set.
* @return This builder for chaining.
*/
public Builder setGosRegCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
gosRegCode_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object cfi_ = "";
/**
*
*Код CFI.
*
*
* string cfi = 11;
* @return The cfi.
*/
public java.lang.String getCfi() {
java.lang.Object ref = cfi_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cfi_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Код CFI.
*
*
* string cfi = 11;
* @return The bytes for cfi.
*/
public com.google.protobuf.ByteString
getCfiBytes() {
java.lang.Object ref = cfi_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cfi_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Код CFI.
*
*
* string cfi = 11;
* @param value The cfi to set.
* @return This builder for chaining.
*/
public Builder setCfi(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
cfi_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Код CFI.
*
*
* string cfi = 11;
* @return This builder for chaining.
*/
public Builder clearCfi() {
cfi_ = getDefaultInstance().getCfi();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*Код CFI.
*
*
* string cfi = 11;
* @param value The bytes for cfi to set.
* @return This builder for chaining.
*/
public Builder setCfiBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
cfi_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object codeNsd_ = "";
/**
*
*Код НРД инструмента.
*
*
* string code_nsd = 12;
* @return The codeNsd.
*/
public java.lang.String getCodeNsd() {
java.lang.Object ref = codeNsd_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codeNsd_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Код НРД инструмента.
*
*
* string code_nsd = 12;
* @return The bytes for codeNsd.
*/
public com.google.protobuf.ByteString
getCodeNsdBytes() {
java.lang.Object ref = codeNsd_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codeNsd_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Код НРД инструмента.
*
*
* string code_nsd = 12;
* @param value The codeNsd to set.
* @return This builder for chaining.
*/
public Builder setCodeNsd(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
codeNsd_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Код НРД инструмента.
*
*
* string code_nsd = 12;
* @return This builder for chaining.
*/
public Builder clearCodeNsd() {
codeNsd_ = getDefaultInstance().getCodeNsd();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*Код НРД инструмента.
*
*
* string code_nsd = 12;
* @param value The bytes for codeNsd to set.
* @return This builder for chaining.
*/
public Builder setCodeNsdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
codeNsd_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private java.lang.Object status_ = "";
/**
*
*Статус актива.
*
*
* string status = 13;
* @return The status.
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
status_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Статус актива.
*
*
* string status = 13;
* @return The bytes for status.
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Статус актива.
*
*
* string status = 13;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
status_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Статус актива.
*
*
* string status = 13;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = getDefaultInstance().getStatus();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
*Статус актива.
*
*
* string status = 13;
* @param value The bytes for status to set.
* @return This builder for chaining.
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
status_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private ru.tinkoff.piapi.contract.v1.Brand brand_;
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Brand, ru.tinkoff.piapi.contract.v1.Brand.Builder, ru.tinkoff.piapi.contract.v1.BrandOrBuilder> brandBuilder_;
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
* @return Whether the brand field is set.
*/
public boolean hasBrand() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
* @return The brand.
*/
public ru.tinkoff.piapi.contract.v1.Brand getBrand() {
if (brandBuilder_ == null) {
return brand_ == null ? ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance() : brand_;
} else {
return brandBuilder_.getMessage();
}
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
public Builder setBrand(ru.tinkoff.piapi.contract.v1.Brand value) {
if (brandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
brand_ = value;
} else {
brandBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
public Builder setBrand(
ru.tinkoff.piapi.contract.v1.Brand.Builder builderForValue) {
if (brandBuilder_ == null) {
brand_ = builderForValue.build();
} else {
brandBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
public Builder mergeBrand(ru.tinkoff.piapi.contract.v1.Brand value) {
if (brandBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
brand_ != null &&
brand_ != ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance()) {
getBrandBuilder().mergeFrom(value);
} else {
brand_ = value;
}
} else {
brandBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
public Builder clearBrand() {
bitField0_ = (bitField0_ & ~0x00002000);
brand_ = null;
if (brandBuilder_ != null) {
brandBuilder_.dispose();
brandBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
public ru.tinkoff.piapi.contract.v1.Brand.Builder getBrandBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getBrandFieldBuilder().getBuilder();
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
public ru.tinkoff.piapi.contract.v1.BrandOrBuilder getBrandOrBuilder() {
if (brandBuilder_ != null) {
return brandBuilder_.getMessageOrBuilder();
} else {
return brand_ == null ?
ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance() : brand_;
}
}
/**
*
*Бренд.
*
*
* .tinkoff.public.invest.api.contract.v1.Brand brand = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Brand, ru.tinkoff.piapi.contract.v1.Brand.Builder, ru.tinkoff.piapi.contract.v1.BrandOrBuilder>
getBrandFieldBuilder() {
if (brandBuilder_ == null) {
brandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Brand, ru.tinkoff.piapi.contract.v1.Brand.Builder, ru.tinkoff.piapi.contract.v1.BrandOrBuilder>(
getBrand(),
getParentForChildren(),
isClean());
brand_ = null;
}
return brandBuilder_;
}
private com.google.protobuf.Timestamp updatedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_;
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
* @return Whether the updatedAt field is set.
*/
public boolean hasUpdatedAt() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
* @return The updatedAt.
*/
public com.google.protobuf.Timestamp getUpdatedAt() {
if (updatedAtBuilder_ == null) {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
} else {
return updatedAtBuilder_.getMessage();
}
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedAt_ = value;
} else {
updatedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
public Builder setUpdatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedAtBuilder_ == null) {
updatedAt_ = builderForValue.build();
} else {
updatedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0) &&
updatedAt_ != null &&
updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdatedAtBuilder().mergeFrom(value);
} else {
updatedAt_ = value;
}
} else {
updatedAtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
public Builder clearUpdatedAt() {
bitField0_ = (bitField0_ & ~0x00004000);
updatedAt_ = null;
if (updatedAtBuilder_ != null) {
updatedAtBuilder_.dispose();
updatedAtBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getUpdatedAtFieldBuilder().getBuilder();
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
if (updatedAtBuilder_ != null) {
return updatedAtBuilder_.getMessageOrBuilder();
} else {
return updatedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
}
/**
*
*Дата и время последнего обновления записи.
*
*
* .google.protobuf.Timestamp updated_at = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedAtFieldBuilder() {
if (updatedAtBuilder_ == null) {
updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdatedAt(),
getParentForChildren(),
isClean());
updatedAt_ = null;
}
return updatedAtBuilder_;
}
private java.lang.Object brCode_ = "";
/**
*
*Код типа ц.б. по классификации Банка России.
*
*
* string br_code = 16;
* @return The brCode.
*/
public java.lang.String getBrCode() {
java.lang.Object ref = brCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
brCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Код типа ц.б. по классификации Банка России.
*
*
* string br_code = 16;
* @return The bytes for brCode.
*/
public com.google.protobuf.ByteString
getBrCodeBytes() {
java.lang.Object ref = brCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
brCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Код типа ц.б. по классификации Банка России.
*
*
* string br_code = 16;
* @param value The brCode to set.
* @return This builder for chaining.
*/
public Builder setBrCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
brCode_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*Код типа ц.б. по классификации Банка России.
*
*
* string br_code = 16;
* @return This builder for chaining.
*/
public Builder clearBrCode() {
brCode_ = getDefaultInstance().getBrCode();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
*
*Код типа ц.б. по классификации Банка России.
*
*
* string br_code = 16;
* @param value The bytes for brCode to set.
* @return This builder for chaining.
*/
public Builder setBrCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
brCode_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
private java.lang.Object brCodeName_ = "";
/**
*
*Наименование кода типа ц.б. по классификации Банка России.
*
*
* string br_code_name = 17;
* @return The brCodeName.
*/
public java.lang.String getBrCodeName() {
java.lang.Object ref = brCodeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
brCodeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Наименование кода типа ц.б. по классификации Банка России.
*
*
* string br_code_name = 17;
* @return The bytes for brCodeName.
*/
public com.google.protobuf.ByteString
getBrCodeNameBytes() {
java.lang.Object ref = brCodeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
brCodeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Наименование кода типа ц.б. по классификации Банка России.
*
*
* string br_code_name = 17;
* @param value The brCodeName to set.
* @return This builder for chaining.
*/
public Builder setBrCodeName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
brCodeName_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*Наименование кода типа ц.б. по классификации Банка России.
*
*
* string br_code_name = 17;
* @return This builder for chaining.
*/
public Builder clearBrCodeName() {
brCodeName_ = getDefaultInstance().getBrCodeName();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
*
*Наименование кода типа ц.б. по классификации Банка России.
*
*
* string br_code_name = 17;
* @param value The bytes for brCodeName to set.
* @return This builder for chaining.
*/
public Builder setBrCodeNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
brCodeName_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private java.util.List instruments_ =
java.util.Collections.emptyList();
private void ensureInstrumentsIsMutable() {
if (!((bitField0_ & 0x00020000) != 0)) {
instruments_ = new java.util.ArrayList(instruments_);
bitField0_ |= 0x00020000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetInstrument, ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder, ru.tinkoff.piapi.contract.v1.AssetInstrumentOrBuilder> instrumentsBuilder_;
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public java.util.List getInstrumentsList() {
if (instrumentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(instruments_);
} else {
return instrumentsBuilder_.getMessageList();
}
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public int getInstrumentsCount() {
if (instrumentsBuilder_ == null) {
return instruments_.size();
} else {
return instrumentsBuilder_.getCount();
}
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public ru.tinkoff.piapi.contract.v1.AssetInstrument getInstruments(int index) {
if (instrumentsBuilder_ == null) {
return instruments_.get(index);
} else {
return instrumentsBuilder_.getMessage(index);
}
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder setInstruments(
int index, ru.tinkoff.piapi.contract.v1.AssetInstrument value) {
if (instrumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstrumentsIsMutable();
instruments_.set(index, value);
onChanged();
} else {
instrumentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder setInstruments(
int index, ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder builderForValue) {
if (instrumentsBuilder_ == null) {
ensureInstrumentsIsMutable();
instruments_.set(index, builderForValue.build());
onChanged();
} else {
instrumentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder addInstruments(ru.tinkoff.piapi.contract.v1.AssetInstrument value) {
if (instrumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstrumentsIsMutable();
instruments_.add(value);
onChanged();
} else {
instrumentsBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder addInstruments(
int index, ru.tinkoff.piapi.contract.v1.AssetInstrument value) {
if (instrumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstrumentsIsMutable();
instruments_.add(index, value);
onChanged();
} else {
instrumentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder addInstruments(
ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder builderForValue) {
if (instrumentsBuilder_ == null) {
ensureInstrumentsIsMutable();
instruments_.add(builderForValue.build());
onChanged();
} else {
instrumentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder addInstruments(
int index, ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder builderForValue) {
if (instrumentsBuilder_ == null) {
ensureInstrumentsIsMutable();
instruments_.add(index, builderForValue.build());
onChanged();
} else {
instrumentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder addAllInstruments(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.AssetInstrument> values) {
if (instrumentsBuilder_ == null) {
ensureInstrumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instruments_);
onChanged();
} else {
instrumentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder clearInstruments() {
if (instrumentsBuilder_ == null) {
instruments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
} else {
instrumentsBuilder_.clear();
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public Builder removeInstruments(int index) {
if (instrumentsBuilder_ == null) {
ensureInstrumentsIsMutable();
instruments_.remove(index);
onChanged();
} else {
instrumentsBuilder_.remove(index);
}
return this;
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder getInstrumentsBuilder(
int index) {
return getInstrumentsFieldBuilder().getBuilder(index);
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public ru.tinkoff.piapi.contract.v1.AssetInstrumentOrBuilder getInstrumentsOrBuilder(
int index) {
if (instrumentsBuilder_ == null) {
return instruments_.get(index); } else {
return instrumentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.AssetInstrumentOrBuilder>
getInstrumentsOrBuilderList() {
if (instrumentsBuilder_ != null) {
return instrumentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instruments_);
}
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder addInstrumentsBuilder() {
return getInstrumentsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.AssetInstrument.getDefaultInstance());
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder addInstrumentsBuilder(
int index) {
return getInstrumentsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.AssetInstrument.getDefaultInstance());
}
/**
*
*Массив идентификаторов инструментов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.AssetInstrument instruments = 18;
*/
public java.util.List
getInstrumentsBuilderList() {
return getInstrumentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetInstrument, ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder, ru.tinkoff.piapi.contract.v1.AssetInstrumentOrBuilder>
getInstrumentsFieldBuilder() {
if (instrumentsBuilder_ == null) {
instrumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.AssetInstrument, ru.tinkoff.piapi.contract.v1.AssetInstrument.Builder, ru.tinkoff.piapi.contract.v1.AssetInstrumentOrBuilder>(
instruments_,
((bitField0_ & 0x00020000) != 0),
getParentForChildren(),
isClean());
instruments_ = null;
}
return instrumentsBuilder_;
}
@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.AssetFull)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.AssetFull)
private static final ru.tinkoff.piapi.contract.v1.AssetFull DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.AssetFull();
}
public static ru.tinkoff.piapi.contract.v1.AssetFull getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetFull 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.AssetFull getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}