Interface PriceOrBuilder (2.49.0)

public interface PriceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAmountMicros()

public abstract long getAmountMicros()

The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).

optional int64 amount_micros = 1;

Returns
Type Description
long

The amountMicros.

getCurrencyCode()

public abstract String getCurrencyCode()

The currency of the price using three-letter acronyms according to ISO 4217.

optional string currency_code = 2;

Returns
Type Description
String

The currencyCode.

getCurrencyCodeBytes()

public abstract ByteString getCurrencyCodeBytes()

The currency of the price using three-letter acronyms according to ISO 4217.

optional string currency_code = 2;

Returns
Type Description
ByteString

The bytes for currencyCode.

hasAmountMicros()

public abstract boolean hasAmountMicros()

The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).

optional int64 amount_micros = 1;

Returns
Type Description
boolean

Whether the amountMicros field is set.

hasCurrencyCode()

public abstract boolean hasCurrencyCode()

The currency of the price using three-letter acronyms according to ISO 4217.

optional string currency_code = 2;

Returns
Type Description
boolean

Whether the currencyCode field is set.