1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package documentai
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 type Vertex struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45
46 X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
47
48 Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
49 }
50
51 func (x *Vertex) Reset() {
52 *x = Vertex{}
53 if protoimpl.UnsafeEnabled {
54 mi := &file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58 }
59
60 func (x *Vertex) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*Vertex) ProtoMessage() {}
65
66 func (x *Vertex) ProtoReflect() protoreflect.Message {
67 mi := &file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[0]
68 if protoimpl.UnsafeEnabled && x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78
79 func (*Vertex) Descriptor() ([]byte, []int) {
80 return file_google_cloud_documentai_v1beta2_geometry_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *Vertex) GetX() int32 {
84 if x != nil {
85 return x.X
86 }
87 return 0
88 }
89
90 func (x *Vertex) GetY() int32 {
91 if x != nil {
92 return x.Y
93 }
94 return 0
95 }
96
97
98
99
100 type NormalizedVertex struct {
101 state protoimpl.MessageState
102 sizeCache protoimpl.SizeCache
103 unknownFields protoimpl.UnknownFields
104
105
106 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
107
108 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
109 }
110
111 func (x *NormalizedVertex) Reset() {
112 *x = NormalizedVertex{}
113 if protoimpl.UnsafeEnabled {
114 mi := &file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[1]
115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
116 ms.StoreMessageInfo(mi)
117 }
118 }
119
120 func (x *NormalizedVertex) String() string {
121 return protoimpl.X.MessageStringOf(x)
122 }
123
124 func (*NormalizedVertex) ProtoMessage() {}
125
126 func (x *NormalizedVertex) ProtoReflect() protoreflect.Message {
127 mi := &file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[1]
128 if protoimpl.UnsafeEnabled && x != nil {
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 if ms.LoadMessageInfo() == nil {
131 ms.StoreMessageInfo(mi)
132 }
133 return ms
134 }
135 return mi.MessageOf(x)
136 }
137
138
139 func (*NormalizedVertex) Descriptor() ([]byte, []int) {
140 return file_google_cloud_documentai_v1beta2_geometry_proto_rawDescGZIP(), []int{1}
141 }
142
143 func (x *NormalizedVertex) GetX() float32 {
144 if x != nil {
145 return x.X
146 }
147 return 0
148 }
149
150 func (x *NormalizedVertex) GetY() float32 {
151 if x != nil {
152 return x.Y
153 }
154 return 0
155 }
156
157
158 type BoundingPoly struct {
159 state protoimpl.MessageState
160 sizeCache protoimpl.SizeCache
161 unknownFields protoimpl.UnknownFields
162
163
164 Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
165
166 NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
167 }
168
169 func (x *BoundingPoly) Reset() {
170 *x = BoundingPoly{}
171 if protoimpl.UnsafeEnabled {
172 mi := &file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[2]
173 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
174 ms.StoreMessageInfo(mi)
175 }
176 }
177
178 func (x *BoundingPoly) String() string {
179 return protoimpl.X.MessageStringOf(x)
180 }
181
182 func (*BoundingPoly) ProtoMessage() {}
183
184 func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
185 mi := &file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[2]
186 if protoimpl.UnsafeEnabled && x != nil {
187 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188 if ms.LoadMessageInfo() == nil {
189 ms.StoreMessageInfo(mi)
190 }
191 return ms
192 }
193 return mi.MessageOf(x)
194 }
195
196
197 func (*BoundingPoly) Descriptor() ([]byte, []int) {
198 return file_google_cloud_documentai_v1beta2_geometry_proto_rawDescGZIP(), []int{2}
199 }
200
201 func (x *BoundingPoly) GetVertices() []*Vertex {
202 if x != nil {
203 return x.Vertices
204 }
205 return nil
206 }
207
208 func (x *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
209 if x != nil {
210 return x.NormalizedVertices
211 }
212 return nil
213 }
214
215 var File_google_cloud_documentai_v1beta2_geometry_proto protoreflect.FileDescriptor
216
217 var file_google_cloud_documentai_v1beta2_geometry_proto_rawDesc = []byte{
218 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
219 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
220 0x32, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
221 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64,
222 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
223 0x32, 0x22, 0x24, 0x0a, 0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78,
224 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02,
225 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x79, 0x22, 0x2e, 0x0a, 0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61,
226 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78,
227 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02,
228 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x22, 0xb7, 0x01, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e,
229 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x12, 0x43, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74,
230 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f,
231 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65,
232 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x56, 0x65, 0x72,
233 0x74, 0x65, 0x78, 0x52, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x12, 0x62, 0x0a,
234 0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74,
235 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f,
236 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65,
237 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x4e, 0x6f, 0x72,
238 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x12, 0x6e,
239 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65,
240 0x73, 0x42, 0xea, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
241 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61,
242 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65,
243 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67,
244 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
245 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
246 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
247 0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x3b, 0x64, 0x6f, 0x63, 0x75, 0x6d,
248 0x65, 0x6e, 0x74, 0x61, 0x69, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
249 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x2e,
250 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x32, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
251 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41,
252 0x49, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67,
253 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x6f, 0x63, 0x75, 0x6d,
254 0x65, 0x6e, 0x74, 0x41, 0x49, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x62, 0x06,
255 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
256 }
257
258 var (
259 file_google_cloud_documentai_v1beta2_geometry_proto_rawDescOnce sync.Once
260 file_google_cloud_documentai_v1beta2_geometry_proto_rawDescData = file_google_cloud_documentai_v1beta2_geometry_proto_rawDesc
261 )
262
263 func file_google_cloud_documentai_v1beta2_geometry_proto_rawDescGZIP() []byte {
264 file_google_cloud_documentai_v1beta2_geometry_proto_rawDescOnce.Do(func() {
265 file_google_cloud_documentai_v1beta2_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_documentai_v1beta2_geometry_proto_rawDescData)
266 })
267 return file_google_cloud_documentai_v1beta2_geometry_proto_rawDescData
268 }
269
270 var file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
271 var file_google_cloud_documentai_v1beta2_geometry_proto_goTypes = []interface{}{
272 (*Vertex)(nil),
273 (*NormalizedVertex)(nil),
274 (*BoundingPoly)(nil),
275 }
276 var file_google_cloud_documentai_v1beta2_geometry_proto_depIdxs = []int32{
277 0,
278 1,
279 2,
280 2,
281 2,
282 2,
283 0,
284 }
285
286 func init() { file_google_cloud_documentai_v1beta2_geometry_proto_init() }
287 func file_google_cloud_documentai_v1beta2_geometry_proto_init() {
288 if File_google_cloud_documentai_v1beta2_geometry_proto != nil {
289 return
290 }
291 if !protoimpl.UnsafeEnabled {
292 file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
293 switch v := v.(*Vertex); i {
294 case 0:
295 return &v.state
296 case 1:
297 return &v.sizeCache
298 case 2:
299 return &v.unknownFields
300 default:
301 return nil
302 }
303 }
304 file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
305 switch v := v.(*NormalizedVertex); i {
306 case 0:
307 return &v.state
308 case 1:
309 return &v.sizeCache
310 case 2:
311 return &v.unknownFields
312 default:
313 return nil
314 }
315 }
316 file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
317 switch v := v.(*BoundingPoly); i {
318 case 0:
319 return &v.state
320 case 1:
321 return &v.sizeCache
322 case 2:
323 return &v.unknownFields
324 default:
325 return nil
326 }
327 }
328 }
329 type x struct{}
330 out := protoimpl.TypeBuilder{
331 File: protoimpl.DescBuilder{
332 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
333 RawDescriptor: file_google_cloud_documentai_v1beta2_geometry_proto_rawDesc,
334 NumEnums: 0,
335 NumMessages: 3,
336 NumExtensions: 0,
337 NumServices: 0,
338 },
339 GoTypes: file_google_cloud_documentai_v1beta2_geometry_proto_goTypes,
340 DependencyIndexes: file_google_cloud_documentai_v1beta2_geometry_proto_depIdxs,
341 MessageInfos: file_google_cloud_documentai_v1beta2_geometry_proto_msgTypes,
342 }.Build()
343 File_google_cloud_documentai_v1beta2_geometry_proto = out.File
344 file_google_cloud_documentai_v1beta2_geometry_proto_rawDesc = nil
345 file_google_cloud_documentai_v1beta2_geometry_proto_goTypes = nil
346 file_google_cloud_documentai_v1beta2_geometry_proto_depIdxs = nil
347 }
348
View as plain text