1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/vision/v1/geometry.proto
5 Package vision is a generated protocol buffer package.
7 It is generated from these files:
8 google/cloud/vision/v1/geometry.proto
9 google/cloud/vision/v1/image_annotator.proto
10 google/cloud/vision/v1/text_annotation.proto
11 google/cloud/vision/v1/web_detection.proto
13 It has these top-level messages:
27 DominantColorsAnnotation
35 BatchAnnotateImagesRequest
36 BatchAnnotateImagesResponse
47 import proto "github.com/golang/protobuf/proto"
51 // Reference imports to suppress errors if they are not otherwise used.
56 // This is a compile-time assertion to ensure that this generated file
57 // is compatible with the proto package it is being compiled against.
58 // A compilation error at this line likely means your copy of the
59 // proto package needs to be updated.
60 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
62 // A vertex represents a 2D point in the image.
63 // NOTE: the vertex coordinates are in the same scale as the original image.
66 X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
68 Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
71 func (m *Vertex) Reset() { *m = Vertex{} }
72 func (m *Vertex) String() string { return proto.CompactTextString(m) }
73 func (*Vertex) ProtoMessage() {}
74 func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
76 func (m *Vertex) GetX() int32 {
83 func (m *Vertex) GetY() int32 {
90 // A bounding polygon for the detected image annotation.
91 type BoundingPoly struct {
92 // The bounding polygon vertices.
93 Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices" json:"vertices,omitempty"`
96 func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
97 func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
98 func (*BoundingPoly) ProtoMessage() {}
99 func (*BoundingPoly) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
101 func (m *BoundingPoly) GetVertices() []*Vertex {
108 // A 3D position in the image, used primarily for Face detection landmarks.
109 // A valid Position must have both x and y coordinates.
110 // The position coordinates are in the same scale as the original image.
111 type Position struct {
113 X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"`
115 Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
116 // Z coordinate (or depth).
117 Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
120 func (m *Position) Reset() { *m = Position{} }
121 func (m *Position) String() string { return proto.CompactTextString(m) }
122 func (*Position) ProtoMessage() {}
123 func (*Position) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
125 func (m *Position) GetX() float32 {
132 func (m *Position) GetY() float32 {
139 func (m *Position) GetZ() float32 {
147 proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1.Vertex")
148 proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1.BoundingPoly")
149 proto.RegisterType((*Position)(nil), "google.cloud.vision.v1.Position")
152 func init() { proto.RegisterFile("google/cloud/vision/v1/geometry.proto", fileDescriptor0) }
154 var fileDescriptor0 = []byte{
155 // 237 bytes of a gzipped FileDescriptorProto
156 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x31, 0x4b, 0x03, 0x31,
157 0x14, 0x80, 0x79, 0x57, 0x2c, 0x25, 0xd6, 0xe5, 0x06, 0x39, 0x1c, 0xa4, 0x1c, 0x0a, 0x9d, 0x12,
158 0xaa, 0x4e, 0xea, 0x74, 0x8b, 0xe0, 0x74, 0xdc, 0xe0, 0xe0, 0x56, 0xaf, 0x8f, 0x47, 0xe0, 0x9a,
159 0x57, 0x92, 0x34, 0x34, 0xfd, 0xe5, 0x8e, 0xd2, 0xa4, 0x28, 0x8a, 0xdd, 0xf2, 0x91, 0x8f, 0xf7,
160 0xf1, 0x9e, 0xb8, 0x25, 0x66, 0x1a, 0x50, 0xf5, 0x03, 0x6f, 0x57, 0x2a, 0x68, 0xa7, 0xd9, 0xa8,
161 0xb0, 0x50, 0x84, 0xbc, 0x46, 0x6f, 0xa3, 0xdc, 0x58, 0xf6, 0x5c, 0x5e, 0x66,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