com.hedera.hashgraph.sdk.proto.ExchangeRate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: exchange_rate.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* 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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ExchangeRate.class, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder.class);
}
private int bitField0_;
public static final int HBAREQUIV_FIELD_NUMBER = 1;
private int hbarEquiv_ = 0;
/**
*
**
* 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_ = 0;
/**
*
**
* 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.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return The expirationTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpirationTime() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getExpirationTime());
}
getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExpirationTime());
}
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 com.hedera.hashgraph.sdk.proto.ExchangeRate)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.ExchangeRate other = (com.hedera.hashgraph.sdk.proto.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 (!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) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.ExchangeRate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ExchangeRate parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ExchangeRate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ExchangeRate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ExchangeRate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ExchangeRate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ExchangeRate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ExchangeRate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ExchangeRate.class, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.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) {
getExpirationTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hbarEquiv_ = 0;
centEquiv_ = 0;
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRate_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ExchangeRate getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ExchangeRate build() {
com.hedera.hashgraph.sdk.proto.ExchangeRate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ExchangeRate buildPartial() {
com.hedera.hashgraph.sdk.proto.ExchangeRate result = new com.hedera.hashgraph.sdk.proto.ExchangeRate(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.ExchangeRate result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hbarEquiv_ = hbarEquiv_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.centEquiv_ = centEquiv_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.expirationTime_ = expirationTimeBuilder_ == null
? expirationTime_
: expirationTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.hedera.hashgraph.sdk.proto.ExchangeRate) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.ExchangeRate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ExchangeRate other) {
if (other == com.hedera.hashgraph.sdk.proto.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.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 8: {
hbarEquiv_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
centEquiv_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getExpirationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Denominator in calculation of exchange rate between hbar and cents
*
*
* int32 hbarEquiv = 1;
* @return This builder for chaining.
*/
public Builder clearHbarEquiv() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Numerator in calculation of exchange rate between hbar and cents
*
*
* int32 centEquiv = 2;
* @return This builder for chaining.
*/
public Builder clearCentEquiv() {
bitField0_ = (bitField0_ & ~0x00000002);
centEquiv_ = 0;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.TimestampSeconds expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return The expirationTime.
*/
public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
} else {
expirationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder setExpirationTime(
com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) {
if (expirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
expirationTime_ != null &&
expirationTime_ != com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance()) {
getExpirationTimeBuilder().mergeFrom(value);
} else {
expirationTime_ = value;
}
} else {
expirationTimeBuilder_.mergeFrom(value);
}
if (expirationTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder clearExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000004);
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder getExpirationTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* Expiration time in seconds for this exchange rate
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ExchangeRate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ExchangeRate();
}
public static com.hedera.hashgraph.sdk.proto.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 {
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 com.hedera.hashgraph.sdk.proto.ExchangeRate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}