| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/automl/v1/geometry.proto |
| |
| package automl |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| ) |
| |
| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // A vertex represents a 2D point in the image. |
| // The normalized vertex coordinates are between 0 to 1 fractions relative to |
| // the original plane (image, video). E.g. if the plane (e.g. whole image) would |
| // have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would |
| // be at the position (1, 6) on that plane. |
| type NormalizedVertex struct { |
| // Required. Horizontal coordinate. |
| X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` |
| // Required. Vertical 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_88a2b23d46f3cb33, []int{0} |
| } |
| |
| 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 (m *NormalizedVertex) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_NormalizedVertex.Merge(m, 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 of a detected object on a plane. |
| // On output both vertices and normalized_vertices are provided. |
| // The polygon is formed by connecting vertices in the order they are listed. |
| type BoundingPoly struct { |
| // Output only . 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_88a2b23d46f3cb33, []int{1} |
| } |
| |
| 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 (m *BoundingPoly) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_BoundingPoly.Merge(m, 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) GetNormalizedVertices() []*NormalizedVertex { |
| if m != nil { |
| return m.NormalizedVertices |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.automl.v1.NormalizedVertex") |
| proto.RegisterType((*BoundingPoly)(nil), "google.cloud.automl.v1.BoundingPoly") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/automl/v1/geometry.proto", fileDescriptor_88a2b23d46f3cb33) |
| } |
| |
| var fileDescriptor_88a2b23d46f3cb33 = []byte{ |
| // 281 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xc1, 0x4a, 0xc3, 0x30, |
| 0x18, 0xc7, 0x49, 0x05, 0x0f, 0x71, 0x07, 0xa9, 0x30, 0xea, 0xf0, 0x30, 0x06, 0x42, 0x4f, 0x09, |
| 0xd1, 0x5b, 0xf4, 0xe2, 0x3c, 0x78, 0x51, 0x19, 0x3b, 0x14, 0x94, 0x82, 0xc4, 0x36, 0x84, 0x40, |
| 0x9a, 0xaf, 0xa4, 0x69, 0x59, 0x7d, 0xa4, 0x3d, 0x8a, 0x8f, 0xe2, 0x53, 0x88, 0xc9, 0x14, 0x1c, |
| 0x7a, 0xeb, 0xd7, 0xdf, 0xff, 0xf7, 0xff, 0x92, 0xe0, 0x73, 0x05, 0xa0, 0x8c, 0xa4, 0x95, 0x81, |
| 0xbe, 0xa6, 0xa2, 0xf7, 0xd0, 0x18, 0x3a, 0x30, 0xaa, 0x24, 0x34, 0xd2, 0xbb, 0x91, 0xb4, 0x0e, |
| 0x3c, 0xa4, 0xd3, 0x18, 0x23, 0x21, 0x46, 0x62, 0x8c, 0x0c, 0x6c, 0x76, 0xb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