| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/vision/v1p1beta1/web_detection.proto |
| 20 |
|
| 21 |
package visionpb |
| 22 |
|
| 23 |
import ( |
| 24 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 25 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 26 |
reflect "reflect" |
| 27 |
sync "sync" |
| 28 |
) |
| 29 |
|
| 30 |
const ( |
| 31 |
// Verify that this generated code is sufficiently up-to-date. |
| 32 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 33 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 35 |
) |
| 36 |
|
| 37 |
// Relevant information for the image from the Internet. |
| 38 |
type WebDetection struct { |
| 39 |
state protoimpl.MessageState |
| 40 |
sizeCache protoimpl.SizeCache |
| 41 |
unknownFields protoimpl.UnknownFields |
| 42 |
|
| 43 |
// Deduced entities from similar images on the Internet. |
| 44 |
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"` |
| 45 |
// Fully matching images from the Internet. |
| 46 |
// Can include resized copies of the query image. |
| 47 |
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"` |
| 48 |
// Partial matching images from the Internet. |
| 49 |
// Those images are similar enough to share some key-point features. For |
| 50 |
// example an original image will likely have partial matching for its crops. |
| 51 |
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"` |
| 52 |
// Web pages containing the matching images from the Internet. |
| 53 |
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"` |
| 54 |
// The visually similar image results. |
| 55 |
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"` |
| 56 |
// Best guess text labels for the request image. |
| 57 |
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"` |
| 58 |
} |
| 59 |
|
| 60 |
func (x *WebDetection) Reset() { |
| 61 |
*x = WebDetection{} |
| 62 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[0] |
| 63 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 64 |
ms.StoreMessageInfo(mi) |
| 65 |
} |
| 66 |
|
| 67 |
func (x *WebDetection) String() string { |
| 68 |
return protoimpl.X.MessageStringOf(x) |
| 69 |
} |
| 70 |
|
| 71 |
func (*WebDetection) ProtoMessage() {} |
| 72 |
|
| 73 |
func (x *WebDetection) ProtoReflect() protoreflect.Message { |
| 74 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[0] |
| 75 |
if x != nil { |
| 76 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 77 |
if ms.LoadMessageInfo() == nil { |
| 78 |
ms.StoreMessageInfo(mi) |
| 79 |
} |
| 80 |
return ms |
| 81 |
} |
| 82 |
return mi.MessageOf(x) |
| 83 |
} |
| 84 |
|
| 85 |
// Deprecated: Use WebDetection.ProtoReflect.Descriptor instead. |
| 86 |
func (*WebDetection) Descriptor() ([]byte, []int) { |
| 87 |
return file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescGZIP(), []int{0} |
| 88 |
} |
| 89 |
|
| 90 |
func (x *WebDetection) GetWebEntities() []*WebDetection_WebEntity { |
| 91 |
if x != nil { |
| 92 |
return x.WebEntities |
| 93 |
} |
| 94 |
return nil |
| 95 |
} |
| 96 |
|
| 97 |
func (x *WebDetection) GetFullMatchingImages() []*WebDetection_WebImage { |
| 98 |
if x != nil { |
| 99 |
return x.FullMatchingImages |
| 100 |
} |
| 101 |
return nil |
| 102 |
} |
| 103 |
|
| 104 |
func (x *WebDetection) GetPartialMatchingImages() []*WebDetection_WebImage { |
| 105 |
if x != nil { |
| 106 |
return x.PartialMatchingImages |
| 107 |
} |
| 108 |
return nil |
| 109 |
} |
| 110 |
|
| 111 |
func (x *WebDetection) GetPagesWithMatchingImages() []*WebDetection_WebPage { |
| 112 |
if x != nil { |
| 113 |
return x.PagesWithMatchingImages |
| 114 |
} |
| 115 |
return nil |
| 116 |
} |
| 117 |
|
| 118 |
func (x *WebDetection) GetVisuallySimilarImages() []*WebDetection_WebImage { |
| 119 |
if x != nil { |
| 120 |
return x.VisuallySimilarImages |
| 121 |
} |
| 122 |
return nil |
| 123 |
} |
| 124 |
|
| 125 |
func (x *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel { |
| 126 |
if x != nil { |
| 127 |
return x.BestGuessLabels |
| 128 |
} |
| 129 |
return nil |
| 130 |
} |
| 131 |
|
| 132 |
// Entity deduced from similar images on the Internet. |
| 133 |
type WebDetection_WebEntity struct { |
| 134 |
state protoimpl.MessageState |
| 135 |
sizeCache protoimpl.SizeCache |
| 136 |
unknownFields protoimpl.UnknownFields |
| 137 |
|
| 138 |
// Opaque entity ID. |
| 139 |
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` |
| 140 |
// Overall relevancy score for the entity. |
| 141 |
// Not normalized and not comparable across different image queries. |
| 142 |
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` |
| 143 |
// Canonical description of the entity, in English. |
| 144 |
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` |
| 145 |
} |
| 146 |
|
| 147 |
func (x *WebDetection_WebEntity) Reset() { |
| 148 |
*x = WebDetection_WebEntity{} |
| 149 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[1] |
| 150 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 151 |
ms.StoreMessageInfo(mi) |
| 152 |
} |
| 153 |
|
| 154 |
func (x *WebDetection_WebEntity) String() string { |
| 155 |
return protoimpl.X.MessageStringOf(x) |
| 156 |
} |
| 157 |
|
| 158 |
func (*WebDetection_WebEntity) ProtoMessage() {} |
| 159 |
|
| 160 |
func (x *WebDetection_WebEntity) ProtoReflect() protoreflect.Message { |
| 161 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[1] |
| 162 |
if x != nil { |
| 163 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 164 |
if ms.LoadMessageInfo() == nil { |
| 165 |
ms.StoreMessageInfo(mi) |
| 166 |
} |
| 167 |
return ms |
| 168 |
} |
| 169 |
return mi.MessageOf(x) |
| 170 |
} |
| 171 |
|
| 172 |
// Deprecated: Use WebDetection_WebEntity.ProtoReflect.Descriptor instead. |
| 173 |
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { |
| 174 |
return file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescGZIP(), []int{0, 0} |
| 175 |
} |
| 176 |
|
| 177 |
func (x *WebDetection_WebEntity) GetEntityId() string { |
| 178 |
if x != nil { |
| 179 |
return x.EntityId |
| 180 |
} |
| 181 |
return "" |
| 182 |
} |
| 183 |
|
| 184 |
func (x *WebDetection_WebEntity) GetScore() float32 { |
| 185 |
if x != nil { |
| 186 |
return x.Score |
| 187 |
} |
| 188 |
return 0 |
| 189 |
} |
| 190 |
|
| 191 |
func (x *WebDetection_WebEntity) GetDescription() string { |
| 192 |
if x != nil { |
| 193 |
return x.Description |
| 194 |
} |
| 195 |
return "" |
| 196 |
} |
| 197 |
|
| 198 |
// Metadata for online images. |
| 199 |
type WebDetection_WebImage struct { |
| 200 |
state protoimpl.MessageState |
| 201 |
sizeCache protoimpl.SizeCache |
| 202 |
unknownFields protoimpl.UnknownFields |
| 203 |
|
| 204 |
// The result image URL. |
| 205 |
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` |
| 206 |
// (Deprecated) Overall relevancy score for the image. |
| 207 |
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` |
| 208 |
} |
| 209 |
|
| 210 |
func (x *WebDetection_WebImage) Reset() { |
| 211 |
*x = WebDetection_WebImage{} |
| 212 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[2] |
| 213 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 214 |
ms.StoreMessageInfo(mi) |
| 215 |
} |
| 216 |
|
| 217 |
func (x *WebDetection_WebImage) String() string { |
| 218 |
return protoimpl.X.MessageStringOf(x) |
| 219 |
} |
| 220 |
|
| 221 |
func (*WebDetection_WebImage) ProtoMessage() {} |
| 222 |
|
| 223 |
func (x *WebDetection_WebImage) ProtoReflect() protoreflect.Message { |
| 224 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[2] |
| 225 |
if x != nil { |
| 226 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 227 |
if ms.LoadMessageInfo() == nil { |
| 228 |
ms.StoreMessageInfo(mi) |
| 229 |
} |
| 230 |
return ms |
| 231 |
} |
| 232 |
return mi.MessageOf(x) |
| 233 |
} |
| 234 |
|
| 235 |
// Deprecated: Use WebDetection_WebImage.ProtoReflect.Descriptor instead. |
| 236 |
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { |
| 237 |
return file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescGZIP(), []int{0, 1} |
| 238 |
} |
| 239 |
|
| 240 |
func (x *WebDetection_WebImage) GetUrl() string { |
| 241 |
if x != nil { |
| 242 |
return x.Url |
| 243 |
} |
| 244 |
return "" |
| 245 |
} |
| 246 |
|
| 247 |
func (x *WebDetection_WebImage) GetScore() float32 { |
| 248 |
if x != nil { |
| 249 |
return x.Score |
| 250 |
} |
| 251 |
return 0 |
| 252 |
} |
| 253 |
|
| 254 |
// Metadata for web pages. |
| 255 |
type WebDetection_WebPage struct { |
| 256 |
state protoimpl.MessageState |
| 257 |
sizeCache protoimpl.SizeCache |
| 258 |
unknownFields protoimpl.UnknownFields |
| 259 |
|
| 260 |
// The result web page URL. |
| 261 |
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` |
| 262 |
// (Deprecated) Overall relevancy score for the web page. |
| 263 |
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` |
| 264 |
// Title for the web page, may contain HTML markups. |
| 265 |
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"` |
| 266 |
// Fully matching images on the page. |
| 267 |
// Can include resized copies of the query image. |
| 268 |
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"` |
| 269 |
// Partial matching images on the page. |
| 270 |
// Those images are similar enough to share some key-point features. For |
| 271 |
// example an original image will likely have partial matching for its |
| 272 |
// crops. |
| 273 |
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"` |
| 274 |
} |
| 275 |
|
| 276 |
func (x *WebDetection_WebPage) Reset() { |
| 277 |
*x = WebDetection_WebPage{} |
| 278 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[3] |
| 279 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 280 |
ms.StoreMessageInfo(mi) |
| 281 |
} |
| 282 |
|
| 283 |
func (x *WebDetection_WebPage) String() string { |
| 284 |
return protoimpl.X.MessageStringOf(x) |
| 285 |
} |
| 286 |
|
| 287 |
func (*WebDetection_WebPage) ProtoMessage() {} |
| 288 |
|
| 289 |
func (x *WebDetection_WebPage) ProtoReflect() protoreflect.Message { |
| 290 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[3] |
| 291 |
if x != nil { |
| 292 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 293 |
if ms.LoadMessageInfo() == nil { |
| 294 |
ms.StoreMessageInfo(mi) |
| 295 |
} |
| 296 |
return ms |
| 297 |
} |
| 298 |
return mi.MessageOf(x) |
| 299 |
} |
| 300 |
|
| 301 |
// Deprecated: Use WebDetection_WebPage.ProtoReflect.Descriptor instead. |
| 302 |
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { |
| 303 |
return file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescGZIP(), []int{0, 2} |
| 304 |
} |
| 305 |
|
| 306 |
func (x *WebDetection_WebPage) GetUrl() string { |
| 307 |
if x != nil { |
| 308 |
return x.Url |
| 309 |
} |
| 310 |
return "" |
| 311 |
} |
| 312 |
|
| 313 |
func (x *WebDetection_WebPage) GetScore() float32 { |
| 314 |
if x != nil { |
| 315 |
return x.Score |
| 316 |
} |
| 317 |
return 0 |
| 318 |
} |
| 319 |
|
| 320 |
func (x *WebDetection_WebPage) GetPageTitle() string { |
| 321 |
if x != nil { |
| 322 |
return x.PageTitle |
| 323 |
} |
| 324 |
return "" |
| 325 |
} |
| 326 |
|
| 327 |
func (x *WebDetection_WebPage) GetFullMatchingImages() []*WebDetection_WebImage { |
| 328 |
if x != nil { |
| 329 |
return x.FullMatchingImages |
| 330 |
} |
| 331 |
return nil |
| 332 |
} |
| 333 |
|
| 334 |
func (x *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebImage { |
| 335 |
if x != nil { |
| 336 |
return x.PartialMatchingImages |
| 337 |
} |
| 338 |
return nil |
| 339 |
} |
| 340 |
|
| 341 |
// Label to provide extra metadata for the web detection. |
| 342 |
type WebDetection_WebLabel struct { |
| 343 |
state protoimpl.MessageState |
| 344 |
sizeCache protoimpl.SizeCache |
| 345 |
unknownFields protoimpl.UnknownFields |
| 346 |
|
| 347 |
// Label for extra metadata. |
| 348 |
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` |
| 349 |
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". |
| 350 |
// For more information, see |
| 351 |
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 352 |
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` |
| 353 |
} |
| 354 |
|
| 355 |
func (x *WebDetection_WebLabel) Reset() { |
| 356 |
*x = WebDetection_WebLabel{} |
| 357 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[4] |
| 358 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 359 |
ms.StoreMessageInfo(mi) |
| 360 |
} |
| 361 |
|
| 362 |
func (x *WebDetection_WebLabel) String() string { |
| 363 |
return protoimpl.X.MessageStringOf(x) |
| 364 |
} |
| 365 |
|
| 366 |
func (*WebDetection_WebLabel) ProtoMessage() {} |
| 367 |
|
| 368 |
func (x *WebDetection_WebLabel) ProtoReflect() protoreflect.Message { |
| 369 |
mi := &file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes[4] |
| 370 |
if x != nil { |
| 371 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 372 |
if ms.LoadMessageInfo() == nil { |
| 373 |
ms.StoreMessageInfo(mi) |
| 374 |
} |
| 375 |
return ms |
| 376 |
} |
| 377 |
return mi.MessageOf(x) |
| 378 |
} |
| 379 |
|
| 380 |
// Deprecated: Use WebDetection_WebLabel.ProtoReflect.Descriptor instead. |
| 381 |
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { |
| 382 |
return file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescGZIP(), []int{0, 3} |
| 383 |
} |
| 384 |
|
| 385 |
func (x *WebDetection_WebLabel) GetLabel() string { |
| 386 |
if x != nil { |
| 387 |
return x.Label |
| 388 |
} |
| 389 |
return "" |
| 390 |
} |
| 391 |
|
| 392 |
func (x *WebDetection_WebLabel) GetLanguageCode() string { |
| 393 |
if x != nil { |
| 394 |
return x.LanguageCode |
| 395 |
} |
| 396 |
return "" |
| 397 |
} |
| 398 |
|
| 399 |
var File_google_cloud_vision_v1p1beta1_web_detection_proto protoreflect.FileDescriptor |
| 400 |
|
| 401 |
var file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDesc = []byte{ |
| 402 |
0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, |
| 403 |
0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, |
| 404 |
0x77, 0x65, 0x62, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, |
| 405 |
0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 406 |
0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, |
| 407 |
0x61, 0x31, 0x22, 0x86, 0x09, 0x0a, 0x0c, 0x57, 0x65, 0x62, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, |
| 408 |
0x69, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x0c, 0x77, 0x65, 0x62, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, |
| 409 |
0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 410 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, |
| 411 |
0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x44, 0x65, 0x74, |
| 412 |
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, |
| 413 |
0x52, 0x0b, 0x77, 0x65, 0x62, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x66, 0x0a, |
| 414 |
0x14, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x69, |
| 415 |
0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, |
| 416 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, |
| 417 |
0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x44, |
| 418 |
0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x49, 0x6d, 0x61, 0x67, |
| 419 |
0x65, 0x52, 0x12, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x49, |
| 420 |
0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x6c, 0x0a, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, |
| 421 |
0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, |
| 422 |
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 423 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, |
| 424 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, |
| 425 |
0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x15, 0x70, 0x61, |
| 426 |
0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x49, 0x6d, 0x61, |
| 427 |
0x67, 0x65, 0x73, 0x12, 0x70, 0x0a, 0x1a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x77, 0x69, 0x74, |
| 428 |
0x68, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, |
| 429 |
0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 430 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, |
| 431 |
0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x44, 0x65, 0x74, 0x65, 0x63, |
| 432 |
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x50, 0x61, 0x67, 0x65, 0x52, 0x17, 0x70, 0x61, |
| 433 |
0x67, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x49, |
| 434 |
0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x6c, 0x0a, 0x17, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x6c, |
| 435 |
0x79, 0x5f, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, |
| 436 |
0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 437 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, |
| 438 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, |
| 439 |
0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x15, 0x76, 0x69, |
| 440 |
0x73, 0x75, 0x61, 0x6c, 0x6c, 0x79, 0x53, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x49, 0x6d, 0x61, |
| 441 |
0x67, 0x65, 0x73, 0x12, 0x60, 0x0a, 0x11, 0x62, 0x65, 0x73, 0x74, 0x5f, 0x67, 0x75, 0x65, 0x73, |
| 442 |
0x73, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, |
| 443 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, |
| 444 |
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, |
| 445 |
0x65, 0x62, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x4c, |
| 446 |
0x61, 0x62, 0x65, 0x6c, 0x52, 0x0f, 0x62, 0x65, 0x73, 0x74, 0x47, 0x75, 0x65, 0x73, 0x73, 0x4c, |
| 447 |
0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x60, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x45, 0x6e, 0x74, 0x69, |
| 448 |
0x74, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, |
| 449 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, |
| 450 |
0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, |
| 451 |
0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, |
| 452 |
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, |
| 453 |
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x32, 0x0a, 0x08, 0x57, 0x65, 0x62, 0x49, 0x6d, |
| 454 |
0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 455 |
0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, |
| 456 |
0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0xa6, 0x02, 0x0a, 0x07, |
| 457 |
0x57, 0x65, 0x62, 0x50, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, |
| 458 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, |
| 459 |
0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, |
| 460 |
0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, |
| 461 |
0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x66, |
| 462 |
0x0a, 0x14, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, |
| 463 |
0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, |
| 464 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, |
| 465 |
0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, |
| 466 |
0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x49, 0x6d, 0x61, |
| 467 |
0x67, 0x65, 0x52, 0x12, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, |
| 468 |
0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x6c, 0x0a, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, |
| 469 |
0x6c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, |
| 470 |
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 471 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, |
| 472 |
0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x44, 0x65, 0x74, 0x65, 0x63, |
| 473 |
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x57, 0x65, 0x62, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x15, 0x70, |
| 474 |
0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x49, 0x6d, |
| 475 |
0x61, 0x67, 0x65, 0x73, 0x1a, 0x45, 0x0a, 0x08, 0x57, 0x65, 0x62, 0x4c, 0x61, 0x62, 0x65, 0x6c, |
| 476 |
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 477 |
0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, |
| 478 |
0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, |
| 479 |
0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x79, 0x0a, 0x21, 0x63, |
| 480 |
0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 481 |
0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 482 |
0x42, 0x11, 0x57, 0x65, 0x62, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, |
| 483 |
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, |
| 484 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, |
| 485 |
0x6e, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 486 |
0x31, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, |
| 487 |
0x6e, 0x70, 0x62, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 488 |
} |
| 489 |
|
| 490 |
var ( |
| 491 |
file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescOnce sync.Once |
| 492 |
file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescData = file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDesc |
| 493 |
) |
| 494 |
|
| 495 |
func file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescGZIP() []byte { |
| 496 |
file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescOnce.Do(func() { |
| 497 |
file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescData) |
| 498 |
}) |
| 499 |
return file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDescData |
| 500 |
} |
| 501 |
|
| 502 |
var file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 503 |
var file_google_cloud_vision_v1p1beta1_web_detection_proto_goTypes = []any{ |
| 504 |
(*WebDetection)(nil), // 0: google.cloud.vision.v1p1beta1.WebDetection |
| 505 |
(*WebDetection_WebEntity)(nil), // 1: google.cloud.vision.v1p1beta1.WebDetection.WebEntity |
| 506 |
(*WebDetection_WebImage)(nil), // 2: google.cloud.vision.v1p1beta1.WebDetection.WebImage |
| 507 |
(*WebDetection_WebPage)(nil), // 3: google.cloud.vision.v1p1beta1.WebDetection.WebPage |
| 508 |
(*WebDetection_WebLabel)(nil), // 4: google.cloud.vision.v1p1beta1.WebDetection.WebLabel |
| 509 |
} |
| 510 |
var file_google_cloud_vision_v1p1beta1_web_detection_proto_depIdxs = []int32{ |
| 511 |
1, // 0: google.cloud.vision.v1p1beta1.WebDetection.web_entities:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebEntity |
| 512 |
2, // 1: google.cloud.vision.v1p1beta1.WebDetection.full_matching_images:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebImage |
| 513 |
2, // 2: google.cloud.vision.v1p1beta1.WebDetection.partial_matching_images:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebImage |
| 514 |
3, // 3: google.cloud.vision.v1p1beta1.WebDetection.pages_with_matching_images:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebPage |
| 515 |
2, // 4: google.cloud.vision.v1p1beta1.WebDetection.visually_similar_images:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebImage |
| 516 |
4, // 5: google.cloud.vision.v1p1beta1.WebDetection.best_guess_labels:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebLabel |
| 517 |
2, // 6: google.cloud.vision.v1p1beta1.WebDetection.WebPage.full_matching_images:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebImage |
| 518 |
2, // 7: google.cloud.vision.v1p1beta1.WebDetection.WebPage.partial_matching_images:type_name -> google.cloud.vision.v1p1beta1.WebDetection.WebImage |
| 519 |
8, // [8:8] is the sub-list for method output_type |
| 520 |
8, // [8:8] is the sub-list for method input_type |
| 521 |
8, // [8:8] is the sub-list for extension type_name |
| 522 |
8, // [8:8] is the sub-list for extension extendee |
| 523 |
0, // [0:8] is the sub-list for field type_name |
| 524 |
} |
| 525 |
|
| 526 |
func init() { file_google_cloud_vision_v1p1beta1_web_detection_proto_init() } |
| 527 |
func file_google_cloud_vision_v1p1beta1_web_detection_proto_init() { |
| 528 |
if File_google_cloud_vision_v1p1beta1_web_detection_proto != nil { |
| 529 |
return |
| 530 |
} |
| 531 |
type x struct{} |
| 532 |
out := protoimpl.TypeBuilder{ |
| 533 |
File: protoimpl.DescBuilder{ |
| 534 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 535 |
RawDescriptor: file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDesc, |
| 536 |
NumEnums: 0, |
| 537 |
NumMessages: 5, |
| 538 |
NumExtensions: 0, |
| 539 |
NumServices: 0, |
| 540 |
}, |
| 541 |
GoTypes: file_google_cloud_vision_v1p1beta1_web_detection_proto_goTypes, |
| 542 |
DependencyIndexes: file_google_cloud_vision_v1p1beta1_web_detection_proto_depIdxs, |
| 543 |
MessageInfos: file_google_cloud_vision_v1p1beta1_web_detection_proto_msgTypes, |
| 544 |
}.Build() |
| 545 |
File_google_cloud_vision_v1p1beta1_web_detection_proto = out.File |
| 546 |
file_google_cloud_vision_v1p1beta1_web_detection_proto_rawDesc = nil |
| 547 |
file_google_cloud_vision_v1p1beta1_web_detection_proto_goTypes = nil |
| 548 |
file_google_cloud_vision_v1p1beta1_web_detection_proto_depIdxs = nil |
| 549 |
} |