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,- java.lang.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 typewallet.ExchangeRate
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.ExchangeRate.BuilderclearCoinValue()This much of satoshis (1E-8 fractions)…Protos.ExchangeRate.BuilderclearFiatCurrencyCode()ISO 4217 currency code (if available) of the fiat currency.Protos.ExchangeRate.BuilderclearFiatValue()…is worth this much of fiat (1E-4 fractions).longgetCoinValue()This much of satoshis (1E-8 fractions)…java.lang.StringgetFiatCurrencyCode()ISO 4217 currency code (if available) of the fiat currency.com.google.protobuf.ByteStringgetFiatCurrencyCodeBytes()ISO 4217 currency code (if available) of the fiat currency.longgetFiatValue()…is worth this much of fiat (1E-4 fractions).booleanhasCoinValue()This much of satoshis (1E-8 fractions)…booleanhasFiatCurrencyCode()ISO 4217 currency code (if available) of the fiat currency.booleanhasFiatValue()…is worth this much of fiat (1E-4 fractions).Protos.ExchangeRate.BuildersetCoinValue(long value)This much of satoshis (1E-8 fractions)…Protos.ExchangeRate.BuildersetFiatCurrencyCode(java.lang.String value)ISO 4217 currency code (if available) of the fiat currency.Protos.ExchangeRate.BuildersetFiatCurrencyCodeBytes(com.google.protobuf.ByteString value)ISO 4217 currency code (if available) of the fiat currency.Protos.ExchangeRate.BuildersetFiatValue(long value)…is worth this much of fiat (1E-4 fractions).- 
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builderbuild, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
 - 
Methods inherited from class com.google.protobuf.AbstractMessageLite.BuilderaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
- 
 
- 
- 
- 
Method Detail- 
hasCoinValuepublic boolean hasCoinValue() This much of satoshis (1E-8 fractions)… required int64 coin_value = 1;- Specified by:
- hasCoinValuein interface- Protos.ExchangeRateOrBuilder
- Returns:
- Whether the coinValue field is set.
 
 - 
getCoinValuepublic long getCoinValue() This much of satoshis (1E-8 fractions)… required int64 coin_value = 1;- Specified by:
- getCoinValuein interface- Protos.ExchangeRateOrBuilder
- Returns:
- The coinValue.
 
 - 
setCoinValuepublic Protos.ExchangeRate.Builder setCoinValue(long value) This much of satoshis (1E-8 fractions)… required int64 coin_value = 1;- Parameters:
- value- The coinValue to set.
- Returns:
- This builder for chaining.
 
 - 
clearCoinValuepublic Protos.ExchangeRate.Builder clearCoinValue() This much of satoshis (1E-8 fractions)… required int64 coin_value = 1;- Returns:
- This builder for chaining.
 
 - 
hasFiatValuepublic boolean hasFiatValue() …is worth this much of fiat (1E-4 fractions). required int64 fiat_value = 2;- Specified by:
- hasFiatValuein interface- Protos.ExchangeRateOrBuilder
- Returns:
- Whether the fiatValue field is set.
 
 - 
getFiatValuepublic long getFiatValue() …is worth this much of fiat (1E-4 fractions). required int64 fiat_value = 2;- Specified by:
- getFiatValuein interface- Protos.ExchangeRateOrBuilder
- Returns:
- The fiatValue.
 
 - 
setFiatValuepublic Protos.ExchangeRate.Builder setFiatValue(long value) …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.
 
 - 
clearFiatValuepublic Protos.ExchangeRate.Builder clearFiatValue() …is worth this much of fiat (1E-4 fractions). required int64 fiat_value = 2;- Returns:
- This builder for chaining.
 
 - 
hasFiatCurrencyCodepublic boolean hasFiatCurrencyCode() ISO 4217 currency code (if available) of the fiat currency. required string fiat_currency_code = 3;- Specified by:
- hasFiatCurrencyCodein interface- Protos.ExchangeRateOrBuilder
- Returns:
- Whether the fiatCurrencyCode field is set.
 
 - 
getFiatCurrencyCodepublic java.lang.String getFiatCurrencyCode() ISO 4217 currency code (if available) of the fiat currency. required string fiat_currency_code = 3;- Specified by:
- getFiatCurrencyCodein interface- Protos.ExchangeRateOrBuilder
- Returns:
- The fiatCurrencyCode.
 
 - 
getFiatCurrencyCodeBytespublic com.google.protobuf.ByteString getFiatCurrencyCodeBytes() ISO 4217 currency code (if available) of the fiat currency. required string fiat_currency_code = 3;- Specified by:
- getFiatCurrencyCodeBytesin interface- Protos.ExchangeRateOrBuilder
- Returns:
- The bytes for fiatCurrencyCode.
 
 - 
setFiatCurrencyCodepublic Protos.ExchangeRate.Builder setFiatCurrencyCode(java.lang.String value) 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.
 
 - 
clearFiatCurrencyCodepublic Protos.ExchangeRate.Builder clearFiatCurrencyCode() ISO 4217 currency code (if available) of the fiat currency. required string fiat_currency_code = 3;- Returns:
- This builder for chaining.
 
 - 
setFiatCurrencyCodeBytespublic Protos.ExchangeRate.Builder setFiatCurrencyCodeBytes(com.google.protobuf.ByteString value) 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.
 
 
- 
 
-