1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/vision/v1p3beta1/image_annotator.proto 3 4package vision 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 timestamp "github.com/golang/protobuf/ptypes/timestamp" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 longrunning "google.golang.org/genproto/googleapis/longrunning" 15 status "google.golang.org/genproto/googleapis/rpc/status" 16 color "google.golang.org/genproto/googleapis/type/color" 17 latlng "google.golang.org/genproto/googleapis/type/latlng" 18 grpc "google.golang.org/grpc" 19 codes "google.golang.org/grpc/codes" 20 status1 "google.golang.org/grpc/status" 21) 22 23// Reference imports to suppress errors if they are not otherwise used. 24var _ = proto.Marshal 25var _ = fmt.Errorf 26var _ = math.Inf 27 28// This is a compile-time assertion to ensure that this generated file 29// is compatible with the proto package it is being compiled against. 30// A compilation error at this line likely means your copy of the 31// proto package needs to be updated. 32const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 33 34// A bucketized representation of likelihood, which is intended to give clients 35// highly stable results across model upgrades. 36type Likelihood int32 37 38const ( 39 // Unknown likelihood. 40 Likelihood_UNKNOWN Likelihood = 0 41 // It is very unlikely that the image belongs to the specified vertical. 42 Likelihood_VERY_UNLIKELY Likelihood = 1 43 // It is unlikely that the image belongs to the specified vertical. 44 Likelihood_UNLIKELY Likelihood = 2 45 // It is possible that the image belongs to the specified vertical. 46 Likelihood_POSSIBLE Likelihood = 3 47 // It is likely that the image belongs to the specified vertical. 48 Likelihood_LIKELY Likelihood = 4 49 // It is very likely that the image belongs to the specified vertical. 50 Likelihood_VERY_LIKELY Likelihood = 5 51) 52 53var Likelihood_name = map[int32]string{ 54 0: "UNKNOWN", 55 1: "VERY_UNLIKELY", 56 2: "UNLIKELY", 57 3: "POSSIBLE", 58 4: "LIKELY", 59 5: "VERY_LIKELY", 60} 61 62var Likelihood_value = map[string]int32{ 63 "UNKNOWN": 0, 64 "VERY_UNLIKELY": 1, 65 "UNLIKELY": 2, 66 "POSSIBLE": 3, 67 "LIKELY": 4, 68 "VERY_LIKELY": 5, 69} 70 71func (x Likelihood) String() string { 72 return proto.EnumName(Likelihood_name, int32(x)) 73} 74 75func (Likelihood) EnumDescriptor() ([]byte, []int) { 76 return fileDescriptor_2b863578148790db, []int{0} 77} 78 79// Type of Google Cloud Vision API feature to be extracted. 80type Feature_Type int32 81 82const ( 83 // Unspecified feature type. 84 Feature_TYPE_UNSPECIFIED Feature_Type = 0 85 // Run face detection. 86 Feature_FACE_DETECTION Feature_Type = 1 87 // Run landmark detection. 88 Feature_LANDMARK_DETECTION Feature_Type = 2 89 // Run logo detection. 90 Feature_LOGO_DETECTION Feature_Type = 3 91 // Run label detection. 92 Feature_LABEL_DETECTION Feature_Type = 4 93 // Run text detection / optical character recognition (OCR). Text detection 94 // is optimized for areas of text within a larger image; if the image is 95 // a document, use `DOCUMENT_TEXT_DETECTION` instead. 96 Feature_TEXT_DETECTION Feature_Type = 5 97 // Run dense text document OCR. Takes precedence when both 98 // `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present. 99 Feature_DOCUMENT_TEXT_DETECTION Feature_Type = 11 100 // Run Safe Search to detect potentially unsafe 101 // or undesirable content. 102 Feature_SAFE_SEARCH_DETECTION Feature_Type = 6 103 // Compute a set of image properties, such as the 104 // image's dominant colors. 105 Feature_IMAGE_PROPERTIES Feature_Type = 7 106 // Run crop hints. 107 Feature_CROP_HINTS Feature_Type = 9 108 // Run web detection. 109 Feature_WEB_DETECTION Feature_Type = 10 110 // Run Product Search. 111 Feature_PRODUCT_SEARCH Feature_Type = 12 112 // Run localizer for object detection. 113 Feature_OBJECT_LOCALIZATION Feature_Type = 19 114) 115 116var Feature_Type_name = map[int32]string{ 117 0: "TYPE_UNSPECIFIED", 118 1: "FACE_DETECTION", 119 2: "LANDMARK_DETECTION", 120 3: "LOGO_DETECTION", 121 4: "LABEL_DETECTION", 122 5: "TEXT_DETECTION", 123 11: "DOCUMENT_TEXT_DETECTION", 124 6: "SAFE_SEARCH_DETECTION", 125 7: "IMAGE_PROPERTIES", 126 9: "CROP_HINTS", 127 10: "WEB_DETECTION", 128 12: "PRODUCT_SEARCH", 129 19: "OBJECT_LOCALIZATION", 130} 131 132var Feature_Type_value = map[string]int32{ 133 "TYPE_UNSPECIFIED": 0, 134 "FACE_DETECTION": 1, 135 "LANDMARK_DETECTION": 2, 136 "LOGO_DETECTION": 3, 137 "LABEL_DETECTION": 4, 138 "TEXT_DETECTION": 5, 139 "DOCUMENT_TEXT_DETECTION": 11, 140 "SAFE_SEARCH_DETECTION": 6, 141 "IMAGE_PROPERTIES": 7, 142 "CROP_HINTS": 9, 143 "WEB_DETECTION": 10, 144 "PRODUCT_SEARCH": 12, 145 "OBJECT_LOCALIZATION": 19, 146} 147 148func (x Feature_Type) String() string { 149 return proto.EnumName(Feature_Type_name, int32(x)) 150} 151 152func (Feature_Type) EnumDescriptor() ([]byte, []int) { 153 return fileDescriptor_2b863578148790db, []int{0, 0} 154} 155 156// Face landmark (feature) type. 157// Left and right are defined from the vantage of the viewer of the image 158// without considering mirror projections typical of photos. So, `LEFT_EYE`, 159// typically, is the person's right eye. 160type FaceAnnotation_Landmark_Type int32 161 162const ( 163 // Unknown face landmark detected. Should not be filled. 164 FaceAnnotation_Landmark_UNKNOWN_LANDMARK FaceAnnotation_Landmark_Type = 0 165 // Left eye. 166 FaceAnnotation_Landmark_LEFT_EYE FaceAnnotation_Landmark_Type = 1 167 // Right eye. 168 FaceAnnotation_Landmark_RIGHT_EYE FaceAnnotation_Landmark_Type = 2 169 // Left of left eyebrow. 170 FaceAnnotation_Landmark_LEFT_OF_LEFT_EYEBROW FaceAnnotation_Landmark_Type = 3 171 // Right of left eyebrow. 172 FaceAnnotation_Landmark_RIGHT_OF_LEFT_EYEBROW FaceAnnotation_Landmark_Type = 4 173 // Left of right eyebrow. 174 FaceAnnotation_Landmark_LEFT_OF_RIGHT_EYEBROW FaceAnnotation_Landmark_Type = 5 175 // Right of right eyebrow. 176 FaceAnnotation_Landmark_RIGHT_OF_RIGHT_EYEBROW FaceAnnotation_Landmark_Type = 6 177 // Midpoint between eyes. 178 FaceAnnotation_Landmark_MIDPOINT_BETWEEN_EYES FaceAnnotation_Landmark_Type = 7 179 // Nose tip. 180 FaceAnnotation_Landmark_NOSE_TIP FaceAnnotation_Landmark_Type = 8 181 // Upper lip. 182 FaceAnnotation_Landmark_UPPER_LIP FaceAnnotation_Landmark_Type = 9 183 // Lower lip. 184 FaceAnnotation_Landmark_LOWER_LIP FaceAnnotation_Landmark_Type = 10 185 // Mouth left. 186 FaceAnnotation_Landmark_MOUTH_LEFT FaceAnnotation_Landmark_Type = 11 187 // Mouth right. 188 FaceAnnotation_Landmark_MOUTH_RIGHT FaceAnnotation_Landmark_Type = 12 189 // Mouth center. 190 FaceAnnotation_Landmark_MOUTH_CENTER FaceAnnotation_Landmark_Type = 13 191 // Nose, bottom right. 192 FaceAnnotation_Landmark_NOSE_BOTTOM_RIGHT FaceAnnotation_Landmark_Type = 14 193 // Nose, bottom left. 194 FaceAnnotation_Landmark_NOSE_BOTTOM_LEFT FaceAnnotation_Landmark_Type = 15 195 // Nose, bottom center. 196 FaceAnnotation_Landmark_NOSE_BOTTOM_CENTER FaceAnnotation_Landmark_Type = 16 197 // Left eye, top boundary. 198 FaceAnnotation_Landmark_LEFT_EYE_TOP_BOUNDARY FaceAnnotation_Landmark_Type = 17 199 // Left eye, right corner. 200 FaceAnnotation_Landmark_LEFT_EYE_RIGHT_CORNER FaceAnnotation_Landmark_Type = 18 201 // Left eye, bottom boundary. 202 FaceAnnotation_Landmark_LEFT_EYE_BOTTOM_BOUNDARY FaceAnnotation_Landmark_Type = 19 203 // Left eye, left corner. 204 FaceAnnotation_Landmark_LEFT_EYE_LEFT_CORNER FaceAnnotation_Landmark_Type = 20 205 // Right eye, top boundary. 206 FaceAnnotation_Landmark_RIGHT_EYE_TOP_BOUNDARY FaceAnnotation_Landmark_Type = 21 207 // Right eye, right corner. 208 FaceAnnotation_Landmark_RIGHT_EYE_RIGHT_CORNER FaceAnnotation_Landmark_Type = 22 209 // Right eye, bottom boundary. 210 FaceAnnotation_Landmark_RIGHT_EYE_BOTTOM_BOUNDARY FaceAnnotation_Landmark_Type = 23 211 // Right eye, left corner. 212 FaceAnnotation_Landmark_RIGHT_EYE_LEFT_CORNER FaceAnnotation_Landmark_Type = 24 213 // Left eyebrow, upper midpoint. 214 FaceAnnotation_Landmark_LEFT_EYEBROW_UPPER_MIDPOINT FaceAnnotation_Landmark_Type = 25 215 // Right eyebrow, upper midpoint. 216 FaceAnnotation_Landmark_RIGHT_EYEBROW_UPPER_MIDPOINT FaceAnnotation_Landmark_Type = 26 217 // Left ear tragion. 218 FaceAnnotation_Landmark_LEFT_EAR_TRAGION FaceAnnotation_Landmark_Type = 27 219 // Right ear tragion. 220 FaceAnnotation_Landmark_RIGHT_EAR_TRAGION FaceAnnotation_Landmark_Type = 28 221 // Left eye pupil. 222 FaceAnnotation_Landmark_LEFT_EYE_PUPIL FaceAnnotation_Landmark_Type = 29 223 // Right eye pupil. 224 FaceAnnotation_Landmark_RIGHT_EYE_PUPIL FaceAnnotation_Landmark_Type = 30 225 // Forehead glabella. 226 FaceAnnotation_Landmark_FOREHEAD_GLABELLA FaceAnnotation_Landmark_Type = 31 227 // Chin gnathion. 228 FaceAnnotation_Landmark_CHIN_GNATHION FaceAnnotation_Landmark_Type = 32 229 // Chin left gonion. 230 FaceAnnotation_Landmark_CHIN_LEFT_GONION FaceAnnotation_Landmark_Type = 33 231 // Chin right gonion. 232 FaceAnnotation_Landmark_CHIN_RIGHT_GONION FaceAnnotation_Landmark_Type = 34 233) 234 235var FaceAnnotation_Landmark_Type_name = map[int32]string{ 236 0: "UNKNOWN_LANDMARK", 237 1: "LEFT_EYE", 238 2: "RIGHT_EYE", 239 3: "LEFT_OF_LEFT_EYEBROW", 240 4: "RIGHT_OF_LEFT_EYEBROW", 241 5: "LEFT_OF_RIGHT_EYEBROW", 242 6: "RIGHT_OF_RIGHT_EYEBROW", 243 7: "MIDPOINT_BETWEEN_EYES", 244 8: "NOSE_TIP", 245 9: "UPPER_LIP", 246 10: "LOWER_LIP", 247 11: "MOUTH_LEFT", 248 12: "MOUTH_RIGHT", 249 13: "MOUTH_CENTER", 250 14: "NOSE_BOTTOM_RIGHT", 251 15: "NOSE_BOTTOM_LEFT", 252 16: "NOSE_BOTTOM_CENTER", 253 17: "LEFT_EYE_TOP_BOUNDARY", 254 18: "LEFT_EYE_RIGHT_CORNER", 255 19: "LEFT_EYE_BOTTOM_BOUNDARY", 256 20: "LEFT_EYE_LEFT_CORNER", 257 21: "RIGHT_EYE_TOP_BOUNDARY", 258 22: "RIGHT_EYE_RIGHT_CORNER", 259 23: "RIGHT_EYE_BOTTOM_BOUNDARY", 260 24: "RIGHT_EYE_LEFT_CORNER", 261 25: "LEFT_EYEBROW_UPPER_MIDPOINT", 262 26: "RIGHT_EYEBROW_UPPER_MIDPOINT", 263 27: "LEFT_EAR_TRAGION", 264 28: "RIGHT_EAR_TRAGION", 265 29: "LEFT_EYE_PUPIL", 266 30: "RIGHT_EYE_PUPIL", 267 31: "FOREHEAD_GLABELLA", 268 32: "CHIN_GNATHION", 269 33: "CHIN_LEFT_GONION", 270 34: "CHIN_RIGHT_GONION", 271} 272 273var FaceAnnotation_Landmark_Type_value = map[string]int32{ 274 "UNKNOWN_LANDMARK": 0, 275 "LEFT_EYE": 1, 276 "RIGHT_EYE": 2, 277 "LEFT_OF_LEFT_EYEBROW": 3, 278 "RIGHT_OF_LEFT_EYEBROW": 4, 279 "LEFT_OF_RIGHT_EYEBROW": 5, 280 "RIGHT_OF_RIGHT_EYEBROW": 6, 281 "MIDPOINT_BETWEEN_EYES": 7, 282 "NOSE_TIP": 8, 283 "UPPER_LIP": 9, 284 "LOWER_LIP": 10, 285 "MOUTH_LEFT": 11, 286 "MOUTH_RIGHT": 12, 287 "MOUTH_CENTER": 13, 288 "NOSE_BOTTOM_RIGHT": 14, 289 "NOSE_BOTTOM_LEFT": 15, 290 "NOSE_BOTTOM_CENTER": 16, 291 "LEFT_EYE_TOP_BOUNDARY": 17, 292 "LEFT_EYE_RIGHT_CORNER": 18, 293 "LEFT_EYE_BOTTOM_BOUNDARY": 19, 294 "LEFT_EYE_LEFT_CORNER": 20, 295 "RIGHT_EYE_TOP_BOUNDARY": 21, 296 "RIGHT_EYE_RIGHT_CORNER": 22, 297 "RIGHT_EYE_BOTTOM_BOUNDARY": 23, 298 "RIGHT_EYE_LEFT_CORNER": 24, 299 "LEFT_EYEBROW_UPPER_MIDPOINT": 25, 300 "RIGHT_EYEBROW_UPPER_MIDPOINT": 26, 301 "LEFT_EAR_TRAGION": 27, 302 "RIGHT_EAR_TRAGION": 28, 303 "LEFT_EYE_PUPIL": 29, 304 "RIGHT_EYE_PUPIL": 30, 305 "FOREHEAD_GLABELLA": 31, 306 "CHIN_GNATHION": 32, 307 "CHIN_LEFT_GONION": 33, 308 "CHIN_RIGHT_GONION": 34, 309} 310 311func (x FaceAnnotation_Landmark_Type) String() string { 312 return proto.EnumName(FaceAnnotation_Landmark_Type_name, int32(x)) 313} 314 315func (FaceAnnotation_Landmark_Type) EnumDescriptor() ([]byte, []int) { 316 return fileDescriptor_2b863578148790db, []int{3, 0, 0} 317} 318 319// Batch operation states. 320type OperationMetadata_State int32 321 322const ( 323 // Invalid. 324 OperationMetadata_STATE_UNSPECIFIED OperationMetadata_State = 0 325 // Request is received. 326 OperationMetadata_CREATED OperationMetadata_State = 1 327 // Request is actively being processed. 328 OperationMetadata_RUNNING OperationMetadata_State = 2 329 // The batch processing is done. 330 OperationMetadata_DONE OperationMetadata_State = 3 331 // The batch processing was cancelled. 332 OperationMetadata_CANCELLED OperationMetadata_State = 4 333) 334 335var OperationMetadata_State_name = map[int32]string{ 336 0: "STATE_UNSPECIFIED", 337 1: "CREATED", 338 2: "RUNNING", 339 3: "DONE", 340 4: "CANCELLED", 341} 342 343var OperationMetadata_State_value = map[string]int32{ 344 "STATE_UNSPECIFIED": 0, 345 "CREATED": 1, 346 "RUNNING": 2, 347 "DONE": 3, 348 "CANCELLED": 4, 349} 350 351func (x OperationMetadata_State) String() string { 352 return proto.EnumName(OperationMetadata_State_name, int32(x)) 353} 354 355func (OperationMetadata_State) EnumDescriptor() ([]byte, []int) { 356 return fileDescriptor_2b863578148790db, []int{32, 0} 357} 358 359// The type of Google Cloud Vision API detection to perform, and the maximum 360// number of results to return for that type. Multiple `Feature` objects can 361// be specified in the `features` list. 362type Feature struct { 363 // The feature type. 364 Type Feature_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p3beta1.Feature_Type" json:"type,omitempty"` 365 // Maximum number of results of this type. Does not apply to 366 // `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. 367 MaxResults int32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` 368 // Model to use for the feature. 369 // Supported values: "builtin/stable" (the default if unset) and 370 // "builtin/latest". 371 Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` 372 XXX_NoUnkeyedLiteral struct{} `json:"-"` 373 XXX_unrecognized []byte `json:"-"` 374 XXX_sizecache int32 `json:"-"` 375} 376 377func (m *Feature) Reset() { *m = Feature{} } 378func (m *Feature) String() string { return proto.CompactTextString(m) } 379func (*Feature) ProtoMessage() {} 380func (*Feature) Descriptor() ([]byte, []int) { 381 return fileDescriptor_2b863578148790db, []int{0} 382} 383 384func (m *Feature) XXX_Unmarshal(b []byte) error { 385 return xxx_messageInfo_Feature.Unmarshal(m, b) 386} 387func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 388 return xxx_messageInfo_Feature.Marshal(b, m, deterministic) 389} 390func (m *Feature) XXX_Merge(src proto.Message) { 391 xxx_messageInfo_Feature.Merge(m, src) 392} 393func (m *Feature) XXX_Size() int { 394 return xxx_messageInfo_Feature.Size(m) 395} 396func (m *Feature) XXX_DiscardUnknown() { 397 xxx_messageInfo_Feature.DiscardUnknown(m) 398} 399 400var xxx_messageInfo_Feature proto.InternalMessageInfo 401 402func (m *Feature) GetType() Feature_Type { 403 if m != nil { 404 return m.Type 405 } 406 return Feature_TYPE_UNSPECIFIED 407} 408 409func (m *Feature) GetMaxResults() int32 { 410 if m != nil { 411 return m.MaxResults 412 } 413 return 0 414} 415 416func (m *Feature) GetModel() string { 417 if m != nil { 418 return m.Model 419 } 420 return "" 421} 422 423// External image source (Google Cloud Storage or web URL image location). 424type ImageSource struct { 425 // **Use `image_uri` instead.** 426 // 427 // The Google Cloud Storage URI of the form 428 // `gs://bucket_name/object_name`. Object versioning is not supported. See 429 // [Google Cloud Storage Request 430 // URIs](https://cloud.google.com/storage/docs/reference-uris) for more info. 431 GcsImageUri string `protobuf:"bytes,1,opt,name=gcs_image_uri,json=gcsImageUri,proto3" json:"gcs_image_uri,omitempty"` 432 // The URI of the source image. Can be either: 433 // 434 // 1. A Google Cloud Storage URI of the form 435 // `gs://bucket_name/object_name`. Object versioning is not supported. See 436 // [Google Cloud Storage Request 437 // URIs](https://cloud.google.com/storage/docs/reference-uris) for more 438 // info. 439 // 440 // 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from 441 // HTTP/HTTPS URLs, Google cannot guarantee that the request will be 442 // completed. Your request may fail if the specified host denies the 443 // request (e.g. due to request throttling or DOS prevention), or if Google 444 // throttles requests to the site for abuse prevention. You should not 445 // depend on externally-hosted images for production applications. 446 // 447 // When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes 448 // precedence. 449 ImageUri string `protobuf:"bytes,2,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` 450 XXX_NoUnkeyedLiteral struct{} `json:"-"` 451 XXX_unrecognized []byte `json:"-"` 452 XXX_sizecache int32 `json:"-"` 453} 454 455func (m *ImageSource) Reset() { *m = ImageSource{} } 456func (m *ImageSource) String() string { return proto.CompactTextString(m) } 457func (*ImageSource) ProtoMessage() {} 458func (*ImageSource) Descriptor() ([]byte, []int) { 459 return fileDescriptor_2b863578148790db, []int{1} 460} 461 462func (m *ImageSource) XXX_Unmarshal(b []byte) error { 463 return xxx_messageInfo_ImageSource.Unmarshal(m, b) 464} 465func (m *ImageSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 466 return xxx_messageInfo_ImageSource.Marshal(b, m, deterministic) 467} 468func (m *ImageSource) XXX_Merge(src proto.Message) { 469 xxx_messageInfo_ImageSource.Merge(m, src) 470} 471func (m *ImageSource) XXX_Size() int { 472 return xxx_messageInfo_ImageSource.Size(m) 473} 474func (m *ImageSource) XXX_DiscardUnknown() { 475 xxx_messageInfo_ImageSource.DiscardUnknown(m) 476} 477 478var xxx_messageInfo_ImageSource proto.InternalMessageInfo 479 480func (m *ImageSource) GetGcsImageUri() string { 481 if m != nil { 482 return m.GcsImageUri 483 } 484 return "" 485} 486 487func (m *ImageSource) GetImageUri() string { 488 if m != nil { 489 return m.ImageUri 490 } 491 return "" 492} 493 494// Client image to perform Google Cloud Vision API tasks over. 495type Image struct { 496 // Image content, represented as a stream of bytes. 497 // Note: As with all `bytes` fields, protobuffers use a pure binary 498 // representation, whereas JSON representations use base64. 499 Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` 500 // Google Cloud Storage image location, or publicly-accessible image 501 // URL. If both `content` and `source` are provided for an image, `content` 502 // takes precedence and is used to perform the image annotation request. 503 Source *ImageSource `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` 504 XXX_NoUnkeyedLiteral struct{} `json:"-"` 505 XXX_unrecognized []byte `json:"-"` 506 XXX_sizecache int32 `json:"-"` 507} 508 509func (m *Image) Reset() { *m = Image{} } 510func (m *Image) String() string { return proto.CompactTextString(m) } 511func (*Image) ProtoMessage() {} 512func (*Image) Descriptor() ([]byte, []int) { 513 return fileDescriptor_2b863578148790db, []int{2} 514} 515 516func (m *Image) XXX_Unmarshal(b []byte) error { 517 return xxx_messageInfo_Image.Unmarshal(m, b) 518} 519func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 520 return xxx_messageInfo_Image.Marshal(b, m, deterministic) 521} 522func (m *Image) XXX_Merge(src proto.Message) { 523 xxx_messageInfo_Image.Merge(m, src) 524} 525func (m *Image) XXX_Size() int { 526 return xxx_messageInfo_Image.Size(m) 527} 528func (m *Image) XXX_DiscardUnknown() { 529 xxx_messageInfo_Image.DiscardUnknown(m) 530} 531 532var xxx_messageInfo_Image proto.InternalMessageInfo 533 534func (m *Image) GetContent() []byte { 535 if m != nil { 536 return m.Content 537 } 538 return nil 539} 540 541func (m *Image) GetSource() *ImageSource { 542 if m != nil { 543 return m.Source 544 } 545 return nil 546} 547 548// A face annotation object contains the results of face detection. 549type FaceAnnotation struct { 550 // The bounding polygon around the face. The coordinates of the bounding box 551 // are in the original image's scale, as returned in `ImageParams`. 552 // The bounding box is computed to "frame" the face in accordance with human 553 // expectations. It is based on the landmarker results. 554 // Note that one or more x and/or y coordinates may not be generated in the 555 // `BoundingPoly` (the polygon will be unbounded) if only a partial face 556 // appears in the image to be annotated. 557 BoundingPoly *BoundingPoly `protobuf:"bytes,1,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` 558 // The `fd_bounding_poly` bounding polygon is tighter than the 559 // `boundingPoly`, and encloses only the skin part of the face. Typically, it 560 // is used to eliminate the face from any image analysis that detects the 561 // "amount of skin" visible in an image. It is not based on the 562 // landmarker results, only on the initial face detection, hence 563 // the <code>fd</code> (face detection) prefix. 564 FdBoundingPoly *BoundingPoly `protobuf:"bytes,2,opt,name=fd_bounding_poly,json=fdBoundingPoly,proto3" json:"fd_bounding_poly,omitempty"` 565 // Detected face landmarks. 566 Landmarks []*FaceAnnotation_Landmark `protobuf:"bytes,3,rep,name=landmarks,proto3" json:"landmarks,omitempty"` 567 // Roll angle, which indicates the amount of clockwise/anti-clockwise rotation 568 // of the face relative to the image vertical about the axis perpendicular to 569 // the face. Range [-180,180]. 570 RollAngle float32 `protobuf:"fixed32,4,opt,name=roll_angle,json=rollAngle,proto3" json:"roll_angle,omitempty"` 571 // Yaw angle, which indicates the leftward/rightward angle that the face is 572 // pointing relative to the vertical plane perpendicular to the image. Range 573 // [-180,180]. 574 PanAngle float32 `protobuf:"fixed32,5,opt,name=pan_angle,json=panAngle,proto3" json:"pan_angle,omitempty"` 575 // Pitch angle, which indicates the upwards/downwards angle that the face is 576 // pointing relative to the image's horizontal plane. Range [-180,180]. 577 TiltAngle float32 `protobuf:"fixed32,6,opt,name=tilt_angle,json=tiltAngle,proto3" json:"tilt_angle,omitempty"` 578 // Detection confidence. Range [0, 1]. 579 DetectionConfidence float32 `protobuf:"fixed32,7,opt,name=detection_confidence,json=detectionConfidence,proto3" json:"detection_confidence,omitempty"` 580 // Face landmarking confidence. Range [0, 1]. 581 LandmarkingConfidence float32 `protobuf:"fixed32,8,opt,name=landmarking_confidence,json=landmarkingConfidence,proto3" json:"landmarking_confidence,omitempty"` 582 // Joy likelihood. 583 JoyLikelihood Likelihood `protobuf:"varint,9,opt,name=joy_likelihood,json=joyLikelihood,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"joy_likelihood,omitempty"` 584 // Sorrow likelihood. 585 SorrowLikelihood Likelihood `protobuf:"varint,10,opt,name=sorrow_likelihood,json=sorrowLikelihood,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"sorrow_likelihood,omitempty"` 586 // Anger likelihood. 587 AngerLikelihood Likelihood `protobuf:"varint,11,opt,name=anger_likelihood,json=angerLikelihood,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"anger_likelihood,omitempty"` 588 // Surprise likelihood. 589 SurpriseLikelihood Likelihood `protobuf:"varint,12,opt,name=surprise_likelihood,json=surpriseLikelihood,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"surprise_likelihood,omitempty"` 590 // Under-exposed likelihood. 591 UnderExposedLikelihood Likelihood `protobuf:"varint,13,opt,name=under_exposed_likelihood,json=underExposedLikelihood,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"under_exposed_likelihood,omitempty"` 592 // Blurred likelihood. 593 BlurredLikelihood Likelihood `protobuf:"varint,14,opt,name=blurred_likelihood,json=blurredLikelihood,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"blurred_likelihood,omitempty"` 594 // Headwear likelihood. 595 HeadwearLikelihood Likelihood `protobuf:"varint,15,opt,name=headwear_likelihood,json=headwearLikelihood,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"headwear_likelihood,omitempty"` 596 XXX_NoUnkeyedLiteral struct{} `json:"-"` 597 XXX_unrecognized []byte `json:"-"` 598 XXX_sizecache int32 `json:"-"` 599} 600 601func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} } 602func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) } 603func (*FaceAnnotation) ProtoMessage() {} 604func (*FaceAnnotation) Descriptor() ([]byte, []int) { 605 return fileDescriptor_2b863578148790db, []int{3} 606} 607 608func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error { 609 return xxx_messageInfo_FaceAnnotation.Unmarshal(m, b) 610} 611func (m *FaceAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 612 return xxx_messageInfo_FaceAnnotation.Marshal(b, m, deterministic) 613} 614func (m *FaceAnnotation) XXX_Merge(src proto.Message) { 615 xxx_messageInfo_FaceAnnotation.Merge(m, src) 616} 617func (m *FaceAnnotation) XXX_Size() int { 618 return xxx_messageInfo_FaceAnnotation.Size(m) 619} 620func (m *FaceAnnotation) XXX_DiscardUnknown() { 621 xxx_messageInfo_FaceAnnotation.DiscardUnknown(m) 622} 623 624var xxx_messageInfo_FaceAnnotation proto.InternalMessageInfo 625 626func (m *FaceAnnotation) GetBoundingPoly() *BoundingPoly { 627 if m != nil { 628 return m.BoundingPoly 629 } 630 return nil 631} 632 633func (m *FaceAnnotation) GetFdBoundingPoly() *BoundingPoly { 634 if m != nil { 635 return m.FdBoundingPoly 636 } 637 return nil 638} 639 640func (m *FaceAnnotation) GetLandmarks() []*FaceAnnotation_Landmark { 641 if m != nil { 642 return m.Landmarks 643 } 644 return nil 645} 646 647func (m *FaceAnnotation) GetRollAngle() float32 { 648 if m != nil { 649 return m.RollAngle 650 } 651 return 0 652} 653 654func (m *FaceAnnotation) GetPanAngle() float32 { 655 if m != nil { 656 return m.PanAngle 657 } 658 return 0 659} 660 661func (m *FaceAnnotation) GetTiltAngle() float32 { 662 if m != nil { 663 return m.TiltAngle 664 } 665 return 0 666} 667 668func (m *FaceAnnotation) GetDetectionConfidence() float32 { 669 if m != nil { 670 return m.DetectionConfidence 671 } 672 return 0 673} 674 675func (m *FaceAnnotation) GetLandmarkingConfidence() float32 { 676 if m != nil { 677 return m.LandmarkingConfidence 678 } 679 return 0 680} 681 682func (m *FaceAnnotation) GetJoyLikelihood() Likelihood { 683 if m != nil { 684 return m.JoyLikelihood 685 } 686 return Likelihood_UNKNOWN 687} 688 689func (m *FaceAnnotation) GetSorrowLikelihood() Likelihood { 690 if m != nil { 691 return m.SorrowLikelihood 692 } 693 return Likelihood_UNKNOWN 694} 695 696func (m *FaceAnnotation) GetAngerLikelihood() Likelihood { 697 if m != nil { 698 return m.AngerLikelihood 699 } 700 return Likelihood_UNKNOWN 701} 702 703func (m *FaceAnnotation) GetSurpriseLikelihood() Likelihood { 704 if m != nil { 705 return m.SurpriseLikelihood 706 } 707 return Likelihood_UNKNOWN 708} 709 710func (m *FaceAnnotation) GetUnderExposedLikelihood() Likelihood { 711 if m != nil { 712 return m.UnderExposedLikelihood 713 } 714 return Likelihood_UNKNOWN 715} 716 717func (m *FaceAnnotation) GetBlurredLikelihood() Likelihood { 718 if m != nil { 719 return m.BlurredLikelihood 720 } 721 return Likelihood_UNKNOWN 722} 723 724func (m *FaceAnnotation) GetHeadwearLikelihood() Likelihood { 725 if m != nil { 726 return m.HeadwearLikelihood 727 } 728 return Likelihood_UNKNOWN 729} 730 731// A face-specific landmark (for example, a face feature). 732type FaceAnnotation_Landmark struct { 733 // Face landmark type. 734 Type FaceAnnotation_Landmark_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.vision.v1p3beta1.FaceAnnotation_Landmark_Type" json:"type,omitempty"` 735 // Face landmark position. 736 Position *Position `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"` 737 XXX_NoUnkeyedLiteral struct{} `json:"-"` 738 XXX_unrecognized []byte `json:"-"` 739 XXX_sizecache int32 `json:"-"` 740} 741 742func (m *FaceAnnotation_Landmark) Reset() { *m = FaceAnnotation_Landmark{} } 743func (m *FaceAnnotation_Landmark) String() string { return proto.CompactTextString(m) } 744func (*FaceAnnotation_Landmark) ProtoMessage() {} 745func (*FaceAnnotation_Landmark) Descriptor() ([]byte, []int) { 746 return fileDescriptor_2b863578148790db, []int{3, 0} 747} 748 749func (m *FaceAnnotation_Landmark) XXX_Unmarshal(b []byte) error { 750 return xxx_messageInfo_FaceAnnotation_Landmark.Unmarshal(m, b) 751} 752func (m *FaceAnnotation_Landmark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 753 return xxx_messageInfo_FaceAnnotation_Landmark.Marshal(b, m, deterministic) 754} 755func (m *FaceAnnotation_Landmark) XXX_Merge(src proto.Message) { 756 xxx_messageInfo_FaceAnnotation_Landmark.Merge(m, src) 757} 758func (m *FaceAnnotation_Landmark) XXX_Size() int { 759 return xxx_messageInfo_FaceAnnotation_Landmark.Size(m) 760} 761func (m *FaceAnnotation_Landmark) XXX_DiscardUnknown() { 762 xxx_messageInfo_FaceAnnotation_Landmark.DiscardUnknown(m) 763} 764 765var xxx_messageInfo_FaceAnnotation_Landmark proto.InternalMessageInfo 766 767func (m *FaceAnnotation_Landmark) GetType() FaceAnnotation_Landmark_Type { 768 if m != nil { 769 return m.Type 770 } 771 return FaceAnnotation_Landmark_UNKNOWN_LANDMARK 772} 773 774func (m *FaceAnnotation_Landmark) GetPosition() *Position { 775 if m != nil { 776 return m.Position 777 } 778 return nil 779} 780 781// Detected entity location information. 782type LocationInfo struct { 783 // lat/long location coordinates. 784 LatLng *latlng.LatLng `protobuf:"bytes,1,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"` 785 XXX_NoUnkeyedLiteral struct{} `json:"-"` 786 XXX_unrecognized []byte `json:"-"` 787 XXX_sizecache int32 `json:"-"` 788} 789 790func (m *LocationInfo) Reset() { *m = LocationInfo{} } 791func (m *LocationInfo) String() string { return proto.CompactTextString(m) } 792func (*LocationInfo) ProtoMessage() {} 793func (*LocationInfo) Descriptor() ([]byte, []int) { 794 return fileDescriptor_2b863578148790db, []int{4} 795} 796 797func (m *LocationInfo) XXX_Unmarshal(b []byte) error { 798 return xxx_messageInfo_LocationInfo.Unmarshal(m, b) 799} 800func (m *LocationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 801 return xxx_messageInfo_LocationInfo.Marshal(b, m, deterministic) 802} 803func (m *LocationInfo) XXX_Merge(src proto.Message) { 804 xxx_messageInfo_LocationInfo.Merge(m, src) 805} 806func (m *LocationInfo) XXX_Size() int { 807 return xxx_messageInfo_LocationInfo.Size(m) 808} 809func (m *LocationInfo) XXX_DiscardUnknown() { 810 xxx_messageInfo_LocationInfo.DiscardUnknown(m) 811} 812 813var xxx_messageInfo_LocationInfo proto.InternalMessageInfo 814 815func (m *LocationInfo) GetLatLng() *latlng.LatLng { 816 if m != nil { 817 return m.LatLng 818 } 819 return nil 820} 821 822// A `Property` consists of a user-supplied name/value pair. 823type Property struct { 824 // Name of the property. 825 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 826 // Value of the property. 827 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 828 // Value of numeric properties. 829 Uint64Value uint64 `protobuf:"varint,3,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"` 830 XXX_NoUnkeyedLiteral struct{} `json:"-"` 831 XXX_unrecognized []byte `json:"-"` 832 XXX_sizecache int32 `json:"-"` 833} 834 835func (m *Property) Reset() { *m = Property{} } 836func (m *Property) String() string { return proto.CompactTextString(m) } 837func (*Property) ProtoMessage() {} 838func (*Property) Descriptor() ([]byte, []int) { 839 return fileDescriptor_2b863578148790db, []int{5} 840} 841 842func (m *Property) XXX_Unmarshal(b []byte) error { 843 return xxx_messageInfo_Property.Unmarshal(m, b) 844} 845func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 846 return xxx_messageInfo_Property.Marshal(b, m, deterministic) 847} 848func (m *Property) XXX_Merge(src proto.Message) { 849 xxx_messageInfo_Property.Merge(m, src) 850} 851func (m *Property) XXX_Size() int { 852 return xxx_messageInfo_Property.Size(m) 853} 854func (m *Property) XXX_DiscardUnknown() { 855 xxx_messageInfo_Property.DiscardUnknown(m) 856} 857 858var xxx_messageInfo_Property proto.InternalMessageInfo 859 860func (m *Property) GetName() string { 861 if m != nil { 862 return m.Name 863 } 864 return "" 865} 866 867func (m *Property) GetValue() string { 868 if m != nil { 869 return m.Value 870 } 871 return "" 872} 873 874func (m *Property) GetUint64Value() uint64 { 875 if m != nil { 876 return m.Uint64Value 877 } 878 return 0 879} 880 881// Set of detected entity features. 882type EntityAnnotation struct { 883 // Opaque entity ID. Some IDs may be available in 884 // [Google Knowledge Graph Search 885 // API](https://developers.google.com/knowledge-graph/). 886 Mid string `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"` 887 // The language code for the locale in which the entity textual 888 // `description` is expressed. 889 Locale string `protobuf:"bytes,2,opt,name=locale,proto3" json:"locale,omitempty"` 890 // Entity textual description, expressed in its `locale` language. 891 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` 892 // Overall score of the result. Range [0, 1]. 893 Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"` 894 // **Deprecated. Use `score` instead.** 895 // The accuracy of the entity detection in an image. 896 // For example, for an image in which the "Eiffel Tower" entity is detected, 897 // this field represents the confidence that there is a tower in the query 898 // image. Range [0, 1]. 899 Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"` 900 // The relevancy of the ICA (Image Content Annotation) label to the 901 // image. For example, the relevancy of "tower" is likely higher to an image 902 // containing the detected "Eiffel Tower" than to an image containing a 903 // detected distant towering building, even though the confidence that 904 // there is a tower in each image may be the same. Range [0, 1]. 905 Topicality float32 `protobuf:"fixed32,6,opt,name=topicality,proto3" json:"topicality,omitempty"` 906 // Image region to which this entity belongs. Not produced 907 // for `LABEL_DETECTION` features. 908 BoundingPoly *BoundingPoly `protobuf:"bytes,7,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` 909 // The location information for the detected entity. Multiple 910 // `LocationInfo` elements can be present because one location may 911 // indicate the location of the scene in the image, and another location 912 // may indicate the location of the place where the image was taken. 913 // Location information is usually present for landmarks. 914 Locations []*LocationInfo `protobuf:"bytes,8,rep,name=locations,proto3" json:"locations,omitempty"` 915 // Some entities may have optional user-supplied `Property` (name/value) 916 // fields, such a score or string that qualifies the entity. 917 Properties []*Property `protobuf:"bytes,9,rep,name=properties,proto3" json:"properties,omitempty"` 918 XXX_NoUnkeyedLiteral struct{} `json:"-"` 919 XXX_unrecognized []byte `json:"-"` 920 XXX_sizecache int32 `json:"-"` 921} 922 923func (m *EntityAnnotation) Reset() { *m = EntityAnnotation{} } 924func (m *EntityAnnotation) String() string { return proto.CompactTextString(m) } 925func (*EntityAnnotation) ProtoMessage() {} 926func (*EntityAnnotation) Descriptor() ([]byte, []int) { 927 return fileDescriptor_2b863578148790db, []int{6} 928} 929 930func (m *EntityAnnotation) XXX_Unmarshal(b []byte) error { 931 return xxx_messageInfo_EntityAnnotation.Unmarshal(m, b) 932} 933func (m *EntityAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 934 return xxx_messageInfo_EntityAnnotation.Marshal(b, m, deterministic) 935} 936func (m *EntityAnnotation) XXX_Merge(src proto.Message) { 937 xxx_messageInfo_EntityAnnotation.Merge(m, src) 938} 939func (m *EntityAnnotation) XXX_Size() int { 940 return xxx_messageInfo_EntityAnnotation.Size(m) 941} 942func (m *EntityAnnotation) XXX_DiscardUnknown() { 943 xxx_messageInfo_EntityAnnotation.DiscardUnknown(m) 944} 945 946var xxx_messageInfo_EntityAnnotation proto.InternalMessageInfo 947 948func (m *EntityAnnotation) GetMid() string { 949 if m != nil { 950 return m.Mid 951 } 952 return "" 953} 954 955func (m *EntityAnnotation) GetLocale() string { 956 if m != nil { 957 return m.Locale 958 } 959 return "" 960} 961 962func (m *EntityAnnotation) GetDescription() string { 963 if m != nil { 964 return m.Description 965 } 966 return "" 967} 968 969func (m *EntityAnnotation) GetScore() float32 { 970 if m != nil { 971 return m.Score 972 } 973 return 0 974} 975 976func (m *EntityAnnotation) GetConfidence() float32 { 977 if m != nil { 978 return m.Confidence 979 } 980 return 0 981} 982 983func (m *EntityAnnotation) GetTopicality() float32 { 984 if m != nil { 985 return m.Topicality 986 } 987 return 0 988} 989 990func (m *EntityAnnotation) GetBoundingPoly() *BoundingPoly { 991 if m != nil { 992 return m.BoundingPoly 993 } 994 return nil 995} 996 997func (m *EntityAnnotation) GetLocations() []*LocationInfo { 998 if m != nil { 999 return m.Locations 1000 } 1001 return nil 1002} 1003 1004func (m *EntityAnnotation) GetProperties() []*Property { 1005 if m != nil { 1006 return m.Properties 1007 } 1008 return nil 1009} 1010 1011// Set of detected objects with bounding boxes. 1012type LocalizedObjectAnnotation struct { 1013 // Object ID that should align with EntityAnnotation mid. 1014 Mid string `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"` 1015 // The BCP-47 language code, such as "en-US" or "sr-Latn". For more 1016 // information, see 1017 // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. 1018 LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 1019 // Object name, expressed in its `language_code` language. 1020 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 1021 // Score of the result. Range [0, 1]. 1022 Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"` 1023 // Image region to which this object belongs. This must be populated. 1024 BoundingPoly *BoundingPoly `protobuf:"bytes,5,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` 1025 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1026 XXX_unrecognized []byte `json:"-"` 1027 XXX_sizecache int32 `json:"-"` 1028} 1029 1030func (m *LocalizedObjectAnnotation) Reset() { *m = LocalizedObjectAnnotation{} } 1031func (m *LocalizedObjectAnnotation) String() string { return proto.CompactTextString(m) } 1032func (*LocalizedObjectAnnotation) ProtoMessage() {} 1033func (*LocalizedObjectAnnotation) Descriptor() ([]byte, []int) { 1034 return fileDescriptor_2b863578148790db, []int{7} 1035} 1036 1037func (m *LocalizedObjectAnnotation) XXX_Unmarshal(b []byte) error { 1038 return xxx_messageInfo_LocalizedObjectAnnotation.Unmarshal(m, b) 1039} 1040func (m *LocalizedObjectAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1041 return xxx_messageInfo_LocalizedObjectAnnotation.Marshal(b, m, deterministic) 1042} 1043func (m *LocalizedObjectAnnotation) XXX_Merge(src proto.Message) { 1044 xxx_messageInfo_LocalizedObjectAnnotation.Merge(m, src) 1045} 1046func (m *LocalizedObjectAnnotation) XXX_Size() int { 1047 return xxx_messageInfo_LocalizedObjectAnnotation.Size(m) 1048} 1049func (m *LocalizedObjectAnnotation) XXX_DiscardUnknown() { 1050 xxx_messageInfo_LocalizedObjectAnnotation.DiscardUnknown(m) 1051} 1052 1053var xxx_messageInfo_LocalizedObjectAnnotation proto.InternalMessageInfo 1054 1055func (m *LocalizedObjectAnnotation) GetMid() string { 1056 if m != nil { 1057 return m.Mid 1058 } 1059 return "" 1060} 1061 1062func (m *LocalizedObjectAnnotation) GetLanguageCode() string { 1063 if m != nil { 1064 return m.LanguageCode 1065 } 1066 return "" 1067} 1068 1069func (m *LocalizedObjectAnnotation) GetName() string { 1070 if m != nil { 1071 return m.Name 1072 } 1073 return "" 1074} 1075 1076func (m *LocalizedObjectAnnotation) GetScore() float32 { 1077 if m != nil { 1078 return m.Score 1079 } 1080 return 0 1081} 1082 1083func (m *LocalizedObjectAnnotation) GetBoundingPoly() *BoundingPoly { 1084 if m != nil { 1085 return m.BoundingPoly 1086 } 1087 return nil 1088} 1089 1090// Set of features pertaining to the image, computed by computer vision 1091// methods over safe-search verticals (for example, adult, spoof, medical, 1092// violence). 1093type SafeSearchAnnotation struct { 1094 // Represents the adult content likelihood for the image. Adult content may 1095 // contain elements such as nudity, pornographic images or cartoons, or 1096 // sexual activities. 1097 Adult Likelihood `protobuf:"varint,1,opt,name=adult,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"adult,omitempty"` 1098 // Spoof likelihood. The likelihood that an modification 1099 // was made to the image's canonical version to make it appear 1100 // funny or offensive. 1101 Spoof Likelihood `protobuf:"varint,2,opt,name=spoof,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"spoof,omitempty"` 1102 // Likelihood that this is a medical image. 1103 Medical Likelihood `protobuf:"varint,3,opt,name=medical,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"medical,omitempty"` 1104 // Likelihood that this image contains violent content. 1105 Violence Likelihood `protobuf:"varint,4,opt,name=violence,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"violence,omitempty"` 1106 // Likelihood that the request image contains racy content. Racy content may 1107 // include (but is not limited to) skimpy or sheer clothing, strategically 1108 // covered nudity, lewd or provocative poses, or close-ups of sensitive 1109 // body areas. 1110 Racy Likelihood `protobuf:"varint,9,opt,name=racy,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"racy,omitempty"` 1111 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1112 XXX_unrecognized []byte `json:"-"` 1113 XXX_sizecache int32 `json:"-"` 1114} 1115 1116func (m *SafeSearchAnnotation) Reset() { *m = SafeSearchAnnotation{} } 1117func (m *SafeSearchAnnotation) String() string { return proto.CompactTextString(m) } 1118func (*SafeSearchAnnotation) ProtoMessage() {} 1119func (*SafeSearchAnnotation) Descriptor() ([]byte, []int) { 1120 return fileDescriptor_2b863578148790db, []int{8} 1121} 1122 1123func (m *SafeSearchAnnotation) XXX_Unmarshal(b []byte) error { 1124 return xxx_messageInfo_SafeSearchAnnotation.Unmarshal(m, b) 1125} 1126func (m *SafeSearchAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1127 return xxx_messageInfo_SafeSearchAnnotation.Marshal(b, m, deterministic) 1128} 1129func (m *SafeSearchAnnotation) XXX_Merge(src proto.Message) { 1130 xxx_messageInfo_SafeSearchAnnotation.Merge(m, src) 1131} 1132func (m *SafeSearchAnnotation) XXX_Size() int { 1133 return xxx_messageInfo_SafeSearchAnnotation.Size(m) 1134} 1135func (m *SafeSearchAnnotation) XXX_DiscardUnknown() { 1136 xxx_messageInfo_SafeSearchAnnotation.DiscardUnknown(m) 1137} 1138 1139var xxx_messageInfo_SafeSearchAnnotation proto.InternalMessageInfo 1140 1141func (m *SafeSearchAnnotation) GetAdult() Likelihood { 1142 if m != nil { 1143 return m.Adult 1144 } 1145 return Likelihood_UNKNOWN 1146} 1147 1148func (m *SafeSearchAnnotation) GetSpoof() Likelihood { 1149 if m != nil { 1150 return m.Spoof 1151 } 1152 return Likelihood_UNKNOWN 1153} 1154 1155func (m *SafeSearchAnnotation) GetMedical() Likelihood { 1156 if m != nil { 1157 return m.Medical 1158 } 1159 return Likelihood_UNKNOWN 1160} 1161 1162func (m *SafeSearchAnnotation) GetViolence() Likelihood { 1163 if m != nil { 1164 return m.Violence 1165 } 1166 return Likelihood_UNKNOWN 1167} 1168 1169func (m *SafeSearchAnnotation) GetRacy() Likelihood { 1170 if m != nil { 1171 return m.Racy 1172 } 1173 return Likelihood_UNKNOWN 1174} 1175 1176// Rectangle determined by min and max `LatLng` pairs. 1177type LatLongRect struct { 1178 // Min lat/long pair. 1179 MinLatLng *latlng.LatLng `protobuf:"bytes,1,opt,name=min_lat_lng,json=minLatLng,proto3" json:"min_lat_lng,omitempty"` 1180 // Max lat/long pair. 1181 MaxLatLng *latlng.LatLng `protobuf:"bytes,2,opt,name=max_lat_lng,json=maxLatLng,proto3" json:"max_lat_lng,omitempty"` 1182 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1183 XXX_unrecognized []byte `json:"-"` 1184 XXX_sizecache int32 `json:"-"` 1185} 1186 1187func (m *LatLongRect) Reset() { *m = LatLongRect{} } 1188func (m *LatLongRect) String() string { return proto.CompactTextString(m) } 1189func (*LatLongRect) ProtoMessage() {} 1190func (*LatLongRect) Descriptor() ([]byte, []int) { 1191 return fileDescriptor_2b863578148790db, []int{9} 1192} 1193 1194func (m *LatLongRect) XXX_Unmarshal(b []byte) error { 1195 return xxx_messageInfo_LatLongRect.Unmarshal(m, b) 1196} 1197func (m *LatLongRect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1198 return xxx_messageInfo_LatLongRect.Marshal(b, m, deterministic) 1199} 1200func (m *LatLongRect) XXX_Merge(src proto.Message) { 1201 xxx_messageInfo_LatLongRect.Merge(m, src) 1202} 1203func (m *LatLongRect) XXX_Size() int { 1204 return xxx_messageInfo_LatLongRect.Size(m) 1205} 1206func (m *LatLongRect) XXX_DiscardUnknown() { 1207 xxx_messageInfo_LatLongRect.DiscardUnknown(m) 1208} 1209 1210var xxx_messageInfo_LatLongRect proto.InternalMessageInfo 1211 1212func (m *LatLongRect) GetMinLatLng() *latlng.LatLng { 1213 if m != nil { 1214 return m.MinLatLng 1215 } 1216 return nil 1217} 1218 1219func (m *LatLongRect) GetMaxLatLng() *latlng.LatLng { 1220 if m != nil { 1221 return m.MaxLatLng 1222 } 1223 return nil 1224} 1225 1226// Color information consists of RGB channels, score, and the fraction of 1227// the image that the color occupies in the image. 1228type ColorInfo struct { 1229 // RGB components of the color. 1230 Color *color.Color `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"` 1231 // Image-specific score for this color. Value in range [0, 1]. 1232 Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` 1233 // The fraction of pixels the color occupies in the image. 1234 // Value in range [0, 1]. 1235 PixelFraction float32 `protobuf:"fixed32,3,opt,name=pixel_fraction,json=pixelFraction,proto3" json:"pixel_fraction,omitempty"` 1236 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1237 XXX_unrecognized []byte `json:"-"` 1238 XXX_sizecache int32 `json:"-"` 1239} 1240 1241func (m *ColorInfo) Reset() { *m = ColorInfo{} } 1242func (m *ColorInfo) String() string { return proto.CompactTextString(m) } 1243func (*ColorInfo) ProtoMessage() {} 1244func (*ColorInfo) Descriptor() ([]byte, []int) { 1245 return fileDescriptor_2b863578148790db, []int{10} 1246} 1247 1248func (m *ColorInfo) XXX_Unmarshal(b []byte) error { 1249 return xxx_messageInfo_ColorInfo.Unmarshal(m, b) 1250} 1251func (m *ColorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1252 return xxx_messageInfo_ColorInfo.Marshal(b, m, deterministic) 1253} 1254func (m *ColorInfo) XXX_Merge(src proto.Message) { 1255 xxx_messageInfo_ColorInfo.Merge(m, src) 1256} 1257func (m *ColorInfo) XXX_Size() int { 1258 return xxx_messageInfo_ColorInfo.Size(m) 1259} 1260func (m *ColorInfo) XXX_DiscardUnknown() { 1261 xxx_messageInfo_ColorInfo.DiscardUnknown(m) 1262} 1263 1264var xxx_messageInfo_ColorInfo proto.InternalMessageInfo 1265 1266func (m *ColorInfo) GetColor() *color.Color { 1267 if m != nil { 1268 return m.Color 1269 } 1270 return nil 1271} 1272 1273func (m *ColorInfo) GetScore() float32 { 1274 if m != nil { 1275 return m.Score 1276 } 1277 return 0 1278} 1279 1280func (m *ColorInfo) GetPixelFraction() float32 { 1281 if m != nil { 1282 return m.PixelFraction 1283 } 1284 return 0 1285} 1286 1287// Set of dominant colors and their corresponding scores. 1288type DominantColorsAnnotation struct { 1289 // RGB color values with their score and pixel fraction. 1290 Colors []*ColorInfo `protobuf:"bytes,1,rep,name=colors,proto3" json:"colors,omitempty"` 1291 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1292 XXX_unrecognized []byte `json:"-"` 1293 XXX_sizecache int32 `json:"-"` 1294} 1295 1296func (m *DominantColorsAnnotation) Reset() { *m = DominantColorsAnnotation{} } 1297func (m *DominantColorsAnnotation) String() string { return proto.CompactTextString(m) } 1298func (*DominantColorsAnnotation) ProtoMessage() {} 1299func (*DominantColorsAnnotation) Descriptor() ([]byte, []int) { 1300 return fileDescriptor_2b863578148790db, []int{11} 1301} 1302 1303func (m *DominantColorsAnnotation) XXX_Unmarshal(b []byte) error { 1304 return xxx_messageInfo_DominantColorsAnnotation.Unmarshal(m, b) 1305} 1306func (m *DominantColorsAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1307 return xxx_messageInfo_DominantColorsAnnotation.Marshal(b, m, deterministic) 1308} 1309func (m *DominantColorsAnnotation) XXX_Merge(src proto.Message) { 1310 xxx_messageInfo_DominantColorsAnnotation.Merge(m, src) 1311} 1312func (m *DominantColorsAnnotation) XXX_Size() int { 1313 return xxx_messageInfo_DominantColorsAnnotation.Size(m) 1314} 1315func (m *DominantColorsAnnotation) XXX_DiscardUnknown() { 1316 xxx_messageInfo_DominantColorsAnnotation.DiscardUnknown(m) 1317} 1318 1319var xxx_messageInfo_DominantColorsAnnotation proto.InternalMessageInfo 1320 1321func (m *DominantColorsAnnotation) GetColors() []*ColorInfo { 1322 if m != nil { 1323 return m.Colors 1324 } 1325 return nil 1326} 1327 1328// Stores image properties, such as dominant colors. 1329type ImageProperties struct { 1330 // If present, dominant colors completed successfully. 1331 DominantColors *DominantColorsAnnotation `protobuf:"bytes,1,opt,name=dominant_colors,json=dominantColors,proto3" json:"dominant_colors,omitempty"` 1332 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1333 XXX_unrecognized []byte `json:"-"` 1334 XXX_sizecache int32 `json:"-"` 1335} 1336 1337func (m *ImageProperties) Reset() { *m = ImageProperties{} } 1338func (m *ImageProperties) String() string { return proto.CompactTextString(m) } 1339func (*ImageProperties) ProtoMessage() {} 1340func (*ImageProperties) Descriptor() ([]byte, []int) { 1341 return fileDescriptor_2b863578148790db, []int{12} 1342} 1343 1344func (m *ImageProperties) XXX_Unmarshal(b []byte) error { 1345 return xxx_messageInfo_ImageProperties.Unmarshal(m, b) 1346} 1347func (m *ImageProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1348 return xxx_messageInfo_ImageProperties.Marshal(b, m, deterministic) 1349} 1350func (m *ImageProperties) XXX_Merge(src proto.Message) { 1351 xxx_messageInfo_ImageProperties.Merge(m, src) 1352} 1353func (m *ImageProperties) XXX_Size() int { 1354 return xxx_messageInfo_ImageProperties.Size(m) 1355} 1356func (m *ImageProperties) XXX_DiscardUnknown() { 1357 xxx_messageInfo_ImageProperties.DiscardUnknown(m) 1358} 1359 1360var xxx_messageInfo_ImageProperties proto.InternalMessageInfo 1361 1362func (m *ImageProperties) GetDominantColors() *DominantColorsAnnotation { 1363 if m != nil { 1364 return m.DominantColors 1365 } 1366 return nil 1367} 1368 1369// Single crop hint that is used to generate a new crop when serving an image. 1370type CropHint struct { 1371 // The bounding polygon for the crop region. The coordinates of the bounding 1372 // box are in the original image's scale, as returned in `ImageParams`. 1373 BoundingPoly *BoundingPoly `protobuf:"bytes,1,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` 1374 // Confidence of this being a salient region. Range [0, 1]. 1375 Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` 1376 // Fraction of importance of this salient region with respect to the original 1377 // image. 1378 ImportanceFraction float32 `protobuf:"fixed32,3,opt,name=importance_fraction,json=importanceFraction,proto3" json:"importance_fraction,omitempty"` 1379 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1380 XXX_unrecognized []byte `json:"-"` 1381 XXX_sizecache int32 `json:"-"` 1382} 1383 1384func (m *CropHint) Reset() { *m = CropHint{} } 1385func (m *CropHint) String() string { return proto.CompactTextString(m) } 1386func (*CropHint) ProtoMessage() {} 1387func (*CropHint) Descriptor() ([]byte, []int) { 1388 return fileDescriptor_2b863578148790db, []int{13} 1389} 1390 1391func (m *CropHint) XXX_Unmarshal(b []byte) error { 1392 return xxx_messageInfo_CropHint.Unmarshal(m, b) 1393} 1394func (m *CropHint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1395 return xxx_messageInfo_CropHint.Marshal(b, m, deterministic) 1396} 1397func (m *CropHint) XXX_Merge(src proto.Message) { 1398 xxx_messageInfo_CropHint.Merge(m, src) 1399} 1400func (m *CropHint) XXX_Size() int { 1401 return xxx_messageInfo_CropHint.Size(m) 1402} 1403func (m *CropHint) XXX_DiscardUnknown() { 1404 xxx_messageInfo_CropHint.DiscardUnknown(m) 1405} 1406 1407var xxx_messageInfo_CropHint proto.InternalMessageInfo 1408 1409func (m *CropHint) GetBoundingPoly() *BoundingPoly { 1410 if m != nil { 1411 return m.BoundingPoly 1412 } 1413 return nil 1414} 1415 1416func (m *CropHint) GetConfidence() float32 { 1417 if m != nil { 1418 return m.Confidence 1419 } 1420 return 0 1421} 1422 1423func (m *CropHint) GetImportanceFraction() float32 { 1424 if m != nil { 1425 return m.ImportanceFraction 1426 } 1427 return 0 1428} 1429 1430// Set of crop hints that are used to generate new crops when serving images. 1431type CropHintsAnnotation struct { 1432 // Crop hint results. 1433 CropHints []*CropHint `protobuf:"bytes,1,rep,name=crop_hints,json=cropHints,proto3" json:"crop_hints,omitempty"` 1434 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1435 XXX_unrecognized []byte `json:"-"` 1436 XXX_sizecache int32 `json:"-"` 1437} 1438 1439func (m *CropHintsAnnotation) Reset() { *m = CropHintsAnnotation{} } 1440func (m *CropHintsAnnotation) String() string { return proto.CompactTextString(m) } 1441func (*CropHintsAnnotation) ProtoMessage() {} 1442func (*CropHintsAnnotation) Descriptor() ([]byte, []int) { 1443 return fileDescriptor_2b863578148790db, []int{14} 1444} 1445 1446func (m *CropHintsAnnotation) XXX_Unmarshal(b []byte) error { 1447 return xxx_messageInfo_CropHintsAnnotation.Unmarshal(m, b) 1448} 1449func (m *CropHintsAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1450 return xxx_messageInfo_CropHintsAnnotation.Marshal(b, m, deterministic) 1451} 1452func (m *CropHintsAnnotation) XXX_Merge(src proto.Message) { 1453 xxx_messageInfo_CropHintsAnnotation.Merge(m, src) 1454} 1455func (m *CropHintsAnnotation) XXX_Size() int { 1456 return xxx_messageInfo_CropHintsAnnotation.Size(m) 1457} 1458func (m *CropHintsAnnotation) XXX_DiscardUnknown() { 1459 xxx_messageInfo_CropHintsAnnotation.DiscardUnknown(m) 1460} 1461 1462var xxx_messageInfo_CropHintsAnnotation proto.InternalMessageInfo 1463 1464func (m *CropHintsAnnotation) GetCropHints() []*CropHint { 1465 if m != nil { 1466 return m.CropHints 1467 } 1468 return nil 1469} 1470 1471// Parameters for crop hints annotation request. 1472type CropHintsParams struct { 1473 // Aspect ratios in floats, representing the ratio of the width to the height 1474 // of the image. For example, if the desired aspect ratio is 4/3, the 1475 // corresponding float value should be 1.33333. If not specified, the 1476 // best possible crop is returned. The number of provided aspect ratios is 1477 // limited to a maximum of 16; any aspect ratios provided after the 16th are 1478 // ignored. 1479 AspectRatios []float32 `protobuf:"fixed32,1,rep,packed,name=aspect_ratios,json=aspectRatios,proto3" json:"aspect_ratios,omitempty"` 1480 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1481 XXX_unrecognized []byte `json:"-"` 1482 XXX_sizecache int32 `json:"-"` 1483} 1484 1485func (m *CropHintsParams) Reset() { *m = CropHintsParams{} } 1486func (m *CropHintsParams) String() string { return proto.CompactTextString(m) } 1487func (*CropHintsParams) ProtoMessage() {} 1488func (*CropHintsParams) Descriptor() ([]byte, []int) { 1489 return fileDescriptor_2b863578148790db, []int{15} 1490} 1491 1492func (m *CropHintsParams) XXX_Unmarshal(b []byte) error { 1493 return xxx_messageInfo_CropHintsParams.Unmarshal(m, b) 1494} 1495func (m *CropHintsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1496 return xxx_messageInfo_CropHintsParams.Marshal(b, m, deterministic) 1497} 1498func (m *CropHintsParams) XXX_Merge(src proto.Message) { 1499 xxx_messageInfo_CropHintsParams.Merge(m, src) 1500} 1501func (m *CropHintsParams) XXX_Size() int { 1502 return xxx_messageInfo_CropHintsParams.Size(m) 1503} 1504func (m *CropHintsParams) XXX_DiscardUnknown() { 1505 xxx_messageInfo_CropHintsParams.DiscardUnknown(m) 1506} 1507 1508var xxx_messageInfo_CropHintsParams proto.InternalMessageInfo 1509 1510func (m *CropHintsParams) GetAspectRatios() []float32 { 1511 if m != nil { 1512 return m.AspectRatios 1513 } 1514 return nil 1515} 1516 1517// Parameters for web detection request. 1518type WebDetectionParams struct { 1519 // Whether to include results derived from the geo information in the image. 1520 IncludeGeoResults bool `protobuf:"varint,2,opt,name=include_geo_results,json=includeGeoResults,proto3" json:"include_geo_results,omitempty"` 1521 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1522 XXX_unrecognized []byte `json:"-"` 1523 XXX_sizecache int32 `json:"-"` 1524} 1525 1526func (m *WebDetectionParams) Reset() { *m = WebDetectionParams{} } 1527func (m *WebDetectionParams) String() string { return proto.CompactTextString(m) } 1528func (*WebDetectionParams) ProtoMessage() {} 1529func (*WebDetectionParams) Descriptor() ([]byte, []int) { 1530 return fileDescriptor_2b863578148790db, []int{16} 1531} 1532 1533func (m *WebDetectionParams) XXX_Unmarshal(b []byte) error { 1534 return xxx_messageInfo_WebDetectionParams.Unmarshal(m, b) 1535} 1536func (m *WebDetectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1537 return xxx_messageInfo_WebDetectionParams.Marshal(b, m, deterministic) 1538} 1539func (m *WebDetectionParams) XXX_Merge(src proto.Message) { 1540 xxx_messageInfo_WebDetectionParams.Merge(m, src) 1541} 1542func (m *WebDetectionParams) XXX_Size() int { 1543 return xxx_messageInfo_WebDetectionParams.Size(m) 1544} 1545func (m *WebDetectionParams) XXX_DiscardUnknown() { 1546 xxx_messageInfo_WebDetectionParams.DiscardUnknown(m) 1547} 1548 1549var xxx_messageInfo_WebDetectionParams proto.InternalMessageInfo 1550 1551func (m *WebDetectionParams) GetIncludeGeoResults() bool { 1552 if m != nil { 1553 return m.IncludeGeoResults 1554 } 1555 return false 1556} 1557 1558// Image context and/or feature-specific parameters. 1559type ImageContext struct { 1560 // Not used. 1561 LatLongRect *LatLongRect `protobuf:"bytes,1,opt,name=lat_long_rect,json=latLongRect,proto3" json:"lat_long_rect,omitempty"` 1562 // List of languages to use for TEXT_DETECTION. In most cases, an empty value 1563 // yields the best results since it enables automatic language detection. For 1564 // languages based on the Latin alphabet, setting `language_hints` is not 1565 // needed. In rare cases, when the language of the text in the image is known, 1566 // setting a hint will help get better results (although it will be a 1567 // significant hindrance if the hint is wrong). Text detection returns an 1568 // error if one or more of the specified languages is not one of the 1569 // [supported languages](/vision/docs/languages). 1570 LanguageHints []string `protobuf:"bytes,2,rep,name=language_hints,json=languageHints,proto3" json:"language_hints,omitempty"` 1571 // Parameters for crop hints annotation request. 1572 CropHintsParams *CropHintsParams `protobuf:"bytes,4,opt,name=crop_hints_params,json=cropHintsParams,proto3" json:"crop_hints_params,omitempty"` 1573 // Parameters for product search. 1574 ProductSearchParams *ProductSearchParams `protobuf:"bytes,5,opt,name=product_search_params,json=productSearchParams,proto3" json:"product_search_params,omitempty"` 1575 // Parameters for web detection. 1576 WebDetectionParams *WebDetectionParams `protobuf:"bytes,6,opt,name=web_detection_params,json=webDetectionParams,proto3" json:"web_detection_params,omitempty"` 1577 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1578 XXX_unrecognized []byte `json:"-"` 1579 XXX_sizecache int32 `json:"-"` 1580} 1581 1582func (m *ImageContext) Reset() { *m = ImageContext{} } 1583func (m *ImageContext) String() string { return proto.CompactTextString(m) } 1584func (*ImageContext) ProtoMessage() {} 1585func (*ImageContext) Descriptor() ([]byte, []int) { 1586 return fileDescriptor_2b863578148790db, []int{17} 1587} 1588 1589func (m *ImageContext) XXX_Unmarshal(b []byte) error { 1590 return xxx_messageInfo_ImageContext.Unmarshal(m, b) 1591} 1592func (m *ImageContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1593 return xxx_messageInfo_ImageContext.Marshal(b, m, deterministic) 1594} 1595func (m *ImageContext) XXX_Merge(src proto.Message) { 1596 xxx_messageInfo_ImageContext.Merge(m, src) 1597} 1598func (m *ImageContext) XXX_Size() int { 1599 return xxx_messageInfo_ImageContext.Size(m) 1600} 1601func (m *ImageContext) XXX_DiscardUnknown() { 1602 xxx_messageInfo_ImageContext.DiscardUnknown(m) 1603} 1604 1605var xxx_messageInfo_ImageContext proto.InternalMessageInfo 1606 1607func (m *ImageContext) GetLatLongRect() *LatLongRect { 1608 if m != nil { 1609 return m.LatLongRect 1610 } 1611 return nil 1612} 1613 1614func (m *ImageContext) GetLanguageHints() []string { 1615 if m != nil { 1616 return m.LanguageHints 1617 } 1618 return nil 1619} 1620 1621func (m *ImageContext) GetCropHintsParams() *CropHintsParams { 1622 if m != nil { 1623 return m.CropHintsParams 1624 } 1625 return nil 1626} 1627 1628func (m *ImageContext) GetProductSearchParams() *ProductSearchParams { 1629 if m != nil { 1630 return m.ProductSearchParams 1631 } 1632 return nil 1633} 1634 1635func (m *ImageContext) GetWebDetectionParams() *WebDetectionParams { 1636 if m != nil { 1637 return m.WebDetectionParams 1638 } 1639 return nil 1640} 1641 1642// Request for performing Google Cloud Vision API tasks over a user-provided 1643// image, with user-requested features. 1644type AnnotateImageRequest struct { 1645 // The image to be processed. 1646 Image *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` 1647 // Requested features. 1648 Features []*Feature `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"` 1649 // Additional context that may accompany the image. 1650 ImageContext *ImageContext `protobuf:"bytes,3,opt,name=image_context,json=imageContext,proto3" json:"image_context,omitempty"` 1651 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1652 XXX_unrecognized []byte `json:"-"` 1653 XXX_sizecache int32 `json:"-"` 1654} 1655 1656func (m *AnnotateImageRequest) Reset() { *m = AnnotateImageRequest{} } 1657func (m *AnnotateImageRequest) String() string { return proto.CompactTextString(m) } 1658func (*AnnotateImageRequest) ProtoMessage() {} 1659func (*AnnotateImageRequest) Descriptor() ([]byte, []int) { 1660 return fileDescriptor_2b863578148790db, []int{18} 1661} 1662 1663func (m *AnnotateImageRequest) XXX_Unmarshal(b []byte) error { 1664 return xxx_messageInfo_AnnotateImageRequest.Unmarshal(m, b) 1665} 1666func (m *AnnotateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1667 return xxx_messageInfo_AnnotateImageRequest.Marshal(b, m, deterministic) 1668} 1669func (m *AnnotateImageRequest) XXX_Merge(src proto.Message) { 1670 xxx_messageInfo_AnnotateImageRequest.Merge(m, src) 1671} 1672func (m *AnnotateImageRequest) XXX_Size() int { 1673 return xxx_messageInfo_AnnotateImageRequest.Size(m) 1674} 1675func (m *AnnotateImageRequest) XXX_DiscardUnknown() { 1676 xxx_messageInfo_AnnotateImageRequest.DiscardUnknown(m) 1677} 1678 1679var xxx_messageInfo_AnnotateImageRequest proto.InternalMessageInfo 1680 1681func (m *AnnotateImageRequest) GetImage() *Image { 1682 if m != nil { 1683 return m.Image 1684 } 1685 return nil 1686} 1687 1688func (m *AnnotateImageRequest) GetFeatures() []*Feature { 1689 if m != nil { 1690 return m.Features 1691 } 1692 return nil 1693} 1694 1695func (m *AnnotateImageRequest) GetImageContext() *ImageContext { 1696 if m != nil { 1697 return m.ImageContext 1698 } 1699 return nil 1700} 1701 1702// If an image was produced from a file (e.g. a PDF), this message gives 1703// information about the source of that image. 1704type ImageAnnotationContext struct { 1705 // The URI of the file used to produce the image. 1706 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 1707 // If the file was a PDF or TIFF, this field gives the page number within 1708 // the file used to produce the image. 1709 PageNumber int32 `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` 1710 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1711 XXX_unrecognized []byte `json:"-"` 1712 XXX_sizecache int32 `json:"-"` 1713} 1714 1715func (m *ImageAnnotationContext) Reset() { *m = ImageAnnotationContext{} } 1716func (m *ImageAnnotationContext) String() string { return proto.CompactTextString(m) } 1717func (*ImageAnnotationContext) ProtoMessage() {} 1718func (*ImageAnnotationContext) Descriptor() ([]byte, []int) { 1719 return fileDescriptor_2b863578148790db, []int{19} 1720} 1721 1722func (m *ImageAnnotationContext) XXX_Unmarshal(b []byte) error { 1723 return xxx_messageInfo_ImageAnnotationContext.Unmarshal(m, b) 1724} 1725func (m *ImageAnnotationContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1726 return xxx_messageInfo_ImageAnnotationContext.Marshal(b, m, deterministic) 1727} 1728func (m *ImageAnnotationContext) XXX_Merge(src proto.Message) { 1729 xxx_messageInfo_ImageAnnotationContext.Merge(m, src) 1730} 1731func (m *ImageAnnotationContext) XXX_Size() int { 1732 return xxx_messageInfo_ImageAnnotationContext.Size(m) 1733} 1734func (m *ImageAnnotationContext) XXX_DiscardUnknown() { 1735 xxx_messageInfo_ImageAnnotationContext.DiscardUnknown(m) 1736} 1737 1738var xxx_messageInfo_ImageAnnotationContext proto.InternalMessageInfo 1739 1740func (m *ImageAnnotationContext) GetUri() string { 1741 if m != nil { 1742 return m.Uri 1743 } 1744 return "" 1745} 1746 1747func (m *ImageAnnotationContext) GetPageNumber() int32 { 1748 if m != nil { 1749 return m.PageNumber 1750 } 1751 return 0 1752} 1753 1754// Response to an image annotation request. 1755type AnnotateImageResponse struct { 1756 // If present, face detection has completed successfully. 1757 FaceAnnotations []*FaceAnnotation `protobuf:"bytes,1,rep,name=face_annotations,json=faceAnnotations,proto3" json:"face_annotations,omitempty"` 1758 // If present, landmark detection has completed successfully. 1759 LandmarkAnnotations []*EntityAnnotation `protobuf:"bytes,2,rep,name=landmark_annotations,json=landmarkAnnotations,proto3" json:"landmark_annotations,omitempty"` 1760 // If present, logo detection has completed successfully. 1761 LogoAnnotations []*EntityAnnotation `protobuf:"bytes,3,rep,name=logo_annotations,json=logoAnnotations,proto3" json:"logo_annotations,omitempty"` 1762 // If present, label detection has completed successfully. 1763 LabelAnnotations []*EntityAnnotation `protobuf:"bytes,4,rep,name=label_annotations,json=labelAnnotations,proto3" json:"label_annotations,omitempty"` 1764 // If present, localized object detection has completed successfully. 1765 // This will be sorted descending by confidence score. 1766 LocalizedObjectAnnotations []*LocalizedObjectAnnotation `protobuf:"bytes,22,rep,name=localized_object_annotations,json=localizedObjectAnnotations,proto3" json:"localized_object_annotations,omitempty"` 1767 // If present, text (OCR) detection has completed successfully. 1768 TextAnnotations []*EntityAnnotation `protobuf:"bytes,5,rep,name=text_annotations,json=textAnnotations,proto3" json:"text_annotations,omitempty"` 1769 // If present, text (OCR) detection or document (OCR) text detection has 1770 // completed successfully. 1771 // This annotation provides the structural hierarchy for the OCR detected 1772 // text. 1773 FullTextAnnotation *TextAnnotation `protobuf:"bytes,12,opt,name=full_text_annotation,json=fullTextAnnotation,proto3" json:"full_text_annotation,omitempty"` 1774 // If present, safe-search annotation has completed successfully. 1775 SafeSearchAnnotation *SafeSearchAnnotation `protobuf:"bytes,6,opt,name=safe_search_annotation,json=safeSearchAnnotation,proto3" json:"safe_search_annotation,omitempty"` 1776 // If present, image properties were extracted successfully. 1777 ImagePropertiesAnnotation *ImageProperties `protobuf:"bytes,8,opt,name=image_properties_annotation,json=imagePropertiesAnnotation,proto3" json:"image_properties_annotation,omitempty"` 1778 // If present, crop hints have completed successfully. 1779 CropHintsAnnotation *CropHintsAnnotation `protobuf:"bytes,11,opt,name=crop_hints_annotation,json=cropHintsAnnotation,proto3" json:"crop_hints_annotation,omitempty"` 1780 // If present, web detection has completed successfully. 1781 WebDetection *WebDetection `protobuf:"bytes,13,opt,name=web_detection,json=webDetection,proto3" json:"web_detection,omitempty"` 1782 // If present, product search has completed successfully. 1783 ProductSearchResults *ProductSearchResults `protobuf:"bytes,14,opt,name=product_search_results,json=productSearchResults,proto3" json:"product_search_results,omitempty"` 1784 // If set, represents the error message for the operation. 1785 // Note that filled-in image annotations are guaranteed to be 1786 // correct, even when `error` is set. 1787 Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` 1788 // If present, contextual information is needed to understand where this image 1789 // comes from. 1790 Context *ImageAnnotationContext `protobuf:"bytes,21,opt,name=context,proto3" json:"context,omitempty"` 1791 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1792 XXX_unrecognized []byte `json:"-"` 1793 XXX_sizecache int32 `json:"-"` 1794} 1795 1796func (m *AnnotateImageResponse) Reset() { *m = AnnotateImageResponse{} } 1797func (m *AnnotateImageResponse) String() string { return proto.CompactTextString(m) } 1798func (*AnnotateImageResponse) ProtoMessage() {} 1799func (*AnnotateImageResponse) Descriptor() ([]byte, []int) { 1800 return fileDescriptor_2b863578148790db, []int{20} 1801} 1802 1803func (m *AnnotateImageResponse) XXX_Unmarshal(b []byte) error { 1804 return xxx_messageInfo_AnnotateImageResponse.Unmarshal(m, b) 1805} 1806func (m *AnnotateImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1807 return xxx_messageInfo_AnnotateImageResponse.Marshal(b, m, deterministic) 1808} 1809func (m *AnnotateImageResponse) XXX_Merge(src proto.Message) { 1810 xxx_messageInfo_AnnotateImageResponse.Merge(m, src) 1811} 1812func (m *AnnotateImageResponse) XXX_Size() int { 1813 return xxx_messageInfo_AnnotateImageResponse.Size(m) 1814} 1815func (m *AnnotateImageResponse) XXX_DiscardUnknown() { 1816 xxx_messageInfo_AnnotateImageResponse.DiscardUnknown(m) 1817} 1818 1819var xxx_messageInfo_AnnotateImageResponse proto.InternalMessageInfo 1820 1821func (m *AnnotateImageResponse) GetFaceAnnotations() []*FaceAnnotation { 1822 if m != nil { 1823 return m.FaceAnnotations 1824 } 1825 return nil 1826} 1827 1828func (m *AnnotateImageResponse) GetLandmarkAnnotations() []*EntityAnnotation { 1829 if m != nil { 1830 return m.LandmarkAnnotations 1831 } 1832 return nil 1833} 1834 1835func (m *AnnotateImageResponse) GetLogoAnnotations() []*EntityAnnotation { 1836 if m != nil { 1837 return m.LogoAnnotations 1838 } 1839 return nil 1840} 1841 1842func (m *AnnotateImageResponse) GetLabelAnnotations() []*EntityAnnotation { 1843 if m != nil { 1844 return m.LabelAnnotations 1845 } 1846 return nil 1847} 1848 1849func (m *AnnotateImageResponse) GetLocalizedObjectAnnotations() []*LocalizedObjectAnnotation { 1850 if m != nil { 1851 return m.LocalizedObjectAnnotations 1852 } 1853 return nil 1854} 1855 1856func (m *AnnotateImageResponse) GetTextAnnotations() []*EntityAnnotation { 1857 if m != nil { 1858 return m.TextAnnotations 1859 } 1860 return nil 1861} 1862 1863func (m *AnnotateImageResponse) GetFullTextAnnotation() *TextAnnotation { 1864 if m != nil { 1865 return m.FullTextAnnotation 1866 } 1867 return nil 1868} 1869 1870func (m *AnnotateImageResponse) GetSafeSearchAnnotation() *SafeSearchAnnotation { 1871 if m != nil { 1872 return m.SafeSearchAnnotation 1873 } 1874 return nil 1875} 1876 1877func (m *AnnotateImageResponse) GetImagePropertiesAnnotation() *ImageProperties { 1878 if m != nil { 1879 return m.ImagePropertiesAnnotation 1880 } 1881 return nil 1882} 1883 1884func (m *AnnotateImageResponse) GetCropHintsAnnotation() *CropHintsAnnotation { 1885 if m != nil { 1886 return m.CropHintsAnnotation 1887 } 1888 return nil 1889} 1890 1891func (m *AnnotateImageResponse) GetWebDetection() *WebDetection { 1892 if m != nil { 1893 return m.WebDetection 1894 } 1895 return nil 1896} 1897 1898func (m *AnnotateImageResponse) GetProductSearchResults() *ProductSearchResults { 1899 if m != nil { 1900 return m.ProductSearchResults 1901 } 1902 return nil 1903} 1904 1905func (m *AnnotateImageResponse) GetError() *status.Status { 1906 if m != nil { 1907 return m.Error 1908 } 1909 return nil 1910} 1911 1912func (m *AnnotateImageResponse) GetContext() *ImageAnnotationContext { 1913 if m != nil { 1914 return m.Context 1915 } 1916 return nil 1917} 1918 1919// Response to a single file annotation request. A file may contain one or more 1920// images, which individually have their own responses. 1921type AnnotateFileResponse struct { 1922 // Information about the file for which this response is generated. 1923 InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` 1924 // Individual responses to images found within the file. 1925 Responses []*AnnotateImageResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` 1926 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1927 XXX_unrecognized []byte `json:"-"` 1928 XXX_sizecache int32 `json:"-"` 1929} 1930 1931func (m *AnnotateFileResponse) Reset() { *m = AnnotateFileResponse{} } 1932func (m *AnnotateFileResponse) String() string { return proto.CompactTextString(m) } 1933func (*AnnotateFileResponse) ProtoMessage() {} 1934func (*AnnotateFileResponse) Descriptor() ([]byte, []int) { 1935 return fileDescriptor_2b863578148790db, []int{21} 1936} 1937 1938func (m *AnnotateFileResponse) XXX_Unmarshal(b []byte) error { 1939 return xxx_messageInfo_AnnotateFileResponse.Unmarshal(m, b) 1940} 1941func (m *AnnotateFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1942 return xxx_messageInfo_AnnotateFileResponse.Marshal(b, m, deterministic) 1943} 1944func (m *AnnotateFileResponse) XXX_Merge(src proto.Message) { 1945 xxx_messageInfo_AnnotateFileResponse.Merge(m, src) 1946} 1947func (m *AnnotateFileResponse) XXX_Size() int { 1948 return xxx_messageInfo_AnnotateFileResponse.Size(m) 1949} 1950func (m *AnnotateFileResponse) XXX_DiscardUnknown() { 1951 xxx_messageInfo_AnnotateFileResponse.DiscardUnknown(m) 1952} 1953 1954var xxx_messageInfo_AnnotateFileResponse proto.InternalMessageInfo 1955 1956func (m *AnnotateFileResponse) GetInputConfig() *InputConfig { 1957 if m != nil { 1958 return m.InputConfig 1959 } 1960 return nil 1961} 1962 1963func (m *AnnotateFileResponse) GetResponses() []*AnnotateImageResponse { 1964 if m != nil { 1965 return m.Responses 1966 } 1967 return nil 1968} 1969 1970// Multiple image annotation requests are batched into a single service call. 1971type BatchAnnotateImagesRequest struct { 1972 // Individual image annotation requests for this batch. 1973 Requests []*AnnotateImageRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` 1974 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1975 XXX_unrecognized []byte `json:"-"` 1976 XXX_sizecache int32 `json:"-"` 1977} 1978 1979func (m *BatchAnnotateImagesRequest) Reset() { *m = BatchAnnotateImagesRequest{} } 1980func (m *BatchAnnotateImagesRequest) String() string { return proto.CompactTextString(m) } 1981func (*BatchAnnotateImagesRequest) ProtoMessage() {} 1982func (*BatchAnnotateImagesRequest) Descriptor() ([]byte, []int) { 1983 return fileDescriptor_2b863578148790db, []int{22} 1984} 1985 1986func (m *BatchAnnotateImagesRequest) XXX_Unmarshal(b []byte) error { 1987 return xxx_messageInfo_BatchAnnotateImagesRequest.Unmarshal(m, b) 1988} 1989func (m *BatchAnnotateImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1990 return xxx_messageInfo_BatchAnnotateImagesRequest.Marshal(b, m, deterministic) 1991} 1992func (m *BatchAnnotateImagesRequest) XXX_Merge(src proto.Message) { 1993 xxx_messageInfo_BatchAnnotateImagesRequest.Merge(m, src) 1994} 1995func (m *BatchAnnotateImagesRequest) XXX_Size() int { 1996 return xxx_messageInfo_BatchAnnotateImagesRequest.Size(m) 1997} 1998func (m *BatchAnnotateImagesRequest) XXX_DiscardUnknown() { 1999 xxx_messageInfo_BatchAnnotateImagesRequest.DiscardUnknown(m) 2000} 2001 2002var xxx_messageInfo_BatchAnnotateImagesRequest proto.InternalMessageInfo 2003 2004func (m *BatchAnnotateImagesRequest) GetRequests() []*AnnotateImageRequest { 2005 if m != nil { 2006 return m.Requests 2007 } 2008 return nil 2009} 2010 2011// Response to a batch image annotation request. 2012type BatchAnnotateImagesResponse struct { 2013 // Individual responses to image annotation requests within the batch. 2014 Responses []*AnnotateImageResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` 2015 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2016 XXX_unrecognized []byte `json:"-"` 2017 XXX_sizecache int32 `json:"-"` 2018} 2019 2020func (m *BatchAnnotateImagesResponse) Reset() { *m = BatchAnnotateImagesResponse{} } 2021func (m *BatchAnnotateImagesResponse) String() string { return proto.CompactTextString(m) } 2022func (*BatchAnnotateImagesResponse) ProtoMessage() {} 2023func (*BatchAnnotateImagesResponse) Descriptor() ([]byte, []int) { 2024 return fileDescriptor_2b863578148790db, []int{23} 2025} 2026 2027func (m *BatchAnnotateImagesResponse) XXX_Unmarshal(b []byte) error { 2028 return xxx_messageInfo_BatchAnnotateImagesResponse.Unmarshal(m, b) 2029} 2030func (m *BatchAnnotateImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2031 return xxx_messageInfo_BatchAnnotateImagesResponse.Marshal(b, m, deterministic) 2032} 2033func (m *BatchAnnotateImagesResponse) XXX_Merge(src proto.Message) { 2034 xxx_messageInfo_BatchAnnotateImagesResponse.Merge(m, src) 2035} 2036func (m *BatchAnnotateImagesResponse) XXX_Size() int { 2037 return xxx_messageInfo_BatchAnnotateImagesResponse.Size(m) 2038} 2039func (m *BatchAnnotateImagesResponse) XXX_DiscardUnknown() { 2040 xxx_messageInfo_BatchAnnotateImagesResponse.DiscardUnknown(m) 2041} 2042 2043var xxx_messageInfo_BatchAnnotateImagesResponse proto.InternalMessageInfo 2044 2045func (m *BatchAnnotateImagesResponse) GetResponses() []*AnnotateImageResponse { 2046 if m != nil { 2047 return m.Responses 2048 } 2049 return nil 2050} 2051 2052// An offline file annotation request. 2053type AsyncAnnotateFileRequest struct { 2054 // Required. Information about the input file. 2055 InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` 2056 // Required. Requested features. 2057 Features []*Feature `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"` 2058 // Additional context that may accompany the image(s) in the file. 2059 ImageContext *ImageContext `protobuf:"bytes,3,opt,name=image_context,json=imageContext,proto3" json:"image_context,omitempty"` 2060 // Required. The desired output location and metadata (e.g. format). 2061 OutputConfig *OutputConfig `protobuf:"bytes,4,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` 2062 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2063 XXX_unrecognized []byte `json:"-"` 2064 XXX_sizecache int32 `json:"-"` 2065} 2066 2067func (m *AsyncAnnotateFileRequest) Reset() { *m = AsyncAnnotateFileRequest{} } 2068func (m *AsyncAnnotateFileRequest) String() string { return proto.CompactTextString(m) } 2069func (*AsyncAnnotateFileRequest) ProtoMessage() {} 2070func (*AsyncAnnotateFileRequest) Descriptor() ([]byte, []int) { 2071 return fileDescriptor_2b863578148790db, []int{24} 2072} 2073 2074func (m *AsyncAnnotateFileRequest) XXX_Unmarshal(b []byte) error { 2075 return xxx_messageInfo_AsyncAnnotateFileRequest.Unmarshal(m, b) 2076} 2077func (m *AsyncAnnotateFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2078 return xxx_messageInfo_AsyncAnnotateFileRequest.Marshal(b, m, deterministic) 2079} 2080func (m *AsyncAnnotateFileRequest) XXX_Merge(src proto.Message) { 2081 xxx_messageInfo_AsyncAnnotateFileRequest.Merge(m, src) 2082} 2083func (m *AsyncAnnotateFileRequest) XXX_Size() int { 2084 return xxx_messageInfo_AsyncAnnotateFileRequest.Size(m) 2085} 2086func (m *AsyncAnnotateFileRequest) XXX_DiscardUnknown() { 2087 xxx_messageInfo_AsyncAnnotateFileRequest.DiscardUnknown(m) 2088} 2089 2090var xxx_messageInfo_AsyncAnnotateFileRequest proto.InternalMessageInfo 2091 2092func (m *AsyncAnnotateFileRequest) GetInputConfig() *InputConfig { 2093 if m != nil { 2094 return m.InputConfig 2095 } 2096 return nil 2097} 2098 2099func (m *AsyncAnnotateFileRequest) GetFeatures() []*Feature { 2100 if m != nil { 2101 return m.Features 2102 } 2103 return nil 2104} 2105 2106func (m *AsyncAnnotateFileRequest) GetImageContext() *ImageContext { 2107 if m != nil { 2108 return m.ImageContext 2109 } 2110 return nil 2111} 2112 2113func (m *AsyncAnnotateFileRequest) GetOutputConfig() *OutputConfig { 2114 if m != nil { 2115 return m.OutputConfig 2116 } 2117 return nil 2118} 2119 2120// The response for a single offline file annotation request. 2121type AsyncAnnotateFileResponse struct { 2122 // The output location and metadata from AsyncAnnotateFileRequest. 2123 OutputConfig *OutputConfig `protobuf:"bytes,1,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` 2124 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2125 XXX_unrecognized []byte `json:"-"` 2126 XXX_sizecache int32 `json:"-"` 2127} 2128 2129func (m *AsyncAnnotateFileResponse) Reset() { *m = AsyncAnnotateFileResponse{} } 2130func (m *AsyncAnnotateFileResponse) String() string { return proto.CompactTextString(m) } 2131func (*AsyncAnnotateFileResponse) ProtoMessage() {} 2132func (*AsyncAnnotateFileResponse) Descriptor() ([]byte, []int) { 2133 return fileDescriptor_2b863578148790db, []int{25} 2134} 2135 2136func (m *AsyncAnnotateFileResponse) XXX_Unmarshal(b []byte) error { 2137 return xxx_messageInfo_AsyncAnnotateFileResponse.Unmarshal(m, b) 2138} 2139func (m *AsyncAnnotateFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2140 return xxx_messageInfo_AsyncAnnotateFileResponse.Marshal(b, m, deterministic) 2141} 2142func (m *AsyncAnnotateFileResponse) XXX_Merge(src proto.Message) { 2143 xxx_messageInfo_AsyncAnnotateFileResponse.Merge(m, src) 2144} 2145func (m *AsyncAnnotateFileResponse) XXX_Size() int { 2146 return xxx_messageInfo_AsyncAnnotateFileResponse.Size(m) 2147} 2148func (m *AsyncAnnotateFileResponse) XXX_DiscardUnknown() { 2149 xxx_messageInfo_AsyncAnnotateFileResponse.DiscardUnknown(m) 2150} 2151 2152var xxx_messageInfo_AsyncAnnotateFileResponse proto.InternalMessageInfo 2153 2154func (m *AsyncAnnotateFileResponse) GetOutputConfig() *OutputConfig { 2155 if m != nil { 2156 return m.OutputConfig 2157 } 2158 return nil 2159} 2160 2161// Multiple async file annotation requests are batched into a single service 2162// call. 2163type AsyncBatchAnnotateFilesRequest struct { 2164 // Required. Individual async file annotation requests for this batch. 2165 Requests []*AsyncAnnotateFileRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` 2166 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2167 XXX_unrecognized []byte `json:"-"` 2168 XXX_sizecache int32 `json:"-"` 2169} 2170 2171func (m *AsyncBatchAnnotateFilesRequest) Reset() { *m = AsyncBatchAnnotateFilesRequest{} } 2172func (m *AsyncBatchAnnotateFilesRequest) String() string { return proto.CompactTextString(m) } 2173func (*AsyncBatchAnnotateFilesRequest) ProtoMessage() {} 2174func (*AsyncBatchAnnotateFilesRequest) Descriptor() ([]byte, []int) { 2175 return fileDescriptor_2b863578148790db, []int{26} 2176} 2177 2178func (m *AsyncBatchAnnotateFilesRequest) XXX_Unmarshal(b []byte) error { 2179 return xxx_messageInfo_AsyncBatchAnnotateFilesRequest.Unmarshal(m, b) 2180} 2181func (m *AsyncBatchAnnotateFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2182 return xxx_messageInfo_AsyncBatchAnnotateFilesRequest.Marshal(b, m, deterministic) 2183} 2184func (m *AsyncBatchAnnotateFilesRequest) XXX_Merge(src proto.Message) { 2185 xxx_messageInfo_AsyncBatchAnnotateFilesRequest.Merge(m, src) 2186} 2187func (m *AsyncBatchAnnotateFilesRequest) XXX_Size() int { 2188 return xxx_messageInfo_AsyncBatchAnnotateFilesRequest.Size(m) 2189} 2190func (m *AsyncBatchAnnotateFilesRequest) XXX_DiscardUnknown() { 2191 xxx_messageInfo_AsyncBatchAnnotateFilesRequest.DiscardUnknown(m) 2192} 2193 2194var xxx_messageInfo_AsyncBatchAnnotateFilesRequest proto.InternalMessageInfo 2195 2196func (m *AsyncBatchAnnotateFilesRequest) GetRequests() []*AsyncAnnotateFileRequest { 2197 if m != nil { 2198 return m.Requests 2199 } 2200 return nil 2201} 2202 2203// Response to an async batch file annotation request. 2204type AsyncBatchAnnotateFilesResponse struct { 2205 // The list of file annotation responses, one for each request in 2206 // AsyncBatchAnnotateFilesRequest. 2207 Responses []*AsyncAnnotateFileResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` 2208 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2209 XXX_unrecognized []byte `json:"-"` 2210 XXX_sizecache int32 `json:"-"` 2211} 2212 2213func (m *AsyncBatchAnnotateFilesResponse) Reset() { *m = AsyncBatchAnnotateFilesResponse{} } 2214func (m *AsyncBatchAnnotateFilesResponse) String() string { return proto.CompactTextString(m) } 2215func (*AsyncBatchAnnotateFilesResponse) ProtoMessage() {} 2216func (*AsyncBatchAnnotateFilesResponse) Descriptor() ([]byte, []int) { 2217 return fileDescriptor_2b863578148790db, []int{27} 2218} 2219 2220func (m *AsyncBatchAnnotateFilesResponse) XXX_Unmarshal(b []byte) error { 2221 return xxx_messageInfo_AsyncBatchAnnotateFilesResponse.Unmarshal(m, b) 2222} 2223func (m *AsyncBatchAnnotateFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2224 return xxx_messageInfo_AsyncBatchAnnotateFilesResponse.Marshal(b, m, deterministic) 2225} 2226func (m *AsyncBatchAnnotateFilesResponse) XXX_Merge(src proto.Message) { 2227 xxx_messageInfo_AsyncBatchAnnotateFilesResponse.Merge(m, src) 2228} 2229func (m *AsyncBatchAnnotateFilesResponse) XXX_Size() int { 2230 return xxx_messageInfo_AsyncBatchAnnotateFilesResponse.Size(m) 2231} 2232func (m *AsyncBatchAnnotateFilesResponse) XXX_DiscardUnknown() { 2233 xxx_messageInfo_AsyncBatchAnnotateFilesResponse.DiscardUnknown(m) 2234} 2235 2236var xxx_messageInfo_AsyncBatchAnnotateFilesResponse proto.InternalMessageInfo 2237 2238func (m *AsyncBatchAnnotateFilesResponse) GetResponses() []*AsyncAnnotateFileResponse { 2239 if m != nil { 2240 return m.Responses 2241 } 2242 return nil 2243} 2244 2245// The desired input location and metadata. 2246type InputConfig struct { 2247 // The Google Cloud Storage location to read the input from. 2248 GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3" json:"gcs_source,omitempty"` 2249 // The type of the file. Currently only "application/pdf" and "image/tiff" 2250 // are supported. Wildcards are not supported. 2251 MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` 2252 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2253 XXX_unrecognized []byte `json:"-"` 2254 XXX_sizecache int32 `json:"-"` 2255} 2256 2257func (m *InputConfig) Reset() { *m = InputConfig{} } 2258func (m *InputConfig) String() string { return proto.CompactTextString(m) } 2259func (*InputConfig) ProtoMessage() {} 2260func (*InputConfig) Descriptor() ([]byte, []int) { 2261 return fileDescriptor_2b863578148790db, []int{28} 2262} 2263 2264func (m *InputConfig) XXX_Unmarshal(b []byte) error { 2265 return xxx_messageInfo_InputConfig.Unmarshal(m, b) 2266} 2267func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2268 return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic) 2269} 2270func (m *InputConfig) XXX_Merge(src proto.Message) { 2271 xxx_messageInfo_InputConfig.Merge(m, src) 2272} 2273func (m *InputConfig) XXX_Size() int { 2274 return xxx_messageInfo_InputConfig.Size(m) 2275} 2276func (m *InputConfig) XXX_DiscardUnknown() { 2277 xxx_messageInfo_InputConfig.DiscardUnknown(m) 2278} 2279 2280var xxx_messageInfo_InputConfig proto.InternalMessageInfo 2281 2282func (m *InputConfig) GetGcsSource() *GcsSource { 2283 if m != nil { 2284 return m.GcsSource 2285 } 2286 return nil 2287} 2288 2289func (m *InputConfig) GetMimeType() string { 2290 if m != nil { 2291 return m.MimeType 2292 } 2293 return "" 2294} 2295 2296// The desired output location and metadata. 2297type OutputConfig struct { 2298 // The Google Cloud Storage location to write the output(s) to. 2299 GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3" json:"gcs_destination,omitempty"` 2300 // The max number of response protos to put into each output JSON file on 2301 // Google Cloud Storage. 2302 // The valid range is [1, 100]. If not specified, the default value is 20. 2303 // 2304 // For example, for one pdf file with 100 pages, 100 response protos will 2305 // be generated. If `batch_size` = 20, then 5 json files each 2306 // containing 20 response protos will be written under the prefix 2307 // `gcs_destination`.`uri`. 2308 // 2309 // Currently, batch_size only applies to GcsDestination, with potential future 2310 // support for other output configurations. 2311 BatchSize int32 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` 2312 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2313 XXX_unrecognized []byte `json:"-"` 2314 XXX_sizecache int32 `json:"-"` 2315} 2316 2317func (m *OutputConfig) Reset() { *m = OutputConfig{} } 2318func (m *OutputConfig) String() string { return proto.CompactTextString(m) } 2319func (*OutputConfig) ProtoMessage() {} 2320func (*OutputConfig) Descriptor() ([]byte, []int) { 2321 return fileDescriptor_2b863578148790db, []int{29} 2322} 2323 2324func (m *OutputConfig) XXX_Unmarshal(b []byte) error { 2325 return xxx_messageInfo_OutputConfig.Unmarshal(m, b) 2326} 2327func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2328 return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic) 2329} 2330func (m *OutputConfig) XXX_Merge(src proto.Message) { 2331 xxx_messageInfo_OutputConfig.Merge(m, src) 2332} 2333func (m *OutputConfig) XXX_Size() int { 2334 return xxx_messageInfo_OutputConfig.Size(m) 2335} 2336func (m *OutputConfig) XXX_DiscardUnknown() { 2337 xxx_messageInfo_OutputConfig.DiscardUnknown(m) 2338} 2339 2340var xxx_messageInfo_OutputConfig proto.InternalMessageInfo 2341 2342func (m *OutputConfig) GetGcsDestination() *GcsDestination { 2343 if m != nil { 2344 return m.GcsDestination 2345 } 2346 return nil 2347} 2348 2349func (m *OutputConfig) GetBatchSize() int32 { 2350 if m != nil { 2351 return m.BatchSize 2352 } 2353 return 0 2354} 2355 2356// The Google Cloud Storage location where the input will be read from. 2357type GcsSource struct { 2358 // Google Cloud Storage URI for the input file. This must only be a 2359 // Google Cloud Storage object. Wildcards are not currently supported. 2360 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 2361 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2362 XXX_unrecognized []byte `json:"-"` 2363 XXX_sizecache int32 `json:"-"` 2364} 2365 2366func (m *GcsSource) Reset() { *m = GcsSource{} } 2367func (m *GcsSource) String() string { return proto.CompactTextString(m) } 2368func (*GcsSource) ProtoMessage() {} 2369func (*GcsSource) Descriptor() ([]byte, []int) { 2370 return fileDescriptor_2b863578148790db, []int{30} 2371} 2372 2373func (m *GcsSource) XXX_Unmarshal(b []byte) error { 2374 return xxx_messageInfo_GcsSource.Unmarshal(m, b) 2375} 2376func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2377 return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic) 2378} 2379func (m *GcsSource) XXX_Merge(src proto.Message) { 2380 xxx_messageInfo_GcsSource.Merge(m, src) 2381} 2382func (m *GcsSource) XXX_Size() int { 2383 return xxx_messageInfo_GcsSource.Size(m) 2384} 2385func (m *GcsSource) XXX_DiscardUnknown() { 2386 xxx_messageInfo_GcsSource.DiscardUnknown(m) 2387} 2388 2389var xxx_messageInfo_GcsSource proto.InternalMessageInfo 2390 2391func (m *GcsSource) GetUri() string { 2392 if m != nil { 2393 return m.Uri 2394 } 2395 return "" 2396} 2397 2398// The Google Cloud Storage location where the output will be written to. 2399type GcsDestination struct { 2400 // Google Cloud Storage URI where the results will be stored. Results will 2401 // be in JSON format and preceded by its corresponding input URI. This field 2402 // can either represent a single file, or a prefix for multiple outputs. 2403 // Prefixes must end in a `/`. 2404 // 2405 // Examples: 2406 // 2407 // * File: gs://bucket-name/filename.json 2408 // * Prefix: gs://bucket-name/prefix/here/ 2409 // * File: gs://bucket-name/prefix/here 2410 // 2411 // If multiple outputs, each response is still AnnotateFileResponse, each of 2412 // which contains some subset of the full list of AnnotateImageResponse. 2413 // Multiple outputs can happen if, for example, the output JSON is too large 2414 // and overflows into multiple sharded files. 2415 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 2416 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2417 XXX_unrecognized []byte `json:"-"` 2418 XXX_sizecache int32 `json:"-"` 2419} 2420 2421func (m *GcsDestination) Reset() { *m = GcsDestination{} } 2422func (m *GcsDestination) String() string { return proto.CompactTextString(m) } 2423func (*GcsDestination) ProtoMessage() {} 2424func (*GcsDestination) Descriptor() ([]byte, []int) { 2425 return fileDescriptor_2b863578148790db, []int{31} 2426} 2427 2428func (m *GcsDestination) XXX_Unmarshal(b []byte) error { 2429 return xxx_messageInfo_GcsDestination.Unmarshal(m, b) 2430} 2431func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2432 return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic) 2433} 2434func (m *GcsDestination) XXX_Merge(src proto.Message) { 2435 xxx_messageInfo_GcsDestination.Merge(m, src) 2436} 2437func (m *GcsDestination) XXX_Size() int { 2438 return xxx_messageInfo_GcsDestination.Size(m) 2439} 2440func (m *GcsDestination) XXX_DiscardUnknown() { 2441 xxx_messageInfo_GcsDestination.DiscardUnknown(m) 2442} 2443 2444var xxx_messageInfo_GcsDestination proto.InternalMessageInfo 2445 2446func (m *GcsDestination) GetUri() string { 2447 if m != nil { 2448 return m.Uri 2449 } 2450 return "" 2451} 2452 2453// Contains metadata for the BatchAnnotateImages operation. 2454type OperationMetadata struct { 2455 // Current state of the batch operation. 2456 State OperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.vision.v1p3beta1.OperationMetadata_State" json:"state,omitempty"` 2457 // The time when the batch request was received. 2458 CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 2459 // The time when the operation result was last updated. 2460 UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 2461 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2462 XXX_unrecognized []byte `json:"-"` 2463 XXX_sizecache int32 `json:"-"` 2464} 2465 2466func (m *OperationMetadata) Reset() { *m = OperationMetadata{} } 2467func (m *OperationMetadata) String() string { return proto.CompactTextString(m) } 2468func (*OperationMetadata) ProtoMessage() {} 2469func (*OperationMetadata) Descriptor() ([]byte, []int) { 2470 return fileDescriptor_2b863578148790db, []int{32} 2471} 2472 2473func (m *OperationMetadata) XXX_Unmarshal(b []byte) error { 2474 return xxx_messageInfo_OperationMetadata.Unmarshal(m, b) 2475} 2476func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2477 return xxx_messageInfo_OperationMetadata.Marshal(b, m, deterministic) 2478} 2479func (m *OperationMetadata) XXX_Merge(src proto.Message) { 2480 xxx_messageInfo_OperationMetadata.Merge(m, src) 2481} 2482func (m *OperationMetadata) XXX_Size() int { 2483 return xxx_messageInfo_OperationMetadata.Size(m) 2484} 2485func (m *OperationMetadata) XXX_DiscardUnknown() { 2486 xxx_messageInfo_OperationMetadata.DiscardUnknown(m) 2487} 2488 2489var xxx_messageInfo_OperationMetadata proto.InternalMessageInfo 2490 2491func (m *OperationMetadata) GetState() OperationMetadata_State { 2492 if m != nil { 2493 return m.State 2494 } 2495 return OperationMetadata_STATE_UNSPECIFIED 2496} 2497 2498func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp { 2499 if m != nil { 2500 return m.CreateTime 2501 } 2502 return nil 2503} 2504 2505func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { 2506 if m != nil { 2507 return m.UpdateTime 2508 } 2509 return nil 2510} 2511 2512func init() { 2513 proto.RegisterEnum("google.cloud.vision.v1p3beta1.Likelihood", Likelihood_name, Likelihood_value) 2514 proto.RegisterEnum("google.cloud.vision.v1p3beta1.Feature_Type", Feature_Type_name, Feature_Type_value) 2515 proto.RegisterEnum("google.cloud.vision.v1p3beta1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) 2516 proto.RegisterEnum("google.cloud.vision.v1p3beta1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) 2517 proto.RegisterType((*Feature)(nil), "google.cloud.vision.v1p3beta1.Feature") 2518 proto.RegisterType((*ImageSource)(nil), "google.cloud.vision.v1p3beta1.ImageSource") 2519 proto.RegisterType((*Image)(nil), "google.cloud.vision.v1p3beta1.Image") 2520 proto.RegisterType((*FaceAnnotation)(nil), "google.cloud.vision.v1p3beta1.FaceAnnotation") 2521 proto.RegisterType((*FaceAnnotation_Landmark)(nil), "google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark") 2522 proto.RegisterType((*LocationInfo)(nil), "google.cloud.vision.v1p3beta1.LocationInfo") 2523 proto.RegisterType((*Property)(nil), "google.cloud.vision.v1p3beta1.Property") 2524 proto.RegisterType((*EntityAnnotation)(nil), "google.cloud.vision.v1p3beta1.EntityAnnotation") 2525 proto.RegisterType((*LocalizedObjectAnnotation)(nil), "google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation") 2526 proto.RegisterType((*SafeSearchAnnotation)(nil), "google.cloud.vision.v1p3beta1.SafeSearchAnnotation") 2527 proto.RegisterType((*LatLongRect)(nil), "google.cloud.vision.v1p3beta1.LatLongRect") 2528 proto.RegisterType((*ColorInfo)(nil), "google.cloud.vision.v1p3beta1.ColorInfo") 2529 proto.RegisterType((*DominantColorsAnnotation)(nil), "google.cloud.vision.v1p3beta1.DominantColorsAnnotation") 2530 proto.RegisterType((*ImageProperties)(nil), "google.cloud.vision.v1p3beta1.ImageProperties") 2531 proto.RegisterType((*CropHint)(nil), "google.cloud.vision.v1p3beta1.CropHint") 2532 proto.RegisterType((*CropHintsAnnotation)(nil), "google.cloud.vision.v1p3beta1.CropHintsAnnotation") 2533 proto.RegisterType((*CropHintsParams)(nil), "google.cloud.vision.v1p3beta1.CropHintsParams") 2534 proto.RegisterType((*WebDetectionParams)(nil), "google.cloud.vision.v1p3beta1.WebDetectionParams") 2535 proto.RegisterType((*ImageContext)(nil), "google.cloud.vision.v1p3beta1.ImageContext") 2536 proto.RegisterType((*AnnotateImageRequest)(nil), "google.cloud.vision.v1p3beta1.AnnotateImageRequest") 2537 proto.RegisterType((*ImageAnnotationContext)(nil), "google.cloud.vision.v1p3beta1.ImageAnnotationContext") 2538 proto.RegisterType((*AnnotateImageResponse)(nil), "google.cloud.vision.v1p3beta1.AnnotateImageResponse") 2539 proto.RegisterType((*AnnotateFileResponse)(nil), "google.cloud.vision.v1p3beta1.AnnotateFileResponse") 2540 proto.RegisterType((*BatchAnnotateImagesRequest)(nil), "google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest") 2541 proto.RegisterType((*BatchAnnotateImagesResponse)(nil), "google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse") 2542 proto.RegisterType((*AsyncAnnotateFileRequest)(nil), "google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest") 2543 proto.RegisterType((*AsyncAnnotateFileResponse)(nil), "google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse") 2544 proto.RegisterType((*AsyncBatchAnnotateFilesRequest)(nil), "google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest") 2545 proto.RegisterType((*AsyncBatchAnnotateFilesResponse)(nil), "google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse") 2546 proto.RegisterType((*InputConfig)(nil), "google.cloud.vision.v1p3beta1.InputConfig") 2547 proto.RegisterType((*OutputConfig)(nil), "google.cloud.vision.v1p3beta1.OutputConfig") 2548 proto.RegisterType((*GcsSource)(nil), "google.cloud.vision.v1p3beta1.GcsSource") 2549 proto.RegisterType((*GcsDestination)(nil), "google.cloud.vision.v1p3beta1.GcsDestination") 2550 proto.RegisterType((*OperationMetadata)(nil), "google.cloud.vision.v1p3beta1.OperationMetadata") 2551} 2552 2553func init() { 2554 proto.RegisterFile("google/cloud/vision/v1p3beta1/image_annotator.proto", fileDescriptor_2b863578148790db) 2555} 2556 2557var fileDescriptor_2b863578148790db = []byte{ 2558 // 3162 bytes of a gzipped FileDescriptorProto 2559 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x73, 0xe3, 0xc6, 2560 0x95, 0x37, 0x49, 0x7d, 0x90, 0x8f, 0x94, 0x04, 0xb5, 0x3e, 0x86, 0xa3, 0x19, 0x79, 0x64, 0x78, 2561 0xbd, 0xab, 0x9d, 0xb5, 0xc5, 0x1d, 0x8d, 0xed, 0xf5, 0x8e, 0xd7, 0xe5, 0xa5, 0x28, 0x48, 0xe2, 2562 0x0e, 0x45, 0x70, 0x5b, 0xd4, 0x7c, 0xad, 0xb7, 0xb0, 0x10, 0xd8, 0xe4, 0xc0, 0x06, 0xd1, 0x30, 2563 0x00, 0x8e, 0xa4, 0x39, 0xba, 0x6a, 0xff, 0x82, 0xdc, 0x72, 0x4d, 0xa5, 0x72, 0x8a, 0x4f, 0xc9, 2564 0x21, 0x97, 0x5c, 0x72, 0xf3, 0x21, 0x55, 0x49, 0x0e, 0xa9, 0xca, 0x29, 0x55, 0xc9, 0x21, 0xf9, 2565 0x0f, 0x72, 0x4c, 0x75, 0xa3, 0x01, 0x36, 0x48, 0x69, 0x28, 0x8d, 0x9d, 0xaa, 0x9c, 0xc8, 0x7e, 2566 0xaf, 0x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x58, 0x12, 0xd2, 0xf8, 0xb0, 0x40, 0xaa, 0x3f, 0x54, 0x60, 2600 0x7e, 0xcf, 0xb4, 0x48, 0x35, 0xd9, 0x3e, 0xa8, 0x05, 0x73, 0x27, 0x74, 0xe0, 0x76, 0x6c, 0xb7, 2601 0x67, 0x78, 0xd4, 0x39, 0xe7, 0x66, 0x8b, 0x13, 0x17, 0xdc, 0x8e, 0xc0, 0xb4, 0xa8, 0x73, 0x8e, 2602 0x4b, 0x27, 0x52, 0x0b, 0x1d, 0x83, 0xd2, 0xed, 0x18, 0x69, 0xd2, 0xec, 0xf5, 0x49, 0xe7, 0xbb, 2603 0x1d, 0xb9, 0x8d, 0xda, 0x50, 0x70, 0x4c, 0xb7, 0xd3, 0x37, 0xfd, 0x2f, 0x82, 0x72, 0x6e, 0x23, 2604 0xb7, 0x59, 0xdc, 0xfe, 0x70, 0xd2, 0xae, 0x48, 0x4d, 0x75, 0xab, 0x21, 0xe0, 0x78, 0x48, 0x84, 2605 0xd6, 0x01, 0x7c, 0xea, 0x38, 0x86, 0xe9, 0xf6, 0x1c, 0x52, 0x9e, 0xda, 0xc8, 0x6c, 0x66, 0x71, 2606 0x81, 0x49, 0xaa, 0x4c, 0xc0, 0x82, 0xe6, 0x99, 0xae, 0xd0, 0x4e, 0x73, 0x6d, 0xde, 0x33, 0xdd, 2607 0x48, 0xb9, 0x0e, 0x10, 0xda, 0x4e, 0x28, 0xb4, 0x33, 0x11, 0x96, 0x49, 0x22, 0xf5, 0x3d, 0x58, 2608 0x4e, 0x52, 0x8e, 0x61, 0x51, 0xb7, 0x6b, 0x77, 0x88, 0x6b, 0x91, 0xf2, 0x2c, 0xef, 0xb8, 0x94, 2609 0xe8, 0x6a, 0x89, 0x0a, 0x7d, 0x00, 0xab, 0xf1, 0xd0, 0x98, 0xeb, 0x24, 0x50, 0x9e, 0x83, 0x56, 2610 0x24, 0xad, 0x04, 0x6b, 0xc1, 0xfc, 0xe7, 0xf4, 0xdc, 0x70, 0xec, 0x2f, 0x88, 0x63, 0x3f, 0xa7, 2611 0xb4, 0x53, 0x2e, 0xf0, 0xac, 0xf1, 0xcf, 0x13, 0xfc, 0xd3, 0x48, 0x00, 0x78, 0xee, 0x73, 0x7a, 2612 0x3e, 0x6c, 0xa2, 0x47, 0xb0, 0x18, 0x50, 0xdf, 0xa7, 0xa7, 0x32, 0x29, 0x5c, 0x97, 0x54, 0x89, 2613 0x38, 0x24, 0xde, 0x36, 0x28, 0xa6, 0xdb, 0x23, 0xbe, 0x4c, 0x5b, 0xbc, 0x2e, 0xed, 0x02, 0xa7, 2614 0x90, 0x58, 0x9f, 0xc1, 0x52, 0x30, 0xf0, 0x3d, 0xdf, 0x0e, 0x88, 0x4c, 0x5c, 0xba, 0x2e, 0x31, 2615 0x8a, 0x59, 0x24, 0x6e, 0x0b, 0xca, 0x03, 0xb7, 0x43, 0x7c, 0x83, 0x9c, 0x79, 0x34, 0x20, 0x1d, 2616 0xd9, 0xc0, 0xdc, 0x75, 0x0d, 0xac, 0x72, 0x2a, 0x2d, 0x62, 0x92, 0x8c, 0x3c, 0x01, 0x74, 0xe2, 2617 0x0c, 0x7c, 0x3f, 0x4d, 0x3f, 0x7f, 0x5d, 0xfa, 0x45, 0x41, 0x92, 0x76, 0xcd, 0x73, 0x62, 0x76, 2618 0x4e, 0x89, 0x99, 0xf2, 0xf9, 0xc2, 0xb5, 0x5d, 0x13, 0xb3, 0x0c, 0x65, 0x6b, 0xbf, 0x9d, 0x85, 2619 0x7c, 0xbc, 0xa7, 0x90, 0x2e, 0xce, 0xab, 0x1c, 0x67, 0xfe, 0xf8, 0xf5, 0x76, 0xa6, 0x7c, 0x7e, 2620 0xd5, 0x20, 0xef, 0xd1, 0xc0, 0x66, 0x7a, 0xbe, 0x2f, 0x8b, 0xdb, 0xff, 0x34, 0x81, 0xb4, 0x25, 2621 0xba, 0xe3, 0x04, 0xa8, 0xfe, 0x64, 0x66, 0x78, 0x9a, 0x1d, 0x37, 0x1f, 0x36, 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, 0x37, 2633 0x77, 0xab, 0xf8, 0xa9, 0xb2, 0x98, 0x52, 0x45, 0xb3, 0xae, 0xe9, 0xb8, 0xa9, 0x61, 0x05, 0xa1, 2634 0xdb, 0x50, 0x4e, 0x54, 0x82, 0x31, 0x01, 0x2e, 0x25, 0xee, 0x67, 0x5a, 0xfe, 0x47, 0xe0, 0x96, 2635 0x87, 0x8e, 0x1c, 0x33, 0xb7, 0x92, 0xd6, 0xa5, 0xec, 0xad, 0xa2, 0x75, 0xb8, 0x39, 0xd4, 0x8d, 2636 0x1a, 0xbc, 0x31, 0x8c, 0xea, 0xa8, 0xc5, 0x32, 0xba, 0x03, 0xb7, 0xe4, 0x38, 0x1b, 0x51, 0x08, 2637 0xe2, 0x88, 0x29, 0x37, 0xd1, 0x06, 0xdc, 0x4e, 0x85, 0x74, 0xb4, 0xc7, 0x1a, 0x73, 0x68, 0x44, 2638 0x51, 0xc5, 0x46, 0x1b, 0x57, 0xf7, 0x59, 0x1d, 0x71, 0x8b, 0x79, 0x5f, 0xe0, 0x24, 0xf1, 0x6d, 2639 0x5e, 0x39, 0xc5, 0x73, 0x6f, 0x1d, 0xb7, 0xea, 0x0d, 0x65, 0x9d, 0x55, 0x4e, 0xc3, 0xe1, 0x45, 2640 0xc2, 0x37, 0x19, 0x7e, 0x4f, 0xc7, 0xda, 0x81, 0x56, 0xdd, 0x35, 0xf6, 0x79, 0x61, 0xd5, 0xa8, 2641 0x2a, 0x77, 0x58, 0x79, 0x53, 0x3b, 0xa8, 0x37, 0x8d, 0xfd, 0x66, 0xb5, 0x7d, 0xc0, 0x28, 0x37, 2642 0x98, 0x7d, 0x2e, 0xe2, 0xbc, 0xfb, 0x7a, 0x93, 0x49, 0xdf, 0x62, 0x78, 0x2e, 0x8d, 0x98, 0x85, 2643 0x58, 0x55, 0xff, 0x03, 0x4a, 0x0d, 0x6a, 0xf1, 0xbd, 0x59, 0x77, 0xbb, 0x14, 0xbd, 0x0b, 0xb3, 2644 0x8e, 0x19, 0x1a, 0x8e, 0xdb, 0x13, 0xe5, 0xc1, 0x52, 0xbc, 0x15, 0xd9, 0x56, 0xdd, 0x6a, 0x98, 2645 0x61, 0xc3, 0xed, 0xe1, 0x19, 0x87, 0xff, 0xaa, 0x8f, 0x21, 0xdf, 0xf2, 0x59, 0x25, 0x1d, 0x9e, 2646 0x23, 0x04, 0x53, 0xae, 0xd9, 0x27, 0xa2, 0x20, 0xe2, 0xff, 0x59, 0xe1, 0xf9, 0xc2, 0x74, 0x06, 2647 0x44, 0x54, 0x41, 0x51, 0x03, 0xbd, 0x05, 0xa5, 0x81, 0xed, 0x86, 0x1f, 0xbe, 0x6f, 0x44, 0x4a, 2648 0x96, 0x48, 0xa6, 0x70, 0x31, 0x92, 0x3d, 0x62, 0x22, 0xf5, 0xfb, 0x39, 0x50, 0x34, 0x37, 0xb4, 2649 0xc3, 0x73, 0xa9, 0x80, 0x51, 0x20, 0xd7, 0xb7, 0x3b, 0xc2, 0x00, 0xfb, 0x8b, 0x56, 0x61, 0xc6, 2650 0xa1, 0x96, 0xe9, 0xc4, 0x06, 0x44, 0x0b, 0x6d, 0x40, 0xb1, 0x43, 0x02, 0xcb, 0xb7, 0x3d, 0x9e, 2651 0x54, 0xa2, 0xb2, 0x57, 0x16, 0xb1, 0x91, 0x05, 0x16, 0xf5, 0xe3, 0x42, 0x20, 0x6a, 0xa0, 0x37, 2652 0x01, 0xa4, 0x93, 0x38, 0xaa, 0x02, 0x24, 0x09, 0xd3, 0x87, 0xd4, 0xb3, 0x2d, 0xd3, 0xb1, 0xc3, 2653 0x73, 0x51, 0x07, 0x48, 0x92, 0xf1, 0x12, 0x6b, 0xf6, 0xdb, 0x96, 0x58, 0x75, 0x28, 0x38, 0x22, 2654 0x3e, 0x41, 0x39, 0xcf, 0x6b, 0xa1, 0x49, 0x6c, 0x72, 0x3c, 0xf1, 0x10, 0x8d, 0xf6, 0x01, 0xbc, 2655 0x28, 0x58, 0x36, 0x09, 0xca, 0x05, 0xce, 0x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xa9, 0x9c, 0x27, 0xb8, 0x4d, 0x98, 0xe6, 2667 0x8f, 0xe8, 0xc2, 0x20, 0x4a, 0x61, 0x79, 0x37, 0x1c, 0x75, 0x18, 0xae, 0xbe, 0xac, 0xbc, 0xfa, 2668 0xde, 0x81, 0x79, 0xcf, 0x3e, 0x23, 0x8e, 0xd1, 0xf5, 0x4d, 0x2b, 0xc9, 0x2e, 0x59, 0x3c, 0xc7, 2669 0xa5, 0x7b, 0x42, 0xa8, 0x7e, 0x06, 0xe5, 0x5d, 0xda, 0xb7, 0x5d, 0xd3, 0x0d, 0x39, 0x69, 0x20, 2670 0xad, 0xaa, 0xff, 0x84, 0x19, 0x6e, 0x21, 0x28, 0x67, 0xf8, 0x26, 0xdc, 0x9c, 0xe0, 0xc9, 0x64, 2671 0xf0, 0x58, 0xe0, 0xd4, 0x00, 0x16, 0xf8, 0x43, 0x5f, 0x2b, 0xd9, 0x94, 0xe8, 0xff, 0x60, 0xa1, 2672 0x23, 0x0c, 0x1a, 0x09, 0x3b, 0x9b, 0xe1, 0xbf, 0x4d, 0x60, 0xbf, 0x6c, 0x98, 0x78, 0xbe, 0x93, 2673 0xd2, 0xa8, 0x3f, 0xce, 0x40, 0xbe, 0xe6, 0x53, 0xef, 0xc0, 0x76, 0xc3, 0xbf, 0xc1, 0xc3, 0x64, 2674 0x3a, 0xf7, 0x66, 0xc7, 0x72, 0x6f, 0x05, 0x96, 0xec, 0xbe, 0x47, 0xfd, 0xd0, 0x74, 0x2d, 0x32, 2675 0xea, 0x7d, 0x34, 0x54, 0x25, 0x21, 0xf8, 0x5f, 0x58, 0x8a, 0x87, 0x2b, 0x7b, 0x7f, 0x0f, 0xc0, 2676 0xf2, 0xa9, 0x67, 0x3c, 0x67, 0x72, 0x11, 0x81, 0x49, 0x69, 0x30, 0xe6, 0xc1, 0x05, 0x2b, 0x66, 2677 0x54, 0x3f, 0x84, 0x85, 0x84, 0xbe, 0x65, 0xfa, 0x66, 0x3f, 0x60, 0x89, 0xce, 0x0c, 0x3c, 0x62, 2678 0x85, 0x06, 0xbf, 0x5a, 0x8a, 0xd8, 0xb3, 0xb8, 0x14, 0x09, 0x31, 0x97, 0xa9, 0xbb, 0x80, 0x1e, 2679 0x93, 0x93, 0xdd, 0xf8, 0x99, 0x50, 0x40, 0xb7, 0x60, 0xc9, 0x76, 0x2d, 0x67, 0xd0, 0x21, 0x46, 2680 0x8f, 0xd0, 0xd4, 0x5d, 0x4e, 0x1e, 0x2f, 0x0a, 0xd5, 0x3e, 0xa1, 0xe2, 0x4a, 0x47, 0xfd, 0x3a, 2681 0x07, 0x25, 0xbe, 0x04, 0x6a, 0xd4, 0x0d, 0xc9, 0x59, 0x88, 0x9a, 0x2c, 0xc9, 0x86, 0x86, 0x43, 2682 0xdd, 0x9e, 0xe1, 0x13, 0x2b, 0x14, 0x01, 0x99, 0x74, 0x77, 0x20, 0xed, 0x48, 0x5c, 0x74, 0xa4, 2683 0xed, 0xf9, 0x0e, 0xcc, 0x27, 0x49, 0x3b, 0x72, 0x55, 0x76, 0x23, 0xb7, 0x59, 0xc0, 0x49, 0x2a, 2684 0xe7, 0x13, 0x47, 0xcf, 0x60, 0x71, 0xe8, 0x4d, 0xc3, 0xe3, 0x93, 0x11, 0x45, 0xfc, 0xd6, 0x15, 2685 0x9d, 0x2a, 0xbc, 0x87, 0x17, 0xac, 0x11, 0x77, 0x76, 0x61, 0x25, 0x7d, 0x6d, 0x18, 0xf3, 0x47, 2686 0x09, 0x7f, 0x7b, 0xf2, 0xd9, 0xc5, 0xb0, 0x51, 0x52, 0x17, 0x36, 0x96, 0xbc, 0x71, 0x21, 0xb2, 2687 0x60, 0x39, 0x75, 0x6b, 0x18, 0x9b, 0x99, 0xe1, 0x66, 0xee, 0x4d, 0x30, 0x33, 0x1e, 0x4c, 0x8c, 2688 0x4e, 0xc7, 0x64, 0xea, 0x9f, 0x32, 0xb0, 0x2c, 0x56, 0x21, 0xe1, 0x81, 0xc3, 0xe4, 0xcb, 0x01, 2689 0x09, 0x42, 0xf4, 0x00, 0xa6, 0xf9, 0xe5, 0x90, 0x08, 0xd8, 0x3f, 0x5c, 0xe5, 0xb2, 0x07, 0x47, 2690 0x10, 0xb4, 0x03, 0xf9, 0x6e, 0x74, 0x1f, 0x18, 0x85, 0xa7, 0xb8, 0xfd, 0x8f, 0x57, 0xbb, 0x3e, 2691 0xc4, 0x09, 0x8e, 0xed, 0xe4, 0xe8, 0xb6, 0xca, 0x8a, 0x56, 0x12, 0xdf, 0x51, 0x93, 0x77, 0xb2, 2692 0xbc, 0xf8, 0x70, 0xc9, 0x96, 0x5a, 0xea, 0x43, 0x58, 0xe5, 0xda, 0xe1, 0xa6, 0x8b, 0x17, 0xa9, 2693 0x02, 0xb9, 0xe1, 0x9d, 0x19, 0xfb, 0x8b, 0xee, 0x40, 0xd1, 0x63, 0xc6, 0xdd, 0x41, 0xff, 0x84, 2694 0xf8, 0xf1, 0xdd, 0x25, 0x13, 0x35, 0xb9, 0x44, 0xfd, 0x05, 0xc0, 0xca, 0x88, 0xdf, 0x02, 0x8f, 2695 0xba, 0x01, 0x41, 0x4f, 0x40, 0xe9, 0x9a, 0x16, 0x91, 0x6e, 0x88, 0xe3, 0xed, 0xfc, 0xde, 0xb5, 2696 0x9e, 0x49, 0xf1, 0x42, 0x37, 0xd5, 0x0e, 0xd0, 0x09, 0x2c, 0xc7, 0xd7, 0x2f, 0x29, 0xf6, 0xc8, 2697 0xc5, 0x95, 0x09, 0xec, 0xa3, 0x75, 0x2b, 0x5e, 0x8a, 0xc9, 0x64, 0x1b, 0xcf, 0x40, 0x71, 0x68, 2698 0x8f, 0xa6, 0xf8, 0x73, 0xaf, 0xc7, 0xbf, 0xc0, 0x88, 0x64, 0xee, 0xcf, 0x60, 0xd1, 0x31, 0x4f, 2699 0x88, 0x93, 0x22, 0x9f, 0x7a, 0x3d, 0x72, 0x85, 0x33, 0xc9, 0xec, 0x2f, 0xe1, 0xb6, 0x13, 0x57, 2700 0x7f, 0x06, 0x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c, 0x87, 0xdc, 0xff, 0x6b, 0x00, 0x00, 0x00, 2756 0xff, 0xff, 0xc6, 0x94, 0x52, 0x34, 0x6d, 0x26, 0x00, 0x00, 2757} 2758 2759// Reference imports to suppress errors if they are not otherwise used. 2760var _ context.Context 2761var _ grpc.ClientConnInterface 2762 2763// This is a compile-time assertion to ensure that this generated file 2764// is compatible with the grpc package it is being compiled against. 2765const _ = grpc.SupportPackageIsVersion6 2766 2767// ImageAnnotatorClient is the client API for ImageAnnotator service. 2768// 2769// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2770type ImageAnnotatorClient interface { 2771 // Run image detection and annotation for a batch of images. 2772 BatchAnnotateImages(ctx context.Context, in *BatchAnnotateImagesRequest, opts ...grpc.CallOption) (*BatchAnnotateImagesResponse, error) 2773 // Run asynchronous image detection and annotation for a list of generic 2774 // files, such as PDF files, which may contain multiple pages and multiple 2775 // images per page. Progress and results can be retrieved through the 2776 // `google.longrunning.Operations` interface. 2777 // `Operation.metadata` contains `OperationMetadata` (metadata). 2778 // `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). 2779 AsyncBatchAnnotateFiles(ctx context.Context, in *AsyncBatchAnnotateFilesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 2780} 2781 2782type imageAnnotatorClient struct { 2783 cc grpc.ClientConnInterface 2784} 2785 2786func NewImageAnnotatorClient(cc grpc.ClientConnInterface) ImageAnnotatorClient { 2787 return &imageAnnotatorClient{cc} 2788} 2789 2790func (c *imageAnnotatorClient) BatchAnnotateImages(ctx context.Context, in *BatchAnnotateImagesRequest, opts ...grpc.CallOption) (*BatchAnnotateImagesResponse, error) { 2791 out := new(BatchAnnotateImagesResponse) 2792 err := c.cc.Invoke(ctx, "/google.cloud.vision.v1p3beta1.ImageAnnotator/BatchAnnotateImages", in, out, opts...) 2793 if err != nil { 2794 return nil, err 2795 } 2796 return out, nil 2797} 2798 2799func (c *imageAnnotatorClient) AsyncBatchAnnotateFiles(ctx context.Context, in *AsyncBatchAnnotateFilesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 2800 out := new(longrunning.Operation) 2801 err := c.cc.Invoke(ctx, "/google.cloud.vision.v1p3beta1.ImageAnnotator/AsyncBatchAnnotateFiles", in, out, opts...) 2802 if err != nil { 2803 return nil, err 2804 } 2805 return out, nil 2806} 2807 2808// ImageAnnotatorServer is the server API for ImageAnnotator service. 2809type ImageAnnotatorServer interface { 2810 // Run image detection and annotation for a batch of images. 2811 BatchAnnotateImages(context.Context, *BatchAnnotateImagesRequest) (*BatchAnnotateImagesResponse, error) 2812 // Run asynchronous image detection and annotation for a list of generic 2813 // files, such as PDF files, which may contain multiple pages and multiple 2814 // images per page. Progress and results can be retrieved through the 2815 // `google.longrunning.Operations` interface. 2816 // `Operation.metadata` contains `OperationMetadata` (metadata). 2817 // `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). 2818 AsyncBatchAnnotateFiles(context.Context, *AsyncBatchAnnotateFilesRequest) (*longrunning.Operation, error) 2819} 2820 2821// UnimplementedImageAnnotatorServer can be embedded to have forward compatible implementations. 2822type UnimplementedImageAnnotatorServer struct { 2823} 2824 2825func (*UnimplementedImageAnnotatorServer) BatchAnnotateImages(ctx context.Context, req *BatchAnnotateImagesRequest) (*BatchAnnotateImagesResponse, error) { 2826 return nil, status1.Errorf(codes.Unimplemented, "method BatchAnnotateImages not implemented") 2827} 2828func (*UnimplementedImageAnnotatorServer) AsyncBatchAnnotateFiles(ctx context.Context, req *AsyncBatchAnnotateFilesRequest) (*longrunning.Operation, error) { 2829 return nil, status1.Errorf(codes.Unimplemented, "method AsyncBatchAnnotateFiles not implemented") 2830} 2831 2832func RegisterImageAnnotatorServer(s *grpc.Server, srv ImageAnnotatorServer) { 2833 s.RegisterService(&_ImageAnnotator_serviceDesc, srv) 2834} 2835 2836func _ImageAnnotator_BatchAnnotateImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2837 in := new(BatchAnnotateImagesRequest) 2838 if err := dec(in); err != nil { 2839 return nil, err 2840 } 2841 if interceptor == nil { 2842 return srv.(ImageAnnotatorServer).BatchAnnotateImages(ctx, in) 2843 } 2844 info := &grpc.UnaryServerInfo{ 2845 Server: srv, 2846 FullMethod: "/google.cloud.vision.v1p3beta1.ImageAnnotator/BatchAnnotateImages", 2847 } 2848 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2849 return srv.(ImageAnnotatorServer).BatchAnnotateImages(ctx, req.(*BatchAnnotateImagesRequest)) 2850 } 2851 return interceptor(ctx, in, info, handler) 2852} 2853 2854func _ImageAnnotator_AsyncBatchAnnotateFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2855 in := new(AsyncBatchAnnotateFilesRequest) 2856 if err := dec(in); err != nil { 2857 return nil, err 2858 } 2859 if interceptor == nil { 2860 return srv.(ImageAnnotatorServer).AsyncBatchAnnotateFiles(ctx, in) 2861 } 2862 info := &grpc.UnaryServerInfo{ 2863 Server: srv, 2864 FullMethod: "/google.cloud.vision.v1p3beta1.ImageAnnotator/AsyncBatchAnnotateFiles", 2865 } 2866 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2867 return srv.(ImageAnnotatorServer).AsyncBatchAnnotateFiles(ctx, req.(*AsyncBatchAnnotateFilesRequest)) 2868 } 2869 return interceptor(ctx, in, info, handler) 2870} 2871 2872var _ImageAnnotator_serviceDesc = grpc.ServiceDesc{ 2873 ServiceName: "google.cloud.vision.v1p3beta1.ImageAnnotator", 2874 HandlerType: (*ImageAnnotatorServer)(nil), 2875 Methods: []grpc.MethodDesc{ 2876 { 2877 MethodName: "BatchAnnotateImages", 2878 Handler: _ImageAnnotator_BatchAnnotateImages_Handler, 2879 }, 2880 { 2881 MethodName: "AsyncBatchAnnotateFiles", 2882 Handler: _ImageAnnotator_AsyncBatchAnnotateFiles_Handler, 2883 }, 2884 }, 2885 Streams: []grpc.StreamDesc{}, 2886 Metadata: "google/cloud/vision/v1p3beta1/image_annotator.proto", 2887} 2888