You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

106 lines
4.1 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/type/money.proto
  3. package money // import "google.golang.org/genproto/googleapis/type/money"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // Represents an amount of money with its currency type.
  17. type Money struct {
  18. // The 3-letter currency code defined in ISO 4217.
  19. CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
  20. // The whole units of the amount.
  21. // For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
  22. Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"`
  23. // Number of nano (10^-9) units of the amount.
  24. // The value must be between -999,999,999 and +999,999,999 inclusive.
  25. // If `units` is positive, `nanos` must be positive or zero.
  26. // If `units` is zero, `nanos` can be positive, zero, or negative.
  27. // If `units` is negative, `nanos` must be negative or zero.
  28. // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
  29. Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"`
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *Money) Reset() { *m = Money{} }
  35. func (m *Money) String() string { return proto.CompactTextString(m) }
  36. func (*Money) ProtoMessage() {}
  37. func (*Money) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_money_a10b5740c6cd8b14, []int{0}
  39. }
  40. func (m *Money) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_Money.Unmarshal(m, b)
  42. }
  43. func (m *Money) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_Money.Marshal(b, m, deterministic)
  45. }
  46. func (dst *Money) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_Money.Merge(dst, src)
  48. }
  49. func (m *Money) XXX_Size() int {
  50. return xxx_messageInfo_Money.Size(m)
  51. }
  52. func (m *Money) XXX_DiscardUnknown() {
  53. xxx_messageInfo_Money.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_Money proto.InternalMessageInfo
  56. func (m *Money) GetCurrencyCode() string {
  57. if m != nil {
  58. return m.CurrencyCode
  59. }
  60. return ""
  61. }
  62. func (m *Money) GetUnits() int64 {
  63. if m != nil {
  64. return m.Units
  65. }
  66. return 0
  67. }
  68. func (m *Money) GetNanos() int32 {
  69. if m != nil {
  70. return m.Nanos
  71. }
  72. return 0
  73. }
  74. func init() {
  75. proto.RegisterType((*Money)(nil), "google.type.Money")
  76. }
  77. func init() { proto.RegisterFile("google/type/money.proto", fileDescriptor_money_a10b5740c6cd8b14) }
  78. var fileDescriptor_money_a10b5740c6cd8b14 = []byte{
  79. // 190 bytes of a gzipped FileDescriptorProto
  80. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f,
  81. 0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0xcf, 0xcd, 0xcf, 0x4b, 0xad, 0xd4, 0x2b, 0x28,
  82. 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x48, 0xe8, 0x81, 0x24, 0x94, 0x22, 0xb8, 0x58, 0x7d, 0x41,
  83. 0x72, 0x42, 0xca, 0x5c, 0xbc, 0xc9, 0xa5, 0x45, 0x45, 0xa9, 0x79, 0xc9, 0x95, 0xf1, 0xc9, 0xf9,
  84. 0x29, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x3c, 0x30, 0x41, 0xe7, 0xfc, 0x94, 0x54,
  85. 0x21, 0x11, 0x2e, 0xd6, 0xd2, 0xbc, 0xcc, 0x92, 0x62, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xe6, 0x20,
  86. 0x08, 0x07, 0x24, 0x9a, 0x97, 0x98, 0x97, 0x5f, 0x2c, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x1a, 0x04,
  87. 0xe1, 0x38, 0xc5, 0x72, 0xf1, 0x27, 0xe7, 0xe7, 0xea, 0x21, 0x59, 0xe6, 0xc4, 0x05, 0xb6, 0x2a,
  88. 0x00, 0xe4, 0x8a, 0x00, 0xc6, 0x28, 0x33, 0xa8, 0x54, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, 0xba, 0x5e,
  89. 0x7e, 0x51, 0xba, 0x7e, 0x7a, 0x6a, 0x1e, 0xd8, 0x8d, 0xfa, 0x10, 0xa9, 0xc4, 0x82, 0xcc, 0x62,
  90. 0x24, 0xf7, 0x5b, 0x83, 0xc9, 0x45, 0x4c, 0xcc, 0xee, 0x21, 0x01, 0x49, 0x6c, 0x60, 0x85, 0xc6,
  91. 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbf, 0xc2, 0x5b, 0xa5, 0xe7, 0x00, 0x00, 0x00,
  92. }