Debian Codegraph @

vision/apiv1p1beta1/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/v1p1beta1/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_v1p1beta1_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_v1p1beta1_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_v1p1beta1_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 bounding polygon for the detected image annotation.
95 type BoundingPoly struct {
96 state protoimpl.MessageState
97 sizeCache protoimpl.SizeCache
98 unknownFields protoimpl.UnknownFields
99
100 // The bounding polygon vertices.
101 Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
102 }
103
104 func (x *BoundingPoly) Reset() {
105 *x = BoundingPoly{}
106 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[1]
107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108 ms.StoreMessageInfo(mi)
109 }
110
111 func (x *BoundingPoly) String() string {
112 return protoimpl.X.MessageStringOf(x)
113 }
114
115 func (*BoundingPoly) ProtoMessage() {}
116
117 func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
118 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[1]
119 if x != nil {
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 if ms.LoadMessageInfo() == nil {
122 ms.StoreMessageInfo(mi)
123 }
124 return ms
125 }
126 return mi.MessageOf(x)
127 }
128
129 // Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
130 func (*BoundingPoly) Descriptor() ([]byte, []int) {
131 return file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescGZIP(), []int{1}
132 }
133
134 func (x *BoundingPoly) GetVertices() []*Vertex {
135 if x != nil {
136 return x.Vertices
137 }
138 return nil
139 }
140
141 // A 3D position in the image, used primarily for Face detection landmarks.
142 // A valid Position must have both x and y coordinates.
143 // The position coordinates are in the same scale as the original image.
144 type Position struct {
145 state protoimpl.MessageState
146 sizeCache protoimpl.SizeCache
147 unknownFields protoimpl.UnknownFields
148
149 // X coordinate.
150 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
151 // Y coordinate.
152 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
153 // Z coordinate (or depth).
154 Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
155 }
156
157 func (x *Position) Reset() {
158 *x = Position{}
159 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[2]
160 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
161 ms.StoreMessageInfo(mi)
162 }
163
164 func (x *Position) String() string {
165 return protoimpl.X.MessageStringOf(x)
166 }
167
168 func (*Position) ProtoMessage() {}
169
170 func (x *Position) ProtoReflect() protoreflect.Message {
171 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[2]
172 if x != nil {
173 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
174 if ms.LoadMessageInfo() == nil {
175 ms.StoreMessageInfo(mi)
176 }
177 return ms
178 }
179 return mi.MessageOf(x)
180 }
181
182 // Deprecated: Use Position.ProtoReflect.Descriptor instead.
183 func (*Position) Descriptor() ([]byte, []int) {
184 return file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescGZIP(), []int{2}
185 }
186
187 func (x *Position) GetX() float32 {
188 if x != nil {
189 return x.X
190 }
191 return 0
192 }
193
194 func (x *Position) GetY() float32 {
195 if x != nil {
196 return x.Y
197 }
198 return 0
199 }
200
201 func (x *Position) GetZ() float32 {
202 if x != nil {
203 return x.Z
204 }
205 return 0
206 }
207
208 var File_google_cloud_vision_v1p1beta1_geometry_proto protoreflect.FileDescriptor
209
210 var file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc = []byte{
211 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
212 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
213 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d,
214 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
215 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x24, 0x0a,
216 0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01,
217 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
218 0x52, 0x01, 0x79, 0x22, 0x51, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50,
219 0x6f, 0x6c, 0x79, 0x12, 0x41, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18,
220 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
221 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31,
222 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x08, 0x76, 0x65,
223 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69,
224 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78,
225 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x12, 0x0c,
226 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x42, 0x75, 0x0a, 0x21,
227 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
228 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61,
229 0x31, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,
230 0x50, 0x01, 0x5a, 0x3c, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
231 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76,
232 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76,
233 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62,
234 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
235 }
236
237 var (
238 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescOnce sync.Once
239 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData = file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc
240 )
241
242 func file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescGZIP() []byte {
243 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescOnce.Do(func() {
244 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData)
245 })
246 return file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData
247 }
248
249 var file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
250 var file_google_cloud_vision_v1p1beta1_geometry_proto_goTypes = []any{
251 (*Vertex)(nil), // 0: google.cloud.vision.v1p1beta1.Vertex
252 (*BoundingPoly)(nil), // 1: google.cloud.vision.v1p1beta1.BoundingPoly
253 (*Position)(nil), // 2: google.cloud.vision.v1p1beta1.Position
254 }
255 var file_google_cloud_vision_v1p1beta1_geometry_proto_depIdxs = []int32{
256 0, // 0: google.cloud.vision.v1p1beta1.BoundingPoly.vertices:type_name -> google.cloud.vision.v1p1beta1.Vertex
257 1, // [1:1] is the sub-list for method output_type
258 1, // [1:1] is the sub-list for method input_type
259 1, // [1:1] is the sub-list for extension type_name
260 1, // [1:1] is the sub-list for extension extendee
261 0, // [0:1] is the sub-list for field type_name
262 }
263
264 func init() { file_google_cloud_vision_v1p1beta1_geometry_proto_init() }
265 func file_google_cloud_vision_v1p1beta1_geometry_proto_init() {
266 if File_google_cloud_vision_v1p1beta1_geometry_proto != nil {
267 return
268 }
269 type x struct{}
270 out := protoimpl.TypeBuilder{
271 File: protoimpl.DescBuilder{
272 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
273 RawDescriptor: file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc,
274 NumEnums: 0,
275 NumMessages: 3,
276 NumExtensions: 0,
277 NumServices: 0,
278 },
279 GoTypes: file_google_cloud_vision_v1p1beta1_geometry_proto_goTypes,
280 DependencyIndexes: file_google_cloud_vision_v1p1beta1_geometry_proto_depIdxs,
281 MessageInfos: file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes,
282 }.Build()
283 File_google_cloud_vision_v1p1beta1_geometry_proto = out.File
284 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc = nil
285 file_google_cloud_vision_v1p1beta1_geometry_proto_goTypes = nil
286 file_google_cloud_vision_v1p1beta1_geometry_proto_depIdxs = nil
287 }