1// Copyright 2019 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
16// Code generated by protoc-gen-go. DO NOT EDIT.
17// versions:
18// 	protoc-gen-go v1.22.0
19// 	protoc        v3.11.2
20// source: google/cloud/vision/v1p4beta1/geometry.proto
21
22package vision
23
24import (
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
29	_ "google.golang.org/genproto/googleapis/api/annotations"
30	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32)
33
34const (
35	// Verify that this generated code is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37	// Verify that runtime/protoimpl is sufficiently up-to-date.
38	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39)
40
41// This is a compile-time assertion that a sufficiently up-to-date version
42// of the legacy proto package is being used.
43const _ = proto.ProtoPackageIsVersion4
44
45// A vertex represents a 2D point in the image.
46// NOTE: the vertex coordinates are in the same scale as the original image.
47type Vertex struct {
48	state         protoimpl.MessageState
49	sizeCache     protoimpl.SizeCache
50	unknownFields protoimpl.UnknownFields
51
52	// X coordinate.
53	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
54	// Y coordinate.
55	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
56}
57
58func (x *Vertex) Reset() {
59	*x = Vertex{}
60	if protoimpl.UnsafeEnabled {
61		mi := &file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[0]
62		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63		ms.StoreMessageInfo(mi)
64	}
65}
66
67func (x *Vertex) String() string {
68	return protoimpl.X.MessageStringOf(x)
69}
70
71func (*Vertex) ProtoMessage() {}
72
73func (x *Vertex) ProtoReflect() protoreflect.Message {
74	mi := &file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[0]
75	if protoimpl.UnsafeEnabled && x != nil {
76		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77		if ms.LoadMessageInfo() == nil {
78			ms.StoreMessageInfo(mi)
79		}
80		return ms
81	}
82	return mi.MessageOf(x)
83}
84
85// Deprecated: Use Vertex.ProtoReflect.Descriptor instead.
86func (*Vertex) Descriptor() ([]byte, []int) {
87	return file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescGZIP(), []int{0}
88}
89
90func (x *Vertex) GetX() int32 {
91	if x != nil {
92		return x.X
93	}
94	return 0
95}
96
97func (x *Vertex) GetY() int32 {
98	if x != nil {
99		return x.Y
100	}
101	return 0
102}
103
104// A vertex represents a 2D point in the image.
105// NOTE: the normalized vertex coordinates are relative to the original image
106// and range from 0 to 1.
107type NormalizedVertex struct {
108	state         protoimpl.MessageState
109	sizeCache     protoimpl.SizeCache
110	unknownFields protoimpl.UnknownFields
111
112	// X coordinate.
113	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
114	// Y coordinate.
115	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
116}
117
118func (x *NormalizedVertex) Reset() {
119	*x = NormalizedVertex{}
120	if protoimpl.UnsafeEnabled {
121		mi := &file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[1]
122		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123		ms.StoreMessageInfo(mi)
124	}
125}
126
127func (x *NormalizedVertex) String() string {
128	return protoimpl.X.MessageStringOf(x)
129}
130
131func (*NormalizedVertex) ProtoMessage() {}
132
133func (x *NormalizedVertex) ProtoReflect() protoreflect.Message {
134	mi := &file_google_cloud_vision_v1p4beta1_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 NormalizedVertex.ProtoReflect.Descriptor instead.
146func (*NormalizedVertex) Descriptor() ([]byte, []int) {
147	return file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescGZIP(), []int{1}
148}
149
150func (x *NormalizedVertex) GetX() float32 {
151	if x != nil {
152		return x.X
153	}
154	return 0
155}
156
157func (x *NormalizedVertex) GetY() float32 {
158	if x != nil {
159		return x.Y
160	}
161	return 0
162}
163
164// A bounding polygon for the detected image annotation.
165type BoundingPoly struct {
166	state         protoimpl.MessageState
167	sizeCache     protoimpl.SizeCache
168	unknownFields protoimpl.UnknownFields
169
170	// The bounding polygon vertices.
171	Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
172	// The bounding polygon normalized vertices.
173	NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
174}
175
176func (x *BoundingPoly) Reset() {
177	*x = BoundingPoly{}
178	if protoimpl.UnsafeEnabled {
179		mi := &file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[2]
180		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181		ms.StoreMessageInfo(mi)
182	}
183}
184
185func (x *BoundingPoly) String() string {
186	return protoimpl.X.MessageStringOf(x)
187}
188
189func (*BoundingPoly) ProtoMessage() {}
190
191func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
192	mi := &file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[2]
193	if protoimpl.UnsafeEnabled && x != nil {
194		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
195		if ms.LoadMessageInfo() == nil {
196			ms.StoreMessageInfo(mi)
197		}
198		return ms
199	}
200	return mi.MessageOf(x)
201}
202
203// Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
204func (*BoundingPoly) Descriptor() ([]byte, []int) {
205	return file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescGZIP(), []int{2}
206}
207
208func (x *BoundingPoly) GetVertices() []*Vertex {
209	if x != nil {
210		return x.Vertices
211	}
212	return nil
213}
214
215func (x *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
216	if x != nil {
217		return x.NormalizedVertices
218	}
219	return nil
220}
221
222// A 3D position in the image, used primarily for Face detection landmarks.
223// A valid Position must have both x and y coordinates.
224// The position coordinates are in the same scale as the original image.
225type Position struct {
226	state         protoimpl.MessageState
227	sizeCache     protoimpl.SizeCache
228	unknownFields protoimpl.UnknownFields
229
230	// X coordinate.
231	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
232	// Y coordinate.
233	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
234	// Z coordinate (or depth).
235	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
236}
237
238func (x *Position) Reset() {
239	*x = Position{}
240	if protoimpl.UnsafeEnabled {
241		mi := &file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[3]
242		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
243		ms.StoreMessageInfo(mi)
244	}
245}
246
247func (x *Position) String() string {
248	return protoimpl.X.MessageStringOf(x)
249}
250
251func (*Position) ProtoMessage() {}
252
253func (x *Position) ProtoReflect() protoreflect.Message {
254	mi := &file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[3]
255	if protoimpl.UnsafeEnabled && x != nil {
256		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
257		if ms.LoadMessageInfo() == nil {
258			ms.StoreMessageInfo(mi)
259		}
260		return ms
261	}
262	return mi.MessageOf(x)
263}
264
265// Deprecated: Use Position.ProtoReflect.Descriptor instead.
266func (*Position) Descriptor() ([]byte, []int) {
267	return file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescGZIP(), []int{3}
268}
269
270func (x *Position) GetX() float32 {
271	if x != nil {
272		return x.X
273	}
274	return 0
275}
276
277func (x *Position) GetY() float32 {
278	if x != nil {
279		return x.Y
280	}
281	return 0
282}
283
284func (x *Position) GetZ() float32 {
285	if x != nil {
286		return x.Z
287	}
288	return 0
289}
290
291var File_google_cloud_vision_v1p4beta1_geometry_proto protoreflect.FileDescriptor
292
293var file_google_cloud_vision_v1p4beta1_geometry_proto_rawDesc = []byte{
294	0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
295	0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
296	0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d,
297	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
298	0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67,
299	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
300	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x24, 0x0a, 0x06, 0x56,
301	0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
302	0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01,
303	0x79, 0x22, 0x2e, 0x0a, 0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56,
304	0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02,
305	0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01,
306	0x79, 0x22, 0xb3, 0x01, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f,
307	0x6c, 0x79, 0x12, 0x41, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01,
308	0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
309	0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62,
310	0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x08, 0x76, 0x65, 0x72,
311	0x74, 0x69, 0x63, 0x65, 0x73, 0x12, 0x60, 0x0a, 0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69,
312	0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,
313	0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
314	0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74,
315	0x61, 0x31, 0x2e, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72,
316	0x74, 0x65, 0x78, 0x52, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56,
317	0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74,
318	0x69, 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01,
319	0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x12,
320	0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x42, 0x83, 0x01,
321	0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
322	0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65,
323	0x74, 0x61, 0x31, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f,
324	0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
325	0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
326	0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
327	0x64, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74,
328	0x61, 0x31, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47,
329	0x43, 0x56, 0x4e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
330}
331
332var (
333	file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescOnce sync.Once
334	file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescData = file_google_cloud_vision_v1p4beta1_geometry_proto_rawDesc
335)
336
337func file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescGZIP() []byte {
338	file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescOnce.Do(func() {
339		file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescData)
340	})
341	return file_google_cloud_vision_v1p4beta1_geometry_proto_rawDescData
342}
343
344var file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
345var file_google_cloud_vision_v1p4beta1_geometry_proto_goTypes = []interface{}{
346	(*Vertex)(nil),           // 0: google.cloud.vision.v1p4beta1.Vertex
347	(*NormalizedVertex)(nil), // 1: google.cloud.vision.v1p4beta1.NormalizedVertex
348	(*BoundingPoly)(nil),     // 2: google.cloud.vision.v1p4beta1.BoundingPoly
349	(*Position)(nil),         // 3: google.cloud.vision.v1p4beta1.Position
350}
351var file_google_cloud_vision_v1p4beta1_geometry_proto_depIdxs = []int32{
352	0, // 0: google.cloud.vision.v1p4beta1.BoundingPoly.vertices:type_name -> google.cloud.vision.v1p4beta1.Vertex
353	1, // 1: google.cloud.vision.v1p4beta1.BoundingPoly.normalized_vertices:type_name -> google.cloud.vision.v1p4beta1.NormalizedVertex
354	2, // [2:2] is the sub-list for method output_type
355	2, // [2:2] is the sub-list for method input_type
356	2, // [2:2] is the sub-list for extension type_name
357	2, // [2:2] is the sub-list for extension extendee
358	0, // [0:2] is the sub-list for field type_name
359}
360
361func init() { file_google_cloud_vision_v1p4beta1_geometry_proto_init() }
362func file_google_cloud_vision_v1p4beta1_geometry_proto_init() {
363	if File_google_cloud_vision_v1p4beta1_geometry_proto != nil {
364		return
365	}
366	if !protoimpl.UnsafeEnabled {
367		file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
368			switch v := v.(*Vertex); i {
369			case 0:
370				return &v.state
371			case 1:
372				return &v.sizeCache
373			case 2:
374				return &v.unknownFields
375			default:
376				return nil
377			}
378		}
379		file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
380			switch v := v.(*NormalizedVertex); i {
381			case 0:
382				return &v.state
383			case 1:
384				return &v.sizeCache
385			case 2:
386				return &v.unknownFields
387			default:
388				return nil
389			}
390		}
391		file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
392			switch v := v.(*BoundingPoly); i {
393			case 0:
394				return &v.state
395			case 1:
396				return &v.sizeCache
397			case 2:
398				return &v.unknownFields
399			default:
400				return nil
401			}
402		}
403		file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
404			switch v := v.(*Position); i {
405			case 0:
406				return &v.state
407			case 1:
408				return &v.sizeCache
409			case 2:
410				return &v.unknownFields
411			default:
412				return nil
413			}
414		}
415	}
416	type x struct{}
417	out := protoimpl.TypeBuilder{
418		File: protoimpl.DescBuilder{
419			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
420			RawDescriptor: file_google_cloud_vision_v1p4beta1_geometry_proto_rawDesc,
421			NumEnums:      0,
422			NumMessages:   4,
423			NumExtensions: 0,
424			NumServices:   0,
425		},
426		GoTypes:           file_google_cloud_vision_v1p4beta1_geometry_proto_goTypes,
427		DependencyIndexes: file_google_cloud_vision_v1p4beta1_geometry_proto_depIdxs,
428		MessageInfos:      file_google_cloud_vision_v1p4beta1_geometry_proto_msgTypes,
429	}.Build()
430	File_google_cloud_vision_v1p4beta1_geometry_proto = out.File
431	file_google_cloud_vision_v1p4beta1_geometry_proto_rawDesc = nil
432	file_google_cloud_vision_v1p4beta1_geometry_proto_goTypes = nil
433	file_google_cloud_vision_v1p4beta1_geometry_proto_depIdxs = nil
434}
435