mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-19 16:51:01 -04:00
263 lines
9.3 KiB
Go
263 lines
9.3 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: google/cloud/vision/v1/geometry.proto
|
||
|
|
||
|
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
// A vertex represents a 2D point in the image.
|
||
|
// NOTE: the vertex coordinates are in the same scale as the original image.
|
||
|
type Vertex struct {
|
||
|
// X coordinate.
|
||
|
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
||
|
// Y coordinate.
|
||
|
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Vertex) Reset() { *m = Vertex{} }
|
||
|
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Vertex) ProtoMessage() {}
|
||
|
func (*Vertex) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_geometry_3423d75926342ff3, []int{0}
|
||
|
}
|
||
|
func (m *Vertex) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Vertex.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Vertex) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Vertex.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Vertex) XXX_Size() int {
|
||
|
return xxx_messageInfo_Vertex.Size(m)
|
||
|
}
|
||
|
func (m *Vertex) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Vertex.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Vertex proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Vertex) GetX() int32 {
|
||
|
if m != nil {
|
||
|
return m.X
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Vertex) GetY() int32 {
|
||
|
if m != nil {
|
||
|
return m.Y
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// A vertex represents a 2D point in the image.
|
||
|
// NOTE: the normalized vertex coordinates are relative to the original image
|
||
|
// and range from 0 to 1.
|
||
|
type NormalizedVertex struct {
|
||
|
// X coordinate.
|
||
|
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||
|
// Y coordinate.
|
||
|
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
|
||
|
func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
|
||
|
func (*NormalizedVertex) ProtoMessage() {}
|
||
|
func (*NormalizedVertex) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_geometry_3423d75926342ff3, []int{1}
|
||
|
}
|
||
|
func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_NormalizedVertex.Merge(dst, src)
|
||
|
}
|
||
|
func (m *NormalizedVertex) XXX_Size() int {
|
||
|
return xxx_messageInfo_NormalizedVertex.Size(m)
|
||
|
}
|
||
|
func (m *NormalizedVertex) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
|
||
|
|
||
|
func (m *NormalizedVertex) GetX() float32 {
|
||
|
if m != nil {
|
||
|
return m.X
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *NormalizedVertex) GetY() float32 {
|
||
|
if m != nil {
|
||
|
return m.Y
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// A bounding polygon for the detected image annotation.
|
||
|
type BoundingPoly struct {
|
||
|
// The bounding polygon vertices.
|
||
|
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
|
||
|
// The bounding polygon normalized vertices.
|
||
|
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||
|
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||
|
func (*BoundingPoly) ProtoMessage() {}
|
||
|
func (*BoundingPoly) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_geometry_3423d75926342ff3, []int{2}
|
||
|
}
|
||
|
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_BoundingPoly.Merge(dst, src)
|
||
|
}
|
||
|
func (m *BoundingPoly) XXX_Size() int {
|
||
|
return xxx_messageInfo_BoundingPoly.Size(m)
|
||
|
}
|
||
|
func (m *BoundingPoly) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
|
||
|
|
||
|
func (m *BoundingPoly) GetVertices() []*Vertex {
|
||
|
if m != nil {
|
||
|
return m.Vertices
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
|
||
|
if m != nil {
|
||
|
return m.NormalizedVertices
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// A 3D position in the image, used primarily for Face detection landmarks.
|
||
|
// A valid Position must have both x and y coordinates.
|
||
|
// The position coordinates are in the same scale as the original image.
|
||
|
type Position struct {
|
||
|
// X coordinate.
|
||
|
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||
|
// Y coordinate.
|
||
|
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||
|
// Z coordinate (or depth).
|
||
|
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Position) Reset() { *m = Position{} }
|
||
|
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Position) ProtoMessage() {}
|
||
|
func (*Position) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_geometry_3423d75926342ff3, []int{3}
|
||
|
}
|
||
|
func (m *Position) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Position.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Position) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Position.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Position) XXX_Size() int {
|
||
|
return xxx_messageInfo_Position.Size(m)
|
||
|
}
|
||
|
func (m *Position) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Position.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Position proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Position) GetX() float32 {
|
||
|
if m != nil {
|
||
|
return m.X
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Position) GetY() float32 {
|
||
|
if m != nil {
|
||
|
return m.Y
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Position) GetZ() float32 {
|
||
|
if m != nil {
|
||
|
return m.Z
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1.Vertex")
|
||
|
proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1.NormalizedVertex")
|
||
|
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1.BoundingPoly")
|
||
|
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1.Position")
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("google/cloud/vision/v1/geometry.proto", fileDescriptor_geometry_3423d75926342ff3)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_geometry_3423d75926342ff3 = []byte{
|
||
|
// 285 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4b, 0xc3, 0x30,
|
||
|
0x14, 0xc7, 0x49, 0xa7, 0x63, 0xc4, 0x09, 0x52, 0x41, 0x8a, 0x07, 0x19, 0x45, 0xa1, 0xa7, 0x84,
|
||
|
0xa9, 0x27, 0xf5, 0x54, 0x0f, 0xbb, 0x8d, 0xd2, 0xc3, 0x40, 0x2f, 0x52, 0xdb, 0x10, 0x02, 0x69,
|
||
|
0xde, 0x48, 0xd3, 0xb2, 0xf6, 0xe3, 0x08, 0x7e, 0x47, 0x8f, 0xd2, 0x64, 0x14, 0x56, 0x9c, 0xb7,
|
||
|
0xfe, 0x9b, 0x5f, 0x7e, 0xef, 0xe5, 0x3d, 0x7c, 0xc7, 0x01, 0xb8, 0x64, 0x34, 0x97, 0x50, 0x17,
|
||
|
0xb4, 0x11, 0x95, 0x00, 0x45, 0x9b, 0x25, 0xe5, 0x0c, 0x4a, 0x66, 0x74, 0x4b, 0xb6, 0x1a, 0x0c,
|
||
|
0xf8, 0x57, 0x0e, 0x23, 0x16, 0x23, 0x0e, 0x23, 0xcd, 0x32, 0xbc, 0xc5, 0xd3, 0x0d, 0xd3, 0x86,
|
||
|
0xed, 0xfc, 0x39, 0x46, 0xbb, 0x00, 0x2d, 0x50, 0x74, 0x9a, 0x22, 0x9b, 0xda, 0xc0, 0x73, 0xa9,
|
||
|
0x0d, 0x09, 0xbe, 0x58, 0x83, 0x2e, 0x33, 0x29, 0x3a, 0x56, 0x8c, 0x79, 0xef, 0x80, 0xf7, 0x7a,
|
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