1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package vision
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_vision_v1p3beta1_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_vision_v1p3beta1_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_vision_v1p3beta1_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_vision_v1p3beta1_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_vision_v1p3beta1_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_vision_v1p3beta1_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_vision_v1p3beta1_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_vision_v1p3beta1_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_vision_v1p3beta1_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
216
217
218 type Position struct {
219 state protoimpl.MessageState
220 sizeCache protoimpl.SizeCache
221 unknownFields protoimpl.UnknownFields
222
223
224 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
225
226 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
227
228 Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
229 }
230
231 func (x *Position) Reset() {
232 *x = Position{}
233 if protoimpl.UnsafeEnabled {
234 mi := &file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes[3]
235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
236 ms.StoreMessageInfo(mi)
237 }
238 }
239
240 func (x *Position) String() string {
241 return protoimpl.X.MessageStringOf(x)
242 }
243
244 func (*Position) ProtoMessage() {}
245
246 func (x *Position) ProtoReflect() protoreflect.Message {
247 mi := &file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes[3]
248 if protoimpl.UnsafeEnabled && x != nil {
249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
250 if ms.LoadMessageInfo() == nil {
251 ms.StoreMessageInfo(mi)
252 }
253 return ms
254 }
255 return mi.MessageOf(x)
256 }
257
258
259 func (*Position) Descriptor() ([]byte, []int) {
260 return file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescGZIP(), []int{3}
261 }
262
263 func (x *Position) GetX() float32 {
264 if x != nil {
265 return x.X
266 }
267 return 0
268 }
269
270 func (x *Position) GetY() float32 {
271 if x != nil {
272 return x.Y
273 }
274 return 0
275 }
276
277 func (x *Position) GetZ() float32 {
278 if x != nil {
279 return x.Z
280 }
281 return 0
282 }
283
284 var File_google_cloud_vision_v1p3beta1_geometry_proto protoreflect.FileDescriptor
285
286 var file_google_cloud_vision_v1p3beta1_geometry_proto_rawDesc = []byte{
287 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
288 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
289 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d,
290 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
291 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x24, 0x0a,
292 0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01,
293 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
294 0x52, 0x01, 0x79, 0x22, 0x2e, 0x0a, 0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65,
295 0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01,
296 0x28, 0x02, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02,
297 0x52, 0x01, 0x79, 0x22, 0xb3, 0x01, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67,
298 0x50, 0x6f, 0x6c, 0x79, 0x12, 0x41, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73,
299 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
300 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70,
301 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x08, 0x76,
302 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x12, 0x60, 0x0a, 0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61,
303 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02,
304 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
305 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x33, 0x62,
306 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56,
307 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65,
308 0x64, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x08, 0x50, 0x6f, 0x73,
309 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02,
310 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01,
311 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x42,
312 0x83, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
313 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x33,
314 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50,
315 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
316 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
317 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c,
318 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x33, 0x62,
319 0x65, 0x74, 0x61, 0x31, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02,
320 0x04, 0x47, 0x43, 0x56, 0x4e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
321 }
322
323 var (
324 file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescOnce sync.Once
325 file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescData = file_google_cloud_vision_v1p3beta1_geometry_proto_rawDesc
326 )
327
328 func file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescGZIP() []byte {
329 file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescOnce.Do(func() {
330 file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescData)
331 })
332 return file_google_cloud_vision_v1p3beta1_geometry_proto_rawDescData
333 }
334
335 var file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
336 var file_google_cloud_vision_v1p3beta1_geometry_proto_goTypes = []interface{}{
337 (*Vertex)(nil),
338 (*NormalizedVertex)(nil),
339 (*BoundingPoly)(nil),
340 (*Position)(nil),
341 }
342 var file_google_cloud_vision_v1p3beta1_geometry_proto_depIdxs = []int32{
343 0,
344 1,
345 2,
346 2,
347 2,
348 2,
349 0,
350 }
351
352 func init() { file_google_cloud_vision_v1p3beta1_geometry_proto_init() }
353 func file_google_cloud_vision_v1p3beta1_geometry_proto_init() {
354 if File_google_cloud_vision_v1p3beta1_geometry_proto != nil {
355 return
356 }
357 if !protoimpl.UnsafeEnabled {
358 file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
359 switch v := v.(*Vertex); i {
360 case 0:
361 return &v.state
362 case 1:
363 return &v.sizeCache
364 case 2:
365 return &v.unknownFields
366 default:
367 return nil
368 }
369 }
370 file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
371 switch v := v.(*NormalizedVertex); i {
372 case 0:
373 return &v.state
374 case 1:
375 return &v.sizeCache
376 case 2:
377 return &v.unknownFields
378 default:
379 return nil
380 }
381 }
382 file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
383 switch v := v.(*BoundingPoly); i {
384 case 0:
385 return &v.state
386 case 1:
387 return &v.sizeCache
388 case 2:
389 return &v.unknownFields
390 default:
391 return nil
392 }
393 }
394 file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
395 switch v := v.(*Position); i {
396 case 0:
397 return &v.state
398 case 1:
399 return &v.sizeCache
400 case 2:
401 return &v.unknownFields
402 default:
403 return nil
404 }
405 }
406 }
407 type x struct{}
408 out := protoimpl.TypeBuilder{
409 File: protoimpl.DescBuilder{
410 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
411 RawDescriptor: file_google_cloud_vision_v1p3beta1_geometry_proto_rawDesc,
412 NumEnums: 0,
413 NumMessages: 4,
414 NumExtensions: 0,
415 NumServices: 0,
416 },
417 GoTypes: file_google_cloud_vision_v1p3beta1_geometry_proto_goTypes,
418 DependencyIndexes: file_google_cloud_vision_v1p3beta1_geometry_proto_depIdxs,
419 MessageInfos: file_google_cloud_vision_v1p3beta1_geometry_proto_msgTypes,
420 }.Build()
421 File_google_cloud_vision_v1p3beta1_geometry_proto = out.File
422 file_google_cloud_vision_v1p3beta1_geometry_proto_rawDesc = nil
423 file_google_cloud_vision_v1p3beta1_geometry_proto_goTypes = nil
424 file_google_cloud_vision_v1p3beta1_geometry_proto_depIdxs = nil
425 }
426
View as plain text