1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.documentai.v1; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.DocumentAI.V1"; 20*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; 21*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 22*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "GeometryProto"; 23*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.documentai.v1"; 24*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\DocumentAI\\V1"; 25*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::DocumentAI::V1"; 26*d5c09012SAndroid Build Coastguard Worker 27*d5c09012SAndroid Build Coastguard Worker// A vertex represents a 2D point in the image. 28*d5c09012SAndroid Build Coastguard Worker// NOTE: the vertex coordinates are in the same scale as the original image. 29*d5c09012SAndroid Build Coastguard Workermessage Vertex { 30*d5c09012SAndroid Build Coastguard Worker // X coordinate. 31*d5c09012SAndroid Build Coastguard Worker int32 x = 1; 32*d5c09012SAndroid Build Coastguard Worker 33*d5c09012SAndroid Build Coastguard Worker // Y coordinate (starts from the top of the image). 34*d5c09012SAndroid Build Coastguard Worker int32 y = 2; 35*d5c09012SAndroid Build Coastguard Worker} 36*d5c09012SAndroid Build Coastguard Worker 37*d5c09012SAndroid Build Coastguard Worker// A vertex represents a 2D point in the image. 38*d5c09012SAndroid Build Coastguard Worker// NOTE: the normalized vertex coordinates are relative to the original image 39*d5c09012SAndroid Build Coastguard Worker// and range from 0 to 1. 40*d5c09012SAndroid Build Coastguard Workermessage NormalizedVertex { 41*d5c09012SAndroid Build Coastguard Worker // X coordinate. 42*d5c09012SAndroid Build Coastguard Worker float x = 1; 43*d5c09012SAndroid Build Coastguard Worker 44*d5c09012SAndroid Build Coastguard Worker // Y coordinate (starts from the top of the image). 45*d5c09012SAndroid Build Coastguard Worker float y = 2; 46*d5c09012SAndroid Build Coastguard Worker} 47*d5c09012SAndroid Build Coastguard Worker 48*d5c09012SAndroid Build Coastguard Worker// A bounding polygon for the detected image annotation. 49*d5c09012SAndroid Build Coastguard Workermessage BoundingPoly { 50*d5c09012SAndroid Build Coastguard Worker // The bounding polygon vertices. 51*d5c09012SAndroid Build Coastguard Worker repeated Vertex vertices = 1; 52*d5c09012SAndroid Build Coastguard Worker 53*d5c09012SAndroid Build Coastguard Worker // The bounding polygon normalized vertices. 54*d5c09012SAndroid Build Coastguard Worker repeated NormalizedVertex normalized_vertices = 2; 55*d5c09012SAndroid Build Coastguard Worker} 56