1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/documentai/v1beta1/geometry.proto
3
4package documentai
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	_ "google.golang.org/genproto/googleapis/api/annotations"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25// A vertex represents a 2D point in the image.
26// NOTE: the vertex coordinates are in the same scale as the original image.
27type Vertex struct {
28	// X coordinate.
29	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
30	// Y coordinate.
31	Y                    int32    `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
32	XXX_NoUnkeyedLiteral struct{} `json:"-"`
33	XXX_unrecognized     []byte   `json:"-"`
34	XXX_sizecache        int32    `json:"-"`
35}
36
37func (m *Vertex) Reset()         { *m = Vertex{} }
38func (m *Vertex) String() string { return proto.CompactTextString(m) }
39func (*Vertex) ProtoMessage()    {}
40func (*Vertex) Descriptor() ([]byte, []int) {
41	return fileDescriptor_fcd2e1229b566cf9, []int{0}
42}
43
44func (m *Vertex) XXX_Unmarshal(b []byte) error {
45	return xxx_messageInfo_Vertex.Unmarshal(m, b)
46}
47func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
48	return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
49}
50func (m *Vertex) XXX_Merge(src proto.Message) {
51	xxx_messageInfo_Vertex.Merge(m, src)
52}
53func (m *Vertex) XXX_Size() int {
54	return xxx_messageInfo_Vertex.Size(m)
55}
56func (m *Vertex) XXX_DiscardUnknown() {
57	xxx_messageInfo_Vertex.DiscardUnknown(m)
58}
59
60var xxx_messageInfo_Vertex proto.InternalMessageInfo
61
62func (m *Vertex) GetX() int32 {
63	if m != nil {
64		return m.X
65	}
66	return 0
67}
68
69func (m *Vertex) GetY() int32 {
70	if m != nil {
71		return m.Y
72	}
73	return 0
74}
75
76// A vertex represents a 2D point in the image.
77// NOTE: the normalized vertex coordinates are relative to the original image
78// and range from 0 to 1.
79type NormalizedVertex struct {
80	// X coordinate.
81	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
82	// Y coordinate.
83	Y                    float32  `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
84	XXX_NoUnkeyedLiteral struct{} `json:"-"`
85	XXX_unrecognized     []byte   `json:"-"`
86	XXX_sizecache        int32    `json:"-"`
87}
88
89func (m *NormalizedVertex) Reset()         { *m = NormalizedVertex{} }
90func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
91func (*NormalizedVertex) ProtoMessage()    {}
92func (*NormalizedVertex) Descriptor() ([]byte, []int) {
93	return fileDescriptor_fcd2e1229b566cf9, []int{1}
94}
95
96func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
97	return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
98}
99func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
100	return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
101}
102func (m *NormalizedVertex) XXX_Merge(src proto.Message) {
103	xxx_messageInfo_NormalizedVertex.Merge(m, src)
104}
105func (m *NormalizedVertex) XXX_Size() int {
106	return xxx_messageInfo_NormalizedVertex.Size(m)
107}
108func (m *NormalizedVertex) XXX_DiscardUnknown() {
109	xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
110}
111
112var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
113
114func (m *NormalizedVertex) GetX() float32 {
115	if m != nil {
116		return m.X
117	}
118	return 0
119}
120
121func (m *NormalizedVertex) GetY() float32 {
122	if m != nil {
123		return m.Y
124	}
125	return 0
126}
127
128// A bounding polygon for the detected image annotation.
129type BoundingPoly struct {
130	// The bounding polygon vertices.
131	Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
132	// The bounding polygon normalized vertices.
133	NormalizedVertices   []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
134	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
135	XXX_unrecognized     []byte              `json:"-"`
136	XXX_sizecache        int32               `json:"-"`
137}
138
139func (m *BoundingPoly) Reset()         { *m = BoundingPoly{} }
140func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
141func (*BoundingPoly) ProtoMessage()    {}
142func (*BoundingPoly) Descriptor() ([]byte, []int) {
143	return fileDescriptor_fcd2e1229b566cf9, []int{2}
144}
145
146func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
147	return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
148}
149func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
150	return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
151}
152func (m *BoundingPoly) XXX_Merge(src proto.Message) {
153	xxx_messageInfo_BoundingPoly.Merge(m, src)
154}
155func (m *BoundingPoly) XXX_Size() int {
156	return xxx_messageInfo_BoundingPoly.Size(m)
157}
158func (m *BoundingPoly) XXX_DiscardUnknown() {
159	xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
160}
161
162var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
163
164func (m *BoundingPoly) GetVertices() []*Vertex {
165	if m != nil {
166		return m.Vertices
167	}
168	return nil
169}
170
171func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
172	if m != nil {
173		return m.NormalizedVertices
174	}
175	return nil
176}
177
178func init() {
179	proto.RegisterType((*Vertex)(nil), "google.cloud.documentai.v1beta1.Vertex")
180	proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.documentai.v1beta1.NormalizedVertex")
181	proto.RegisterType((*BoundingPoly)(nil), "google.cloud.documentai.v1beta1.BoundingPoly")
182}
183
184func init() {
185	proto.RegisterFile("google/cloud/documentai/v1beta1/geometry.proto", fileDescriptor_fcd2e1229b566cf9)
186}
187
188var fileDescriptor_fcd2e1229b566cf9 = []byte{
189	// 280 bytes of a gzipped FileDescriptorProto
190	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbf, 0x4a, 0xc4, 0x40,
191	0x10, 0x87, 0xd9, 0x88, 0x87, 0xac, 0x27, 0x48, 0x6c, 0x82, 0x08, 0x1e, 0xa7, 0xe0, 0x55, 0xbb,
192	0x44, 0x4b, 0xbb, 0x58, 0x88, 0x8d, 0x84, 0x14, 0x16, 0x36, 0xb2, 0x49, 0x86, 0x65, 0x21, 0x99,
193	0x09, 0x9b, 0xcd, 0x71, 0xb1, 0xf3, 0xa9, 0x7c, 0x3d, 0xc9, 0x1f, 0x72, 0xdc, 0x81, 0xa4, 0x9c,
194	0xc9, 0xf7, 0xfb, 0x32, 0x3b, 0xc3, 0x85, 0x26, 0xd2, 0x05, 0xc8, 0xac, 0xa0, 0x26, 0x97, 0x39,
195	0x65, 0x4d, 0x09, 0xe8, 0x94, 0x91, 0xdb, 0x30, 0x05, 0xa7, 0x42, 0xa9, 0x81, 0x4a, 0x70, 0xb6,
196	0x15, 0x95, 0x25, 0x47, 0xfe, 0xed, 0xc0, 0x8b, 0x9e, 0x17, 0x7b, 0x5e, 0x8c, 0xfc, 0xf5, 0xcd,
197	0x28, 0x54, 0x95, 0x91, 0x0a, 0x91, 0x9c, 0x72, 0x86, 0xb0, 0x1e, 0xe2, 0xeb, 0x7b, 0xbe, 0xf8,
198	0x00, 0xeb, 0x60, 0xe7, 0x2f, 0x39, 0xdb, 0x05, 0x6c, 0xc5, 0x36, 0xa7, 0x09, 0xeb, 0xab, 0x36,
199	0xf0, 0x86, 0xaa, 0x5d, 0x0b, 0x7e, 0xf9, 0x4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