Debian Codegraph @

vision/apiv1/visionpb/geometry.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/vision/v1/geometry.proto
20
21 package visionpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // A vertex represents a 2D point in the image.
38 // NOTE: the vertex coordinates are in the same scale as the original image.
39 type Vertex struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // X coordinate.
45 X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
46 // Y coordinate.
47 Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
48 }
49
50 func (x *Vertex) Reset() {
51 *x = Vertex{}
52 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[0]
53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54 ms.StoreMessageInfo(mi)
55 }
56
57 func (x *Vertex) String() string {
58 return protoimpl.X.MessageStringOf(x)
59 }
60
61 func (*Vertex) ProtoMessage() {}
62
63 func (x *Vertex) ProtoReflect() protoreflect.Message {
64 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[0]
65 if x != nil {
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 if ms.LoadMessageInfo() == nil {
68 ms.StoreMessageInfo(mi)
69 }
70 return ms
71 }
72 return mi.MessageOf(x)
73 }
74
75 // Deprecated: Use Vertex.ProtoReflect.Descriptor instead.
76 func (*Vertex) Descriptor() ([]byte, []int) {
77 return file_google_cloud_vision_v1_geometry_proto_rawDescGZIP(), []int{0}
78 }
79
80 func (x *Vertex) GetX() int32 {
81 if x != nil {
82 return x.X
83 }
84 return 0
85 }
86
87 func (x *Vertex) GetY() int32 {
88 if x != nil {
89 return x.Y
90 }
91 return 0
92 }
93
94 // A vertex represents a 2D point in the image.
95 // NOTE: the normalized vertex coordinates are relative to the original image
96 // and range from 0 to 1.
97 type NormalizedVertex struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 // X coordinate.
103 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
104 // Y coordinate.
105 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
106 }
107
108 func (x *NormalizedVertex) Reset() {
109 *x = NormalizedVertex{}
110 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[1]
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 ms.StoreMessageInfo(mi)
113 }
114
115 func (x *NormalizedVertex) String() string {
116 return protoimpl.X.MessageStringOf(x)
117 }
118
119 func (*NormalizedVertex) ProtoMessage() {}
120
121 func (x *NormalizedVertex) ProtoReflect() protoreflect.Message {
122 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[1]
123 if x != nil {
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 if ms.LoadMessageInfo() == nil {
126 ms.StoreMessageInfo(mi)
127 }
128 return ms
129 }
130 return mi.MessageOf(x)
131 }
132
133 // Deprecated: Use NormalizedVertex.ProtoReflect.Descriptor instead.
134 func (*NormalizedVertex) Descriptor() ([]byte, []int) {
135 return file_google_cloud_vision_v1_geometry_proto_rawDescGZIP(), []int{1}
136 }
137
138 func (x *NormalizedVertex) GetX() float32 {
139 if x != nil {
140 return x.X
141 }
142 return 0
143 }
144
145 func (x *NormalizedVertex) GetY() float32 {
146 if x != nil {
147 return x.Y
148 }
149 return 0
150 }
151
152 // A bounding polygon for the detected image annotation.
153 type BoundingPoly struct {
154 state protoimpl.MessageState
155 sizeCache protoimpl.SizeCache
156 unknownFields protoimpl.UnknownFields
157
158 // The bounding polygon vertices.
159 Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
160 // The bounding polygon normalized vertices.
161 NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
162 }
163
164 func (x *BoundingPoly) Reset() {
165 *x = BoundingPoly{}
166 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[2]
167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
168 ms.StoreMessageInfo(mi)
169 }
170
171 func (x *BoundingPoly) String() string {
172 return protoimpl.X.MessageStringOf(x)
173 }
174
175 func (*BoundingPoly) ProtoMessage() {}
176
177 func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
178 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[2]
179 if x != nil {
180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181 if ms.LoadMessageInfo() == nil {
182 ms.StoreMessageInfo(mi)
183 }
184 return ms
185 }
186 return mi.MessageOf(x)
187 }
188
189 // Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
190 func (*BoundingPoly) Descriptor() ([]byte, []int) {
191 return file_google_cloud_vision_v1_geometry_proto_rawDescGZIP(), []int{2}
192 }
193
194 func (x *BoundingPoly) GetVertices() []*Vertex {
195 if x != nil {
196 return x.Vertices
197 }
198 return nil
199 }
200
201 func (x *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
202 if x != nil {
203 return x.NormalizedVertices
204 }
205 return nil
206 }
207
208 // A 3D position in the image, used primarily for Face detection landmarks.
209 // A valid Position must have both x and y coordinates.
210 // The position coordinates are in the same scale as the original image.
211 type Position struct {
212 state protoimpl.MessageState
213 sizeCache protoimpl.SizeCache
214 unknownFields protoimpl.UnknownFields
215
216 // X coordinate.
217 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
218 // Y coordinate.
219 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
220 // Z coordinate (or depth).
221 Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
222 }
223
224 func (x *Position) Reset() {
225 *x = Position{}
226 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[3]
227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
228 ms.StoreMessageInfo(mi)
229 }
230
231 func (x *Position) String() string {
232 return protoimpl.X.MessageStringOf(x)
233 }
234
235 func (*Position) ProtoMessage() {}
236
237 func (x *Position) ProtoReflect() protoreflect.Message {
238 mi := &file_google_cloud_vision_v1_geometry_proto_msgTypes[3]
239 if x != nil {
240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
241 if ms.LoadMessageInfo() == nil {
242 ms.StoreMessageInfo(mi)
243 }
244 return ms
245 }
246 return mi.MessageOf(x)
247 }
248
249 // Deprecated: Use Position.ProtoReflect.Descriptor instead.
250 func (*Position) Descriptor() ([]byte, []int) {
251 return file_google_cloud_vision_v1_geometry_proto_rawDescGZIP(), []int{3}
252 }
253
254 func (x *Position) GetX() float32 {
255 if x != nil {
256 return x.X
257 }
258 return 0
259 }
260
261 func (x *Position) GetY() float32 {
262 if x != nil {
263 return x.Y
264 }
265 return 0
266 }
267
268 func (x *Position) GetZ() float32 {
269 if x != nil {
270 return x.Z
271 }
272 return 0
273 }
274
275 var File_google_cloud_vision_v1_geometry_proto protoreflect.FileDescriptor
276
277 var file_google_cloud_vision_v1_geometry_proto_rawDesc = []byte{
278 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
279 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72,
280 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
281 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22,
282 0x24, 0x0a, 0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01,
283 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01,
284 0x28, 0x05, 0x52, 0x01, 0x79, 0x22, 0x2e, 0x0a, 0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69,
285 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01,
286 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01,
287 0x28, 0x02, 0x52, 0x01, 0x79, 0x22, 0xa5, 0x01, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69,
288 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x12, 0x3a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63,
289 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
290 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76,
291 0x31, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63,
292 0x65, 0x73, 0x12, 0x59, 0x0a, 0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64,
293 0x5f, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
294 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76,
295 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69,
296 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61,
297 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x22, 0x34, 0x0a,
298 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01,
299 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01,
300 0x28, 0x02, 0x52, 0x01, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02,
301 0x52, 0x01, 0x7a, 0x42, 0x6e, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
302 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76,
303 0x31, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,
304 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
305 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76,
306 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62,
307 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47,
308 0x43, 0x56, 0x4e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
309 }
310
311 var (
312 file_google_cloud_vision_v1_geometry_proto_rawDescOnce sync.Once
313 file_google_cloud_vision_v1_geometry_proto_rawDescData = file_google_cloud_vision_v1_geometry_proto_rawDesc
314 )
315
316 func file_google_cloud_vision_v1_geometry_proto_rawDescGZIP() []byte {
317 file_google_cloud_vision_v1_geometry_proto_rawDescOnce.Do(func() {
318 file_google_cloud_vision_v1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1_geometry_proto_rawDescData)
319 })
320 return file_google_cloud_vision_v1_geometry_proto_rawDescData
321 }
322
323 var file_google_cloud_vision_v1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
324 var file_google_cloud_vision_v1_geometry_proto_goTypes = []any{
325 (*Vertex)(nil), // 0: google.cloud.vision.v1.Vertex
326 (*NormalizedVertex)(nil), // 1: google.cloud.vision.v1.NormalizedVertex
327 (*BoundingPoly)(nil), // 2: google.cloud.vision.v1.BoundingPoly
328 (*Position)(nil), // 3: google.cloud.vision.v1.Position
329 }
330 var file_google_cloud_vision_v1_geometry_proto_depIdxs = []int32{
331 0, // 0: google.cloud.vision.v1.BoundingPoly.vertices:type_name -> google.cloud.vision.v1.Vertex
332 1, // 1: google.cloud.vision.v1.BoundingPoly.normalized_vertices:type_name -> google.cloud.vision.v1.NormalizedVertex
333 2, // [2:2] is the sub-list for method output_type
334 2, // [2:2] is the sub-list for method input_type
335 2, // [2:2] is the sub-list for extension type_name
336 2, // [2:2] is the sub-list for extension extendee
337 0, // [0:2] is the sub-list for field type_name
338 }
339
340 func init() { file_google_cloud_vision_v1_geometry_proto_init() }
341 func file_google_cloud_vision_v1_geometry_proto_init() {
342 if File_google_cloud_vision_v1_geometry_proto != nil {
343 return
344 }
345 type x struct{}
346 out := protoimpl.TypeBuilder{
347 File: protoimpl.DescBuilder{
348 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
349 RawDescriptor: file_google_cloud_vision_v1_geometry_proto_rawDesc,
350 NumEnums: 0,
351 NumMessages: 4,
352 NumExtensions: 0,
353 NumServices: 0,
354 },
355 GoTypes: file_google_cloud_vision_v1_geometry_proto_goTypes,
356 DependencyIndexes: file_google_cloud_vision_v1_geometry_proto_depIdxs,
357 MessageInfos: file_google_cloud_vision_v1_geometry_proto_msgTypes,
358 }.Build()
359 File_google_cloud_vision_v1_geometry_proto = out.File
360 file_google_cloud_vision_v1_geometry_proto_rawDesc = nil
361 file_google_cloud_vision_v1_geometry_proto_goTypes = nil
362 file_google_cloud_vision_v1_geometry_proto_depIdxs = nil
363 }