1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package decimal
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
40
41
42
43
44
45 type Decimal struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
111 }
112
113 func (x *Decimal) Reset() {
114 *x = Decimal{}
115 if protoimpl.UnsafeEnabled {
116 mi := &file_google_type_decimal_proto_msgTypes[0]
117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118 ms.StoreMessageInfo(mi)
119 }
120 }
121
122 func (x *Decimal) String() string {
123 return protoimpl.X.MessageStringOf(x)
124 }
125
126 func (*Decimal) ProtoMessage() {}
127
128 func (x *Decimal) ProtoReflect() protoreflect.Message {
129 mi := &file_google_type_decimal_proto_msgTypes[0]
130 if protoimpl.UnsafeEnabled && x != nil {
131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
132 if ms.LoadMessageInfo() == nil {
133 ms.StoreMessageInfo(mi)
134 }
135 return ms
136 }
137 return mi.MessageOf(x)
138 }
139
140
141 func (*Decimal) Descriptor() ([]byte, []int) {
142 return file_google_type_decimal_proto_rawDescGZIP(), []int{0}
143 }
144
145 func (x *Decimal) GetValue() string {
146 if x != nil {
147 return x.Value
148 }
149 return ""
150 }
151
152 var File_google_type_decimal_proto protoreflect.FileDescriptor
153
154 var file_google_type_decimal_proto_rawDesc = []byte{
155 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x64, 0x65,
156 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f,
157 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1f, 0x0a, 0x07, 0x44, 0x65, 0x63, 0x69,
158 0x6d, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01,
159 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x66, 0x0a, 0x0f, 0x63, 0x6f, 0x6d,
160 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0c, 0x44, 0x65,
161 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x6f,
162 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
163 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
164 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c,
165 0x3b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x54,
166 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
167 }
168
169 var (
170 file_google_type_decimal_proto_rawDescOnce sync.Once
171 file_google_type_decimal_proto_rawDescData = file_google_type_decimal_proto_rawDesc
172 )
173
174 func file_google_type_decimal_proto_rawDescGZIP() []byte {
175 file_google_type_decimal_proto_rawDescOnce.Do(func() {
176 file_google_type_decimal_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_decimal_proto_rawDescData)
177 })
178 return file_google_type_decimal_proto_rawDescData
179 }
180
181 var file_google_type_decimal_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
182 var file_google_type_decimal_proto_goTypes = []interface{}{
183 (*Decimal)(nil),
184 }
185 var file_google_type_decimal_proto_depIdxs = []int32{
186 0,
187 0,
188 0,
189 0,
190 0,
191 }
192
193 func init() { file_google_type_decimal_proto_init() }
194 func file_google_type_decimal_proto_init() {
195 if File_google_type_decimal_proto != nil {
196 return
197 }
198 if !protoimpl.UnsafeEnabled {
199 file_google_type_decimal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
200 switch v := v.(*Decimal); i {
201 case 0:
202 return &v.state
203 case 1:
204 return &v.sizeCache
205 case 2:
206 return &v.unknownFields
207 default:
208 return nil
209 }
210 }
211 }
212 type x struct{}
213 out := protoimpl.TypeBuilder{
214 File: protoimpl.DescBuilder{
215 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
216 RawDescriptor: file_google_type_decimal_proto_rawDesc,
217 NumEnums: 0,
218 NumMessages: 1,
219 NumExtensions: 0,
220 NumServices: 0,
221 },
222 GoTypes: file_google_type_decimal_proto_goTypes,
223 DependencyIndexes: file_google_type_decimal_proto_depIdxs,
224 MessageInfos: file_google_type_decimal_proto_msgTypes,
225 }.Build()
226 File_google_type_decimal_proto = out.File
227 file_google_type_decimal_proto_rawDesc = nil
228 file_google_type_decimal_proto_goTypes = nil
229 file_google_type_decimal_proto_depIdxs = nil
230 }
231
View as plain text