| 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/retail/v2beta/completion_service.proto |
| 20 |
|
| 21 |
package retailpb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
codes "google.golang.org/grpc/codes" |
| 29 |
status "google.golang.org/grpc/status" |
| 30 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 31 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 32 |
reflect "reflect" |
| 33 |
sync "sync" |
| 34 |
) |
| 35 |
|
| 36 |
const ( |
| 37 |
// Verify that this generated code is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 39 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 40 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 41 |
) |
| 42 |
|
| 43 |
// Autocomplete parameters. |
| 44 |
type CompleteQueryRequest struct { |
| 45 |
state protoimpl.MessageState |
| 46 |
sizeCache protoimpl.SizeCache |
| 47 |
unknownFields protoimpl.UnknownFields |
| 48 |
|
| 49 |
// Required. Catalog for which the completion is performed. |
| 50 |
// |
| 51 |
// Full resource name of catalog, such as |
| 52 |
// `projects/*/locations/global/catalogs/default_catalog`. |
| 53 |
Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` |
| 54 |
// Required. The query used to generate suggestions. |
| 55 |
// |
| 56 |
// The maximum number of allowed characters is 255. |
| 57 |
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` |
| 58 |
// Recommended field. A unique identifier for tracking visitors. For example, |
| 59 |
// this could be implemented with an HTTP cookie, which should be able to |
| 60 |
// uniquely identify a visitor on a single device. This unique identifier |
| 61 |
// should not change if the visitor logs in or out of the website. |
| 62 |
// |
| 63 |
// The field must be a UTF-8 encoded string with a length limit of 128 |
| 64 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 65 |
VisitorId string `protobuf:"bytes,7,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"` |
| 66 |
// Note that this field applies for `user-data` dataset only. For requests |
| 67 |
// with `cloud-retail` dataset, setting this field has no effect. |
| 68 |
// |
| 69 |
// The language filters applied to the output suggestions. If set, it should |
| 70 |
// contain the language of the query. If not set, suggestions are returned |
| 71 |
// without considering language restrictions. This is the BCP-47 language |
| 72 |
// code, such as "en-US" or "sr-Latn". For more information, see [Tags for |
| 73 |
// Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum |
| 74 |
// number of language codes is 3. |
| 75 |
LanguageCodes []string `protobuf:"bytes,3,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` |
| 76 |
// The device type context for completion suggestions. We recommend that you |
| 77 |
// leave this field empty. |
| 78 |
// |
| 79 |
// It can apply different suggestions on different device types, e.g. |
| 80 |
// `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device |
| 81 |
// types. |
| 82 |
// |
| 83 |
// Supported formats: |
| 84 |
// |
| 85 |
// * `UNKNOWN_DEVICE_TYPE` |
| 86 |
// |
| 87 |
// * `DESKTOP` |
| 88 |
// |
| 89 |
// * `MOBILE` |
| 90 |
// |
| 91 |
// * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`. |
| 92 |
DeviceType string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` |
| 93 |
// Determines which dataset to use for fetching completion. "user-data" will |
| 94 |
// use the dataset imported through |
| 95 |
// [CompletionService.ImportCompletionData][google.cloud.retail.v2beta.CompletionService.ImportCompletionData]. |
| 96 |
// `cloud-retail` will use the dataset generated by Cloud Retail based on user |
| 97 |
// events. If left empty, completions will be fetched from the `user-data` |
| 98 |
// dataset. |
| 99 |
// |
| 100 |
// Current supported values: |
| 101 |
// |
| 102 |
// * user-data |
| 103 |
// |
| 104 |
// - cloud-retail: |
| 105 |
// This option requires enabling auto-learning function first. See |
| 106 |
// [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset). |
| 107 |
Dataset string `protobuf:"bytes,6,opt,name=dataset,proto3" json:"dataset,omitempty"` |
| 108 |
// Completion max suggestions. If left unset or set to 0, then will fallback |
| 109 |
// to the configured value |
| 110 |
// [CompletionConfig.max_suggestions][google.cloud.retail.v2beta.CompletionConfig.max_suggestions]. |
| 111 |
// |
| 112 |
// The maximum allowed max suggestions is 20. If it is set higher, it will be |
| 113 |
// capped by 20. |
| 114 |
MaxSuggestions int32 `protobuf:"varint,5,opt,name=max_suggestions,json=maxSuggestions,proto3" json:"max_suggestions,omitempty"` |
| 115 |
// If true, attribute suggestions are enabled and provided in the response. |
| 116 |
// |
| 117 |
// This field is only available for the `cloud-retail` dataset. |
| 118 |
EnableAttributeSuggestions bool `protobuf:"varint,9,opt,name=enable_attribute_suggestions,json=enableAttributeSuggestions,proto3" json:"enable_attribute_suggestions,omitempty"` |
| 119 |
// The entity for customers who run multiple entities, domains, sites, or |
| 120 |
// regions, for example, `Google US`, `Google Ads`, `Waymo`, |
| 121 |
// `google.com`, `youtube.com`, etc. |
| 122 |
// If this is set, it must be an exact match with |
| 123 |
// [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get |
| 124 |
// per-entity autocomplete results. This field will be applied to |
| 125 |
// `completion_results` only. It has no effect on the `attribute_results`. |
| 126 |
// Also, this entity should be limited to 256 characters, if too long, it will |
| 127 |
// be truncated to 256 characters in both generation and serving time, and may |
| 128 |
// lead to mis-match. To ensure it works, please set the entity with string |
| 129 |
// within 256 characters. |
| 130 |
Entity string `protobuf:"bytes,10,opt,name=entity,proto3" json:"entity,omitempty"` |
| 131 |
} |
| 132 |
|
| 133 |
func (x *CompleteQueryRequest) Reset() { |
| 134 |
*x = CompleteQueryRequest{} |
| 135 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[0] |
| 136 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 137 |
ms.StoreMessageInfo(mi) |
| 138 |
} |
| 139 |
|
| 140 |
func (x *CompleteQueryRequest) String() string { |
| 141 |
return protoimpl.X.MessageStringOf(x) |
| 142 |
} |
| 143 |
|
| 144 |
func (*CompleteQueryRequest) ProtoMessage() {} |
| 145 |
|
| 146 |
func (x *CompleteQueryRequest) ProtoReflect() protoreflect.Message { |
| 147 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[0] |
| 148 |
if x != nil { |
| 149 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 150 |
if ms.LoadMessageInfo() == nil { |
| 151 |
ms.StoreMessageInfo(mi) |
| 152 |
} |
| 153 |
return ms |
| 154 |
} |
| 155 |
return mi.MessageOf(x) |
| 156 |
} |
| 157 |
|
| 158 |
// Deprecated: Use CompleteQueryRequest.ProtoReflect.Descriptor instead. |
| 159 |
func (*CompleteQueryRequest) Descriptor() ([]byte, []int) { |
| 160 |
return file_google_cloud_retail_v2beta_completion_service_proto_rawDescGZIP(), []int{0} |
| 161 |
} |
| 162 |
|
| 163 |
func (x *CompleteQueryRequest) GetCatalog() string { |
| 164 |
if x != nil { |
| 165 |
return x.Catalog |
| 166 |
} |
| 167 |
return "" |
| 168 |
} |
| 169 |
|
| 170 |
func (x *CompleteQueryRequest) GetQuery() string { |
| 171 |
if x != nil { |
| 172 |
return x.Query |
| 173 |
} |
| 174 |
return "" |
| 175 |
} |
| 176 |
|
| 177 |
func (x *CompleteQueryRequest) GetVisitorId() string { |
| 178 |
if x != nil { |
| 179 |
return x.VisitorId |
| 180 |
} |
| 181 |
return "" |
| 182 |
} |
| 183 |
|
| 184 |
func (x *CompleteQueryRequest) GetLanguageCodes() []string { |
| 185 |
if x != nil { |
| 186 |
return x.LanguageCodes |
| 187 |
} |
| 188 |
return nil |
| 189 |
} |
| 190 |
|
| 191 |
func (x *CompleteQueryRequest) GetDeviceType() string { |
| 192 |
if x != nil { |
| 193 |
return x.DeviceType |
| 194 |
} |
| 195 |
return "" |
| 196 |
} |
| 197 |
|
| 198 |
func (x *CompleteQueryRequest) GetDataset() string { |
| 199 |
if x != nil { |
| 200 |
return x.Dataset |
| 201 |
} |
| 202 |
return "" |
| 203 |
} |
| 204 |
|
| 205 |
func (x *CompleteQueryRequest) GetMaxSuggestions() int32 { |
| 206 |
if x != nil { |
| 207 |
return x.MaxSuggestions |
| 208 |
} |
| 209 |
return 0 |
| 210 |
} |
| 211 |
|
| 212 |
func (x *CompleteQueryRequest) GetEnableAttributeSuggestions() bool { |
| 213 |
if x != nil { |
| 214 |
return x.EnableAttributeSuggestions |
| 215 |
} |
| 216 |
return false |
| 217 |
} |
| 218 |
|
| 219 |
func (x *CompleteQueryRequest) GetEntity() string { |
| 220 |
if x != nil { |
| 221 |
return x.Entity |
| 222 |
} |
| 223 |
return "" |
| 224 |
} |
| 225 |
|
| 226 |
// Response of the autocomplete query. |
| 227 |
type CompleteQueryResponse struct { |
| 228 |
state protoimpl.MessageState |
| 229 |
sizeCache protoimpl.SizeCache |
| 230 |
unknownFields protoimpl.UnknownFields |
| 231 |
|
| 232 |
// Results of the matching suggestions. The result list is ordered and the |
| 233 |
// first result is top suggestion. |
| 234 |
CompletionResults []*CompleteQueryResponse_CompletionResult `protobuf:"bytes,1,rep,name=completion_results,json=completionResults,proto3" json:"completion_results,omitempty"` |
| 235 |
// A unique complete token. This should be included in the |
| 236 |
// [UserEvent.completion_detail][google.cloud.retail.v2beta.UserEvent.completion_detail] |
| 237 |
// for search events resulting from this completion, which enables accurate |
| 238 |
// attribution of complete model performance. |
| 239 |
AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"` |
| 240 |
// Deprecated. Matched recent searches of this user. The maximum number of |
| 241 |
// recent searches is 10. This field is a restricted feature. If you want to |
| 242 |
// enable it, contact Retail Search support. |
| 243 |
// |
| 244 |
// This feature is only available when |
| 245 |
// [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] |
| 246 |
// field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is |
| 247 |
// imported. The recent searches satisfy the follow rules: |
| 248 |
// |
| 249 |
// - They are ordered from latest to oldest. |
| 250 |
// |
| 251 |
// - They are matched with |
| 252 |
// [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] |
| 253 |
// case insensitively. |
| 254 |
// |
| 255 |
// - They are transformed to lower case. |
| 256 |
// |
| 257 |
// - They are UTF-8 safe. |
| 258 |
// |
| 259 |
// Recent searches are deduplicated. More recent searches will be reserved |
| 260 |
// when duplication happens. |
| 261 |
// |
| 262 |
// Deprecated: Marked as deprecated in google/cloud/retail/v2beta/completion_service.proto. |
| 263 |
RecentSearchResults []*CompleteQueryResponse_RecentSearchResult `protobuf:"bytes,3,rep,name=recent_search_results,json=recentSearchResults,proto3" json:"recent_search_results,omitempty"` |
| 264 |
// A map of matched attribute suggestions. This field is only available for |
| 265 |
// `cloud-retail` dataset. |
| 266 |
// |
| 267 |
// Current supported keys: |
| 268 |
// |
| 269 |
// * `brands` |
| 270 |
// |
| 271 |
// * `categories` |
| 272 |
AttributeResults map[string]*CompleteQueryResponse_AttributeResult `protobuf:"bytes,4,rep,name=attribute_results,json=attributeResults,proto3" json:"attribute_results,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 273 |
} |
| 274 |
|
| 275 |
func (x *CompleteQueryResponse) Reset() { |
| 276 |
*x = CompleteQueryResponse{} |
| 277 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[1] |
| 278 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 279 |
ms.StoreMessageInfo(mi) |
| 280 |
} |
| 281 |
|
| 282 |
func (x *CompleteQueryResponse) String() string { |
| 283 |
return protoimpl.X.MessageStringOf(x) |
| 284 |
} |
| 285 |
|
| 286 |
func (*CompleteQueryResponse) ProtoMessage() {} |
| 287 |
|
| 288 |
func (x *CompleteQueryResponse) ProtoReflect() protoreflect.Message { |
| 289 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[1] |
| 290 |
if x != nil { |
| 291 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 292 |
if ms.LoadMessageInfo() == nil { |
| 293 |
ms.StoreMessageInfo(mi) |
| 294 |
} |
| 295 |
return ms |
| 296 |
} |
| 297 |
return mi.MessageOf(x) |
| 298 |
} |
| 299 |
|
| 300 |
// Deprecated: Use CompleteQueryResponse.ProtoReflect.Descriptor instead. |
| 301 |
func (*CompleteQueryResponse) Descriptor() ([]byte, []int) { |
| 302 |
return file_google_cloud_retail_v2beta_completion_service_proto_rawDescGZIP(), []int{1} |
| 303 |
} |
| 304 |
|
| 305 |
func (x *CompleteQueryResponse) GetCompletionResults() []*CompleteQueryResponse_CompletionResult { |
| 306 |
if x != nil { |
| 307 |
return x.CompletionResults |
| 308 |
} |
| 309 |
return nil |
| 310 |
} |
| 311 |
|
| 312 |
func (x *CompleteQueryResponse) GetAttributionToken() string { |
| 313 |
if x != nil { |
| 314 |
return x.AttributionToken |
| 315 |
} |
| 316 |
return "" |
| 317 |
} |
| 318 |
|
| 319 |
// Deprecated: Marked as deprecated in google/cloud/retail/v2beta/completion_service.proto. |
| 320 |
func (x *CompleteQueryResponse) GetRecentSearchResults() []*CompleteQueryResponse_RecentSearchResult { |
| 321 |
if x != nil { |
| 322 |
return x.RecentSearchResults |
| 323 |
} |
| 324 |
return nil |
| 325 |
} |
| 326 |
|
| 327 |
func (x *CompleteQueryResponse) GetAttributeResults() map[string]*CompleteQueryResponse_AttributeResult { |
| 328 |
if x != nil { |
| 329 |
return x.AttributeResults |
| 330 |
} |
| 331 |
return nil |
| 332 |
} |
| 333 |
|
| 334 |
// Resource that represents completion results. |
| 335 |
type CompleteQueryResponse_CompletionResult struct { |
| 336 |
state protoimpl.MessageState |
| 337 |
sizeCache protoimpl.SizeCache |
| 338 |
unknownFields protoimpl.UnknownFields |
| 339 |
|
| 340 |
// The suggestion for the query. |
| 341 |
Suggestion string `protobuf:"bytes,1,opt,name=suggestion,proto3" json:"suggestion,omitempty"` |
| 342 |
// Custom attributes for the suggestion term. |
| 343 |
// |
| 344 |
// * For `user-data`, the attributes are additional custom attributes |
| 345 |
// ingested through BigQuery. |
| 346 |
// |
| 347 |
// * For `cloud-retail`, the attributes are product attributes generated |
| 348 |
// by Cloud Retail. It requires |
| 349 |
// [UserEvent.product_details][google.cloud.retail.v2beta.UserEvent.product_details] |
| 350 |
// is imported properly. |
| 351 |
Attributes map[string]*CustomAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 352 |
} |
| 353 |
|
| 354 |
func (x *CompleteQueryResponse_CompletionResult) Reset() { |
| 355 |
*x = CompleteQueryResponse_CompletionResult{} |
| 356 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[2] |
| 357 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 358 |
ms.StoreMessageInfo(mi) |
| 359 |
} |
| 360 |
|
| 361 |
func (x *CompleteQueryResponse_CompletionResult) String() string { |
| 362 |
return protoimpl.X.MessageStringOf(x) |
| 363 |
} |
| 364 |
|
| 365 |
func (*CompleteQueryResponse_CompletionResult) ProtoMessage() {} |
| 366 |
|
| 367 |
func (x *CompleteQueryResponse_CompletionResult) ProtoReflect() protoreflect.Message { |
| 368 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[2] |
| 369 |
if x != nil { |
| 370 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 371 |
if ms.LoadMessageInfo() == nil { |
| 372 |
ms.StoreMessageInfo(mi) |
| 373 |
} |
| 374 |
return ms |
| 375 |
} |
| 376 |
return mi.MessageOf(x) |
| 377 |
} |
| 378 |
|
| 379 |
// Deprecated: Use CompleteQueryResponse_CompletionResult.ProtoReflect.Descriptor instead. |
| 380 |
func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int) { |
| 381 |
return file_google_cloud_retail_v2beta_completion_service_proto_rawDescGZIP(), []int{1, 0} |
| 382 |
} |
| 383 |
|
| 384 |
func (x *CompleteQueryResponse_CompletionResult) GetSuggestion() string { |
| 385 |
if x != nil { |
| 386 |
return x.Suggestion |
| 387 |
} |
| 388 |
return "" |
| 389 |
} |
| 390 |
|
| 391 |
func (x *CompleteQueryResponse_CompletionResult) GetAttributes() map[string]*CustomAttribute { |
| 392 |
if x != nil { |
| 393 |
return x.Attributes |
| 394 |
} |
| 395 |
return nil |
| 396 |
} |
| 397 |
|
| 398 |
// Deprecated: Recent search of this user. |
| 399 |
// |
| 400 |
// Deprecated: Marked as deprecated in google/cloud/retail/v2beta/completion_service.proto. |
| 401 |
type CompleteQueryResponse_RecentSearchResult struct { |
| 402 |
state protoimpl.MessageState |
| 403 |
sizeCache protoimpl.SizeCache |
| 404 |
unknownFields protoimpl.UnknownFields |
| 405 |
|
| 406 |
// The recent search query. |
| 407 |
RecentSearch string `protobuf:"bytes,1,opt,name=recent_search,json=recentSearch,proto3" json:"recent_search,omitempty"` |
| 408 |
} |
| 409 |
|
| 410 |
func (x *CompleteQueryResponse_RecentSearchResult) Reset() { |
| 411 |
*x = CompleteQueryResponse_RecentSearchResult{} |
| 412 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[3] |
| 413 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 414 |
ms.StoreMessageInfo(mi) |
| 415 |
} |
| 416 |
|
| 417 |
func (x *CompleteQueryResponse_RecentSearchResult) String() string { |
| 418 |
return protoimpl.X.MessageStringOf(x) |
| 419 |
} |
| 420 |
|
| 421 |
func (*CompleteQueryResponse_RecentSearchResult) ProtoMessage() {} |
| 422 |
|
| 423 |
func (x *CompleteQueryResponse_RecentSearchResult) ProtoReflect() protoreflect.Message { |
| 424 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[3] |
| 425 |
if x != nil { |
| 426 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 427 |
if ms.LoadMessageInfo() == nil { |
| 428 |
ms.StoreMessageInfo(mi) |
| 429 |
} |
| 430 |
return ms |
| 431 |
} |
| 432 |
return mi.MessageOf(x) |
| 433 |
} |
| 434 |
|
| 435 |
// Deprecated: Use CompleteQueryResponse_RecentSearchResult.ProtoReflect.Descriptor instead. |
| 436 |
func (*CompleteQueryResponse_RecentSearchResult) Descriptor() ([]byte, []int) { |
| 437 |
return file_google_cloud_retail_v2beta_completion_service_proto_rawDescGZIP(), []int{1, 1} |
| 438 |
} |
| 439 |
|
| 440 |
func (x *CompleteQueryResponse_RecentSearchResult) GetRecentSearch() string { |
| 441 |
if x != nil { |
| 442 |
return x.RecentSearch |
| 443 |
} |
| 444 |
return "" |
| 445 |
} |
| 446 |
|
| 447 |
// Resource that represents attribute results. |
| 448 |
type CompleteQueryResponse_AttributeResult struct { |
| 449 |
state protoimpl.MessageState |
| 450 |
sizeCache protoimpl.SizeCache |
| 451 |
unknownFields protoimpl.UnknownFields |
| 452 |
|
| 453 |
// The list of suggestions for the attribute. |
| 454 |
Suggestions []string `protobuf:"bytes,1,rep,name=suggestions,proto3" json:"suggestions,omitempty"` |
| 455 |
} |
| 456 |
|
| 457 |
func (x *CompleteQueryResponse_AttributeResult) Reset() { |
| 458 |
*x = CompleteQueryResponse_AttributeResult{} |
| 459 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[4] |
| 460 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 461 |
ms.StoreMessageInfo(mi) |
| 462 |
} |
| 463 |
|
| 464 |
func (x *CompleteQueryResponse_AttributeResult) String() string { |
| 465 |
return protoimpl.X.MessageStringOf(x) |
| 466 |
} |
| 467 |
|
| 468 |
func (*CompleteQueryResponse_AttributeResult) ProtoMessage() {} |
| 469 |
|
| 470 |
func (x *CompleteQueryResponse_AttributeResult) ProtoReflect() protoreflect.Message { |
| 471 |
mi := &file_google_cloud_retail_v2beta_completion_service_proto_msgTypes[4] |
| 472 |
if x != nil { |
| 473 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 474 |
if ms.LoadMessageInfo() == nil { |
| 475 |
ms.StoreMessageInfo(mi) |
| 476 |
} |
| 477 |
return ms |
| 478 |
} |
| 479 |
return mi.MessageOf(x) |
| 480 |
} |
| 481 |
|
| 482 |
// Deprecated: Use CompleteQueryResponse_AttributeResult.ProtoReflect.Descriptor instead. |
| 483 |
func (*CompleteQueryResponse_AttributeResult) Descriptor() ([]byte, []int) { |
| 484 |
return file_google_cloud_retail_v2beta_completion_service_proto_rawDescGZIP(), []int{1, 2} |
| 485 |
} |
| 486 |
|
| 487 |
func (x *CompleteQueryResponse_AttributeResult) GetSuggestions() []string { |
| 488 |
if x != nil { |
| 489 |
return x.Suggestions |
| 490 |
} |
| 491 |
return nil |
| 492 |
} |
| 493 |
|
| 494 |
var File_google_cloud_retail_v2beta_completion_service_proto protoreflect.FileDescriptor |
| 495 |
|
| 496 |
var file_google_cloud_retail_v2beta_completion_service_proto_rawDesc = []byte{ |
| 497 |
0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, |
| 498 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, |
| 499 |
0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, |
| 500 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 501 |
0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 502 |
0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, |
| 503 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 504 |
0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, |
| 505 |
0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 506 |
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, |
| 507 |
0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 508 |
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, |
| 509 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, |
| 510 |
0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, |
| 511 |
0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, |
| 512 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, |
| 513 |
0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, |
| 514 |
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, |
| 515 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, |
| 516 |
0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, |
| 517 |
0x74, 0x6f, 0x22, 0xf6, 0x02, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, |
| 518 |
0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x63, |
| 519 |
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xe0, 0x41, |
| 520 |
0x02, 0xfa, 0x41, 0x1f, 0x0a, 0x1d, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, |
| 521 |
0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x74, 0x61, |
| 522 |
0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x19, 0x0a, 0x05, |
| 523 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, |
| 524 |
0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x74, |
| 525 |
0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x69, 0x73, |
| 526 |
0x69, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, |
| 527 |
0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, |
| 528 |
0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1f, 0x0a, |
| 529 |
0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, |
| 530 |
0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, |
| 531 |
0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 532 |
0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, |
| 533 |
0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, |
| 534 |
0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, |
| 535 |
0x73, 0x12, 0x40, 0x0a, 0x1c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, |
| 536 |
0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, |
| 537 |
0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, |
| 538 |
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, |
| 539 |
0x6f, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x0a, 0x20, |
| 540 |
0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xbd, 0x07, 0x0a, 0x15, |
| 541 |
0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, |
| 542 |
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, |
| 543 |
0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, |
| 544 |
0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 545 |
0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, |
| 546 |
0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, |
| 547 |
0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, |
| 548 |
0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, |
| 549 |
0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x74, 0x74, 0x72, |
| 550 |
0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, |
| 551 |
0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, |
| 552 |
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x7c, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, |
| 553 |
0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, |
| 554 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 555 |
0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 556 |
0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, |
| 557 |
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x53, 0x65, |
| 558 |
0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x13, |
| 559 |
0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, |
| 560 |
0x6c, 0x74, 0x73, 0x12, 0x74, 0x0a, 0x11, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, |
| 561 |
0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x47, |
| 562 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, |
| 563 |
0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, |
| 564 |
0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, |
| 565 |
0x65, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, |
| 566 |
0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, |
| 567 |
0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x92, 0x02, 0x0a, 0x10, 0x43, 0x6f, |
| 568 |
0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1e, |
| 569 |
0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, |
| 570 |
0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x72, |
| 571 |
0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, |
| 572 |
0x28, 0x0b, 0x32, 0x52, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 573 |
0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, |
| 574 |
0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, |
| 575 |
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, |
| 576 |
0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, |
| 577 |
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, |
| 578 |
0x65, 0x73, 0x1a, 0x6a, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, |
| 579 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 580 |
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 581 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 582 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, |
| 583 |
0x65, 0x74, 0x61, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, |
| 584 |
0x75, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, |
| 585 |
0x0a, 0x12, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, |
| 586 |
0x73, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x73, |
| 587 |
0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x63, |
| 588 |
0x65, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x02, 0x18, 0x01, 0x1a, 0x33, 0x0a, |
| 589 |
0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, |
| 590 |
0x12, 0x20, 0x0a, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, |
| 591 |
0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, |
| 592 |
0x6e, 0x73, 0x1a, 0x86, 0x01, 0x0a, 0x15, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, |
| 593 |
0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, |
| 594 |
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x57, |
| 595 |
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, 0x2e, |
| 596 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, |
| 597 |
0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, |
| 598 |
0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 599 |
0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, |
| 600 |
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xce, 0x04, 0x0a, 0x11, |
| 601 |
0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 602 |
0x65, 0x12, 0xbf, 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, |
| 603 |
0x65, 0x72, 0x79, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 604 |
0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, |
| 605 |
0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, |
| 606 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 607 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, |
| 608 |
0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, |
| 609 |
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, |
| 610 |
0x12, 0x41, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, 0x6c, |
| 611 |
0x6f, 0x67, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, |
| 612 |
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, |
| 613 |
0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, |
| 614 |
0x65, 0x72, 0x79, 0x12, 0xab, 0x02, 0x0a, 0x14, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, |
| 615 |
0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x37, 0x2e, 0x67, |
| 616 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, |
| 617 |
0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, |
| 618 |
0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, |
| 619 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, |
| 620 |
0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, |
| 621 |
0x74, 0x69, 0x6f, 0x6e, 0x22, 0xba, 0x01, 0xca, 0x41, 0x64, 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, |
| 622 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, |
| 623 |
0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6d, |
| 624 |
0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, |
| 625 |
0x6e, 0x73, 0x65, 0x12, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 626 |
0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, |
| 627 |
0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x82, 0xd3, |
| 628 |
0xe4, 0x93, 0x02, 0x4d, 0x3a, 0x01, 0x2a, 0x22, 0x48, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, |
| 629 |
0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, |
| 630 |
0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, |
| 631 |
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, |
| 632 |
0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x69, 0x6d, 0x70, 0x6f, 0x72, |
| 633 |
0x74, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, |
| 634 |
0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, |
| 635 |
0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 636 |
0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, |
| 637 |
0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd5, 0x01, 0x0a, |
| 638 |
0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 639 |
0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, |
| 640 |
0x16, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 641 |
0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 642 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, |
| 643 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, |
| 644 |
0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, |
| 645 |
0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, |
| 646 |
0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, |
| 647 |
0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 648 |
0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, |
| 649 |
0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, |
| 650 |
0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, |
| 651 |
0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 652 |
} |
| 653 |
|
| 654 |
var ( |
| 655 |
file_google_cloud_retail_v2beta_completion_service_proto_rawDescOnce sync.Once |
| 656 |
file_google_cloud_retail_v2beta_completion_service_proto_rawDescData = file_google_cloud_retail_v2beta_completion_service_proto_rawDesc |
| 657 |
) |
| 658 |
|
| 659 |
func file_google_cloud_retail_v2beta_completion_service_proto_rawDescGZIP() []byte { |
| 660 |
file_google_cloud_retail_v2beta_completion_service_proto_rawDescOnce.Do(func() { |
| 661 |
file_google_cloud_retail_v2beta_completion_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_completion_service_proto_rawDescData) |
| 662 |
}) |
| 663 |
return file_google_cloud_retail_v2beta_completion_service_proto_rawDescData |
| 664 |
} |
| 665 |
|
| 666 |
var file_google_cloud_retail_v2beta_completion_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| 667 |
var file_google_cloud_retail_v2beta_completion_service_proto_goTypes = []any{ |
| 668 |
(*CompleteQueryRequest)(nil), // 0: google.cloud.retail.v2beta.CompleteQueryRequest |
| 669 |
(*CompleteQueryResponse)(nil), // 1: google.cloud.retail.v2beta.CompleteQueryResponse |
| 670 |
(*CompleteQueryResponse_CompletionResult)(nil), // 2: google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult |
| 671 |
(*CompleteQueryResponse_RecentSearchResult)(nil), // 3: google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult |
| 672 |
(*CompleteQueryResponse_AttributeResult)(nil), // 4: google.cloud.retail.v2beta.CompleteQueryResponse.AttributeResult |
| 673 |
nil, // 5: google.cloud.retail.v2beta.CompleteQueryResponse.AttributeResultsEntry |
| 674 |
nil, // 6: google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.AttributesEntry |
| 675 |
(*CustomAttribute)(nil), // 7: google.cloud.retail.v2beta.CustomAttribute |
| 676 |
(*ImportCompletionDataRequest)(nil), // 8: google.cloud.retail.v2beta.ImportCompletionDataRequest |
| 677 |
(*longrunningpb.Operation)(nil), // 9: google.longrunning.Operation |
| 678 |
} |
| 679 |
var file_google_cloud_retail_v2beta_completion_service_proto_depIdxs = []int32{ |
| 680 |
2, // 0: google.cloud.retail.v2beta.CompleteQueryResponse.completion_results:type_name -> google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult |
| 681 |
3, // 1: google.cloud.retail.v2beta.CompleteQueryResponse.recent_search_results:type_name -> google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult |
| 682 |
5, // 2: google.cloud.retail.v2beta.CompleteQueryResponse.attribute_results:type_name -> google.cloud.retail.v2beta.CompleteQueryResponse.AttributeResultsEntry |
| 683 |
6, // 3: google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.attributes:type_name -> google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.AttributesEntry |
| 684 |
4, // 4: google.cloud.retail.v2beta.CompleteQueryResponse.AttributeResultsEntry.value:type_name -> google.cloud.retail.v2beta.CompleteQueryResponse.AttributeResult |
| 685 |
7, // 5: google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.AttributesEntry.value:type_name -> google.cloud.retail.v2beta.CustomAttribute |
| 686 |
0, // 6: google.cloud.retail.v2beta.CompletionService.CompleteQuery:input_type -> google.cloud.retail.v2beta.CompleteQueryRequest |
| 687 |
8, // 7: google.cloud.retail.v2beta.CompletionService.ImportCompletionData:input_type -> google.cloud.retail.v2beta.ImportCompletionDataRequest |
| 688 |
1, // 8: google.cloud.retail.v2beta.CompletionService.CompleteQuery:output_type -> google.cloud.retail.v2beta.CompleteQueryResponse |
| 689 |
9, // 9: google.cloud.retail.v2beta.CompletionService.ImportCompletionData:output_type -> google.longrunning.Operation |
| 690 |
8, // [8:10] is the sub-list for method output_type |
| 691 |
6, // [6:8] is the sub-list for method input_type |
| 692 |
6, // [6:6] is the sub-list for extension type_name |
| 693 |
6, // [6:6] is the sub-list for extension extendee |
| 694 |
0, // [0:6] is the sub-list for field type_name |
| 695 |
} |
| 696 |
|
| 697 |
func init() { file_google_cloud_retail_v2beta_completion_service_proto_init() } |
| 698 |
func file_google_cloud_retail_v2beta_completion_service_proto_init() { |
| 699 |
if File_google_cloud_retail_v2beta_completion_service_proto != nil { |
| 700 |
return |
| 701 |
} |
| 702 |
file_google_cloud_retail_v2beta_common_proto_init() |
| 703 |
file_google_cloud_retail_v2beta_import_config_proto_init() |
| 704 |
type x struct{} |
| 705 |
out := protoimpl.TypeBuilder{ |
| 706 |
File: protoimpl.DescBuilder{ |
| 707 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 708 |
RawDescriptor: file_google_cloud_retail_v2beta_completion_service_proto_rawDesc, |
| 709 |
NumEnums: 0, |
| 710 |
NumMessages: 7, |
| 711 |
NumExtensions: 0, |
| 712 |
NumServices: 1, |
| 713 |
}, |
| 714 |
GoTypes: file_google_cloud_retail_v2beta_completion_service_proto_goTypes, |
| 715 |
DependencyIndexes: file_google_cloud_retail_v2beta_completion_service_proto_depIdxs, |
| 716 |
MessageInfos: file_google_cloud_retail_v2beta_completion_service_proto_msgTypes, |
| 717 |
}.Build() |
| 718 |
File_google_cloud_retail_v2beta_completion_service_proto = out.File |
| 719 |
file_google_cloud_retail_v2beta_completion_service_proto_rawDesc = nil |
| 720 |
file_google_cloud_retail_v2beta_completion_service_proto_goTypes = nil |
| 721 |
file_google_cloud_retail_v2beta_completion_service_proto_depIdxs = nil |
| 722 |
} |
| 723 |
|
| 724 |
// Reference imports to suppress errors if they are not otherwise used. |
| 725 |
var _ context.Context |
| 726 |
var _ grpc.ClientConnInterface |
| 727 |
|
| 728 |
// This is a compile-time assertion to ensure that this generated file |
| 729 |
// is compatible with the grpc package it is being compiled against. |
| 730 |
const _ = grpc.SupportPackageIsVersion6 |
| 731 |
|
| 732 |
// CompletionServiceClient is the client API for CompletionService service. |
| 733 |
// |
| 734 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 735 |
type CompletionServiceClient interface { |
| 736 |
// Completes the specified prefix with keyword suggestions. |
| 737 |
// |
| 738 |
// This feature is only available for users who have Retail Search enabled. |
| 739 |
// Enable Retail Search on Cloud Console before using this feature. |
| 740 |
CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) |
| 741 |
// Bulk import of processed completion dataset. |
| 742 |
// |
| 743 |
// Request processing is asynchronous. Partial updating is not supported. |
| 744 |
// |
| 745 |
// The operation is successfully finished only after the imported suggestions |
| 746 |
// are indexed successfully and ready for serving. The process takes hours. |
| 747 |
// |
| 748 |
// This feature is only available for users who have Retail Search enabled. |
| 749 |
// Enable Retail Search on Cloud Console before using this feature. |
| 750 |
ImportCompletionData(ctx context.Context, in *ImportCompletionDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 751 |
} |
| 752 |
|
| 753 |
type completionServiceClient struct { |
| 754 |
cc grpc.ClientConnInterface |
| 755 |
} |
| 756 |
|
| 757 |
func NewCompletionServiceClient(cc grpc.ClientConnInterface) CompletionServiceClient { |
| 758 |
return &completionServiceClient{cc} |
| 759 |
} |
| 760 |
|
| 761 |
func (c *completionServiceClient) CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) { |
| 762 |
out := new(CompleteQueryResponse) |
| 763 |
err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.CompletionService/CompleteQuery", in, out, opts...) |
| 764 |
if err != nil { |
| 765 |
return nil, err |
| 766 |
} |
| 767 |
return out, nil |
| 768 |
} |
| 769 |
|
| 770 |
func (c *completionServiceClient) ImportCompletionData(ctx context.Context, in *ImportCompletionDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 771 |
out := new(longrunningpb.Operation) |
| 772 |
err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.CompletionService/ImportCompletionData", in, out, opts...) |
| 773 |
if err != nil { |
| 774 |
return nil, err |
| 775 |
} |
| 776 |
return out, nil |
| 777 |
} |
| 778 |
|
| 779 |
// CompletionServiceServer is the server API for CompletionService service. |
| 780 |
type CompletionServiceServer interface { |
| 781 |
// Completes the specified prefix with keyword suggestions. |
| 782 |
// |
| 783 |
// This feature is only available for users who have Retail Search enabled. |
| 784 |
// Enable Retail Search on Cloud Console before using this feature. |
| 785 |
CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error) |
| 786 |
// Bulk import of processed completion dataset. |
| 787 |
// |
| 788 |
// Request processing is asynchronous. Partial updating is not supported. |
| 789 |
// |
| 790 |
// The operation is successfully finished only after the imported suggestions |
| 791 |
// are indexed successfully and ready for serving. The process takes hours. |
| 792 |
// |
| 793 |
// This feature is only available for users who have Retail Search enabled. |
| 794 |
// Enable Retail Search on Cloud Console before using this feature. |
| 795 |
ImportCompletionData(context.Context, *ImportCompletionDataRequest) (*longrunningpb.Operation, error) |
| 796 |
} |
| 797 |
|
| 798 |
// UnimplementedCompletionServiceServer can be embedded to have forward compatible implementations. |
| 799 |
type UnimplementedCompletionServiceServer struct { |
| 800 |
} |
| 801 |
|
| 802 |
func (*UnimplementedCompletionServiceServer) CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error) { |
| 803 |
return nil, status.Errorf(codes.Unimplemented, "method CompleteQuery not implemented") |
| 804 |
} |
| 805 |
func (*UnimplementedCompletionServiceServer) ImportCompletionData(context.Context, *ImportCompletionDataRequest) (*longrunningpb.Operation, error) { |
| 806 |
return nil, status.Errorf(codes.Unimplemented, "method ImportCompletionData not implemented") |
| 807 |
} |
| 808 |
|
| 809 |
func RegisterCompletionServiceServer(s *grpc.Server, srv CompletionServiceServer) { |
| 810 |
s.RegisterService(&_CompletionService_serviceDesc, srv) |
| 811 |
} |
| 812 |
|
| 813 |
func _CompletionService_CompleteQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 814 |
in := new(CompleteQueryRequest) |
| 815 |
if err := dec(in); err != nil { |
| 816 |
return nil, err |
| 817 |
} |
| 818 |
if interceptor == nil { |
| 819 |
return srv.(CompletionServiceServer).CompleteQuery(ctx, in) |
| 820 |
} |
| 821 |
info := &grpc.UnaryServerInfo{ |
| 822 |
Server: srv, |
| 823 |
FullMethod: "/google.cloud.retail.v2beta.CompletionService/CompleteQuery", |
| 824 |
} |
| 825 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 826 |
return srv.(CompletionServiceServer).CompleteQuery(ctx, req.(*CompleteQueryRequest)) |
| 827 |
} |
| 828 |
return interceptor(ctx, in, info, handler) |
| 829 |
} |
| 830 |
|
| 831 |
func _CompletionService_ImportCompletionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 832 |
in := new(ImportCompletionDataRequest) |
| 833 |
if err := dec(in); err != nil { |
| 834 |
return nil, err |
| 835 |
} |
| 836 |
if interceptor == nil { |
| 837 |
return srv.(CompletionServiceServer).ImportCompletionData(ctx, in) |
| 838 |
} |
| 839 |
info := &grpc.UnaryServerInfo{ |
| 840 |
Server: srv, |
| 841 |
FullMethod: "/google.cloud.retail.v2beta.CompletionService/ImportCompletionData", |
| 842 |
} |
| 843 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 844 |
return srv.(CompletionServiceServer).ImportCompletionData(ctx, req.(*ImportCompletionDataRequest)) |
| 845 |
} |
| 846 |
return interceptor(ctx, in, info, handler) |
| 847 |
} |
| 848 |
|
| 849 |
var _CompletionService_serviceDesc = grpc.ServiceDesc{ |
| 850 |
ServiceName: "google.cloud.retail.v2beta.CompletionService", |
| 851 |
HandlerType: (*CompletionServiceServer)(nil), |
| 852 |
Methods: []grpc.MethodDesc{ |
| 853 |
{ |
| 854 |
MethodName: "CompleteQuery", |
| 855 |
Handler: _CompletionService_CompleteQuery_Handler, |
| 856 |
}, |
| 857 |
{ |
| 858 |
MethodName: "ImportCompletionData", |
| 859 |
Handler: _CompletionService_ImportCompletionData_Handler, |
| 860 |
}, |
| 861 |
}, |
| 862 |
Streams: []grpc.StreamDesc{}, |
| 863 |
Metadata: "google/cloud/retail/v2beta/completion_service.proto", |
| 864 |
} |