Package org.bitcoinj.wallet
Class Protos.ExchangeRate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.ExchangeRate,Protos.ExchangeRate.Builder>
org.bitcoinj.wallet.Protos.ExchangeRate.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Protos.ExchangeRateOrBuilder
- Enclosing class:
- Protos.ExchangeRate
public static final class Protos.ExchangeRate.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.ExchangeRate,Protos.ExchangeRate.Builder>
implements Protos.ExchangeRateOrBuilder
An exchange rate between Bitcoin and some fiat currency.Protobuf type
wallet.ExchangeRate
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionThis much of satoshis (1E-8 fractions)…ISO 4217 currency code (if available) of the fiat currency.…is worth this much of fiat (1E-4 fractions).long
This much of satoshis (1E-8 fractions)…ISO 4217 currency code (if available) of the fiat currency.com.google.protobuf.ByteString
ISO 4217 currency code (if available) of the fiat currency.long
…is worth this much of fiat (1E-4 fractions).boolean
This much of satoshis (1E-8 fractions)…boolean
ISO 4217 currency code (if available) of the fiat currency.boolean
…is worth this much of fiat (1E-4 fractions).setCoinValue
(long value) This much of satoshis (1E-8 fractions)…setFiatCurrencyCode
(String value) ISO 4217 currency code (if available) of the fiat currency.setFiatCurrencyCodeBytes
(com.google.protobuf.ByteString value) ISO 4217 currency code (if available) of the fiat currency.setFiatValue
(long value) …is worth this much of fiat (1E-4 fractions).Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasCoinValue
public boolean hasCoinValue()This much of satoshis (1E-8 fractions)…
required int64 coin_value = 1;
- Specified by:
hasCoinValue
in interfaceProtos.ExchangeRateOrBuilder
- Returns:
- Whether the coinValue field is set.
-
getCoinValue
public long getCoinValue()This much of satoshis (1E-8 fractions)…
required int64 coin_value = 1;
- Specified by:
getCoinValue
in interfaceProtos.ExchangeRateOrBuilder
- Returns:
- The coinValue.
-
setCoinValue
This much of satoshis (1E-8 fractions)…
required int64 coin_value = 1;
- Parameters:
value
- The coinValue to set.- Returns:
- This builder for chaining.
-
clearCoinValue
This much of satoshis (1E-8 fractions)…
required int64 coin_value = 1;
- Returns:
- This builder for chaining.
-
hasFiatValue
public boolean hasFiatValue()…is worth this much of fiat (1E-4 fractions).
required int64 fiat_value = 2;
- Specified by:
hasFiatValue
in interfaceProtos.ExchangeRateOrBuilder
- Returns:
- Whether the fiatValue field is set.
-
getFiatValue
public long getFiatValue()…is worth this much of fiat (1E-4 fractions).
required int64 fiat_value = 2;
- Specified by:
getFiatValue
in interfaceProtos.ExchangeRateOrBuilder
- Returns:
- The fiatValue.
-
setFiatValue
…is worth this much of fiat (1E-4 fractions).
required int64 fiat_value = 2;
- Parameters:
value
- The fiatValue to set.- Returns:
- This builder for chaining.
-
clearFiatValue
…is worth this much of fiat (1E-4 fractions).
required int64 fiat_value = 2;
- Returns:
- This builder for chaining.
-
hasFiatCurrencyCode
public boolean hasFiatCurrencyCode()ISO 4217 currency code (if available) of the fiat currency.
required string fiat_currency_code = 3;
- Specified by:
hasFiatCurrencyCode
in interfaceProtos.ExchangeRateOrBuilder
- Returns:
- Whether the fiatCurrencyCode field is set.
-
getFiatCurrencyCode
ISO 4217 currency code (if available) of the fiat currency.
required string fiat_currency_code = 3;
- Specified by:
getFiatCurrencyCode
in interfaceProtos.ExchangeRateOrBuilder
- Returns:
- The fiatCurrencyCode.
-
getFiatCurrencyCodeBytes
public com.google.protobuf.ByteString getFiatCurrencyCodeBytes()ISO 4217 currency code (if available) of the fiat currency.
required string fiat_currency_code = 3;
- Specified by:
getFiatCurrencyCodeBytes
in interfaceProtos.ExchangeRateOrBuilder
- Returns:
- The bytes for fiatCurrencyCode.
-
setFiatCurrencyCode
ISO 4217 currency code (if available) of the fiat currency.
required string fiat_currency_code = 3;
- Parameters:
value
- The fiatCurrencyCode to set.- Returns:
- This builder for chaining.
-
clearFiatCurrencyCode
ISO 4217 currency code (if available) of the fiat currency.
required string fiat_currency_code = 3;
- Returns:
- This builder for chaining.
-
setFiatCurrencyCodeBytes
ISO 4217 currency code (if available) of the fiat currency.
required string fiat_currency_code = 3;
- Parameters:
value
- The bytes for fiatCurrencyCode to set.- Returns:
- This builder for chaining.
-