Interface PriceOrBuilder (2.37.1)

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). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.

optional int64 amount_micros = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.

optional int64 amount_micros = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the currencyCode field is set.