| 1 |
// Copyright 2022 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 aliasgen. DO NOT EDIT. |
| 16 |
|
| 17 |
// Package vision aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package vision |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 31 |
const ( |
| 32 |
Block_BARCODE = src.Block_BARCODE |
| 33 |
Block_PICTURE = src.Block_PICTURE |
| 34 |
Block_RULER = src.Block_RULER |
| 35 |
Block_TABLE = src.Block_TABLE |
| 36 |
Block_TEXT = src.Block_TEXT |
| 37 |
Block_UNKNOWN = src.Block_UNKNOWN |
| 38 |
FaceAnnotation_Landmark_CHIN_GNATHION = src.FaceAnnotation_Landmark_CHIN_GNATHION |
| 39 |
FaceAnnotation_Landmark_CHIN_LEFT_GONION = src.FaceAnnotation_Landmark_CHIN_LEFT_GONION |
| 40 |
FaceAnnotation_Landmark_CHIN_RIGHT_GONION = src.FaceAnnotation_Landmark_CHIN_RIGHT_GONION |
| 41 |
FaceAnnotation_Landmark_FOREHEAD_GLABELLA = src.FaceAnnotation_Landmark_FOREHEAD_GLABELLA |
| 42 |
FaceAnnotation_Landmark_LEFT_EAR_TRAGION = src.FaceAnnotation_Landmark_LEFT_EAR_TRAGION |
| 43 |
FaceAnnotation_Landmark_LEFT_EYE = src.FaceAnnotation_Landmark_LEFT_EYE |
| 44 |
FaceAnnotation_Landmark_LEFT_EYEBROW_UPPER_MIDPOINT = src.FaceAnnotation_Landmark_LEFT_EYEBROW_UPPER_MIDPOINT |
| 45 |
FaceAnnotation_Landmark_LEFT_EYE_BOTTOM_BOUNDARY = src.FaceAnnotation_Landmark_LEFT_EYE_BOTTOM_BOUNDARY |
| 46 |
FaceAnnotation_Landmark_LEFT_EYE_LEFT_CORNER = src.FaceAnnotation_Landmark_LEFT_EYE_LEFT_CORNER |
| 47 |
FaceAnnotation_Landmark_LEFT_EYE_PUPIL = src.FaceAnnotation_Landmark_LEFT_EYE_PUPIL |
| 48 |
FaceAnnotation_Landmark_LEFT_EYE_RIGHT_CORNER = src.FaceAnnotation_Landmark_LEFT_EYE_RIGHT_CORNER |
| 49 |
FaceAnnotation_Landmark_LEFT_EYE_TOP_BOUNDARY = src.FaceAnnotation_Landmark_LEFT_EYE_TOP_BOUNDARY |
| 50 |
FaceAnnotation_Landmark_LEFT_OF_LEFT_EYEBROW = src.FaceAnnotation_Landmark_LEFT_OF_LEFT_EYEBROW |
| 51 |
FaceAnnotation_Landmark_LEFT_OF_RIGHT_EYEBROW = src.FaceAnnotation_Landmark_LEFT_OF_RIGHT_EYEBROW |
| 52 |
FaceAnnotation_Landmark_LOWER_LIP = src.FaceAnnotation_Landmark_LOWER_LIP |
| 53 |
FaceAnnotation_Landmark_MIDPOINT_BETWEEN_EYES = src.FaceAnnotation_Landmark_MIDPOINT_BETWEEN_EYES |
| 54 |
FaceAnnotation_Landmark_MOUTH_CENTER = src.FaceAnnotation_Landmark_MOUTH_CENTER |
| 55 |
FaceAnnotation_Landmark_MOUTH_LEFT = src.FaceAnnotation_Landmark_MOUTH_LEFT |
| 56 |
FaceAnnotation_Landmark_MOUTH_RIGHT = src.FaceAnnotation_Landmark_MOUTH_RIGHT |
| 57 |
FaceAnnotation_Landmark_NOSE_BOTTOM_CENTER = src.FaceAnnotation_Landmark_NOSE_BOTTOM_CENTER |
| 58 |
FaceAnnotation_Landmark_NOSE_BOTTOM_LEFT = src.FaceAnnotation_Landmark_NOSE_BOTTOM_LEFT |
| 59 |
FaceAnnotation_Landmark_NOSE_BOTTOM_RIGHT = src.FaceAnnotation_Landmark_NOSE_BOTTOM_RIGHT |
| 60 |
FaceAnnotation_Landmark_NOSE_TIP = src.FaceAnnotation_Landmark_NOSE_TIP |
| 61 |
FaceAnnotation_Landmark_RIGHT_EAR_TRAGION = src.FaceAnnotation_Landmark_RIGHT_EAR_TRAGION |
| 62 |
FaceAnnotation_Landmark_RIGHT_EYE = src.FaceAnnotation_Landmark_RIGHT_EYE |
| 63 |
FaceAnnotation_Landmark_RIGHT_EYEBROW_UPPER_MIDPOINT = src.FaceAnnotation_Landmark_RIGHT_EYEBROW_UPPER_MIDPOINT |
| 64 |
FaceAnnotation_Landmark_RIGHT_EYE_BOTTOM_BOUNDARY = src.FaceAnnotation_Landmark_RIGHT_EYE_BOTTOM_BOUNDARY |
| 65 |
FaceAnnotation_Landmark_RIGHT_EYE_LEFT_CORNER = src.FaceAnnotation_Landmark_RIGHT_EYE_LEFT_CORNER |
| 66 |
FaceAnnotation_Landmark_RIGHT_EYE_PUPIL = src.FaceAnnotation_Landmark_RIGHT_EYE_PUPIL |
| 67 |
FaceAnnotation_Landmark_RIGHT_EYE_RIGHT_CORNER = src.FaceAnnotation_Landmark_RIGHT_EYE_RIGHT_CORNER |
| 68 |
FaceAnnotation_Landmark_RIGHT_EYE_TOP_BOUNDARY = src.FaceAnnotation_Landmark_RIGHT_EYE_TOP_BOUNDARY |
| 69 |
FaceAnnotation_Landmark_RIGHT_OF_LEFT_EYEBROW = src.FaceAnnotation_Landmark_RIGHT_OF_LEFT_EYEBROW |
| 70 |
FaceAnnotation_Landmark_RIGHT_OF_RIGHT_EYEBROW = src.FaceAnnotation_Landmark_RIGHT_OF_RIGHT_EYEBROW |
| 71 |
FaceAnnotation_Landmark_UNKNOWN_LANDMARK = src.FaceAnnotation_Landmark_UNKNOWN_LANDMARK |
| 72 |
FaceAnnotation_Landmark_UPPER_LIP = src.FaceAnnotation_Landmark_UPPER_LIP |
| 73 |
Feature_CROP_HINTS = src.Feature_CROP_HINTS |
| 74 |
Feature_DOCUMENT_TEXT_DETECTION = src.Feature_DOCUMENT_TEXT_DETECTION |
| 75 |
Feature_FACE_DETECTION = src.Feature_FACE_DETECTION |
| 76 |
Feature_IMAGE_PROPERTIES = src.Feature_IMAGE_PROPERTIES |
| 77 |
Feature_LABEL_DETECTION = src.Feature_LABEL_DETECTION |
| 78 |
Feature_LANDMARK_DETECTION = src.Feature_LANDMARK_DETECTION |
| 79 |
Feature_LOGO_DETECTION = src.Feature_LOGO_DETECTION |
| 80 |
Feature_SAFE_SEARCH_DETECTION = src.Feature_SAFE_SEARCH_DETECTION |
| 81 |
Feature_TEXT_DETECTION = src.Feature_TEXT_DETECTION |
| 82 |
Feature_TYPE_UNSPECIFIED = src.Feature_TYPE_UNSPECIFIED |
| 83 |
Feature_WEB_DETECTION = src.Feature_WEB_DETECTION |
| 84 |
Likelihood_LIKELY = src.Likelihood_LIKELY |
| 85 |
Likelihood_POSSIBLE = src.Likelihood_POSSIBLE |
| 86 |
Likelihood_UNKNOWN = src.Likelihood_UNKNOWN |
| 87 |
Likelihood_UNLIKELY = src.Likelihood_UNLIKELY |
| 88 |
Likelihood_VERY_LIKELY = src.Likelihood_VERY_LIKELY |
| 89 |
Likelihood_VERY_UNLIKELY = src.Likelihood_VERY_UNLIKELY |
| 90 |
TextAnnotation_DetectedBreak_EOL_SURE_SPACE = src.TextAnnotation_DetectedBreak_EOL_SURE_SPACE |
| 91 |
TextAnnotation_DetectedBreak_HYPHEN = src.TextAnnotation_DetectedBreak_HYPHEN |
| 92 |
TextAnnotation_DetectedBreak_LINE_BREAK = src.TextAnnotation_DetectedBreak_LINE_BREAK |
| 93 |
TextAnnotation_DetectedBreak_SPACE = src.TextAnnotation_DetectedBreak_SPACE |
| 94 |
TextAnnotation_DetectedBreak_SURE_SPACE = src.TextAnnotation_DetectedBreak_SURE_SPACE |
| 95 |
TextAnnotation_DetectedBreak_UNKNOWN = src.TextAnnotation_DetectedBreak_UNKNOWN |
| 96 |
) |
| 97 |
|
| 98 |
// Deprecated: Please use vars in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 99 |
var ( |
| 100 |
Block_BlockType_name = src.Block_BlockType_name |
| 101 |
Block_BlockType_value = src.Block_BlockType_value |
| 102 |
FaceAnnotation_Landmark_Type_name = src.FaceAnnotation_Landmark_Type_name |
| 103 |
FaceAnnotation_Landmark_Type_value = src.FaceAnnotation_Landmark_Type_value |
| 104 |
Feature_Type_name = src.Feature_Type_name |
| 105 |
Feature_Type_value = src.Feature_Type_value |
| 106 |
File_google_cloud_vision_v1p1beta1_geometry_proto = src.File_google_cloud_vision_v1p1beta1_geometry_proto |
| 107 |
File_google_cloud_vision_v1p1beta1_image_annotator_proto = src.File_google_cloud_vision_v1p1beta1_image_annotator_proto |
| 108 |
File_google_cloud_vision_v1p1beta1_text_annotation_proto = src.File_google_cloud_vision_v1p1beta1_text_annotation_proto |
| 109 |
File_google_cloud_vision_v1p1beta1_web_detection_proto = src.File_google_cloud_vision_v1p1beta1_web_detection_proto |
| 110 |
Likelihood_name = src.Likelihood_name |
| 111 |
Likelihood_value = src.Likelihood_value |
| 112 |
TextAnnotation_DetectedBreak_BreakType_name = src.TextAnnotation_DetectedBreak_BreakType_name |
| 113 |
TextAnnotation_DetectedBreak_BreakType_value = src.TextAnnotation_DetectedBreak_BreakType_value |
| 114 |
) |
| 115 |
|
| 116 |
// Request for performing Google Cloud Vision API tasks over a user-provided |
| 117 |
// image, with user-requested features. |
| 118 |
// |
| 119 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 120 |
type AnnotateImageRequest = src.AnnotateImageRequest |
| 121 |
|
| 122 |
// Response to an image annotation request. |
| 123 |
// |
| 124 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 125 |
type AnnotateImageResponse = src.AnnotateImageResponse |
| 126 |
|
| 127 |
// Multiple image annotation requests are batched into a single service call. |
| 128 |
// |
| 129 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 130 |
type BatchAnnotateImagesRequest = src.BatchAnnotateImagesRequest |
| 131 |
|
| 132 |
// Response to a batch image annotation request. |
| 133 |
// |
| 134 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 135 |
type BatchAnnotateImagesResponse = src.BatchAnnotateImagesResponse |
| 136 |
|
| 137 |
// Logical element on the page. |
| 138 |
// |
| 139 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 140 |
type Block = src.Block |
| 141 |
|
| 142 |
// Type of a block (text, image etc) as identified by OCR. |
| 143 |
// |
| 144 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 145 |
type Block_BlockType = src.Block_BlockType |
| 146 |
|
| 147 |
// A bounding polygon for the detected image annotation. |
| 148 |
// |
| 149 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 150 |
type BoundingPoly = src.BoundingPoly |
| 151 |
|
| 152 |
// Color information consists of RGB channels, score, and the fraction of the |
| 153 |
// image that the color occupies in the image. |
| 154 |
// |
| 155 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 156 |
type ColorInfo = src.ColorInfo |
| 157 |
|
| 158 |
// Single crop hint that is used to generate a new crop when serving an image. |
| 159 |
// |
| 160 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 161 |
type CropHint = src.CropHint |
| 162 |
|
| 163 |
// Set of crop hints that are used to generate new crops when serving images. |
| 164 |
// |
| 165 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 166 |
type CropHintsAnnotation = src.CropHintsAnnotation |
| 167 |
|
| 168 |
// Parameters for crop hints annotation request. |
| 169 |
// |
| 170 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 171 |
type CropHintsParams = src.CropHintsParams |
| 172 |
|
| 173 |
// Set of dominant colors and their corresponding scores. |
| 174 |
// |
| 175 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 176 |
type DominantColorsAnnotation = src.DominantColorsAnnotation |
| 177 |
|
| 178 |
// Set of detected entity features. |
| 179 |
// |
| 180 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 181 |
type EntityAnnotation = src.EntityAnnotation |
| 182 |
|
| 183 |
// A face annotation object contains the results of face detection. |
| 184 |
// |
| 185 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 186 |
type FaceAnnotation = src.FaceAnnotation |
| 187 |
|
| 188 |
// A face-specific landmark (for example, a face feature). |
| 189 |
// |
| 190 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 191 |
type FaceAnnotation_Landmark = src.FaceAnnotation_Landmark |
| 192 |
|
| 193 |
// Face landmark (feature) type. Left and right are defined from the vantage |
| 194 |
// of the viewer of the image without considering mirror projections typical of |
| 195 |
// photos. So, `LEFT_EYE`, typically, is the person's right eye. |
| 196 |
// |
| 197 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 198 |
type FaceAnnotation_Landmark_Type = src.FaceAnnotation_Landmark_Type |
| 199 |
|
| 200 |
// Users describe the type of Google Cloud Vision API tasks to perform over |
| 201 |
// images by using *Feature*s. Each Feature indicates a type of image detection |
| 202 |
// task to perform. Features encode the Cloud Vision API vertical to operate on |
| 203 |
// and the number of top-scoring results to return. |
| 204 |
// |
| 205 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 206 |
type Feature = src.Feature |
| 207 |
|
| 208 |
// Type of image feature. |
| 209 |
// |
| 210 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 211 |
type Feature_Type = src.Feature_Type |
| 212 |
|
| 213 |
// Client image to perform Google Cloud Vision API tasks over. |
| 214 |
// |
| 215 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 216 |
type Image = src.Image |
| 217 |
|
| 218 |
// ImageAnnotatorClient is the client API for ImageAnnotator service. For |
| 219 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 220 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 221 |
// |
| 222 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 223 |
type ImageAnnotatorClient = src.ImageAnnotatorClient |
| 224 |
|
| 225 |
// ImageAnnotatorServer is the server API for ImageAnnotator service. |
| 226 |
// |
| 227 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 228 |
type ImageAnnotatorServer = src.ImageAnnotatorServer |
| 229 |
|
| 230 |
// Image context and/or feature-specific parameters. |
| 231 |
// |
| 232 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 233 |
type ImageContext = src.ImageContext |
| 234 |
|
| 235 |
// Stores image properties, such as dominant colors. |
| 236 |
// |
| 237 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 238 |
type ImageProperties = src.ImageProperties |
| 239 |
|
| 240 |
// External image source (Google Cloud Storage image location). |
| 241 |
// |
| 242 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 243 |
type ImageSource = src.ImageSource |
| 244 |
|
| 245 |
// Rectangle determined by min and max `LatLng` pairs. |
| 246 |
// |
| 247 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 248 |
type LatLongRect = src.LatLongRect |
| 249 |
|
| 250 |
// A bucketized representation of likelihood, which is intended to give |
| 251 |
// clients highly stable results across model upgrades. |
| 252 |
// |
| 253 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 254 |
type Likelihood = src.Likelihood |
| 255 |
|
| 256 |
// Detected entity location information. |
| 257 |
// |
| 258 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 259 |
type LocationInfo = src.LocationInfo |
| 260 |
|
| 261 |
// Detected page from OCR. |
| 262 |
// |
| 263 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 264 |
type Page = src.Page |
| 265 |
|
| 266 |
// Structural unit of text representing a number of words in certain order. |
| 267 |
// |
| 268 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 269 |
type Paragraph = src.Paragraph |
| 270 |
|
| 271 |
// A 3D position in the image, used primarily for Face detection landmarks. A |
| 272 |
// valid Position must have both x and y coordinates. The position coordinates |
| 273 |
// are in the same scale as the original image. |
| 274 |
// |
| 275 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 276 |
type Position = src.Position |
| 277 |
|
| 278 |
// A `Property` consists of a user-supplied name/value pair. |
| 279 |
// |
| 280 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 281 |
type Property = src.Property |
| 282 |
|
| 283 |
// Set of features pertaining to the image, computed by computer vision |
| 284 |
// methods over safe-search verticals (for example, adult, spoof, medical, |
| 285 |
// violence). |
| 286 |
// |
| 287 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 288 |
type SafeSearchAnnotation = src.SafeSearchAnnotation |
| 289 |
|
| 290 |
// A single symbol representation. |
| 291 |
// |
| 292 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 293 |
type Symbol = src.Symbol |
| 294 |
|
| 295 |
// TextAnnotation contains a structured representation of OCR extracted text. |
| 296 |
// The hierarchy of an OCR extracted text structure is like this: |
| 297 |
// TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each |
| 298 |
// structural component, starting from Page, may further have their own |
| 299 |
// properties. Properties describe detected languages, breaks etc.. Please |
| 300 |
// refer to the |
| 301 |
// [TextAnnotation.TextProperty][google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty] |
| 302 |
// message definition below for more detail. |
| 303 |
// |
| 304 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 305 |
type TextAnnotation = src.TextAnnotation |
| 306 |
|
| 307 |
// Detected start or end of a structural component. |
| 308 |
// |
| 309 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 310 |
type TextAnnotation_DetectedBreak = src.TextAnnotation_DetectedBreak |
| 311 |
|
| 312 |
// Enum to denote the type of break found. New line, space etc. |
| 313 |
// |
| 314 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 315 |
type TextAnnotation_DetectedBreak_BreakType = src.TextAnnotation_DetectedBreak_BreakType |
| 316 |
|
| 317 |
// Detected language for a structural component. |
| 318 |
// |
| 319 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 320 |
type TextAnnotation_DetectedLanguage = src.TextAnnotation_DetectedLanguage |
| 321 |
|
| 322 |
// Additional information detected on the structural component. |
| 323 |
// |
| 324 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 325 |
type TextAnnotation_TextProperty = src.TextAnnotation_TextProperty |
| 326 |
|
| 327 |
// Parameters for text detections. This is used to control TEXT_DETECTION and |
| 328 |
// DOCUMENT_TEXT_DETECTION features. |
| 329 |
// |
| 330 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 331 |
type TextDetectionParams = src.TextDetectionParams |
| 332 |
|
| 333 |
// UnimplementedImageAnnotatorServer can be embedded to have forward |
| 334 |
// compatible implementations. |
| 335 |
// |
| 336 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 337 |
type UnimplementedImageAnnotatorServer = src.UnimplementedImageAnnotatorServer |
| 338 |
|
| 339 |
// A vertex represents a 2D point in the image. NOTE: the vertex coordinates |
| 340 |
// are in the same scale as the original image. |
| 341 |
// |
| 342 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 343 |
type Vertex = src.Vertex |
| 344 |
|
| 345 |
// Relevant information for the image from the Internet. |
| 346 |
// |
| 347 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 348 |
type WebDetection = src.WebDetection |
| 349 |
|
| 350 |
// Parameters for web detection request. |
| 351 |
// |
| 352 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 353 |
type WebDetectionParams = src.WebDetectionParams |
| 354 |
|
| 355 |
// Entity deduced from similar images on the Internet. |
| 356 |
// |
| 357 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 358 |
type WebDetection_WebEntity = src.WebDetection_WebEntity |
| 359 |
|
| 360 |
// Metadata for online images. |
| 361 |
// |
| 362 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 363 |
type WebDetection_WebImage = src.WebDetection_WebImage |
| 364 |
|
| 365 |
// Label to provide extra metadata for the web detection. |
| 366 |
// |
| 367 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 368 |
type WebDetection_WebLabel = src.WebDetection_WebLabel |
| 369 |
|
| 370 |
// Metadata for web pages. |
| 371 |
// |
| 372 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 373 |
type WebDetection_WebPage = src.WebDetection_WebPage |
| 374 |
|
| 375 |
// A word representation. |
| 376 |
// |
| 377 |
// Deprecated: Please use types in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 378 |
type Word = src.Word |
| 379 |
|
| 380 |
// Deprecated: Please use funcs in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 381 |
func NewImageAnnotatorClient(cc grpc.ClientConnInterface) ImageAnnotatorClient { |
| 382 |
return src.NewImageAnnotatorClient(cc) |
| 383 |
} |
| 384 |
|
| 385 |
// Deprecated: Please use funcs in: cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb |
| 386 |
func RegisterImageAnnotatorServer(s *grpc.Server, srv ImageAnnotatorServer) { |
| 387 |
src.RegisterImageAnnotatorServer(s, srv) |
| 388 |
} |