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.GetCountriesResponse 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.GetCountriesResponse}
*/
public final class GetCountriesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetCountriesResponse)
GetCountriesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetCountriesResponse.newBuilder() to construct.
private GetCountriesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetCountriesResponse() {
countries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetCountriesResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetCountriesResponse_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_GetCountriesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetCountriesResponse.class, ru.tinkoff.piapi.contract.v1.GetCountriesResponse.Builder.class);
}
public static final int COUNTRIES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List countries_;
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
@java.lang.Override
public java.util.List getCountriesList() {
return countries_;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.CountryResponseOrBuilder>
getCountriesOrBuilderList() {
return countries_;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
@java.lang.Override
public int getCountriesCount() {
return countries_.size();
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CountryResponse getCountries(int index) {
return countries_.get(index);
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CountryResponseOrBuilder getCountriesOrBuilder(
int index) {
return countries_.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 < countries_.size(); i++) {
output.writeMessage(1, countries_.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 < countries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, countries_.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.GetCountriesResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetCountriesResponse other = (ru.tinkoff.piapi.contract.v1.GetCountriesResponse) obj;
if (!getCountriesList()
.equals(other.getCountriesList())) 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 (getCountriesCount() > 0) {
hash = (37 * hash) + COUNTRIES_FIELD_NUMBER;
hash = (53 * hash) + getCountriesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetCountriesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetCountriesResponse 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.GetCountriesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetCountriesResponse 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.GetCountriesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetCountriesResponse 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.GetCountriesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetCountriesResponse 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.GetCountriesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetCountriesResponse 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.GetCountriesResponse 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.GetCountriesResponse 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.GetCountriesResponse 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.GetCountriesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetCountriesResponse)
ru.tinkoff.piapi.contract.v1.GetCountriesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetCountriesResponse_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_GetCountriesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetCountriesResponse.class, ru.tinkoff.piapi.contract.v1.GetCountriesResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetCountriesResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (countriesBuilder_ == null) {
countries_ = java.util.Collections.emptyList();
} else {
countries_ = null;
countriesBuilder_.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_GetCountriesResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetCountriesResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetCountriesResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetCountriesResponse build() {
ru.tinkoff.piapi.contract.v1.GetCountriesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetCountriesResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.GetCountriesResponse result = new ru.tinkoff.piapi.contract.v1.GetCountriesResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.GetCountriesResponse result) {
if (countriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
countries_ = java.util.Collections.unmodifiableList(countries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.countries_ = countries_;
} else {
result.countries_ = countriesBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetCountriesResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetCountriesResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetCountriesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetCountriesResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.GetCountriesResponse.getDefaultInstance()) return this;
if (countriesBuilder_ == null) {
if (!other.countries_.isEmpty()) {
if (countries_.isEmpty()) {
countries_ = other.countries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCountriesIsMutable();
countries_.addAll(other.countries_);
}
onChanged();
}
} else {
if (!other.countries_.isEmpty()) {
if (countriesBuilder_.isEmpty()) {
countriesBuilder_.dispose();
countriesBuilder_ = null;
countries_ = other.countries_;
bitField0_ = (bitField0_ & ~0x00000001);
countriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCountriesFieldBuilder() : null;
} else {
countriesBuilder_.addAllMessages(other.countries_);
}
}
}
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.CountryResponse m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.CountryResponse.parser(),
extensionRegistry);
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.add(m);
} else {
countriesBuilder_.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 countries_ =
java.util.Collections.emptyList();
private void ensureCountriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
countries_ = new java.util.ArrayList(countries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.CountryResponse, ru.tinkoff.piapi.contract.v1.CountryResponse.Builder, ru.tinkoff.piapi.contract.v1.CountryResponseOrBuilder> countriesBuilder_;
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public java.util.List getCountriesList() {
if (countriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(countries_);
} else {
return countriesBuilder_.getMessageList();
}
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public int getCountriesCount() {
if (countriesBuilder_ == null) {
return countries_.size();
} else {
return countriesBuilder_.getCount();
}
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public ru.tinkoff.piapi.contract.v1.CountryResponse getCountries(int index) {
if (countriesBuilder_ == null) {
return countries_.get(index);
} else {
return countriesBuilder_.getMessage(index);
}
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder setCountries(
int index, ru.tinkoff.piapi.contract.v1.CountryResponse value) {
if (countriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountriesIsMutable();
countries_.set(index, value);
onChanged();
} else {
countriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder setCountries(
int index, ru.tinkoff.piapi.contract.v1.CountryResponse.Builder builderForValue) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.set(index, builderForValue.build());
onChanged();
} else {
countriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder addCountries(ru.tinkoff.piapi.contract.v1.CountryResponse value) {
if (countriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountriesIsMutable();
countries_.add(value);
onChanged();
} else {
countriesBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder addCountries(
int index, ru.tinkoff.piapi.contract.v1.CountryResponse value) {
if (countriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountriesIsMutable();
countries_.add(index, value);
onChanged();
} else {
countriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder addCountries(
ru.tinkoff.piapi.contract.v1.CountryResponse.Builder builderForValue) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.add(builderForValue.build());
onChanged();
} else {
countriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder addCountries(
int index, ru.tinkoff.piapi.contract.v1.CountryResponse.Builder builderForValue) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.add(index, builderForValue.build());
onChanged();
} else {
countriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder addAllCountries(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.CountryResponse> values) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, countries_);
onChanged();
} else {
countriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder clearCountries() {
if (countriesBuilder_ == null) {
countries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
countriesBuilder_.clear();
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public Builder removeCountries(int index) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.remove(index);
onChanged();
} else {
countriesBuilder_.remove(index);
}
return this;
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public ru.tinkoff.piapi.contract.v1.CountryResponse.Builder getCountriesBuilder(
int index) {
return getCountriesFieldBuilder().getBuilder(index);
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public ru.tinkoff.piapi.contract.v1.CountryResponseOrBuilder getCountriesOrBuilder(
int index) {
if (countriesBuilder_ == null) {
return countries_.get(index); } else {
return countriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.CountryResponseOrBuilder>
getCountriesOrBuilderList() {
if (countriesBuilder_ != null) {
return countriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(countries_);
}
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public ru.tinkoff.piapi.contract.v1.CountryResponse.Builder addCountriesBuilder() {
return getCountriesFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.CountryResponse.getDefaultInstance());
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public ru.tinkoff.piapi.contract.v1.CountryResponse.Builder addCountriesBuilder(
int index) {
return getCountriesFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.CountryResponse.getDefaultInstance());
}
/**
*
*Массив стран.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.CountryResponse countries = 1;
*/
public java.util.List
getCountriesBuilderList() {
return getCountriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.CountryResponse, ru.tinkoff.piapi.contract.v1.CountryResponse.Builder, ru.tinkoff.piapi.contract.v1.CountryResponseOrBuilder>
getCountriesFieldBuilder() {
if (countriesBuilder_ == null) {
countriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.CountryResponse, ru.tinkoff.piapi.contract.v1.CountryResponse.Builder, ru.tinkoff.piapi.contract.v1.CountryResponseOrBuilder>(
countries_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
countries_ = null;
}
return countriesBuilder_;
}
@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.GetCountriesResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetCountriesResponse)
private static final ru.tinkoff.piapi.contract.v1.GetCountriesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetCountriesResponse();
}
public static ru.tinkoff.piapi.contract.v1.GetCountriesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetCountriesResponse 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.GetCountriesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}