OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / type / money / money.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/type/money.proto
3
4 /*
5 Package money is a generated protocol buffer package.
6
7 It is generated from these files:
8         google/type/money.proto
9
10 It has these top-level messages:
11         Money
12 */
13 package money
14
15 import proto "github.com/golang/protobuf/proto"
16 import fmt "fmt"
17 import math "math"
18
19 // Reference imports to suppress errors if they are not otherwise used.
20 var _ = proto.Marshal
21 var _ = fmt.Errorf
22 var _ = math.Inf
23
24 // This is a compile-time assertion to ensure that this generated file
25 // is compatible with the proto package it is being compiled against.
26 // A compilation error at this line likely means your copy of the
27 // proto package needs to be updated.
28 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
29
30 // Represents an amount of money with its currency type.
31 type Money struct {
32         // The 3-letter currency code defined in ISO 4217.
33         CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode" json:"currency_code,omitempty"`
34         // The whole units of the amount.
35         // For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
36         Units int64 `protobuf:"varint,2,opt,name=units" json:"units,omitempty"`
37         // Number of nano (10^-9) units of the amount.
38         // The value must be between -999,999,999 and +999,999,999 inclusive.
39         // If `units` is positive, `nanos` must be positive or zero.
40         // If `units` is zero, `nanos` can be positive, zero, or negative.
41         // If `units` is negative, `nanos` must be negative or zero.
42         // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
43         Nanos int32 `protobuf:"varint,3,opt,name=nanos" json:"nanos,omitempty"`
44 }
45
46 func (m *Money) Reset()                    { *m = Money{} }
47 func (m *Money) String() string            { return proto.CompactTextString(m) }
48 func (*Money) ProtoMessage()               {}
49 func (*Money) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
50
51 func (m *Money) GetCurrencyCode() string {
52         if m != nil {
53                 return m.CurrencyCode
54         }
55         return ""
56 }
57
58 func (m *Money) GetUnits() int64 {
59         if m != nil {
60                 return m.Units
61         }
62         return 0
63 }
64
65 func (m *Money) GetNanos() int32 {
66         if m != nil {
67                 return m.Nanos
68         }
69         return 0
70 }
71
72 func init() {
73         proto.RegisterType((*Money)(nil), "google.type.Money")
74 }
75
76 func init() { proto.RegisterFile("google/type/money.proto", fileDescriptor0) }
77
78 var fileDescriptor0 = []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 }