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.
com.hederahashgraph.api.proto.java.ExchangeRate Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: exchange_rate.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* An exchange rate between hbar and cents (USD) and the time at which the exchange rate will
* expire, and be superseded by a new exchange rate.
*
*
* Protobuf type {@code proto.ExchangeRate}
*/
public final class ExchangeRate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ExchangeRate)
ExchangeRateOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExchangeRate.newBuilder() to construct.
private ExchangeRate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExchangeRate() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExchangeRate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExchangeRate(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
hbarEquiv_ = input.readInt32();
break;
}
case 16: {
centEquiv_ = input.readInt32();
break;
}
case 26: {
com.hederahashgraph.api.proto.java.TimestampSeconds.Builder subBuilder = null;
if (expirationTime_ != null) {
subBuilder = expirationTime_.toBuilder();
}
expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.TimestampSeconds.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expirationTime_);
expirationTime_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ExchangeRate.class, com.hederahashgraph.api.proto.java.ExchangeRate.Builder.class);
}
public static final int HBAREQUIV_FIELD_NUMBER = 1;
private int hbarEquiv_;
/**
*
**
* Denominator in calculation of exchange rate between hbar and cents
*
*
* int32 hbarEquiv = 1;
* @return The hbarEquiv.
*/
@java.lang.Override
public int getHbarEquiv() {
return hbarEquiv_;
}
public static final int CENTEQUIV_FIELD_NUMBER = 2;
private int centEquiv_;
/**
*
**
* Numerator in calculation of exchange rate between hbar and cents
*
*
* int32 centEquiv = 2;
* @return The centEquiv.
*/
@java.lang.Override
public int getCentEquiv() {
return centEquiv_;
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.TimestampSeconds expirationTime_;
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return Whether the expirationTime field is set.
*/
@java.lang.Override
public boolean hasExpirationTime() {
return expirationTime_ != null;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return The expirationTime.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampSeconds getExpirationTime() {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() {
return getExpirationTime();
}
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 (hbarEquiv_ != 0) {
output.writeInt32(1, hbarEquiv_);
}
if (centEquiv_ != 0) {
output.writeInt32(2, centEquiv_);
}
if (expirationTime_ != null) {
output.writeMessage(3, getExpirationTime());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hbarEquiv_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, hbarEquiv_);
}
if (centEquiv_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, centEquiv_);
}
if (expirationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExpirationTime());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.ExchangeRate)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ExchangeRate other = (com.hederahashgraph.api.proto.java.ExchangeRate) obj;
if (getHbarEquiv()
!= other.getHbarEquiv()) return false;
if (getCentEquiv()
!= other.getCentEquiv()) return false;
if (hasExpirationTime() != other.hasExpirationTime()) return false;
if (hasExpirationTime()) {
if (!getExpirationTime()
.equals(other.getExpirationTime())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + HBAREQUIV_FIELD_NUMBER;
hash = (53 * hash) + getHbarEquiv();
hash = (37 * hash) + CENTEQUIV_FIELD_NUMBER;
hash = (53 * hash) + getCentEquiv();
if (hasExpirationTime()) {
hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTime().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate 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 com.hederahashgraph.api.proto.java.ExchangeRate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate 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 com.hederahashgraph.api.proto.java.ExchangeRate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ExchangeRate 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(com.hederahashgraph.api.proto.java.ExchangeRate 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;
}
/**
*
**
* An exchange rate between hbar and cents (USD) and the time at which the exchange rate will
* expire, and be superseded by a new exchange rate.
*
*
* Protobuf type {@code proto.ExchangeRate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ExchangeRate)
com.hederahashgraph.api.proto.java.ExchangeRateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ExchangeRate.class, com.hederahashgraph.api.proto.java.ExchangeRate.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.ExchangeRate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
hbarEquiv_ = 0;
centEquiv_ = 0;
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRate getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ExchangeRate.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRate build() {
com.hederahashgraph.api.proto.java.ExchangeRate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRate buildPartial() {
com.hederahashgraph.api.proto.java.ExchangeRate result = new com.hederahashgraph.api.proto.java.ExchangeRate(this);
result.hbarEquiv_ = hbarEquiv_;
result.centEquiv_ = centEquiv_;
if (expirationTimeBuilder_ == null) {
result.expirationTime_ = expirationTime_;
} else {
result.expirationTime_ = expirationTimeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.ExchangeRate) {
return mergeFrom((com.hederahashgraph.api.proto.java.ExchangeRate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ExchangeRate other) {
if (other == com.hederahashgraph.api.proto.java.ExchangeRate.getDefaultInstance()) return this;
if (other.getHbarEquiv() != 0) {
setHbarEquiv(other.getHbarEquiv());
}
if (other.getCentEquiv() != 0) {
setCentEquiv(other.getCentEquiv());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.hederahashgraph.api.proto.java.ExchangeRate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ExchangeRate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int hbarEquiv_ ;
/**
*
**
* Denominator in calculation of exchange rate between hbar and cents
*
*
* int32 hbarEquiv = 1;
* @return The hbarEquiv.
*/
@java.lang.Override
public int getHbarEquiv() {
return hbarEquiv_;
}
/**
*
**
* Denominator in calculation of exchange rate between hbar and cents
*
*
* int32 hbarEquiv = 1;
* @param value The hbarEquiv to set.
* @return This builder for chaining.
*/
public Builder setHbarEquiv(int value) {
hbarEquiv_ = value;
onChanged();
return this;
}
/**
*
**
* Denominator in calculation of exchange rate between hbar and cents
*
*
* int32 hbarEquiv = 1;
* @return This builder for chaining.
*/
public Builder clearHbarEquiv() {
hbarEquiv_ = 0;
onChanged();
return this;
}
private int centEquiv_ ;
/**
*
**
* Numerator in calculation of exchange rate between hbar and cents
*
*
* int32 centEquiv = 2;
* @return The centEquiv.
*/
@java.lang.Override
public int getCentEquiv() {
return centEquiv_;
}
/**
*
**
* Numerator in calculation of exchange rate between hbar and cents
*
*
* int32 centEquiv = 2;
* @param value The centEquiv to set.
* @return This builder for chaining.
*/
public Builder setCentEquiv(int value) {
centEquiv_ = value;
onChanged();
return this;
}
/**
*
**
* Numerator in calculation of exchange rate between hbar and cents
*
*
* int32 centEquiv = 2;
* @return This builder for chaining.
*/
public Builder clearCentEquiv() {
centEquiv_ = 0;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.TimestampSeconds expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder> expirationTimeBuilder_;
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return expirationTimeBuilder_ != null || expirationTime_ != null;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return The expirationTime.
*/
public com.hederahashgraph.api.proto.java.TimestampSeconds getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder setExpirationTime(com.hederahashgraph.api.proto.java.TimestampSeconds value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
onChanged();
} else {
expirationTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder setExpirationTime(
com.hederahashgraph.api.proto.java.TimestampSeconds.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
onChanged();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder mergeExpirationTime(com.hederahashgraph.api.proto.java.TimestampSeconds value) {
if (expirationTimeBuilder_ == null) {
if (expirationTime_ != null) {
expirationTime_ =
com.hederahashgraph.api.proto.java.TimestampSeconds.newBuilder(expirationTime_).mergeFrom(value).buildPartial();
} else {
expirationTime_ = value;
}
onChanged();
} else {
expirationTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder clearExpirationTime() {
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
onChanged();
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public com.hederahashgraph.api.proto.java.TimestampSeconds.Builder getExpirationTimeBuilder() {
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hederahashgraph.api.proto.java.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TimestampSeconds, com.hederahashgraph.api.proto.java.TimestampSeconds.Builder, com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
@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:proto.ExchangeRate)
}
// @@protoc_insertion_point(class_scope:proto.ExchangeRate)
private static final com.hederahashgraph.api.proto.java.ExchangeRate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ExchangeRate();
}
public static com.hederahashgraph.api.proto.java.ExchangeRate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExchangeRate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExchangeRate(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ExchangeRate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}