1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/vision/v1p1beta1/web_detection.proto 3 4package vision 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25// Relevant information for the image from the Internet. 26type WebDetection struct { 27 // Deduced entities from similar images on the Internet. 28 WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"` 29 // Fully matching images from the Internet. 30 // Can include resized copies of the query image. 31 FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"` 32 // Partial matching images from the Internet. 33 // Those images are similar enough to share some key-point features. For 34 // example an original image will likely have partial matching for its crops. 35 PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"` 36 // Web pages containing the matching images from the Internet. 37 PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"` 38 // The visually similar image results. 39 VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"` 40 // Best guess text labels for the request image. 41 BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"` 42 XXX_NoUnkeyedLiteral struct{} `json:"-"` 43 XXX_unrecognized []byte `json:"-"` 44 XXX_sizecache int32 `json:"-"` 45} 46 47func (m *WebDetection) Reset() { *m = WebDetection{} } 48func (m *WebDetection) String() string { return proto.CompactTextString(m) } 49func (*WebDetection) ProtoMessage() {} 50func (*WebDetection) Descriptor() ([]byte, []int) { 51 return fileDescriptor_ba190e118244c98b, []int{0} 52} 53 54func (m *WebDetection) XXX_Unmarshal(b []byte) error { 55 return xxx_messageInfo_WebDetection.Unmarshal(m, b) 56} 57func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 58 return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic) 59} 60func (m *WebDetection) XXX_Merge(src proto.Message) { 61 xxx_messageInfo_WebDetection.Merge(m, src) 62} 63func (m *WebDetection) XXX_Size() int { 64 return xxx_messageInfo_WebDetection.Size(m) 65} 66func (m *WebDetection) XXX_DiscardUnknown() { 67 xxx_messageInfo_WebDetection.DiscardUnknown(m) 68} 69 70var xxx_messageInfo_WebDetection proto.InternalMessageInfo 71 72func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity { 73 if m != nil { 74 return m.WebEntities 75 } 76 return nil 77} 78 79func (m *WebDetection) GetFullMatchingImages() []*WebDetection_WebImage { 80 if m != nil { 81 return m.FullMatchingImages 82 } 83 return nil 84} 85 86func (m *WebDetection) GetPartialMatchingImages() []*WebDetection_WebImage { 87 if m != nil { 88 return m.PartialMatchingImages 89 } 90 return nil 91} 92 93func (m *WebDetection) GetPagesWithMatchingImages() []*WebDetection_WebPage { 94 if m != nil { 95 return m.PagesWithMatchingImages 96 } 97 return nil 98} 99 100func (m *WebDetection) GetVisuallySimilarImages() []*WebDetection_WebImage { 101 if m != nil { 102 return m.VisuallySimilarImages 103 } 104 return nil 105} 106 107func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel { 108 if m != nil { 109 return m.BestGuessLabels 110 } 111 return nil 112} 113 114// Entity deduced from similar images on the Internet. 115type WebDetection_WebEntity struct { 116 // Opaque entity ID. 117 EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` 118 // Overall relevancy score for the entity. 119 // Not normalized and not comparable across different image queries. 120 Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` 121 // Canonical description of the entity, in English. 122 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` 123 XXX_NoUnkeyedLiteral struct{} `json:"-"` 124 XXX_unrecognized []byte `json:"-"` 125 XXX_sizecache int32 `json:"-"` 126} 127 128func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} } 129func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) } 130func (*WebDetection_WebEntity) ProtoMessage() {} 131func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { 132 return fileDescriptor_ba190e118244c98b, []int{0, 0} 133} 134 135func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error { 136 return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b) 137} 138func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 139 return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic) 140} 141func (m *WebDetection_WebEntity) XXX_Merge(src proto.Message) { 142 xxx_messageInfo_WebDetection_WebEntity.Merge(m, src) 143} 144func (m *WebDetection_WebEntity) XXX_Size() int { 145 return xxx_messageInfo_WebDetection_WebEntity.Size(m) 146} 147func (m *WebDetection_WebEntity) XXX_DiscardUnknown() { 148 xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m) 149} 150 151var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo 152 153func (m *WebDetection_WebEntity) GetEntityId() string { 154 if m != nil { 155 return m.EntityId 156 } 157 return "" 158} 159 160func (m *WebDetection_WebEntity) GetScore() float32 { 161 if m != nil { 162 return m.Score 163 } 164 return 0 165} 166 167func (m *WebDetection_WebEntity) GetDescription() string { 168 if m != nil { 169 return m.Description 170 } 171 return "" 172} 173 174// Metadata for online images. 175type WebDetection_WebImage struct { 176 // The result image URL. 177 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` 178 // (Deprecated) Overall relevancy score for the image. 179 Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` 180 XXX_NoUnkeyedLiteral struct{} `json:"-"` 181 XXX_unrecognized []byte `json:"-"` 182 XXX_sizecache int32 `json:"-"` 183} 184 185func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} } 186func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) } 187func (*WebDetection_WebImage) ProtoMessage() {} 188func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { 189 return fileDescriptor_ba190e118244c98b, []int{0, 1} 190} 191 192func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error { 193 return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b) 194} 195func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 196 return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic) 197} 198func (m *WebDetection_WebImage) XXX_Merge(src proto.Message) { 199 xxx_messageInfo_WebDetection_WebImage.Merge(m, src) 200} 201func (m *WebDetection_WebImage) XXX_Size() int { 202 return xxx_messageInfo_WebDetection_WebImage.Size(m) 203} 204func (m *WebDetection_WebImage) XXX_DiscardUnknown() { 205 xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m) 206} 207 208var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo 209 210func (m *WebDetection_WebImage) GetUrl() string { 211 if m != nil { 212 return m.Url 213 } 214 return "" 215} 216 217func (m *WebDetection_WebImage) GetScore() float32 { 218 if m != nil { 219 return m.Score 220 } 221 return 0 222} 223 224// Metadata for web pages. 225type WebDetection_WebPage struct { 226 // The result web page URL. 227 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` 228 // (Deprecated) Overall relevancy score for the web page. 229 Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` 230 // Title for the web page, may contain HTML markups. 231 PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"` 232 // Fully matching images on the page. 233 // Can include resized copies of the query image. 234 FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"` 235 // Partial matching images on the page. 236 // Those images are similar enough to share some key-point features. For 237 // example an original image will likely have partial matching for its 238 // crops. 239 PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"` 240 XXX_NoUnkeyedLiteral struct{} `json:"-"` 241 XXX_unrecognized []byte `json:"-"` 242 XXX_sizecache int32 `json:"-"` 243} 244 245func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} } 246func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) } 247func (*WebDetection_WebPage) ProtoMessage() {} 248func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { 249 return fileDescriptor_ba190e118244c98b, []int{0, 2} 250} 251 252func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error { 253 return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b) 254} 255func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 256 return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic) 257} 258func (m *WebDetection_WebPage) XXX_Merge(src proto.Message) { 259 xxx_messageInfo_WebDetection_WebPage.Merge(m, src) 260} 261func (m *WebDetection_WebPage) XXX_Size() int { 262 return xxx_messageInfo_WebDetection_WebPage.Size(m) 263} 264func (m *WebDetection_WebPage) XXX_DiscardUnknown() { 265 xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m) 266} 267 268var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo 269 270func (m *WebDetection_WebPage) GetUrl() string { 271 if m != nil { 272 return m.Url 273 } 274 return "" 275} 276 277func (m *WebDetection_WebPage) GetScore() float32 { 278 if m != nil { 279 return m.Score 280 } 281 return 0 282} 283 284func (m *WebDetection_WebPage) GetPageTitle() string { 285 if m != nil { 286 return m.PageTitle 287 } 288 return "" 289} 290 291func (m *WebDetection_WebPage) GetFullMatchingImages() []*WebDetection_WebImage { 292 if m != nil { 293 return m.FullMatchingImages 294 } 295 return nil 296} 297 298func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebImage { 299 if m != nil { 300 return m.PartialMatchingImages 301 } 302 return nil 303} 304 305// Label to provide extra metadata for the web detection. 306type WebDetection_WebLabel struct { 307 // Label for extra metadata. 308 Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` 309 // The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". 310 // For more information, see 311 // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. 312 LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 313 XXX_NoUnkeyedLiteral struct{} `json:"-"` 314 XXX_unrecognized []byte `json:"-"` 315 XXX_sizecache int32 `json:"-"` 316} 317 318func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} } 319func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) } 320func (*WebDetection_WebLabel) ProtoMessage() {} 321func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { 322 return fileDescriptor_ba190e118244c98b, []int{0, 3} 323} 324 325func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error { 326 return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b) 327} 328func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 329 return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic) 330} 331func (m *WebDetection_WebLabel) XXX_Merge(src proto.Message) { 332 xxx_messageInfo_WebDetection_WebLabel.Merge(m, src) 333} 334func (m *WebDetection_WebLabel) XXX_Size() int { 335 return xxx_messageInfo_WebDetection_WebLabel.Size(m) 336} 337func (m *WebDetection_WebLabel) XXX_DiscardUnknown() { 338 xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m) 339} 340 341var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo 342 343func (m *WebDetection_WebLabel) GetLabel() string { 344 if m != nil { 345 return m.Label 346 } 347 return "" 348} 349 350func (m *WebDetection_WebLabel) GetLanguageCode() string { 351 if m != nil { 352 return m.LanguageCode 353 } 354 return "" 355} 356 357func init() { 358 proto.RegisterType((*WebDetection)(nil), "google.cloud.vision.v1p1beta1.WebDetection") 359 proto.RegisterType((*WebDetection_WebEntity)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebEntity") 360 proto.RegisterType((*WebDetection_WebImage)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebImage") 361 proto.RegisterType((*WebDetection_WebPage)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebPage") 362 proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebLabel") 363} 364 365func init() { 366 proto.RegisterFile("google/cloud/vision/v1p1beta1/web_detection.proto", fileDescriptor_ba190e118244c98b) 367} 368 369var fileDescriptor_ba190e118244c98b = []byte{ 370 // 511 bytes of a gzipped FileDescriptorProto 371 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4f, 0x6f, 0xd3, 0x30, 372 0x18, 0xc6, 0x95, 0x76, 0x1b, 0x8b, 0x5b, 0x04, 0xb3, 0x86, 0x16, 0x05, 0x26, 0x15, 0xb8, 0xf4, 373 0x94, 0xa8, 0x1b, 0x9c, 0xb8, 0x6d, 0x4c, 0x68, 0x12, 0x48, 0x55, 0x40, 0x1a, 0xe2, 0x92, 0x39, 374 0x89, 0x97, 0xbe, 0x92, 0x1b, 0x47, 0xb1, 0xd3, 0xaa, 0x37, 0x4e, 0x7c, 0x14, 0x3e, 0x23, 0x47, 375 0xf4, 0xda, 0xce, 0x54, 0x51, 0x36, 0x31, 0x86, 0xb8, 0xf9, 0x7d, 0xac, 0xe7, 0xf9, 0xd9, 0xaf, 376 0xff, 0x90, 0x49, 0x29, 0x65, 0x29, 0x78, 0x9c, 0x0b, 0xd9, 0x16, 0xf1, 0x02, 0x14, 0xc8, 0x2a, 377 0x5e, 0x4c, 0xea, 0x49, 0xc6, 0x35, 0x9b, 0xc4, 0x4b, 0x9e, 0xa5, 0x05, 0xd7, 0x3c, 0xd7, 0x20, 378 0xab, 0xa8, 0x6e, 0xa4, 0x96, 0xf4, 0xd0, 0x5a, 0x22, 0x63, 0x89, 0xac, 0x25, 0xba, 0xb6, 0x84, 379 0xcf, 0x5c, 0x22, 0xab, 0x21, 0x66, 0x55, 0x25, 0x35, 0x43, 0xaf, 0xb2, 0xe6, 0x17, 0xdf, 0x7c, 380 0x32, 0xbc, 0xe0, 0xd9, 0xdb, 0x2e, 0x93, 0x7e, 0x26, 0x43, 0x84, 0xf0, 0x4a, 0x83, 0x06, 0xae, 381 0x02, 0x6f, 0xd4, 0x1f, 0x0f, 0x8e, 0x5e, 0x47, 0xb7, 0x42, 0xa2, 0xf5, 0x08, 0x2c, 0xce, 0xd0, 382 0xbe, 0x4a, 0x06, 0x4b, 0x37, 0x04, 0xae, 0xe8, 0x15, 0xd9, 0xbf, 0x6a, 0x85, 0x48, 0xe7, 0x4c, 383 0xe7, 0x33, 0xa8, 0xca, 0x14, 0xe6, 0xac, 0xe4, 0x2a, 0xe8, 0x19, 0xc2, 0xab, 0x3b, 0x12, 0xce, 384 0xd1, 0x9c, 0x50, 0x4c, 0xfc, 0xe0, 0x02, 0x8d, 0xa4, 0xa8, 0x20, 0x07, 0x35, 0x6b, 0x34, 0xb0, 385 0x4d, 0x54, 0xff, 0x1e, 0xa8, 0x27, 0x2e, 0xf4, 0x17, 0x5a, 0x4d, 0xc2, 0x1a, 0x07, 0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