1// Copyright 2017 Google Inc. 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.26.0 18// protoc v3.12.2 19// source: google/cloud/vision/v1p1beta1/geometry.proto 20 21package vision 22 23import ( 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 31const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36) 37 38// A vertex represents a 2D point in the image. 39// NOTE: the vertex coordinates are in the same scale as the original image. 40type Vertex struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // X coordinate. 46 X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` 47 // Y coordinate. 48 Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` 49} 50 51func (x *Vertex) Reset() { 52 *x = Vertex{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58} 59 60func (x *Vertex) String() string { 61 return protoimpl.X.MessageStringOf(x) 62} 63 64func (*Vertex) ProtoMessage() {} 65 66func (x *Vertex) ProtoReflect() protoreflect.Message { 67 mi := &file_google_cloud_vision_v1p1beta1_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// Deprecated: Use Vertex.ProtoReflect.Descriptor instead. 79func (*Vertex) Descriptor() ([]byte, []int) { 80 return file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescGZIP(), []int{0} 81} 82 83func (x *Vertex) GetX() int32 { 84 if x != nil { 85 return x.X 86 } 87 return 0 88} 89 90func (x *Vertex) GetY() int32 { 91 if x != nil { 92 return x.Y 93 } 94 return 0 95} 96 97// A bounding polygon for the detected image annotation. 98type BoundingPoly struct { 99 state protoimpl.MessageState 100 sizeCache protoimpl.SizeCache 101 unknownFields protoimpl.UnknownFields 102 103 // The bounding polygon vertices. 104 Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"` 105} 106 107func (x *BoundingPoly) Reset() { 108 *x = BoundingPoly{} 109 if protoimpl.UnsafeEnabled { 110 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[1] 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 ms.StoreMessageInfo(mi) 113 } 114} 115 116func (x *BoundingPoly) String() string { 117 return protoimpl.X.MessageStringOf(x) 118} 119 120func (*BoundingPoly) ProtoMessage() {} 121 122func (x *BoundingPoly) ProtoReflect() protoreflect.Message { 123 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[1] 124 if protoimpl.UnsafeEnabled && x != nil { 125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 126 if ms.LoadMessageInfo() == nil { 127 ms.StoreMessageInfo(mi) 128 } 129 return ms 130 } 131 return mi.MessageOf(x) 132} 133 134// Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead. 135func (*BoundingPoly) Descriptor() ([]byte, []int) { 136 return file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescGZIP(), []int{1} 137} 138 139func (x *BoundingPoly) GetVertices() []*Vertex { 140 if x != nil { 141 return x.Vertices 142 } 143 return nil 144} 145 146// A 3D position in the image, used primarily for Face detection landmarks. 147// A valid Position must have both x and y coordinates. 148// The position coordinates are in the same scale as the original image. 149type Position struct { 150 state protoimpl.MessageState 151 sizeCache protoimpl.SizeCache 152 unknownFields protoimpl.UnknownFields 153 154 // X coordinate. 155 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` 156 // Y coordinate. 157 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` 158 // Z coordinate (or depth). 159 Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"` 160} 161 162func (x *Position) Reset() { 163 *x = Position{} 164 if protoimpl.UnsafeEnabled { 165 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[2] 166 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 167 ms.StoreMessageInfo(mi) 168 } 169} 170 171func (x *Position) String() string { 172 return protoimpl.X.MessageStringOf(x) 173} 174 175func (*Position) ProtoMessage() {} 176 177func (x *Position) ProtoReflect() protoreflect.Message { 178 mi := &file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[2] 179 if protoimpl.UnsafeEnabled && 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 Position.ProtoReflect.Descriptor instead. 190func (*Position) Descriptor() ([]byte, []int) { 191 return file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescGZIP(), []int{2} 192} 193 194func (x *Position) GetX() float32 { 195 if x != nil { 196 return x.X 197 } 198 return 0 199} 200 201func (x *Position) GetY() float32 { 202 if x != nil { 203 return x.Y 204 } 205 return 0 206} 207 208func (x *Position) GetZ() float32 { 209 if x != nil { 210 return x.Z 211 } 212 return 0 213} 214 215var File_google_cloud_vision_v1p1beta1_geometry_proto protoreflect.FileDescriptor 216 217var file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc = []byte{ 218 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 219 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 220 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 221 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 222 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x24, 0x0a, 223 0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 224 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 225 0x52, 0x01, 0x79, 0x22, 0x51, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 226 0x6f, 0x6c, 0x79, 0x12, 0x41, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 227 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 228 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 229 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x08, 0x76, 0x65, 230 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 231 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78, 232 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x12, 0x0c, 233 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x42, 0x7c, 0x0a, 0x21, 234 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 235 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 236 0x31, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 237 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 238 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 239 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 240 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 241 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 242 0x6f, 0x33, 243} 244 245var ( 246 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescOnce sync.Once 247 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData = file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc 248) 249 250func file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescGZIP() []byte { 251 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescOnce.Do(func() { 252 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData) 253 }) 254 return file_google_cloud_vision_v1p1beta1_geometry_proto_rawDescData 255} 256 257var file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 258var file_google_cloud_vision_v1p1beta1_geometry_proto_goTypes = []interface{}{ 259 (*Vertex)(nil), // 0: google.cloud.vision.v1p1beta1.Vertex 260 (*BoundingPoly)(nil), // 1: google.cloud.vision.v1p1beta1.BoundingPoly 261 (*Position)(nil), // 2: google.cloud.vision.v1p1beta1.Position 262} 263var file_google_cloud_vision_v1p1beta1_geometry_proto_depIdxs = []int32{ 264 0, // 0: google.cloud.vision.v1p1beta1.BoundingPoly.vertices:type_name -> google.cloud.vision.v1p1beta1.Vertex 265 1, // [1:1] is the sub-list for method output_type 266 1, // [1:1] is the sub-list for method input_type 267 1, // [1:1] is the sub-list for extension type_name 268 1, // [1:1] is the sub-list for extension extendee 269 0, // [0:1] is the sub-list for field type_name 270} 271 272func init() { file_google_cloud_vision_v1p1beta1_geometry_proto_init() } 273func file_google_cloud_vision_v1p1beta1_geometry_proto_init() { 274 if File_google_cloud_vision_v1p1beta1_geometry_proto != nil { 275 return 276 } 277 if !protoimpl.UnsafeEnabled { 278 file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 279 switch v := v.(*Vertex); i { 280 case 0: 281 return &v.state 282 case 1: 283 return &v.sizeCache 284 case 2: 285 return &v.unknownFields 286 default: 287 return nil 288 } 289 } 290 file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 291 switch v := v.(*BoundingPoly); i { 292 case 0: 293 return &v.state 294 case 1: 295 return &v.sizeCache 296 case 2: 297 return &v.unknownFields 298 default: 299 return nil 300 } 301 } 302 file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 303 switch v := v.(*Position); i { 304 case 0: 305 return &v.state 306 case 1: 307 return &v.sizeCache 308 case 2: 309 return &v.unknownFields 310 default: 311 return nil 312 } 313 } 314 } 315 type x struct{} 316 out := protoimpl.TypeBuilder{ 317 File: protoimpl.DescBuilder{ 318 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 319 RawDescriptor: file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc, 320 NumEnums: 0, 321 NumMessages: 3, 322 NumExtensions: 0, 323 NumServices: 0, 324 }, 325 GoTypes: file_google_cloud_vision_v1p1beta1_geometry_proto_goTypes, 326 DependencyIndexes: file_google_cloud_vision_v1p1beta1_geometry_proto_depIdxs, 327 MessageInfos: file_google_cloud_vision_v1p1beta1_geometry_proto_msgTypes, 328 }.Build() 329 File_google_cloud_vision_v1p1beta1_geometry_proto = out.File 330 file_google_cloud_vision_v1p1beta1_geometry_proto_rawDesc = nil 331 file_google_cloud_vision_v1p1beta1_geometry_proto_goTypes = nil 332 file_google_cloud_vision_v1p1beta1_geometry_proto_depIdxs = nil 333} 334