1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package money
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39 type Money struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44
45 CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
46
47
48 Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"`
49
50
51
52
53
54
55 Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"`
56 }
57
58 func (x *Money) Reset() {
59 *x = Money{}
60 if protoimpl.UnsafeEnabled {
61 mi := &file_google_type_money_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65 }
66
67 func (x *Money) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*Money) ProtoMessage() {}
72
73 func (x *Money) ProtoReflect() protoreflect.Message {
74 mi := &file_google_type_money_proto_msgTypes[0]
75 if protoimpl.UnsafeEnabled && x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85
86 func (*Money) Descriptor() ([]byte, []int) {
87 return file_google_type_money_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *Money) GetCurrencyCode() string {
91 if x != nil {
92 return x.CurrencyCode
93 }
94 return ""
95 }
96
97 func (x *Money) GetUnits() int64 {
98 if x != nil {
99 return x.Units
100 }
101 return 0
102 }
103
104 func (x *Money) GetNanos() int32 {
105 if x != nil {
106 return x.Nanos
107 }
108 return 0
109 }
110
111 var File_google_type_money_proto protoreflect.FileDescriptor
112
113 var file_google_type_money_proto_rawDesc = []byte{
114 0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x6f,
115 0x6e, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
116 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x58, 0x0a, 0x05, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x12,
117 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65,
118 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79,
119 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20,
120 0x01, 0x28, 0x03, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61,
121 0x6e, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73,
122 0x42, 0x60, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74,
123 0x79, 0x70, 0x65, 0x42, 0x0a, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
124 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
125 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
126 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x6f,
127 0x6e, 0x65, 0x79, 0x3b, 0x6d, 0x6f, 0x6e, 0x65, 0x79, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47,
128 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
129 }
130
131 var (
132 file_google_type_money_proto_rawDescOnce sync.Once
133 file_google_type_money_proto_rawDescData = file_google_type_money_proto_rawDesc
134 )
135
136 func file_google_type_money_proto_rawDescGZIP() []byte {
137 file_google_type_money_proto_rawDescOnce.Do(func() {
138 file_google_type_money_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_money_proto_rawDescData)
139 })
140 return file_google_type_money_proto_rawDescData
141 }
142
143 var file_google_type_money_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
144 var file_google_type_money_proto_goTypes = []interface{}{
145 (*Money)(nil),
146 }
147 var file_google_type_money_proto_depIdxs = []int32{
148 0,
149 0,
150 0,
151 0,
152 0,
153 }
154
155 func init() { file_google_type_money_proto_init() }
156 func file_google_type_money_proto_init() {
157 if File_google_type_money_proto != nil {
158 return
159 }
160 if !protoimpl.UnsafeEnabled {
161 file_google_type_money_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
162 switch v := v.(*Money); i {
163 case 0:
164 return &v.state
165 case 1:
166 return &v.sizeCache
167 case 2:
168 return &v.unknownFields
169 default:
170 return nil
171 }
172 }
173 }
174 type x struct{}
175 out := protoimpl.TypeBuilder{
176 File: protoimpl.DescBuilder{
177 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
178 RawDescriptor: file_google_type_money_proto_rawDesc,
179 NumEnums: 0,
180 NumMessages: 1,
181 NumExtensions: 0,
182 NumServices: 0,
183 },
184 GoTypes: file_google_type_money_proto_goTypes,
185 DependencyIndexes: file_google_type_money_proto_depIdxs,
186 MessageInfos: file_google_type_money_proto_msgTypes,
187 }.Build()
188 File_google_type_money_proto = out.File
189 file_google_type_money_proto_rawDesc = nil
190 file_google_type_money_proto_goTypes = nil
191 file_google_type_money_proto_depIdxs = nil
192 }
193
View as plain text