public static final class Protos.ExchangeRate extends com.google.protobuf.GeneratedMessage implements Protos.ExchangeRateOrBuilder
wallet.ExchangeRate
An exchange rate between Bitcoin and some fiat currency.
| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.ExchangeRate.Builder
Protobuf type
wallet.ExchangeRate |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
COIN_VALUE_FIELD_NUMBER |
static int |
FIAT_CURRENCY_CODE_FIELD_NUMBER |
static int |
FIAT_VALUE_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.ExchangeRate> |
PARSER |
| Modifier and Type | Method and Description |
|---|---|
long |
getCoinValue()
required int64 coin_value = 1; |
static Protos.ExchangeRate |
getDefaultInstance() |
Protos.ExchangeRate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFiatCurrencyCode()
required string fiat_currency_code = 3; |
com.google.protobuf.ByteString |
getFiatCurrencyCodeBytes()
required string fiat_currency_code = 3; |
long |
getFiatValue()
required int64 fiat_value = 2; |
com.google.protobuf.Parser<Protos.ExchangeRate> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCoinValue()
required int64 coin_value = 1; |
boolean |
hasFiatCurrencyCode()
required string fiat_currency_code = 3; |
boolean |
hasFiatValue()
required int64 fiat_value = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.ExchangeRate.Builder |
newBuilder() |
static Protos.ExchangeRate.Builder |
newBuilder(Protos.ExchangeRate prototype) |
Protos.ExchangeRate.Builder |
newBuilderForType() |
protected Protos.ExchangeRate.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static Protos.ExchangeRate |
parseDelimitedFrom(InputStream input) |
static Protos.ExchangeRate |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExchangeRate |
parseFrom(byte[] data) |
static Protos.ExchangeRate |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExchangeRate |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.ExchangeRate |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExchangeRate |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.ExchangeRate |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExchangeRate |
parseFrom(InputStream input) |
static Protos.ExchangeRate |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.ExchangeRate.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<Protos.ExchangeRate> PARSER
public static final int COIN_VALUE_FIELD_NUMBER
public static final int FIAT_VALUE_FIELD_NUMBER
public static final int FIAT_CURRENCY_CODE_FIELD_NUMBER
public static Protos.ExchangeRate getDefaultInstance()
public Protos.ExchangeRate getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<Protos.ExchangeRate> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasCoinValue()
required int64 coin_value = 1;
This much of satoshis (1E-8 fractions)…
hasCoinValue in interface Protos.ExchangeRateOrBuilderpublic long getCoinValue()
required int64 coin_value = 1;
This much of satoshis (1E-8 fractions)…
getCoinValue in interface Protos.ExchangeRateOrBuilderpublic boolean hasFiatValue()
required int64 fiat_value = 2;
…is worth this much of fiat (1E-4 fractions).
hasFiatValue in interface Protos.ExchangeRateOrBuilderpublic long getFiatValue()
required int64 fiat_value = 2;
…is worth this much of fiat (1E-4 fractions).
getFiatValue in interface Protos.ExchangeRateOrBuilderpublic boolean hasFiatCurrencyCode()
required string fiat_currency_code = 3;
ISO 4217 currency code (if available) of the fiat currency.
hasFiatCurrencyCode in interface Protos.ExchangeRateOrBuilderpublic String getFiatCurrencyCode()
required string fiat_currency_code = 3;
ISO 4217 currency code (if available) of the fiat currency.
getFiatCurrencyCode in interface Protos.ExchangeRateOrBuilderpublic com.google.protobuf.ByteString getFiatCurrencyCodeBytes()
required string fiat_currency_code = 3;
ISO 4217 currency code (if available) of the fiat currency.
getFiatCurrencyCodeBytes in interface Protos.ExchangeRateOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static Protos.ExchangeRate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExchangeRate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExchangeRate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExchangeRate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExchangeRate parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.ExchangeRate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.ExchangeRate parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.ExchangeRate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.ExchangeRate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.ExchangeRate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.ExchangeRate.Builder newBuilder()
public Protos.ExchangeRate.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.ExchangeRate.Builder newBuilder(Protos.ExchangeRate prototype)
public Protos.ExchangeRate.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.ExchangeRate.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.