public final class Money
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google My Business API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Money() |
Modifier and Type | Method and Description |
---|---|
Money |
clone() |
java.lang.String |
getCurrencyCode()
The 3-letter currency code defined in ISO 4217.
|
java.lang.Integer |
getNanos()
Number of nano (10^-9) units of the amount.
|
java.lang.Long |
getUnits()
The whole units of the amount.
|
Money |
set(java.lang.String fieldName,
java.lang.Object value) |
Money |
setCurrencyCode(java.lang.String currencyCode)
The 3-letter currency code defined in ISO 4217.
|
Money |
setNanos(java.lang.Integer nanos)
Number of nano (10^-9) units of the amount.
|
Money |
setUnits(java.lang.Long units)
The whole units of the amount.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCurrencyCode()
null
for nonepublic Money setCurrencyCode(java.lang.String currencyCode)
currencyCode
- currencyCode or null
for nonepublic java.lang.Integer getNanos()
null
for nonepublic Money setNanos(java.lang.Integer nanos)
nanos
- nanos or null
for nonepublic java.lang.Long getUnits()
null
for nonepublic Money setUnits(java.lang.Long units)
units
- units or null
for nonepublic Money set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Money clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.