1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/vision/v1p1beta1/geometry.proto 3 4package vision 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11) 12 13// Reference imports to suppress errors if they are not otherwise used. 14var _ = proto.Marshal 15var _ = fmt.Errorf 16var _ = math.Inf 17 18// This is a compile-time assertion to ensure that this generated file 19// is compatible with the proto package it is being compiled against. 20// A compilation error at this line likely means your copy of the 21// proto package needs to be updated. 22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24// A vertex represents a 2D point in the image. 25// NOTE: the vertex coordinates are in the same scale as the original image. 26type Vertex struct { 27 // X coordinate. 28 X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` 29 // Y coordinate. 30 Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` 31 XXX_NoUnkeyedLiteral struct{} `json:"-"` 32 XXX_unrecognized []byte `json:"-"` 33 XXX_sizecache int32 `json:"-"` 34} 35 36func (m *Vertex) Reset() { *m = Vertex{} } 37func (m *Vertex) String() string { return proto.CompactTextString(m) } 38func (*Vertex) ProtoMessage() {} 39func (*Vertex) Descriptor() ([]byte, []int) { 40 return fileDescriptor_a110c700536b1e95, []int{0} 41} 42 43func (m *Vertex) XXX_Unmarshal(b []byte) error { 44 return xxx_messageInfo_Vertex.Unmarshal(m, b) 45} 46func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 return xxx_messageInfo_Vertex.Marshal(b, m, deterministic) 48} 49func (m *Vertex) XXX_Merge(src proto.Message) { 50 xxx_messageInfo_Vertex.Merge(m, src) 51} 52func (m *Vertex) XXX_Size() int { 53 return xxx_messageInfo_Vertex.Size(m) 54} 55func (m *Vertex) XXX_DiscardUnknown() { 56 xxx_messageInfo_Vertex.DiscardUnknown(m) 57} 58 59var xxx_messageInfo_Vertex proto.InternalMessageInfo 60 61func (m *Vertex) GetX() int32 { 62 if m != nil { 63 return m.X 64 } 65 return 0 66} 67 68func (m *Vertex) GetY() int32 { 69 if m != nil { 70 return m.Y 71 } 72 return 0 73} 74 75// A bounding polygon for the detected image annotation. 76type BoundingPoly struct { 77 // The bounding polygon vertices. 78 Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"` 79 XXX_NoUnkeyedLiteral struct{} `json:"-"` 80 XXX_unrecognized []byte `json:"-"` 81 XXX_sizecache int32 `json:"-"` 82} 83 84func (m *BoundingPoly) Reset() { *m = BoundingPoly{} } 85func (m *BoundingPoly) String() string { return proto.CompactTextString(m) } 86func (*BoundingPoly) ProtoMessage() {} 87func (*BoundingPoly) Descriptor() ([]byte, []int) { 88 return fileDescriptor_a110c700536b1e95, []int{1} 89} 90 91func (m *BoundingPoly) XXX_Unmarshal(b []byte) error { 92 return xxx_messageInfo_BoundingPoly.Unmarshal(m, b) 93} 94func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 95 return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic) 96} 97func (m *BoundingPoly) XXX_Merge(src proto.Message) { 98 xxx_messageInfo_BoundingPoly.Merge(m, src) 99} 100func (m *BoundingPoly) XXX_Size() int { 101 return xxx_messageInfo_BoundingPoly.Size(m) 102} 103func (m *BoundingPoly) XXX_DiscardUnknown() { 104 xxx_messageInfo_BoundingPoly.DiscardUnknown(m) 105} 106 107var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo 108 109func (m *BoundingPoly) GetVertices() []*Vertex { 110 if m != nil { 111 return m.Vertices 112 } 113 return nil 114} 115 116// A 3D position in the image, used primarily for Face detection landmarks. 117// A valid Position must have both x and y coordinates. 118// The position coordinates are in the same scale as the original image. 119type Position struct { 120 // X coordinate. 121 X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` 122 // Y coordinate. 123 Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` 124 // Z coordinate (or depth). 125 Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"` 126 XXX_NoUnkeyedLiteral struct{} `json:"-"` 127 XXX_unrecognized []byte `json:"-"` 128 XXX_sizecache int32 `json:"-"` 129} 130 131func (m *Position) Reset() { *m = Position{} } 132func (m *Position) String() string { return proto.CompactTextString(m) } 133func (*Position) ProtoMessage() {} 134func (*Position) Descriptor() ([]byte, []int) { 135 return fileDescriptor_a110c700536b1e95, []int{2} 136} 137 138func (m *Position) XXX_Unmarshal(b []byte) error { 139 return xxx_messageInfo_Position.Unmarshal(m, b) 140} 141func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 142 return xxx_messageInfo_Position.Marshal(b, m, deterministic) 143} 144func (m *Position) XXX_Merge(src proto.Message) { 145 xxx_messageInfo_Position.Merge(m, src) 146} 147func (m *Position) XXX_Size() int { 148 return xxx_messageInfo_Position.Size(m) 149} 150func (m *Position) XXX_DiscardUnknown() { 151 xxx_messageInfo_Position.DiscardUnknown(m) 152} 153 154var xxx_messageInfo_Position proto.InternalMessageInfo 155 156func (m *Position) GetX() float32 { 157 if m != nil { 158 return m.X 159 } 160 return 0 161} 162 163func (m *Position) GetY() float32 { 164 if m != nil { 165 return m.Y 166 } 167 return 0 168} 169 170func (m *Position) GetZ() float32 { 171 if m != nil { 172 return m.Z 173 } 174 return 0 175} 176 177func init() { 178 proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1p1beta1.Vertex") 179 proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1p1beta1.BoundingPoly") 180 proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p1beta1.Position") 181} 182 183func init() { 184 proto.RegisterFile("google/cloud/vision/v1p1beta1/geometry.proto", fileDescriptor_a110c700536b1e95) 185} 186 187var fileDescriptor_a110c700536b1e95 = []byte{ 188 // 243 bytes of a gzipped FileDescriptorProto 189 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0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ab, 201 0xb7, 0x63, 0x82, 0xea, 0x50, 0xa0, 0x82, 0xcf, 0xd7, 0x23, 0x4f, 0xdc, 0x35, 0x86, 0x24, 0x5b, 202 0x52, 0x84, 0x26, 0xf4, 0x51, 0xf1, 0xab, 0xe9, 0xf5, 0xf0, 0x4f, 0xd0, 0xe7, 0xf8, 0xf0, 0x0d, 203 0xb0, 0x9a, 0x86, 0x93, 0xc7, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x91, 0xa5, 0x86, 0xce, 0x82, 204 0x01, 0x00, 0x00, 205} 206