1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.22.0
18// 	protoc        v3.11.2
19// source: google/cloud/automl/v1/geometry.proto
20
21package automl
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	_ "google.golang.org/genproto/googleapis/api/annotations"
29	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31)
32
33const (
34	// Verify that this generated code is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36	// Verify that runtime/protoimpl is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38)
39
40// This is a compile-time assertion that a sufficiently up-to-date version
41// of the legacy proto package is being used.
42const _ = proto.ProtoPackageIsVersion4
43
44// A vertex represents a 2D point in the image.
45// The normalized vertex coordinates are between 0 to 1 fractions relative to
46// the original plane (image, video). E.g. if the plane (e.g. whole image) would
47// have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
48// be at the position (1, 6) on that plane.
49type NormalizedVertex struct {
50	state         protoimpl.MessageState
51	sizeCache     protoimpl.SizeCache
52	unknownFields protoimpl.UnknownFields
53
54	// Required. Horizontal coordinate.
55	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
56	// Required. Vertical coordinate.
57	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
58}
59
60func (x *NormalizedVertex) Reset() {
61	*x = NormalizedVertex{}
62	if protoimpl.UnsafeEnabled {
63		mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[0]
64		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65		ms.StoreMessageInfo(mi)
66	}
67}
68
69func (x *NormalizedVertex) String() string {
70	return protoimpl.X.MessageStringOf(x)
71}
72
73func (*NormalizedVertex) ProtoMessage() {}
74
75func (x *NormalizedVertex) ProtoReflect() protoreflect.Message {
76	mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[0]
77	if protoimpl.UnsafeEnabled && x != nil {
78		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79		if ms.LoadMessageInfo() == nil {
80			ms.StoreMessageInfo(mi)
81		}
82		return ms
83	}
84	return mi.MessageOf(x)
85}
86
87// Deprecated: Use NormalizedVertex.ProtoReflect.Descriptor instead.
88func (*NormalizedVertex) Descriptor() ([]byte, []int) {
89	return file_google_cloud_automl_v1_geometry_proto_rawDescGZIP(), []int{0}
90}
91
92func (x *NormalizedVertex) GetX() float32 {
93	if x != nil {
94		return x.X
95	}
96	return 0
97}
98
99func (x *NormalizedVertex) GetY() float32 {
100	if x != nil {
101		return x.Y
102	}
103	return 0
104}
105
106// A bounding polygon of a detected object on a plane.
107// On output both vertices and normalized_vertices are provided.
108// The polygon is formed by connecting vertices in the order they are listed.
109type BoundingPoly struct {
110	state         protoimpl.MessageState
111	sizeCache     protoimpl.SizeCache
112	unknownFields protoimpl.UnknownFields
113
114	// Output only . The bounding polygon normalized vertices.
115	NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
116}
117
118func (x *BoundingPoly) Reset() {
119	*x = BoundingPoly{}
120	if protoimpl.UnsafeEnabled {
121		mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[1]
122		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123		ms.StoreMessageInfo(mi)
124	}
125}
126
127func (x *BoundingPoly) String() string {
128	return protoimpl.X.MessageStringOf(x)
129}
130
131func (*BoundingPoly) ProtoMessage() {}
132
133func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
134	mi := &file_google_cloud_automl_v1_geometry_proto_msgTypes[1]
135	if protoimpl.UnsafeEnabled && x != nil {
136		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137		if ms.LoadMessageInfo() == nil {
138			ms.StoreMessageInfo(mi)
139		}
140		return ms
141	}
142	return mi.MessageOf(x)
143}
144
145// Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
146func (*BoundingPoly) Descriptor() ([]byte, []int) {
147	return file_google_cloud_automl_v1_geometry_proto_rawDescGZIP(), []int{1}
148}
149
150func (x *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
151	if x != nil {
152		return x.NormalizedVertices
153	}
154	return nil
155}
156
157var File_google_cloud_automl_v1_geometry_proto protoreflect.FileDescriptor
158
159var file_google_cloud_automl_v1_geometry_proto_rawDesc = []byte{
160	0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
161	0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72,
162	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
163	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x1a,
164	0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
165	0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a,
166	0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x74, 0x65,
167	0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78, 0x12,
168	0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x22, 0x69, 0x0a,
169	0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x12, 0x59, 0x0a,
170	0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74,
171	0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f,
172	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c,
173	0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65,
174	0x72, 0x74, 0x65, 0x78, 0x52, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64,
175	0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x42, 0xaa, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d,
176	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75,
177	0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
178	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
179	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
180	0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31,
181	0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0xaa, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
182	0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x2e, 0x56, 0x31,
183	0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
184	0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67,
185	0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d,
186	0x4c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
187}
188
189var (
190	file_google_cloud_automl_v1_geometry_proto_rawDescOnce sync.Once
191	file_google_cloud_automl_v1_geometry_proto_rawDescData = file_google_cloud_automl_v1_geometry_proto_rawDesc
192)
193
194func file_google_cloud_automl_v1_geometry_proto_rawDescGZIP() []byte {
195	file_google_cloud_automl_v1_geometry_proto_rawDescOnce.Do(func() {
196		file_google_cloud_automl_v1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1_geometry_proto_rawDescData)
197	})
198	return file_google_cloud_automl_v1_geometry_proto_rawDescData
199}
200
201var file_google_cloud_automl_v1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
202var file_google_cloud_automl_v1_geometry_proto_goTypes = []interface{}{
203	(*NormalizedVertex)(nil), // 0: google.cloud.automl.v1.NormalizedVertex
204	(*BoundingPoly)(nil),     // 1: google.cloud.automl.v1.BoundingPoly
205}
206var file_google_cloud_automl_v1_geometry_proto_depIdxs = []int32{
207	0, // 0: google.cloud.automl.v1.BoundingPoly.normalized_vertices:type_name -> google.cloud.automl.v1.NormalizedVertex
208	1, // [1:1] is the sub-list for method output_type
209	1, // [1:1] is the sub-list for method input_type
210	1, // [1:1] is the sub-list for extension type_name
211	1, // [1:1] is the sub-list for extension extendee
212	0, // [0:1] is the sub-list for field type_name
213}
214
215func init() { file_google_cloud_automl_v1_geometry_proto_init() }
216func file_google_cloud_automl_v1_geometry_proto_init() {
217	if File_google_cloud_automl_v1_geometry_proto != nil {
218		return
219	}
220	if !protoimpl.UnsafeEnabled {
221		file_google_cloud_automl_v1_geometry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
222			switch v := v.(*NormalizedVertex); i {
223			case 0:
224				return &v.state
225			case 1:
226				return &v.sizeCache
227			case 2:
228				return &v.unknownFields
229			default:
230				return nil
231			}
232		}
233		file_google_cloud_automl_v1_geometry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
234			switch v := v.(*BoundingPoly); i {
235			case 0:
236				return &v.state
237			case 1:
238				return &v.sizeCache
239			case 2:
240				return &v.unknownFields
241			default:
242				return nil
243			}
244		}
245	}
246	type x struct{}
247	out := protoimpl.TypeBuilder{
248		File: protoimpl.DescBuilder{
249			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
250			RawDescriptor: file_google_cloud_automl_v1_geometry_proto_rawDesc,
251			NumEnums:      0,
252			NumMessages:   2,
253			NumExtensions: 0,
254			NumServices:   0,
255		},
256		GoTypes:           file_google_cloud_automl_v1_geometry_proto_goTypes,
257		DependencyIndexes: file_google_cloud_automl_v1_geometry_proto_depIdxs,
258		MessageInfos:      file_google_cloud_automl_v1_geometry_proto_msgTypes,
259	}.Build()
260	File_google_cloud_automl_v1_geometry_proto = out.File
261	file_google_cloud_automl_v1_geometry_proto_rawDesc = nil
262	file_google_cloud_automl_v1_geometry_proto_goTypes = nil
263	file_google_cloud_automl_v1_geometry_proto_depIdxs = nil
264}
265