All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.GetBrandsResponse 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.GetBrandsResponse}
*/
public final class GetBrandsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetBrandsResponse)
GetBrandsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBrandsResponse.newBuilder() to construct.
private GetBrandsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBrandsResponse() {
brands_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBrandsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetBrandsResponse_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_GetBrandsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetBrandsResponse.class, ru.tinkoff.piapi.contract.v1.GetBrandsResponse.Builder.class);
}
public static final int BRANDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List brands_;
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
@java.lang.Override
public java.util.List getBrandsList() {
return brands_;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.BrandOrBuilder>
getBrandsOrBuilderList() {
return brands_;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
@java.lang.Override
public int getBrandsCount() {
return brands_.size();
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Brand getBrands(int index) {
return brands_.get(index);
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.BrandOrBuilder getBrandsOrBuilder(
int index) {
return brands_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < brands_.size(); i++) {
output.writeMessage(1, brands_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < brands_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, brands_.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.GetBrandsResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetBrandsResponse other = (ru.tinkoff.piapi.contract.v1.GetBrandsResponse) obj;
if (!getBrandsList()
.equals(other.getBrandsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBrandsCount() > 0) {
hash = (37 * hash) + BRANDS_FIELD_NUMBER;
hash = (53 * hash) + getBrandsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetBrandsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetBrandsResponse 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.GetBrandsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetBrandsResponse 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.GetBrandsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetBrandsResponse 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.GetBrandsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetBrandsResponse 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.GetBrandsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetBrandsResponse 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.GetBrandsResponse 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.GetBrandsResponse 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.GetBrandsResponse 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.GetBrandsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetBrandsResponse)
ru.tinkoff.piapi.contract.v1.GetBrandsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetBrandsResponse_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_GetBrandsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetBrandsResponse.class, ru.tinkoff.piapi.contract.v1.GetBrandsResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetBrandsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (brandsBuilder_ == null) {
brands_ = java.util.Collections.emptyList();
} else {
brands_ = null;
brandsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
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_GetBrandsResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetBrandsResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetBrandsResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetBrandsResponse build() {
ru.tinkoff.piapi.contract.v1.GetBrandsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetBrandsResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.GetBrandsResponse result = new ru.tinkoff.piapi.contract.v1.GetBrandsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.GetBrandsResponse result) {
if (brandsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
brands_ = java.util.Collections.unmodifiableList(brands_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.brands_ = brands_;
} else {
result.brands_ = brandsBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetBrandsResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetBrandsResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetBrandsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetBrandsResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.GetBrandsResponse.getDefaultInstance()) return this;
if (brandsBuilder_ == null) {
if (!other.brands_.isEmpty()) {
if (brands_.isEmpty()) {
brands_ = other.brands_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBrandsIsMutable();
brands_.addAll(other.brands_);
}
onChanged();
}
} else {
if (!other.brands_.isEmpty()) {
if (brandsBuilder_.isEmpty()) {
brandsBuilder_.dispose();
brandsBuilder_ = null;
brands_ = other.brands_;
bitField0_ = (bitField0_ & ~0x00000001);
brandsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBrandsFieldBuilder() : null;
} else {
brandsBuilder_.addAllMessages(other.brands_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
ru.tinkoff.piapi.contract.v1.Brand m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.Brand.parser(),
extensionRegistry);
if (brandsBuilder_ == null) {
ensureBrandsIsMutable();
brands_.add(m);
} else {
brandsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List brands_ =
java.util.Collections.emptyList();
private void ensureBrandsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
brands_ = new java.util.ArrayList(brands_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Brand, ru.tinkoff.piapi.contract.v1.Brand.Builder, ru.tinkoff.piapi.contract.v1.BrandOrBuilder> brandsBuilder_;
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public java.util.List getBrandsList() {
if (brandsBuilder_ == null) {
return java.util.Collections.unmodifiableList(brands_);
} else {
return brandsBuilder_.getMessageList();
}
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public int getBrandsCount() {
if (brandsBuilder_ == null) {
return brands_.size();
} else {
return brandsBuilder_.getCount();
}
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public ru.tinkoff.piapi.contract.v1.Brand getBrands(int index) {
if (brandsBuilder_ == null) {
return brands_.get(index);
} else {
return brandsBuilder_.getMessage(index);
}
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder setBrands(
int index, ru.tinkoff.piapi.contract.v1.Brand value) {
if (brandsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrandsIsMutable();
brands_.set(index, value);
onChanged();
} else {
brandsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder setBrands(
int index, ru.tinkoff.piapi.contract.v1.Brand.Builder builderForValue) {
if (brandsBuilder_ == null) {
ensureBrandsIsMutable();
brands_.set(index, builderForValue.build());
onChanged();
} else {
brandsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder addBrands(ru.tinkoff.piapi.contract.v1.Brand value) {
if (brandsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrandsIsMutable();
brands_.add(value);
onChanged();
} else {
brandsBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder addBrands(
int index, ru.tinkoff.piapi.contract.v1.Brand value) {
if (brandsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrandsIsMutable();
brands_.add(index, value);
onChanged();
} else {
brandsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder addBrands(
ru.tinkoff.piapi.contract.v1.Brand.Builder builderForValue) {
if (brandsBuilder_ == null) {
ensureBrandsIsMutable();
brands_.add(builderForValue.build());
onChanged();
} else {
brandsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder addBrands(
int index, ru.tinkoff.piapi.contract.v1.Brand.Builder builderForValue) {
if (brandsBuilder_ == null) {
ensureBrandsIsMutable();
brands_.add(index, builderForValue.build());
onChanged();
} else {
brandsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder addAllBrands(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.Brand> values) {
if (brandsBuilder_ == null) {
ensureBrandsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, brands_);
onChanged();
} else {
brandsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder clearBrands() {
if (brandsBuilder_ == null) {
brands_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
brandsBuilder_.clear();
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public Builder removeBrands(int index) {
if (brandsBuilder_ == null) {
ensureBrandsIsMutable();
brands_.remove(index);
onChanged();
} else {
brandsBuilder_.remove(index);
}
return this;
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public ru.tinkoff.piapi.contract.v1.Brand.Builder getBrandsBuilder(
int index) {
return getBrandsFieldBuilder().getBuilder(index);
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public ru.tinkoff.piapi.contract.v1.BrandOrBuilder getBrandsOrBuilder(
int index) {
if (brandsBuilder_ == null) {
return brands_.get(index); } else {
return brandsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.BrandOrBuilder>
getBrandsOrBuilderList() {
if (brandsBuilder_ != null) {
return brandsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(brands_);
}
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public ru.tinkoff.piapi.contract.v1.Brand.Builder addBrandsBuilder() {
return getBrandsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance());
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public ru.tinkoff.piapi.contract.v1.Brand.Builder addBrandsBuilder(
int index) {
return getBrandsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.Brand.getDefaultInstance());
}
/**
*
*Массив брендов.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Brand brands = 1;
*/
public java.util.List
getBrandsBuilderList() {
return getBrandsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Brand, ru.tinkoff.piapi.contract.v1.Brand.Builder, ru.tinkoff.piapi.contract.v1.BrandOrBuilder>
getBrandsFieldBuilder() {
if (brandsBuilder_ == null) {
brandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Brand, ru.tinkoff.piapi.contract.v1.Brand.Builder, ru.tinkoff.piapi.contract.v1.BrandOrBuilder>(
brands_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
brands_ = null;
}
return brandsBuilder_;
}
@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.GetBrandsResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetBrandsResponse)
private static final ru.tinkoff.piapi.contract.v1.GetBrandsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetBrandsResponse();
}
public static ru.tinkoff.piapi.contract.v1.GetBrandsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBrandsResponse 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.GetBrandsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}