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.CurrenciesResponse 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.CurrenciesResponse}
*/
public final class CurrenciesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.CurrenciesResponse)
CurrenciesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CurrenciesResponse.newBuilder() to construct.
private CurrenciesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CurrenciesResponse() {
instruments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CurrenciesResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_CurrenciesResponse_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_CurrenciesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.CurrenciesResponse.class, ru.tinkoff.piapi.contract.v1.CurrenciesResponse.Builder.class);
}
public static final int INSTRUMENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List instruments_;
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
@java.lang.Override
public java.util.List getInstrumentsList() {
return instruments_;
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.CurrencyOrBuilder>
getInstrumentsOrBuilderList() {
return instruments_;
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
@java.lang.Override
public int getInstrumentsCount() {
return instruments_.size();
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Currency getInstruments(int index) {
return instruments_.get(index);
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CurrencyOrBuilder 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 {
for (int i = 0; i < instruments_.size(); i++) {
output.writeMessage(1, instruments_.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 < instruments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, 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.CurrenciesResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.CurrenciesResponse other = (ru.tinkoff.piapi.contract.v1.CurrenciesResponse) obj;
if (!getInstrumentsList()
.equals(other.getInstrumentsList())) 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 (getInstrumentsCount() > 0) {
hash = (37 * hash) + INSTRUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.CurrenciesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.CurrenciesResponse 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.CurrenciesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.CurrenciesResponse 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.CurrenciesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.CurrenciesResponse 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.CurrenciesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.CurrenciesResponse 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.CurrenciesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.CurrenciesResponse 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.CurrenciesResponse 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.CurrenciesResponse 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.CurrenciesResponse 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.CurrenciesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.CurrenciesResponse)
ru.tinkoff.piapi.contract.v1.CurrenciesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_CurrenciesResponse_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_CurrenciesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.CurrenciesResponse.class, ru.tinkoff.piapi.contract.v1.CurrenciesResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.CurrenciesResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (instrumentsBuilder_ == null) {
instruments_ = java.util.Collections.emptyList();
} else {
instruments_ = null;
instrumentsBuilder_.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_CurrenciesResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CurrenciesResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.CurrenciesResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CurrenciesResponse build() {
ru.tinkoff.piapi.contract.v1.CurrenciesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CurrenciesResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.CurrenciesResponse result = new ru.tinkoff.piapi.contract.v1.CurrenciesResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.CurrenciesResponse result) {
if (instrumentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
instruments_ = java.util.Collections.unmodifiableList(instruments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instruments_ = instruments_;
} else {
result.instruments_ = instrumentsBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.CurrenciesResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.CurrenciesResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.CurrenciesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.CurrenciesResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.CurrenciesResponse.getDefaultInstance()) return this;
if (instrumentsBuilder_ == null) {
if (!other.instruments_.isEmpty()) {
if (instruments_.isEmpty()) {
instruments_ = other.instruments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstrumentsIsMutable();
instruments_.addAll(other.instruments_);
}
onChanged();
}
} else {
if (!other.instruments_.isEmpty()) {
if (instrumentsBuilder_.isEmpty()) {
instrumentsBuilder_.dispose();
instrumentsBuilder_ = null;
instruments_ = other.instruments_;
bitField0_ = (bitField0_ & ~0x00000001);
instrumentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInstrumentsFieldBuilder() : null;
} else {
instrumentsBuilder_.addAllMessages(other.instruments_);
}
}
}
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.Currency m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.Currency.parser(),
extensionRegistry);
if (instrumentsBuilder_ == null) {
ensureInstrumentsIsMutable();
instruments_.add(m);
} else {
instrumentsBuilder_.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 instruments_ =
java.util.Collections.emptyList();
private void ensureInstrumentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instruments_ = new java.util.ArrayList(instruments_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Currency, ru.tinkoff.piapi.contract.v1.Currency.Builder, ru.tinkoff.piapi.contract.v1.CurrencyOrBuilder> instrumentsBuilder_;
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
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.Currency instruments = 1;
*/
public int getInstrumentsCount() {
if (instrumentsBuilder_ == null) {
return instruments_.size();
} else {
return instrumentsBuilder_.getCount();
}
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
public ru.tinkoff.piapi.contract.v1.Currency getInstruments(int index) {
if (instrumentsBuilder_ == null) {
return instruments_.get(index);
} else {
return instrumentsBuilder_.getMessage(index);
}
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
public Builder setInstruments(
int index, ru.tinkoff.piapi.contract.v1.Currency 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.Currency instruments = 1;
*/
public Builder setInstruments(
int index, ru.tinkoff.piapi.contract.v1.Currency.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.Currency instruments = 1;
*/
public Builder addInstruments(ru.tinkoff.piapi.contract.v1.Currency 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.Currency instruments = 1;
*/
public Builder addInstruments(
int index, ru.tinkoff.piapi.contract.v1.Currency 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.Currency instruments = 1;
*/
public Builder addInstruments(
ru.tinkoff.piapi.contract.v1.Currency.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.Currency instruments = 1;
*/
public Builder addInstruments(
int index, ru.tinkoff.piapi.contract.v1.Currency.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.Currency instruments = 1;
*/
public Builder addAllInstruments(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.Currency> 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.Currency instruments = 1;
*/
public Builder clearInstruments() {
if (instrumentsBuilder_ == null) {
instruments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
instrumentsBuilder_.clear();
}
return this;
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
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.Currency instruments = 1;
*/
public ru.tinkoff.piapi.contract.v1.Currency.Builder getInstrumentsBuilder(
int index) {
return getInstrumentsFieldBuilder().getBuilder(index);
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
public ru.tinkoff.piapi.contract.v1.CurrencyOrBuilder getInstrumentsOrBuilder(
int index) {
if (instrumentsBuilder_ == null) {
return instruments_.get(index); } else {
return instrumentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.CurrencyOrBuilder>
getInstrumentsOrBuilderList() {
if (instrumentsBuilder_ != null) {
return instrumentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instruments_);
}
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
public ru.tinkoff.piapi.contract.v1.Currency.Builder addInstrumentsBuilder() {
return getInstrumentsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.Currency.getDefaultInstance());
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
public ru.tinkoff.piapi.contract.v1.Currency.Builder addInstrumentsBuilder(
int index) {
return getInstrumentsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.Currency.getDefaultInstance());
}
/**
*
*Массив валют.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.Currency instruments = 1;
*/
public java.util.List
getInstrumentsBuilderList() {
return getInstrumentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Currency, ru.tinkoff.piapi.contract.v1.Currency.Builder, ru.tinkoff.piapi.contract.v1.CurrencyOrBuilder>
getInstrumentsFieldBuilder() {
if (instrumentsBuilder_ == null) {
instrumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.Currency, ru.tinkoff.piapi.contract.v1.Currency.Builder, ru.tinkoff.piapi.contract.v1.CurrencyOrBuilder>(
instruments_,
((bitField0_ & 0x00000001) != 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.CurrenciesResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.CurrenciesResponse)
private static final ru.tinkoff.piapi.contract.v1.CurrenciesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.CurrenciesResponse();
}
public static ru.tinkoff.piapi.contract.v1.CurrenciesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CurrenciesResponse 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.CurrenciesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}