Skip to content

Commit 2392a15

Browse files
feat: generating GAPIC code for v1p2beta1 (googleapis#33)
* feat: generating GAPIC code for v1p2beta1
1 parent ff3dd8e commit 2392a15

21 files changed

+4323
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@google-cloud/vision",
33
"description": "Google Cloud Vision API client for Node.js",
4-
"version": "0.15.2",
4+
"version": "0.16.0",
55
"license": "Apache-2.0",
66
"author": "Google Inc",
77
"engines": {
@@ -64,7 +64,8 @@
6464
"google-gax": "^0.14.2",
6565
"google-proto-files": "^0.15.0",
6666
"is": "^3.0.1",
67-
"lodash.merge": "^4.6.0"
67+
"lodash.merge": "^4.6.0",
68+
"protobufjs": "^6.8.6"
6869
},
6970
"devDependencies": {
7071
"@google-cloud/nodejs-repo-tools": "^2.1.1",
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Copyright 2018 Google Inc.
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+
syntax = "proto3";
16+
17+
package google.cloud.vision.v1p2beta1;
18+
19+
option cc_enable_arenas = true;
20+
option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "GeometryProto";
23+
option java_package = "com.google.cloud.vision.v1p2beta1";
24+
25+
26+
// A vertex represents a 2D point in the image.
27+
// NOTE: the vertex coordinates are in the same scale as the original image.
28+
message Vertex {
29+
// X coordinate.
30+
int32 x = 1;
31+
32+
// Y coordinate.
33+
int32 y = 2;
34+
}
35+
36+
// A bounding polygon for the detected image annotation.
37+
message BoundingPoly {
38+
// The bounding polygon vertices.
39+
repeated Vertex vertices = 1;
40+
}
41+
42+
// A 3D position in the image, used primarily for Face detection landmarks.
43+
// A valid Position must have both x and y coordinates.
44+
// The position coordinates are in the same scale as the original image.
45+
message Position {
46+
// X coordinate.
47+
float x = 1;
48+
49+
// Y coordinate.
50+
float y = 2;
51+
52+
// Z coordinate (or depth).
53+
float z = 3;
54+
}

0 commit comments

Comments
 (0)