All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.ExchangeRateSet Maven / Gradle / Ivy

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;

/**
 * 
 **
 * Two sets of exchange rates
 * 
* * Protobuf type {@code proto.ExchangeRateSet} */ public final class ExchangeRateSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ExchangeRateSet) ExchangeRateSetOrBuilder { private static final long serialVersionUID = 0L; // Use ExchangeRateSet.newBuilder() to construct. private ExchangeRateSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExchangeRateSet() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExchangeRateSet(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRateSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRateSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ExchangeRateSet.class, com.hedera.hashgraph.sdk.proto.ExchangeRateSet.Builder.class); } private int bitField0_; public static final int CURRENTRATE_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.ExchangeRate currentRate_; /** *
   **
   * Current exchange rate
   * 
* * .proto.ExchangeRate currentRate = 1; * @return Whether the currentRate field is set. */ @java.lang.Override public boolean hasCurrentRate() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * Current exchange rate
   * 
* * .proto.ExchangeRate currentRate = 1; * @return The currentRate. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ExchangeRate getCurrentRate() { return currentRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : currentRate_; } /** *
   **
   * Current exchange rate
   * 
* * .proto.ExchangeRate currentRate = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder getCurrentRateOrBuilder() { return currentRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : currentRate_; } public static final int NEXTRATE_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.ExchangeRate nextRate_; /** *
   **
   * Next exchange rate which will take effect when current rate expires
   * 
* * .proto.ExchangeRate nextRate = 2; * @return Whether the nextRate field is set. */ @java.lang.Override public boolean hasNextRate() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * Next exchange rate which will take effect when current rate expires
   * 
* * .proto.ExchangeRate nextRate = 2; * @return The nextRate. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ExchangeRate getNextRate() { return nextRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : nextRate_; } /** *
   **
   * Next exchange rate which will take effect when current rate expires
   * 
* * .proto.ExchangeRate nextRate = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder getNextRateOrBuilder() { return nextRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : nextRate_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCurrentRate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getNextRate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCurrentRate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNextRate()); } 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.ExchangeRateSet)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.ExchangeRateSet other = (com.hedera.hashgraph.sdk.proto.ExchangeRateSet) obj; if (hasCurrentRate() != other.hasCurrentRate()) return false; if (hasCurrentRate()) { if (!getCurrentRate() .equals(other.getCurrentRate())) return false; } if (hasNextRate() != other.hasNextRate()) return false; if (hasNextRate()) { if (!getNextRate() .equals(other.getNextRate())) 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 (hasCurrentRate()) { hash = (37 * hash) + CURRENTRATE_FIELD_NUMBER; hash = (53 * hash) + getCurrentRate().hashCode(); } if (hasNextRate()) { hash = (37 * hash) + NEXTRATE_FIELD_NUMBER; hash = (53 * hash) + getNextRate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.ExchangeRateSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ExchangeRateSet 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.ExchangeRateSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ExchangeRateSet 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.ExchangeRateSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ExchangeRateSet 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.ExchangeRateSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ExchangeRateSet 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.ExchangeRateSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.ExchangeRateSet 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.ExchangeRateSet 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.ExchangeRateSet 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.ExchangeRateSet 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; } /** *
   **
   * Two sets of exchange rates
   * 
* * Protobuf type {@code proto.ExchangeRateSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ExchangeRateSet) com.hedera.hashgraph.sdk.proto.ExchangeRateSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRateSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRateSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ExchangeRateSet.class, com.hedera.hashgraph.sdk.proto.ExchangeRateSet.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.ExchangeRateSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCurrentRateFieldBuilder(); getNextRateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; currentRate_ = null; if (currentRateBuilder_ != null) { currentRateBuilder_.dispose(); currentRateBuilder_ = null; } nextRate_ = null; if (nextRateBuilder_ != null) { nextRateBuilder_.dispose(); nextRateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.ExchangeRateOuterClass.internal_static_proto_ExchangeRateSet_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ExchangeRateSet getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.ExchangeRateSet.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ExchangeRateSet build() { com.hedera.hashgraph.sdk.proto.ExchangeRateSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ExchangeRateSet buildPartial() { com.hedera.hashgraph.sdk.proto.ExchangeRateSet result = new com.hedera.hashgraph.sdk.proto.ExchangeRateSet(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.ExchangeRateSet result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.currentRate_ = currentRateBuilder_ == null ? currentRate_ : currentRateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nextRate_ = nextRateBuilder_ == null ? nextRate_ : nextRateBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.ExchangeRateSet) { return mergeFrom((com.hedera.hashgraph.sdk.proto.ExchangeRateSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ExchangeRateSet other) { if (other == com.hedera.hashgraph.sdk.proto.ExchangeRateSet.getDefaultInstance()) return this; if (other.hasCurrentRate()) { mergeCurrentRate(other.getCurrentRate()); } if (other.hasNextRate()) { mergeNextRate(other.getNextRate()); } 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: { input.readMessage( getCurrentRateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getNextRateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 com.hedera.hashgraph.sdk.proto.ExchangeRate currentRate_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ExchangeRate, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder> currentRateBuilder_; /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; * @return Whether the currentRate field is set. */ public boolean hasCurrentRate() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; * @return The currentRate. */ public com.hedera.hashgraph.sdk.proto.ExchangeRate getCurrentRate() { if (currentRateBuilder_ == null) { return currentRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : currentRate_; } else { return currentRateBuilder_.getMessage(); } } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; */ public Builder setCurrentRate(com.hedera.hashgraph.sdk.proto.ExchangeRate value) { if (currentRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentRate_ = value; } else { currentRateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; */ public Builder setCurrentRate( com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder builderForValue) { if (currentRateBuilder_ == null) { currentRate_ = builderForValue.build(); } else { currentRateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; */ public Builder mergeCurrentRate(com.hedera.hashgraph.sdk.proto.ExchangeRate value) { if (currentRateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && currentRate_ != null && currentRate_ != com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance()) { getCurrentRateBuilder().mergeFrom(value); } else { currentRate_ = value; } } else { currentRateBuilder_.mergeFrom(value); } if (currentRate_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; */ public Builder clearCurrentRate() { bitField0_ = (bitField0_ & ~0x00000001); currentRate_ = null; if (currentRateBuilder_ != null) { currentRateBuilder_.dispose(); currentRateBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; */ public com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder getCurrentRateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCurrentRateFieldBuilder().getBuilder(); } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; */ public com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder getCurrentRateOrBuilder() { if (currentRateBuilder_ != null) { return currentRateBuilder_.getMessageOrBuilder(); } else { return currentRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : currentRate_; } } /** *
     **
     * Current exchange rate
     * 
* * .proto.ExchangeRate currentRate = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ExchangeRate, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder> getCurrentRateFieldBuilder() { if (currentRateBuilder_ == null) { currentRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ExchangeRate, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder>( getCurrentRate(), getParentForChildren(), isClean()); currentRate_ = null; } return currentRateBuilder_; } private com.hedera.hashgraph.sdk.proto.ExchangeRate nextRate_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ExchangeRate, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder> nextRateBuilder_; /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; * @return Whether the nextRate field is set. */ public boolean hasNextRate() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; * @return The nextRate. */ public com.hedera.hashgraph.sdk.proto.ExchangeRate getNextRate() { if (nextRateBuilder_ == null) { return nextRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : nextRate_; } else { return nextRateBuilder_.getMessage(); } } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; */ public Builder setNextRate(com.hedera.hashgraph.sdk.proto.ExchangeRate value) { if (nextRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nextRate_ = value; } else { nextRateBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; */ public Builder setNextRate( com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder builderForValue) { if (nextRateBuilder_ == null) { nextRate_ = builderForValue.build(); } else { nextRateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; */ public Builder mergeNextRate(com.hedera.hashgraph.sdk.proto.ExchangeRate value) { if (nextRateBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && nextRate_ != null && nextRate_ != com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance()) { getNextRateBuilder().mergeFrom(value); } else { nextRate_ = value; } } else { nextRateBuilder_.mergeFrom(value); } if (nextRate_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; */ public Builder clearNextRate() { bitField0_ = (bitField0_ & ~0x00000002); nextRate_ = null; if (nextRateBuilder_ != null) { nextRateBuilder_.dispose(); nextRateBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; */ public com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder getNextRateBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNextRateFieldBuilder().getBuilder(); } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; */ public com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder getNextRateOrBuilder() { if (nextRateBuilder_ != null) { return nextRateBuilder_.getMessageOrBuilder(); } else { return nextRate_ == null ? com.hedera.hashgraph.sdk.proto.ExchangeRate.getDefaultInstance() : nextRate_; } } /** *
     **
     * Next exchange rate which will take effect when current rate expires
     * 
* * .proto.ExchangeRate nextRate = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ExchangeRate, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder> getNextRateFieldBuilder() { if (nextRateBuilder_ == null) { nextRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ExchangeRate, com.hedera.hashgraph.sdk.proto.ExchangeRate.Builder, com.hedera.hashgraph.sdk.proto.ExchangeRateOrBuilder>( getNextRate(), getParentForChildren(), isClean()); nextRate_ = null; } return nextRateBuilder_; } @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.ExchangeRateSet) } // @@protoc_insertion_point(class_scope:proto.ExchangeRateSet) private static final com.hedera.hashgraph.sdk.proto.ExchangeRateSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ExchangeRateSet(); } public static com.hedera.hashgraph.sdk.proto.ExchangeRateSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExchangeRateSet 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.ExchangeRateSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy