message

Money

acme.billing.v1.Money

Fields

FieldNumberTypeCardinalityValidationDescription
currency_code1stringimplicit
string.min_len=3string.max_len=3
—
Details
  • JSON name: currencyCode
  • Presence: IMPLICIT
(buf.validate.field) = {
  string: {
    min_len: 3
    max_len: 3
  }
}
units2int64implicit——
Details
  • JSON name: units
  • Presence: IMPLICIT
nanos3int32implicit
int32.lte=999999999int32.gte=-999999999
—
Details
  • JSON name: nanos
  • Presence: IMPLICIT
(buf.validate.field) = {
  int32: {
    lte: 999999999
    gte: -999999999
  }
}

Example JSON

{
  "currencyCode": "string",
  "units": 1,
  "nanos": 1
}

Effective features

  • json_format: ALLOW
    inherited from acme/billing/v1/invoice

Used by

What will be affected if this symbol changes.