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, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.ExchangeRate> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasCoinValue()
required int64 coin_value = 1;
This much of satoshis (1E-8 fractions)…
hasCoinValue
in interface Protos.ExchangeRateOrBuilder
public long getCoinValue()
required int64 coin_value = 1;
This much of satoshis (1E-8 fractions)…
getCoinValue
in interface Protos.ExchangeRateOrBuilder
public boolean hasFiatValue()
required int64 fiat_value = 2;
…is worth this much of fiat (1E-4 fractions).
hasFiatValue
in interface Protos.ExchangeRateOrBuilder
public long getFiatValue()
required int64 fiat_value = 2;
…is worth this much of fiat (1E-4 fractions).
getFiatValue
in interface Protos.ExchangeRateOrBuilder
public boolean hasFiatCurrencyCode()
required string fiat_currency_code = 3;
ISO 4217 currency code (if available) of the fiat currency.
hasFiatCurrencyCode
in interface Protos.ExchangeRateOrBuilder
public String getFiatCurrencyCode()
required string fiat_currency_code = 3;
ISO 4217 currency code (if available) of the fiat currency.
getFiatCurrencyCode
in interface Protos.ExchangeRateOrBuilder
public 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.ExchangeRateOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.ExchangeRate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ExchangeRate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ExchangeRate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ExchangeRate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ExchangeRate parseFrom(InputStream input) throws IOException
IOException
public static Protos.ExchangeRate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.ExchangeRate parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.ExchangeRate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.ExchangeRate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.ExchangeRate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.ExchangeRate.Builder newBuilder()
public Protos.ExchangeRate.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.ExchangeRate.Builder newBuilder(Protos.ExchangeRate prototype)
public Protos.ExchangeRate.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.ExchangeRate.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2016. All rights reserved.