1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/vision/v1/web_detection.proto
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
11 // Reference imports to suppress errors if they are not otherwise used.
16 // Relevant information for the image from the Internet.
17 type WebDetection struct {
18 // Deduced entities from similar images on the Internet.
19 WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities" json:"web_entities,omitempty"`
20 // Fully matching images from the Internet.
21 // They're definite neardups and most often a copy of the query image with
22 // merely a size change.
23 FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
24 // Partial matching images from the Internet.
25 // Those images are similar enough to share some key-point features. For
26 // example an original image will likely have partial matching for its crops.
27 PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
28 // Web pages containing the matching images from the Internet.
29 PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages" json:"pages_with_matching_images,omitempty"`
32 func (m *WebDetection) Reset() { *m = WebDetection{} }
33 func (m *WebDetection) String() string { return proto.CompactTextString(m) }
34 func (*WebDetection) ProtoMessage() {}
35 func (*WebDetection) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
37 func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
44 func (m *WebDetection) GetFullMatchingImages() []*WebDetection_WebImage {
46 return m.FullMatchingImages
51 func (m *WebDetection) GetPartialMatchingImages() []*WebDetection_WebImage {
53 return m.PartialMatchingImages
58 func (m *WebDetection) GetPagesWithMatchingImages() []*WebDetection_WebPage {
60 return m.PagesWithMatchingImages
65 // Entity deduced from similar images on the Internet.
66 type WebDetection_WebEntity struct {
68 EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId" json:"entity_id,omitempty"`
69 // Overall relevancy score for the entity.
70 // Not normalized and not comparable across different image queries.
71 Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
72 // Canonical description of the entity, in English.
73 Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
76 func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
77 func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
78 func (*WebDetection_WebEntity) ProtoMessage() {}
79 func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
81 func (m *WebDetection_WebEntity) GetEntityId() string {
88 func (m *WebDetection_WebEntity) GetScore() float32 {
95 func (m *WebDetection_WebEntity) GetDescription() string {
102 // Metadata for online images.
103 type WebDetection_WebImage struct {
104 // The result image URL.
105 Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
106 // Overall relevancy score for the image.
107 // Not normalized and not comparable across different image queries.
108 Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
111 func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
112 func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
113 func (*WebDetection_WebImage) ProtoMessage() {}
114 func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
116 func (m *WebDetection_WebImage) GetUrl() string {
123 func (m *WebDetection_WebImage) GetScore() float32 {
130 // Metadata for web pages.
131 type WebDetection_WebPage struct {
132 // The result web page URL.
133 Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
134 // Overall relevancy score for the web page.
135 // Not normalized and not comparable across different image queries.
136 Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
139 func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
140 func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
141 func (*WebDetection_WebPage) ProtoMessage() {}
142 func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 2} }
144 func (m *WebDetection_WebPage) GetUrl() string {
151 func (m *WebDetection_WebPage) GetScore() float32 {
159 proto.RegisterType((*WebDetection)(nil), "google.cloud.vision.v1.WebDetection")
160 proto.RegisterType((*WebDetection_WebEntity)(nil), "google.cloud.vision.v1.WebDetection.WebEntity")
161 proto.RegisterType((*WebDetection_WebImage)(nil), "google.cloud.vision.v1.WebDetection.WebImage")
162 proto.RegisterType((*WebDetection_WebPage)(nil), "google.cloud.vision.v1.WebDetection.WebPage")
165 func init() { proto.RegisterFile("google/cloud/vision/v1/web_detection.proto", fileDescriptor3) }
167 var fileDescriptor3 = []byte{
168 // 383 bytes of a gzipped FileDescriptorProto
169 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x4f, 0xea, 0x40,
170 0x14, 0x85, 0x53, 0xca, 0x7b, 0x0f, 0x06, 0x16, 0xcf, 0x09, 0x4a, 0x53, 0x5d, 0x34, 0xae, 0x88,
171 0xd1, 0x69, 0xc0, 0xa5, 0xae, 0x88, 0x2e, 0x58, 0x98, 0x60, 0x37, 0x24, 0x6e, 0xea, 0xd0, 0x8e,
172 0xc3, 0x4d, 0xca, 0x4c, 0xd3, 0x19, 0x20, 0xfc, 0x58, 0xff, 0x87, 0x4b, 0x33, 0xd3, 0x62, 0x10,
173 0x30, 0x21, 0xee, 0xee, 0xdc, 0x9e, 0xf3, 0x9d, 0xf6, 0xf6, 0x0e, 0xba, 0xe2, 0x52, 0xf2, 0x8c,
174 0x85, 0x49, 0x26, 0x17, 0x69, 0xb8, 0x04, 0x05, 0x52, 0x84, 0xcb, 0x7e, 0xb8, 0x62, 0xd3, 0x38,
175 0x65, 0x9a, 0x25, 0x1a, 0xa4, 0x20, 0x79, 0x21, 0xb5, 0xc4, 0x67, 0xa5, 0x96, 0x58, 0x2d, 0x29,
176 0xb5, 0x64, 0xd9, 0xf7, 0x2f, 0x2a, 0x06, 0xcd, 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