Money

com.google.`type`.money.Money
See theMoney companion object
final case class Money(currencyCode: String, units: Long, nanos: Int, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Money]

Represents an amount of money with its currency type.

Value parameters

currencyCode

The three-letter currency code defined in ISO 4217.

nanos

Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If units is positive, nanos must be positive or zero. If units is zero, nanos can be positive, zero, or negative. If units is negative, nanos must be negative or zero. For example $-1.75 is represented as units=-1 and nanos=-750,000,000.

units

The whole units of the amount. For example if currencyCode is "USD", then 1 unit is one US dollar.

Attributes

Companion
object
Source
Money.scala
Graph
Supertypes
trait Updatable[Money]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def companion: Money.type

Attributes

Source
Money.scala

Attributes

Source
Money.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
Money.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
Money.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
Money.scala
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
Money.scala
def withCurrencyCode(`__v`: String): Money

Attributes

Source
Money.scala
def withNanos(`__v`: Int): Money

Attributes

Source
Money.scala
def withUnits(`__v`: Long): Money

Attributes

Source
Money.scala
def withUnknownFields(`__v`: UnknownFieldSet): Money

Attributes

Source
Money.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
Money.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: Lens[Money, Money] => () => Money*): A

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala