| 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/v1/product_search.proto |
| 20 |
|
| 21 |
package visionpb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 28 |
reflect "reflect" |
| 29 |
sync "sync" |
| 30 |
) |
| 31 |
|
| 32 |
const ( |
| 33 |
// Verify that this generated code is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 35 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 36 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 37 |
) |
| 38 |
|
| 39 |
// Parameters for a product search request. |
| 40 |
type ProductSearchParams struct { |
| 41 |
state protoimpl.MessageState |
| 42 |
sizeCache protoimpl.SizeCache |
| 43 |
unknownFields protoimpl.UnknownFields |
| 44 |
|
| 45 |
// The bounding polygon around the area of interest in the image. |
| 46 |
// If it is not specified, system discretion will be applied. |
| 47 |
BoundingPoly *BoundingPoly `protobuf:"bytes,9,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` |
| 48 |
// The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to |
| 49 |
// be searched for similar images. |
| 50 |
// |
| 51 |
// Format is: |
| 52 |
// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. |
| 53 |
ProductSet string `protobuf:"bytes,6,opt,name=product_set,json=productSet,proto3" json:"product_set,omitempty"` |
| 54 |
// The list of product categories to search in. Currently, we only consider |
| 55 |
// the first category, and either "homegoods-v2", "apparel-v2", "toys-v2", |
| 56 |
// "packagedgoods-v1", or "general-v1" should be specified. The legacy |
| 57 |
// categories "homegoods", "apparel", and "toys" are still supported but will |
| 58 |
// be deprecated. For new products, please use "homegoods-v2", "apparel-v2", |
| 59 |
// or "toys-v2" for better product search accuracy. It is recommended to |
| 60 |
// migrate existing products to these categories as well. |
| 61 |
ProductCategories []string `protobuf:"bytes,7,rep,name=product_categories,json=productCategories,proto3" json:"product_categories,omitempty"` |
| 62 |
// The filtering expression. This can be used to restrict search results based |
| 63 |
// on Product labels. We currently support an AND of OR of key-value |
| 64 |
// expressions, where each expression within an OR must have the same key. An |
| 65 |
// '=' should be used to connect the key and value. |
| 66 |
// |
| 67 |
// For example, "(color = red OR color = blue) AND brand = Google" is |
| 68 |
// acceptable, but "(color = red OR brand = Google)" is not acceptable. |
| 69 |
// "color: red" is not acceptable because it uses a ':' instead of an '='. |
| 70 |
Filter string `protobuf:"bytes,8,opt,name=filter,proto3" json:"filter,omitempty"` |
| 71 |
} |
| 72 |
|
| 73 |
func (x *ProductSearchParams) Reset() { |
| 74 |
*x = ProductSearchParams{} |
| 75 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[0] |
| 76 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 77 |
ms.StoreMessageInfo(mi) |
| 78 |
} |
| 79 |
|
| 80 |
func (x *ProductSearchParams) String() string { |
| 81 |
return protoimpl.X.MessageStringOf(x) |
| 82 |
} |
| 83 |
|
| 84 |
func (*ProductSearchParams) ProtoMessage() {} |
| 85 |
|
| 86 |
func (x *ProductSearchParams) ProtoReflect() protoreflect.Message { |
| 87 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[0] |
| 88 |
if x != nil { |
| 89 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 90 |
if ms.LoadMessageInfo() == nil { |
| 91 |
ms.StoreMessageInfo(mi) |
| 92 |
} |
| 93 |
return ms |
| 94 |
} |
| 95 |
return mi.MessageOf(x) |
| 96 |
} |
| 97 |
|
| 98 |
// Deprecated: Use ProductSearchParams.ProtoReflect.Descriptor instead. |
| 99 |
func (*ProductSearchParams) Descriptor() ([]byte, []int) { |
| 100 |
return file_google_cloud_vision_v1_product_search_proto_rawDescGZIP(), []int{0} |
| 101 |
} |
| 102 |
|
| 103 |
func (x *ProductSearchParams) GetBoundingPoly() *BoundingPoly { |
| 104 |
if x != nil { |
| 105 |
return x.BoundingPoly |
| 106 |
} |
| 107 |
return nil |
| 108 |
} |
| 109 |
|
| 110 |
func (x *ProductSearchParams) GetProductSet() string { |
| 111 |
if x != nil { |
| 112 |
return x.ProductSet |
| 113 |
} |
| 114 |
return "" |
| 115 |
} |
| 116 |
|
| 117 |
func (x *ProductSearchParams) GetProductCategories() []string { |
| 118 |
if x != nil { |
| 119 |
return x.ProductCategories |
| 120 |
} |
| 121 |
return nil |
| 122 |
} |
| 123 |
|
| 124 |
func (x *ProductSearchParams) GetFilter() string { |
| 125 |
if x != nil { |
| 126 |
return x.Filter |
| 127 |
} |
| 128 |
return "" |
| 129 |
} |
| 130 |
|
| 131 |
// Results for a product search request. |
| 132 |
type ProductSearchResults struct { |
| 133 |
state protoimpl.MessageState |
| 134 |
sizeCache protoimpl.SizeCache |
| 135 |
unknownFields protoimpl.UnknownFields |
| 136 |
|
| 137 |
// Timestamp of the index which provided these results. Products added to the |
| 138 |
// product set and products removed from the product set after this time are |
| 139 |
// not reflected in the current results. |
| 140 |
IndexTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"` |
| 141 |
// List of results, one for each product match. |
| 142 |
Results []*ProductSearchResults_Result `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"` |
| 143 |
// List of results grouped by products detected in the query image. Each entry |
| 144 |
// corresponds to one bounding polygon in the query image, and contains the |
| 145 |
// matching products specific to that region. There may be duplicate product |
| 146 |
// matches in the union of all the per-product results. |
| 147 |
ProductGroupedResults []*ProductSearchResults_GroupedResult `protobuf:"bytes,6,rep,name=product_grouped_results,json=productGroupedResults,proto3" json:"product_grouped_results,omitempty"` |
| 148 |
} |
| 149 |
|
| 150 |
func (x *ProductSearchResults) Reset() { |
| 151 |
*x = ProductSearchResults{} |
| 152 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[1] |
| 153 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 154 |
ms.StoreMessageInfo(mi) |
| 155 |
} |
| 156 |
|
| 157 |
func (x *ProductSearchResults) String() string { |
| 158 |
return protoimpl.X.MessageStringOf(x) |
| 159 |
} |
| 160 |
|
| 161 |
func (*ProductSearchResults) ProtoMessage() {} |
| 162 |
|
| 163 |
func (x *ProductSearchResults) ProtoReflect() protoreflect.Message { |
| 164 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[1] |
| 165 |
if x != nil { |
| 166 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 167 |
if ms.LoadMessageInfo() == nil { |
| 168 |
ms.StoreMessageInfo(mi) |
| 169 |
} |
| 170 |
return ms |
| 171 |
} |
| 172 |
return mi.MessageOf(x) |
| 173 |
} |
| 174 |
|
| 175 |
// Deprecated: Use ProductSearchResults.ProtoReflect.Descriptor instead. |
| 176 |
func (*ProductSearchResults) Descriptor() ([]byte, []int) { |
| 177 |
return file_google_cloud_vision_v1_product_search_proto_rawDescGZIP(), []int{1} |
| 178 |
} |
| 179 |
|
| 180 |
func (x *ProductSearchResults) GetIndexTime() *timestamppb.Timestamp { |
| 181 |
if x != nil { |
| 182 |
return x.IndexTime |
| 183 |
} |
| 184 |
return nil |
| 185 |
} |
| 186 |
|
| 187 |
func (x *ProductSearchResults) GetResults() []*ProductSearchResults_Result { |
| 188 |
if x != nil { |
| 189 |
return x.Results |
| 190 |
} |
| 191 |
return nil |
| 192 |
} |
| 193 |
|
| 194 |
func (x *ProductSearchResults) GetProductGroupedResults() []*ProductSearchResults_GroupedResult { |
| 195 |
if x != nil { |
| 196 |
return x.ProductGroupedResults |
| 197 |
} |
| 198 |
return nil |
| 199 |
} |
| 200 |
|
| 201 |
// Information about a product. |
| 202 |
type ProductSearchResults_Result struct { |
| 203 |
state protoimpl.MessageState |
| 204 |
sizeCache protoimpl.SizeCache |
| 205 |
unknownFields protoimpl.UnknownFields |
| 206 |
|
| 207 |
// The Product. |
| 208 |
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` |
| 209 |
// A confidence level on the match, ranging from 0 (no confidence) to |
| 210 |
// 1 (full confidence). |
| 211 |
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` |
| 212 |
// The resource name of the image from the product that is the closest match |
| 213 |
// to the query. |
| 214 |
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` |
| 215 |
} |
| 216 |
|
| 217 |
func (x *ProductSearchResults_Result) Reset() { |
| 218 |
*x = ProductSearchResults_Result{} |
| 219 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[2] |
| 220 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 221 |
ms.StoreMessageInfo(mi) |
| 222 |
} |
| 223 |
|
| 224 |
func (x *ProductSearchResults_Result) String() string { |
| 225 |
return protoimpl.X.MessageStringOf(x) |
| 226 |
} |
| 227 |
|
| 228 |
func (*ProductSearchResults_Result) ProtoMessage() {} |
| 229 |
|
| 230 |
func (x *ProductSearchResults_Result) ProtoReflect() protoreflect.Message { |
| 231 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[2] |
| 232 |
if x != nil { |
| 233 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 234 |
if ms.LoadMessageInfo() == nil { |
| 235 |
ms.StoreMessageInfo(mi) |
| 236 |
} |
| 237 |
return ms |
| 238 |
} |
| 239 |
return mi.MessageOf(x) |
| 240 |
} |
| 241 |
|
| 242 |
// Deprecated: Use ProductSearchResults_Result.ProtoReflect.Descriptor instead. |
| 243 |
func (*ProductSearchResults_Result) Descriptor() ([]byte, []int) { |
| 244 |
return file_google_cloud_vision_v1_product_search_proto_rawDescGZIP(), []int{1, 0} |
| 245 |
} |
| 246 |
|
| 247 |
func (x *ProductSearchResults_Result) GetProduct() *Product { |
| 248 |
if x != nil { |
| 249 |
return x.Product |
| 250 |
} |
| 251 |
return nil |
| 252 |
} |
| 253 |
|
| 254 |
func (x *ProductSearchResults_Result) GetScore() float32 { |
| 255 |
if x != nil { |
| 256 |
return x.Score |
| 257 |
} |
| 258 |
return 0 |
| 259 |
} |
| 260 |
|
| 261 |
func (x *ProductSearchResults_Result) GetImage() string { |
| 262 |
if x != nil { |
| 263 |
return x.Image |
| 264 |
} |
| 265 |
return "" |
| 266 |
} |
| 267 |
|
| 268 |
// Prediction for what the object in the bounding box is. |
| 269 |
type ProductSearchResults_ObjectAnnotation struct { |
| 270 |
state protoimpl.MessageState |
| 271 |
sizeCache protoimpl.SizeCache |
| 272 |
unknownFields protoimpl.UnknownFields |
| 273 |
|
| 274 |
// Object ID that should align with EntityAnnotation mid. |
| 275 |
Mid string `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"` |
| 276 |
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more |
| 277 |
// information, see |
| 278 |
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
| 279 |
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` |
| 280 |
// Object name, expressed in its `language_code` language. |
| 281 |
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` |
| 282 |
// Score of the result. Range [0, 1]. |
| 283 |
Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"` |
| 284 |
} |
| 285 |
|
| 286 |
func (x *ProductSearchResults_ObjectAnnotation) Reset() { |
| 287 |
*x = ProductSearchResults_ObjectAnnotation{} |
| 288 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[3] |
| 289 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 290 |
ms.StoreMessageInfo(mi) |
| 291 |
} |
| 292 |
|
| 293 |
func (x *ProductSearchResults_ObjectAnnotation) String() string { |
| 294 |
return protoimpl.X.MessageStringOf(x) |
| 295 |
} |
| 296 |
|
| 297 |
func (*ProductSearchResults_ObjectAnnotation) ProtoMessage() {} |
| 298 |
|
| 299 |
func (x *ProductSearchResults_ObjectAnnotation) ProtoReflect() protoreflect.Message { |
| 300 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[3] |
| 301 |
if x != nil { |
| 302 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 303 |
if ms.LoadMessageInfo() == nil { |
| 304 |
ms.StoreMessageInfo(mi) |
| 305 |
} |
| 306 |
return ms |
| 307 |
} |
| 308 |
return mi.MessageOf(x) |
| 309 |
} |
| 310 |
|
| 311 |
// Deprecated: Use ProductSearchResults_ObjectAnnotation.ProtoReflect.Descriptor instead. |
| 312 |
func (*ProductSearchResults_ObjectAnnotation) Descriptor() ([]byte, []int) { |
| 313 |
return file_google_cloud_vision_v1_product_search_proto_rawDescGZIP(), []int{1, 1} |
| 314 |
} |
| 315 |
|
| 316 |
func (x *ProductSearchResults_ObjectAnnotation) GetMid() string { |
| 317 |
if x != nil { |
| 318 |
return x.Mid |
| 319 |
} |
| 320 |
return "" |
| 321 |
} |
| 322 |
|
| 323 |
func (x *ProductSearchResults_ObjectAnnotation) GetLanguageCode() string { |
| 324 |
if x != nil { |
| 325 |
return x.LanguageCode |
| 326 |
} |
| 327 |
return "" |
| 328 |
} |
| 329 |
|
| 330 |
func (x *ProductSearchResults_ObjectAnnotation) GetName() string { |
| 331 |
if x != nil { |
| 332 |
return x.Name |
| 333 |
} |
| 334 |
return "" |
| 335 |
} |
| 336 |
|
| 337 |
func (x *ProductSearchResults_ObjectAnnotation) GetScore() float32 { |
| 338 |
if x != nil { |
| 339 |
return x.Score |
| 340 |
} |
| 341 |
return 0 |
| 342 |
} |
| 343 |
|
| 344 |
// Information about the products similar to a single product in a query |
| 345 |
// image. |
| 346 |
type ProductSearchResults_GroupedResult struct { |
| 347 |
state protoimpl.MessageState |
| 348 |
sizeCache protoimpl.SizeCache |
| 349 |
unknownFields protoimpl.UnknownFields |
| 350 |
|
| 351 |
// The bounding polygon around the product detected in the query image. |
| 352 |
BoundingPoly *BoundingPoly `protobuf:"bytes,1,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` |
| 353 |
// List of results, one for each product match. |
| 354 |
Results []*ProductSearchResults_Result `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` |
| 355 |
// List of generic predictions for the object in the bounding box. |
| 356 |
ObjectAnnotations []*ProductSearchResults_ObjectAnnotation `protobuf:"bytes,3,rep,name=object_annotations,json=objectAnnotations,proto3" json:"object_annotations,omitempty"` |
| 357 |
} |
| 358 |
|
| 359 |
func (x *ProductSearchResults_GroupedResult) Reset() { |
| 360 |
*x = ProductSearchResults_GroupedResult{} |
| 361 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[4] |
| 362 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 363 |
ms.StoreMessageInfo(mi) |
| 364 |
} |
| 365 |
|
| 366 |
func (x *ProductSearchResults_GroupedResult) String() string { |
| 367 |
return protoimpl.X.MessageStringOf(x) |
| 368 |
} |
| 369 |
|
| 370 |
func (*ProductSearchResults_GroupedResult) ProtoMessage() {} |
| 371 |
|
| 372 |
func (x *ProductSearchResults_GroupedResult) ProtoReflect() protoreflect.Message { |
| 373 |
mi := &file_google_cloud_vision_v1_product_search_proto_msgTypes[4] |
| 374 |
if x != nil { |
| 375 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 376 |
if ms.LoadMessageInfo() == nil { |
| 377 |
ms.StoreMessageInfo(mi) |
| 378 |
} |
| 379 |
return ms |
| 380 |
} |
| 381 |
return mi.MessageOf(x) |
| 382 |
} |
| 383 |
|
| 384 |
// Deprecated: Use ProductSearchResults_GroupedResult.ProtoReflect.Descriptor instead. |
| 385 |
func (*ProductSearchResults_GroupedResult) Descriptor() ([]byte, []int) { |
| 386 |
return file_google_cloud_vision_v1_product_search_proto_rawDescGZIP(), []int{1, 2} |
| 387 |
} |
| 388 |
|
| 389 |
func (x *ProductSearchResults_GroupedResult) GetBoundingPoly() *BoundingPoly { |
| 390 |
if x != nil { |
| 391 |
return x.BoundingPoly |
| 392 |
} |
| 393 |
return nil |
| 394 |
} |
| 395 |
|
| 396 |
func (x *ProductSearchResults_GroupedResult) GetResults() []*ProductSearchResults_Result { |
| 397 |
if x != nil { |
| 398 |
return x.Results |
| 399 |
} |
| 400 |
return nil |
| 401 |
} |
| 402 |
|
| 403 |
func (x *ProductSearchResults_GroupedResult) GetObjectAnnotations() []*ProductSearchResults_ObjectAnnotation { |
| 404 |
if x != nil { |
| 405 |
return x.ObjectAnnotations |
| 406 |
} |
| 407 |
return nil |
| 408 |
} |
| 409 |
|
| 410 |
var File_google_cloud_vision_v1_product_search_proto protoreflect.FileDescriptor |
| 411 |
|
| 412 |
var file_google_cloud_vision_v1_product_search_proto_rawDesc = []byte{ |
| 413 |
0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, |
| 414 |
0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, |
| 415 |
0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, |
| 416 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, |
| 417 |
0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, |
| 418 |
0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 419 |
0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, |
| 420 |
0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, |
| 421 |
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 422 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, |
| 423 |
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x73, |
| 424 |
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, |
| 425 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, |
| 426 |
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x01, |
| 427 |
0x0a, 0x13, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, |
| 428 |
0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, |
| 429 |
0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, |
| 430 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, |
| 431 |
0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, |
| 432 |
0x6c, 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, |
| 433 |
0x12, 0x46, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x18, |
| 434 |
0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x76, 0x69, 0x73, 0x69, |
| 435 |
0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 436 |
0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x74, 0x52, 0x0a, 0x70, 0x72, |
| 437 |
0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x64, |
| 438 |
0x75, 0x63, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x07, |
| 439 |
0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x43, 0x61, 0x74, |
| 440 |
0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, |
| 441 |
0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, |
| 442 |
0x94, 0x06, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, |
| 443 |
0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x69, 0x6e, 0x64, 0x65, |
| 444 |
0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, |
| 445 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, |
| 446 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x54, |
| 447 |
0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x05, |
| 448 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 449 |
0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, |
| 450 |
0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, |
| 451 |
0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, |
| 452 |
0x74, 0x73, 0x12, 0x72, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x67, 0x72, |
| 453 |
0x6f, 0x75, 0x70, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x06, 0x20, |
| 454 |
0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 455 |
0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, |
| 456 |
0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, |
| 457 |
0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x65, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, |
| 458 |
0x15, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x65, 0x64, 0x52, |
| 459 |
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x6f, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, |
| 460 |
0x12, 0x39, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 461 |
0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 462 |
0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, |
| 463 |
0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, |
| 464 |
0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, |
| 465 |
0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, |
| 466 |
0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x1a, 0x73, 0x0a, 0x10, 0x4f, 0x62, 0x6a, 0x65, 0x63, |
| 467 |
0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, |
| 468 |
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x69, 0x64, 0x12, 0x23, 0x0a, |
| 469 |
0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, |
| 470 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, |
| 471 |
0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, |
| 472 |
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, |
| 473 |
0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x97, 0x02, 0x0a, |
| 474 |
0x0d, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x65, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x49, |
| 475 |
0x0a, 0x0d, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x18, |
| 476 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 477 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, |
| 478 |
0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x75, |
| 479 |
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x12, 0x4d, 0x0a, 0x07, 0x72, 0x65, 0x73, |
| 480 |
0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, |
| 481 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, |
| 482 |
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, |
| 483 |
0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, |
| 484 |
0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x6c, 0x0a, 0x12, 0x6f, 0x62, 0x6a, 0x65, |
| 485 |
0x63, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, |
| 486 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 487 |
0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, |
| 488 |
0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, |
| 489 |
0x74, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
| 490 |
0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, |
| 491 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x73, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, |
| 492 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, |
| 493 |
0x6e, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x61, |
| 494 |
0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6c, 0x6f, 0x75, |
| 495 |
0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, |
| 496 |
0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, |
| 497 |
0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x70, |
| 498 |
0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x56, 0x4e, 0x62, 0x06, 0x70, 0x72, 0x6f, |
| 499 |
0x74, 0x6f, 0x33, |
| 500 |
} |
| 501 |
|
| 502 |
var ( |
| 503 |
file_google_cloud_vision_v1_product_search_proto_rawDescOnce sync.Once |
| 504 |
file_google_cloud_vision_v1_product_search_proto_rawDescData = file_google_cloud_vision_v1_product_search_proto_rawDesc |
| 505 |
) |
| 506 |
|
| 507 |
func file_google_cloud_vision_v1_product_search_proto_rawDescGZIP() []byte { |
| 508 |
file_google_cloud_vision_v1_product_search_proto_rawDescOnce.Do(func() { |
| 509 |
file_google_cloud_vision_v1_product_search_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1_product_search_proto_rawDescData) |
| 510 |
}) |
| 511 |
return file_google_cloud_vision_v1_product_search_proto_rawDescData |
| 512 |
} |
| 513 |
|
| 514 |
var file_google_cloud_vision_v1_product_search_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 515 |
var file_google_cloud_vision_v1_product_search_proto_goTypes = []any{ |
| 516 |
(*ProductSearchParams)(nil), // 0: google.cloud.vision.v1.ProductSearchParams |
| 517 |
(*ProductSearchResults)(nil), // 1: google.cloud.vision.v1.ProductSearchResults |
| 518 |
(*ProductSearchResults_Result)(nil), // 2: google.cloud.vision.v1.ProductSearchResults.Result |
| 519 |
(*ProductSearchResults_ObjectAnnotation)(nil), // 3: google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation |
| 520 |
(*ProductSearchResults_GroupedResult)(nil), // 4: google.cloud.vision.v1.ProductSearchResults.GroupedResult |
| 521 |
(*BoundingPoly)(nil), // 5: google.cloud.vision.v1.BoundingPoly |
| 522 |
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp |
| 523 |
(*Product)(nil), // 7: google.cloud.vision.v1.Product |
| 524 |
} |
| 525 |
var file_google_cloud_vision_v1_product_search_proto_depIdxs = []int32{ |
| 526 |
5, // 0: google.cloud.vision.v1.ProductSearchParams.bounding_poly:type_name -> google.cloud.vision.v1.BoundingPoly |
| 527 |
6, // 1: google.cloud.vision.v1.ProductSearchResults.index_time:type_name -> google.protobuf.Timestamp |
| 528 |
2, // 2: google.cloud.vision.v1.ProductSearchResults.results:type_name -> google.cloud.vision.v1.ProductSearchResults.Result |
| 529 |
4, // 3: google.cloud.vision.v1.ProductSearchResults.product_grouped_results:type_name -> google.cloud.vision.v1.ProductSearchResults.GroupedResult |
| 530 |
7, // 4: google.cloud.vision.v1.ProductSearchResults.Result.product:type_name -> google.cloud.vision.v1.Product |
| 531 |
5, // 5: google.cloud.vision.v1.ProductSearchResults.GroupedResult.bounding_poly:type_name -> google.cloud.vision.v1.BoundingPoly |
| 532 |
2, // 6: google.cloud.vision.v1.ProductSearchResults.GroupedResult.results:type_name -> google.cloud.vision.v1.ProductSearchResults.Result |
| 533 |
3, // 7: google.cloud.vision.v1.ProductSearchResults.GroupedResult.object_annotations:type_name -> google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation |
| 534 |
8, // [8:8] is the sub-list for method output_type |
| 535 |
8, // [8:8] is the sub-list for method input_type |
| 536 |
8, // [8:8] is the sub-list for extension type_name |
| 537 |
8, // [8:8] is the sub-list for extension extendee |
| 538 |
0, // [0:8] is the sub-list for field type_name |
| 539 |
} |
| 540 |
|
| 541 |
func init() { file_google_cloud_vision_v1_product_search_proto_init() } |
| 542 |
func file_google_cloud_vision_v1_product_search_proto_init() { |
| 543 |
if File_google_cloud_vision_v1_product_search_proto != nil { |
| 544 |
return |
| 545 |
} |
| 546 |
file_google_cloud_vision_v1_geometry_proto_init() |
| 547 |
file_google_cloud_vision_v1_product_search_service_proto_init() |
| 548 |
type x struct{} |
| 549 |
out := protoimpl.TypeBuilder{ |
| 550 |
File: protoimpl.DescBuilder{ |
| 551 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 552 |
RawDescriptor: file_google_cloud_vision_v1_product_search_proto_rawDesc, |
| 553 |
NumEnums: 0, |
| 554 |
NumMessages: 5, |
| 555 |
NumExtensions: 0, |
| 556 |
NumServices: 0, |
| 557 |
}, |
| 558 |
GoTypes: file_google_cloud_vision_v1_product_search_proto_goTypes, |
| 559 |
DependencyIndexes: file_google_cloud_vision_v1_product_search_proto_depIdxs, |
| 560 |
MessageInfos: file_google_cloud_vision_v1_product_search_proto_msgTypes, |
| 561 |
}.Build() |
| 562 |
File_google_cloud_vision_v1_product_search_proto = out.File |
| 563 |
file_google_cloud_vision_v1_product_search_proto_rawDesc = nil |
| 564 |
file_google_cloud_vision_v1_product_search_proto_goTypes = nil |
| 565 |
file_google_cloud_vision_v1_product_search_proto_depIdxs = nil |
| 566 |
} |